What is the key of A/P Invoice Draft
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.