12,162
社区成员
发帖
与我相关
我的任务
分享
RfcDestination rfcdest = RfcDestinationManager.GetDestination(RfcParames);//RfcParames你的SAP连接配置
RfcRepository rfcrep = rfcdest.Repository;
IRfcFunction myfun = null;
myfun = rfcrep.CreateFunction("ZMMT_WMS_RSNUM");
IRfcTable T_MATERIAL= myfun.GetTable("T_MATERIAL");
for (int i = 0; i < T_MATERIAL.Count; i++)
{
T_MATERIAL.CurrentIndex = i;
string a= T_MATERIAL.CurrentRow.GetString("栏位a");
string b = T_MATERIAL.CurrentRow.GetString("栏位b");
}