通过DI API创建付款汇票

2020-08-27 14:57发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


嗨,

我想用此代码以编程方式创建一个付款草稿单,但需要指定BpAct帐户:

 SAPbobsCOM.Payments doc = sap.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPaymentsDrafts);
 doc.DocObjectCode = BoPaymentsObjectType.bopot_IncomingPayments;
 doc.DocType = BoRcptTypes.rCustomer;
 doc.CardCode = cardCode;
 doc.DocDate = DateTime.Now;
 doc.CashSum =金额;
 doc.LocalCurrency = BoYesNoEnum.tYES;
 doc.DocCurrency =货币;
 doc.Series = seriesNumber;
 doc.Invoices.DocEntry = docEntry;
 doc.Invoices.DocLine = 0;
 doc.Invoices.InvoiceType = BoRcptInvTypes.it_Invoice;
 doc.Invoices.SumApplied =金额;
//如何设置属性值
 doc.HERE_NEED_PROPERTY_NAME([OPDF]。[BpAct])= bpAct; //<-在这里帮助
 doc.Add();




 

(16.1 kB)

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


嗨,

我想用此代码以编程方式创建一个付款草稿单,但需要指定BpAct帐户:

 SAPbobsCOM.Payments doc = sap.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPaymentsDrafts);
 doc.DocObjectCode = BoPaymentsObjectType.bopot_IncomingPayments;
 doc.DocType = BoRcptTypes.rCustomer;
 doc.CardCode = cardCode;
 doc.DocDate = DateTime.Now;
 doc.CashSum =金额;
 doc.LocalCurrency = BoYesNoEnum.tYES;
 doc.DocCurrency =货币;
 doc.Series = seriesNumber;
 doc.Invoices.DocEntry = docEntry;
 doc.Invoices.DocLine = 0;
 doc.Invoices.InvoiceType = BoRcptInvTypes.it_Invoice;
 doc.Invoices.SumApplied =金额;
//如何设置属性值
 doc.HERE_NEED_PROPERTY_NAME([OPDF]。[BpAct])= bpAct; //<-在这里帮助
 doc.Add();




 

(16.1 kB)
付费偷看设置
发送
1条回答
蓋茨
1楼 · 2020-08-27 15:43.采纳回答

何塞,

应为:doc.ControlAccount

您可以在SDK帮助中找到此类信息:

最诚挚的问候,

Maik

一周热门 更多>