首页 > 解决方案 > 如何将销售订单数据插入到用户定义的表中

问题描述

如何使用数据事件(使用 C#)或 SAP B1 中的任何其他方式将销售订单数据(如 docEntry、对象类型)插入到用户定义的表中。

提前致谢

标签: sapb1

解决方案


检查此代码:

UserTable oUserTable = null;
oUserTable = conexionSAP.oCompany.UserTables.Item("TABLE_NAME");
oUserTable.Code = "2";
oUserTable.Name = "SUPER_SACO";
oUserTable.UserFields.Fields.Item("USER_FIELD1").Value = "9746";
oUserTable.UserFields.Fields.Item("USER_FIELD2").Value = "1084.00";
oUserTable.Add()

再见。


推荐阅读