Skip to Content

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

How to know if created document is a draft

Hi, I'm creating a Sales Order through DI API. If the document does not have discount it add's it directly to SAP. If it has a discount it goes through an approval process in SAP and it is created as a Draft.

When I execute the .Add() procesude for the document, how can I determine if a draft was created or a final document?

Former Member

Hi Youval,

Use the

      ObjectType = oCompany.GetNewObjectType();

method to get the newly created object type.

If the ObjectType = 112, it is a draft created.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question