Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Subline item in Delivery

former_member594288
Participant
0 Kudos

Hi,

I want to add a sub line item while creating delivery. Can we achieve this using any routine or badi ?.

Regards,

Ravi

1 ACCEPTED SOLUTION

VeselinaPeykova
Active Contributor
0 Kudos

IMHO VOFM copy requirement is not the right place to add such kind of code. Copy requirements are used to determine whether an item can be included in the new document, it won't help you generate a completely new item. The routine which you mention is used to check whether an item that you specify manually in the VL* transaction is allowed to be added to the document. I use this routine in customizing so that I can generate packing items in the delivery. Is this what you are trying to do? If yes then you need to fulfill a few more prerequisites and configure the packing functionality. Refer to SAP notes 2323180 - Delivery items for packaging materials of picking and 831204 - Delivery items for packaging materials for more details.

If you need to create a completely new item that has nothing to do with packing or batch split and is not available in the preceding document then you will probably need to use something like BADI LE_SHP_DELIVERY_PROC.

4 REPLIES 4

Abinathsiva
Active Contributor
0 Kudos

Hi Ravi, Question is not clear, does this related to Batch split in delivery

FredericGirod
Active Contributor
0 Kudos

I think you would like to create a "batch split item", but you need a batch & obviously the correct customizing

former_member594288
Participant
0 Kudos

I want to add a new line item that does not exist in sales order while creating delivery. Have you ever work on vofm routines => Delivery => Copying Requirements => 202.?

VeselinaPeykova
Active Contributor
0 Kudos

IMHO VOFM copy requirement is not the right place to add such kind of code. Copy requirements are used to determine whether an item can be included in the new document, it won't help you generate a completely new item. The routine which you mention is used to check whether an item that you specify manually in the VL* transaction is allowed to be added to the document. I use this routine in customizing so that I can generate packing items in the delivery. Is this what you are trying to do? If yes then you need to fulfill a few more prerequisites and configure the packing functionality. Refer to SAP notes 2323180 - Delivery items for packaging materials of picking and 831204 - Delivery items for packaging materials for more details.

If you need to create a completely new item that has nothing to do with packing or batch split and is not available in the preceding document then you will probably need to use something like BADI LE_SHP_DELIVERY_PROC.