Skip to Content

Shipment costs based on custom field

Nov 13, 2016 at 08:41 PM


avatar image

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,


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

G Lakshmipathi
Nov 14, 2016 at 09:16 AM

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

10 |10000 characters needed characters left characters exceeded