Hi Billy,
If you use BaseLine and BaseEntry, you need to set the BaseType too. For exemple I need copy to my delivery one line from an Order, then I do this:
delivery.Lines.BaseType = (int)SAPbobsCOM.BoObjectTypes.oOrders;
delivery.Lines.BaseEntry = 521;
delivery.Lines.BaseLine = 0;
With this code, SAP understands that it need copy Line 0 from Order that have DocEntry equals 521. With this, SAP copy all information from the line, you don't need specify any other information for the line, if the information has been provided in the Sales Order.
If you don't copy from any other document, you need remove:
delivery.Lines.BaseEntry = 521;
delivery.Lines.BaseLine = 0;
Regards,
Diego