I'm using DI API and when i add a delivery associated to sales order, the SAP throws "General Error" and i can't make the delivery.
The error appear when I associate the dellivery to sales order, if i not associate the dellivery to sales order
the delivery is added.
delivery.Lines.BaseEntry = sales_entry '1
delivery.Lines.BaseType = 17 'bodt_Sales_Order
delivery.Lines.BaseLine = sales_line '0