Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error: Delivery based on Sales Order

-5002: The complete Sales BOM, not just some of the components, must be copied to an A/R Invoice or a Delivery DLN1.TreeType line: 1

the Sales Order has 3 lines

Line 0 treeType = I

Line 1 TreeType = I

Line 2 TreeType = S



FoOrder.Lines.SetCurrentLine(k);//aseline from Order

FoDelivery.Lines.BaseEntry:= 'DocEntry';

FoDelivery.Lines.BaseLine:= Baseline from Order;

FoDelivery.Lines.BaseType := 17;

FoDelivery.Lines.Quantity:= FoOrder.Lines.Quantity;

FoDelivery.Lines.WarehouseCode:= FoOrder.Lines.WarehouseCode;



Former Member
Not what you were looking for? View more on this topic or Ask a question