on 2019 Mar 19 10:07 AM
Hi folks,
I get the draft invoice in this way:
SAPbobsCOM.Documents oDoc = Company.GetBusinessObject( SAPbobsCOM.BoObjectTypes.oDrafts );
oDoc.GetByKey( docEntry );
Now, I want to check if object oDoc represetns draft or regular document.
After method GetByKey() property DocObjectCodeEx (and DocObjectCode too) return value 13 (and oInvoice).
Hi Przemyslaw,
You might still get a false positive i.e. there is actually a draft with the same DocEntry for the same DocType.
If the Draft is found I would also check if the BP codes and DocNum's match. This should reduce the probability of getting false positives.
Regards,
VV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
105 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.