Skip to Content
0

Convert Draft Order to SalesOrder [Open Order] using SAPDIAPI

Mar 21, 2017 at 11:06 AM

57

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Mar 14 at 12:15 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded