cancel
Showing results for 
Search instead for 
Did you mean: 

Create Sales Order into SAP B1 using DI API, SAP Business One

nikunjmehta2290
Participant
0 Kudos

Dear all,

Need to help on how to create the sales order using DI API ?

SAP Business One

Regards,

SAP Business One

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi nikunjmehta2290,

Use the following sample code:

 

SAPbobsCOM.Documents oSalesOrder = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);
oSalesOrder.CardCode = "C20000";
oSalesOrder.Rounding = BoYesNoEnum.tYES;
oSalesOrder.RoundingDiffAmount = -1;
oSalesOrder.DocDueDate = new DateTime(2024, 02, 29);
oSalesOrder.Comments = "Created via DIAPI";
oSalesOrder.Lines.ItemCode = "A00001";
oSalesOrder.Lines.UnitPrice = 100;
int AINV = oSalesOrder.Add();

 

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

Accepted Solutions (0)

Answers (0)