Skip to Content

Convert Draft Order to SalesOrder [Open Order] using SAPDIAPI

Everyone,

I would like to know how can I convert Draft Order to Sales Order using DI API, Till now I am able to accomplish the below things :

Was able to save in Draft mode by below code :

Documents objSDocuments = (SAPbobsCOM.Documents)oCmpy.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);

objSDocuments.DocObjectCode = SAPbobsCOM.BoObjectTypes.oOrders;

int iError = objSDocuments.Add();

After that was able to open the draft order by below code :

Documents objSDocuments = (SAPbobsCOM.Documents)oCmpy.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);

objSDocuments.GetByKey(Convert.ToInt32(iDraftOrder));

The place I am stuck how can I convert it to Open Order or Sales Order.

Please let me know if anyone have some solution on this.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 14, 2018 at 12:15 PM

    Hello Rahul,

    I think below link will help you to get your solution.

    https://sapb1hana.blogspot.in/2018/03/convert-draft-order-to-salesorder-diapi-sapsdk.html

    Thanks,

    Gaurav

    Add comment
    10|10000 characters needed characters exceeded