首页 > 编程语言 >C# .net ERP SAP 通过传表进行查询

C# .net ERP SAP 通过传表进行查询

时间:2022-11-02 16:12:35浏览次数:35  
标签:RSPOS Rows ERP C# 传表 ToString func rfcTable DT

RfcDestination dest = rfc_public.GetRfcDestination("SMP");
IRfcFunction func = dest.Repository.CreateFunction("ZPP_SYHD_GET_ISSUE_CHARGE");//接口明
IRfcTable rfcTable = func.GetTable("IT_TAB");//所属表 明细表  传入的表名
for (int i = 0; i < DT.Rows.Count; i++)//循环插入要传入的表
{

rfcTable.Insert();
rfcTable.CurrentRow.SetValue("RSPOS", DT.Rows[i]["RSPOS"].ToString());//预留项目编号
rfcTable.CurrentRow.SetValue("RSNUM", DT.Rows[i]["RSNUM"].ToString());//预留号
//rfcTable.SetValue("RSPOS", DT.Rows[i]["RSPOS"].ToString() );
//rfcTable.SetValue("RSNUM", DT.Rows[i]["RSNUM"].ToString());
}

func.Invoke(dest); //执行函数
IRfcTable rfcResTable = func.GetTable("OT_TAB");

标签:RSPOS,Rows,ERP,C#,传表,ToString,func,rfcTable,DT
From: https://www.cnblogs.com/codejimmygao/p/16851352.html

相关文章