SAP通用接口代码NCo3.0

上传者: u014163526 | 上传时间: 2025-06-15 19:45:00 | 文件大小: 22.69MB | 文件类型: RAR
NCo3.0调用RFC,通用接口, 支持泛型和动态类型。

Sap通用接口

一、 接口说明
1. 入参Dictionary,出参泛型
1.1 接口ExecuteString
public T ExecuteString(string FunName, Dictionary import)
实例代码:
SapRfcHelper sapserver = new SapRfcHelper("10.6.203.19", "100", "E_SFC", "Sfcs@123");
Dictionary import3 = new Dictionary();
import3.Add("NUM", "1");
import3.Add("STATUS", "1");
//入参字符串出参对象
StatusModel d = sapserver.ExecuteString("Y_RFC_SUPPLY_ZMM10_STATUS", import3);



1.2 接口ExecuteStructure
public T ExecuteStructure(string FunName, Dictionary import)
没有测试实例


1.3 接口ExecuteTable
public T ExecuteTable(string FunName, string tableName, Dictionary import)
实例代码:

Dictionary import23 = new Dictionary();
import23.Add("AUFNR", "111");
//入参表格出参对象
MappingModel fd = sapserver.ExecuteTable("Z_SFC_BU_MO_MAPPING", "BU_MO", import23);




2. 入参Dictionary,出参动态类型
2.1 接口Execute
public ExpandoObject Execute(string FunName, Dictionary import)

3. 入参Dictionary,出参泛型
3.1 接口Execute
public T Execute(string FunName, Dictionary import)


二、出参泛型对象
注意事项:
1. 仅对属性赋值,字段自动忽略(如果有异常,请检查)
2. 属性不能多于sap接口的参数
3. 属性名即是sap接口的Key

列如:

文件下载

资源详情

[{"title":"( 24 个子文件 22.69MB ) SAP通用接口代码NCo3.0","children":[{"title":"SapCommon","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"SapCommon.dll <span style='color:#111;'> 34.50KB </span>","children":null,"spread":false},{"title":"SapCommon.pdb <span style='color:#111;'> 51.50KB </span>","children":null,"spread":false},{"title":"sapnco_utils.dll <span style='color:#111;'> 4.77MB </span>","children":null,"spread":false},{"title":"sapnco.dll <span style='color:#111;'> 487.50KB </span>","children":null,"spread":false},{"title":"System.Net.Http.dll <span style='color:#111;'> 176.59KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"SapRfc","children":[{"title":"SapRfcBase.cs <span style='color:#111;'> 25.23KB </span>","children":null,"spread":false},{"title":"SapRfcHelper.cs <span style='color:#111;'> 26.91KB </span>","children":null,"spread":false},{"title":"sap文档.docx <span style='color:#111;'> 123.78KB </span>","children":null,"spread":false},{"title":"DLL","children":[{"title":"vcredist_x86.exe <span style='color:#111;'> 4.84MB </span>","children":null,"spread":false},{"title":"sapnco_utils.dll <span style='color:#111;'> 4.77MB </span>","children":null,"spread":false},{"title":"vcredist_x64.rar <span style='color:#111;'> 10.26MB </span>","children":null,"spread":false},{"title":"vcredist_x64.exe <span style='color:#111;'> 5.45MB </span>","children":null,"spread":false},{"title":"Newtonsoft.Json.dll <span style='color:#111;'> 659.91KB </span>","children":null,"spread":false},{"title":"sapnco.dll <span style='color:#111;'> 487.50KB </span>","children":null,"spread":false},{"title":"System.Net.Http.dll <span style='color:#111;'> 176.59KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"SapCommon.dll <span style='color:#111;'> 34.50KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"SapCommon.pdb <span style='color:#111;'> 51.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.15KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"SapCommon.csproj.FileListAbsolute.txt <span style='color:#111;'> 622B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"SapCommon.csproj <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明