里面所有用到的有头文件、动态库。还有个连接用的DEMO... SAP项目必备~ VS下的开发包。里面所有用到的有头文件、动态库
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 25600 2017-11-23 17:51 nwrfcsdkin
fcexec.exe
文件 14336 2017-11-23 17:51 nwrfcsdkinstartrfc.exe
文件 3974 2017-08-14 15:26 nwrfcsdkdemocompanyClient.c
文件 1377 2017-08-14 15:26 nwrfcsdkdemo
eadme.txt
文件 29360 2017-08-14 15:26 nwrfcsdkdemo
fcexec.cpp
文件 1081 2017-08-14 15:26 nwrfcsdkdemo
fcexec.h
文件 21298 2017-10-26 02:05 nwrfcsdkdemosapnwrfc.ini
文件 13656 2017-08-14 15:26 nwrfcsdkdemosflightClient.c
文件 6617 2017-08-14 15:26 nwrfcsdkdemosso2sample.c
文件 10371 2017-08-14 15:26 nwrfcsdkdemostartrfc.cpp
文件 769 2017-08-14 15:26 nwrfcsdkdemostartrfc.h
文件 10169 2017-08-14 15:26 nwrfcsdkdemostfcDeepTableServer.c
文件 54195 2017-08-14 15:22 nwrfcsdkincludesapdecf.h
文件 227325 2017-11-23 04:11 nwrfcsdkincludesapnwrfc.h
文件 193566 2017-10-19 02:07 nwrfcsdkincludesapuc.h
文件 21625 2017-08-14 15:22 nwrfcsdkincludesapucx.h
文件 8847360 2017-11-23 05:26 nwrfcsdklibicudt34.dll
文件 843776 2017-11-23 05:26 nwrfcsdklibicuin34.dll
文件 946176 2017-11-23 05:26 nwrfcsdklibicuuc34.dll
文件 65536 2017-11-23 05:30 nwrfcsdkliblibicudecnumber.dll
文件 180224 2017-11-23 05:29 nwrfcsdkliblibsapucum.dll
文件 25040 2017-11-23 05:29 nwrfcsdkliblibsapucum.lib
文件 246144 2017-11-23 05:30 nwrfcsdklibsapdecfICUlib.lib
文件 4444160 2017-11-23 17:51 nwrfcsdklibsapnwrfc.dll
文件 49672 2017-11-23 17:50 nwrfcsdklibsapnwrfc.lib
文件 0 2018-01-11 11:27 nwrfcsdkSIGNATURE.SMF
目录 0 2018-01-11 11:27 nwrfcsdkin
目录 0 2018-01-11 11:27 nwrfcsdkdemo
目录 0 2018-01-11 11:27 nwrfcsdkdoc
目录 0 2018-01-11 11:27 nwrfcsdkinclude
............此处省略5个文件信息
#include
#include
#include “sapnwrfc.h“
void errorHandling(RFC_RC rc SAP_UC* description RFC_ERROR_INFO* errorInfo RFC_CONNECTION_HANDLE connection){
printfU(cU(“%s: %d
“) description rc);
printfU(cU(“%s: %s
“) errorInfo->key errorInfo->message);
// It‘s better to close the TCP/IP connection cleanly than to just let the
// backend get a “Connection reset by peer“ error...
if (connection != NULL) RfcCloseConnection(connection errorInfo);
exit(1);
}
//usage: companyClient
int mainU(int argc SAP_UC** argv){
RFC_RC rc = RFC_OK;
RFC_CONNECTION_PARAMETER loginParams[6];
RFC_ERROR_INFO errorInfo;
RFC_CONNECTION_HANDLE connection;
RFC_FUNCTION_DESC_HANDLE bapiCompanyDesc;
RFC_FUNCTION_HANDLE bapiCompany;
RFC_STRUCTURE_HANDLE returnStructure;
SAP_UC message[221] = iU(““);
RFC_BYTE buffer[1105];
unsigned utf8Len = 1105 resultLen;
FILE* outFile;
loginParams[0].name = cU(“ashost“); loginParams[0].value = argc > 1 ? argv[1] : cU(“hostname“);
loginParams[1].name = cU(“sysnr“); loginParams[1].value = argc > 2 ? argv[2] : cU(“05“);
loginParams[2].name = cU(“client“); loginParams[2].value = argc > 3 ? argv[3] : cU(“800“);
loginParams[3].name = cU(“user“); loginParams[3].value = argc > 4 ? argv[4] : cU(“user“);
loginParams[4].name = cU(“passwd“); loginParams[4].value = argc > 5 ? argv[5] : cU(“*****“);
loginParams[5].name = cU(“lang“); loginParams[5].value = argc > 6 ? argv[6] : cU(“JA“);
connection = RfcOpenConnection(loginParams 6 &errorInfo);
if (connection == NULL) errorHandling(rc cU(“Error during logon“) &errorInfo NULL);
bapiCompanyDesc = RfcGetFunctionDesc(connection cU(“BAPI_COMPANY_GETDETAIL“) &errorInfo);
if (bapiCompanyDesc == NULL) errorHandling(rc cU(“Error during metadata lookup“) &errorInfo connection);
bapiCompany = RfcCreateFunction(bapiCompanyDesc &errorInfo);
// Use a company ID that does not exit. 000007 should not exist in most systems.
RfcSetChars(bapiCompany cU(“COMPANYID“) cU(“000007“) 6 &errorInfo);
rc = RfcInvoke(connection bapiCompany &errorInfo);
if (rc != RFC_OK) errorHandling(rc cU(“Error calling BAPI_COMPANY_GETDETAIL“) &errorInfo connection);
RfcGetStructure(bapiCompany cU(“RETURN“) &returnStructure &errorInfo);
RfcGetString(returnStructure cU(“MESSAGE“) message 221 &resultLen &errorInfo);
RfcDestroyFunction(bapiCompany &errorInfo);
RfcCloseConnection(connection NULL);
// On Windows you can use the following function from windows.h toconvert to UTF-8:
// utf8Len = WideCharToMultiByte(CP_UTF8 0 message strlenU(message) buffer 1105 NULL NULL);
// It will have a slightly better performance than RfcSAPUCToUTF8().
// On ‘system i‘ with Japanese double byte characters using the ASCII LIBSAPNRFC the
// message string does not contain UNICODE but JIS encoded data. The call to the
// following
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 25600 2017-11-23 17:51 nwrfcsdkin
fcexec.exe
文件 14336 2017-11-23 17:51 nwrfcsdkinstartrfc.exe
文件 3974 2017-08-14 15:26 nwrfcsdkdemocompanyClient.c
文件 1377 2017-08-14 15:26 nwrfcsdkdemo
eadme.txt
文件 29360 2017-08-14 15:26 nwrfcsdkdemo
fcexec.cpp
文件 1081 2017-08-14 15:26 nwrfcsdkdemo
fcexec.h
文件 21298 2017-10-26 02:05 nwrfcsdkdemosapnwrfc.ini
文件 13656 2017-08-14 15:26 nwrfcsdkdemosflightClient.c
文件 6617 2017-08-14 15:26 nwrfcsdkdemosso2sample.c
文件 10371 2017-08-14 15:26 nwrfcsdkdemostartrfc.cpp
文件 769 2017-08-14 15:26 nwrfcsdkdemostartrfc.h
文件 10169 2017-08-14 15:26 nwrfcsdkdemostfcDeepTableServer.c
文件 54195 2017-08-14 15:22 nwrfcsdkincludesapdecf.h
文件 227325 2017-11-23 04:11 nwrfcsdkincludesapnwrfc.h
文件 193566 2017-10-19 02:07 nwrfcsdkincludesapuc.h
文件 21625 2017-08-14 15:22 nwrfcsdkincludesapucx.h
文件 8847360 2017-11-23 05:26 nwrfcsdklibicudt34.dll
文件 843776 2017-11-23 05:26 nwrfcsdklibicuin34.dll
文件 946176 2017-11-23 05:26 nwrfcsdklibicuuc34.dll
文件 65536 2017-11-23 05:30 nwrfcsdkliblibicudecnumber.dll
文件 180224 2017-11-23 05:29 nwrfcsdkliblibsapucum.dll
文件 25040 2017-11-23 05:29 nwrfcsdkliblibsapucum.lib
文件 246144 2017-11-23 05:30 nwrfcsdklibsapdecfICUlib.lib
文件 4444160 2017-11-23 17:51 nwrfcsdklibsapnwrfc.dll
文件 49672 2017-11-23 17:50 nwrfcsdklibsapnwrfc.lib
文件 0 2018-01-11 11:27 nwrfcsdkSIGNATURE.SMF
目录 0 2018-01-11 11:27 nwrfcsdkin
目录 0 2018-01-11 11:27 nwrfcsdkdemo
目录 0 2018-01-11 11:27 nwrfcsdkdoc
目录 0 2018-01-11 11:27 nwrfcsdkinclude
............此处省略5个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)