点击此处---> 群内免费提供SAP练习系统(在群公告中)
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
我正在尝试通过di api在业务伙伴帐户上添加IncomingPayment并收到以下错误消息:
"应付金额与现有交易不符"
返回码为" -10"
这基本上是这个问题,但是那家伙从未发布答案。
这是我的代码:
SAPbobsCOM.Payments oPmt; var record =(((SAPbobsCOM.Payments)(oCompany.GetBusinessObject SAPbobsCOM.BoObjectTypes.oIncomingPayments)));; record.DocType = BoRcptTypes.rAccount; record.CardCode =" C00001"; record.DocDate = DateTime.Now; record.DueDate = DateTime.Now.AddDays(2); record.AccountPayments.AccountCode =" _SYS00000000026"; record.AccountPayments.SumPaid = 100; record.AccountPayments.Add(); record.TransferDate = DateTime.Today; record.TransferSum = 100; record.CashAccount =" 1010100100000"; record.TransferAccount =" 1020400100000"; var returnCode = record.Add();
我也坚持这一点。 有人知道吗?
一周热门 更多>