cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Delivery based on Sales Order

Former Member
0 Kudos

-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

FoDelivery.Lines.Add;

FoDelivery.Lines.SetCurrentLine(j);

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;

inc(j);

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

view sap note

Note 1179405 - Error -5002 when trying to copy a document with Sales BOM