on 09-15-2008 6:42 PM
-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
view sap note
Note 1179405 - Error -5002 when trying to copy a document with Sales BOM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.