cancel
Showing results for 
Search instead for 
Did you mean: 

Shipment costs based on custom field

j_madariaga
Participant
0 Kudos

Hi, gurus!

We are struggling with the next scenario: we have created a condition table based on both header (forwarding agent, ship to party, ...) and item information (product hierarchy) , including a custom (ZZZZ) field which has been added to VBAP table. And obviously, we have created also the corresponding condition type.

In order to obtain that information, we have created the condition record (with transaction TK11) and implemented code in include ZXV54U03 (user-exit EXIT_SAPLV54B_002) so as to retrieve the information for each item in VBAP table. Basically, we get the information from vbap table using c_komp-vgbel as the sales order and c_komp-vgpos as the item. Later c_komp-zzzz field is assigned that value.

The problem is the shipment cost is calculated as if the value of ZZZZ for every item was '1' (which is not the case: for some ítems is '1' and for others is '0'). Maybe because the value for the last item is '1'?

Are we skipping something? Could somebody give us a clue?

Kind regards and thanks in advance,

J

Accepted Solutions (0)

Answers (1)

Answers (1)

Lakshmipathi
Active Contributor
0 Kudos

Since it is a customized one, did you check with your ABAP team before posting here? Most of your technical related queries would be addressed if you discuss with them since they are the people who do coding