Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

What is the key of A/P Invoice Draft

Hi, all,

I want to update a Draft document of A/P Invoice, but I have no idea what is the Key Code.

Here is my code:

Dim oDoc As SAPbobsCOM.Documents

oDoc = oCompany.GetBusinessObject(BoObjectTypes.oDrafts)

oDoc.DocObjectCodeEx = BoObjectTypes.oInvoices

oDoc.GetByKey( ????? )

I tried to use DodNum, but can't get the right record.

Please advise.


Former Member
Not what you were looking for? View more on this topic or Ask a question