on 03-22-2024 7:15 AM
Dear all,
Need to help on how to create the sales order using DI API ?
SAP Business One
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.