资源简介
里面所有用到的有头文件、动态库。还有个连接用的DEMO... SAP项目必备~ VS下的开发包。里面所有用到的有头文件、动态库

代码片段和文件信息
#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\n“) description rc);
printfU(cU(“%s: %s\n“) 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 nwrfcsdk\bin\rfcexec.exe
文件 14336 2017-11-23 17:51 nwrfcsdk\bin\startrfc.exe
文件 3974 2017-08-14 15:26 nwrfcsdk\demo\companyClient.c
文件 1377 2017-08-14 15:26 nwrfcsdk\demo\readme.txt
文件 29360 2017-08-14 15:26 nwrfcsdk\demo\rfcexec.cpp
文件 1081 2017-08-14 15:26 nwrfcsdk\demo\rfcexec.h
文件 21298 2017-10-26 02:05 nwrfcsdk\demo\sapnwrfc.ini
文件 13656 2017-08-14 15:26 nwrfcsdk\demo\sflightClient.c
文件 6617 2017-08-14 15:26 nwrfcsdk\demo\sso2sample.c
文件 10371 2017-08-14 15:26 nwrfcsdk\demo\startrfc.cpp
文件 769 2017-08-14 15:26 nwrfcsdk\demo\startrfc.h
文件 10169 2017-08-14 15:26 nwrfcsdk\demo\stfcDeepTableServer.c
文件 54195 2017-08-14 15:22 nwrfcsdk\include\sapdecf.h
文件 227325 2017-11-23 04:11 nwrfcsdk\include\sapnwrfc.h
文件 193566 2017-10-19 02:07 nwrfcsdk\include\sapuc.h
文件 21625 2017-08-14 15:22 nwrfcsdk\include\sapucx.h
文件 8847360 2017-11-23 05:26 nwrfcsdk\lib\icudt34.dll
文件 843776 2017-11-23 05:26 nwrfcsdk\lib\icuin34.dll
文件 946176 2017-11-23 05:26 nwrfcsdk\lib\icuuc34.dll
文件 65536 2017-11-23 05:30 nwrfcsdk\lib\libicudecnumber.dll
文件 180224 2017-11-23 05:29 nwrfcsdk\lib\libsapucum.dll
文件 25040 2017-11-23 05:29 nwrfcsdk\lib\libsapucum.lib
文件 246144 2017-11-23 05:30 nwrfcsdk\lib\sapdecfICUlib.lib
文件 4444160 2017-11-23 17:51 nwrfcsdk\lib\sapnwrfc.dll
文件 49672 2017-11-23 17:50 nwrfcsdk\lib\sapnwrfc.lib
文件 0 2018-01-11 11:27 nwrfcsdk\SIGNATURE.SMF
目录 0 2018-01-11 11:27 nwrfcsdk\bin
目录 0 2018-01-11 11:27 nwrfcsdk\demo
目录 0 2018-01-11 11:27 nwrfcsdk\doc
目录 0 2018-01-11 11:27 nwrfcsdk\include
............此处省略5个文件信息
- 上一篇:mcgs的介绍
- 下一篇:MODBUS电压电流表程序+上位机
相关资源
- SAP中文版帮助文档
- ectouch最新版JSAPI微信支付V3插
- DXperienceUniversal 10.1.6(2010年8月13日版
- SAP ABAP培训练习题
- 三星S19C200NW液晶显示器驱动 v1.0 官方
- SAP MRP logic.ppt
- SAP基本知识ERP的介绍和SAP的应用范围
- openwrt在STA模式(中继模式下动态切换
- SAP Business One 中文版 + IBM eServer x 系列
- SAP 开发Key破解工具
- 易语言RFC1982序列号算法源码
- LEDE/OpenWrt解包工具
- MT7621A-Board.pdf
- RFC1034-RFC1035.zip
- rfc1889.doc
- http协议rfc2616中英文双版
- SAPF并网LCL滤波器稳定性
- OpenWrt 29.OpenWrt实现pppoe上网.rar
- 易语言OpenWrt路由器系统操作源码
- dnw驱动,解决SEC S3C2410X 感叹号问题,
- SAP ABAP 官方用户指南电子版 ABAP/4 用户
- OpenWrt的x86虚拟机vmdk文件
- 磊科nw336Ubuntu驱动
- The binding and unwinding properties of the Bl
- SAP政府行业方案
- sap移动类型详解
- SAP基础教程(中文)
- 从学sap abap编程(完整版)
- csapp
- RFC2328_中文版.pdf
评论
共有 条评论