Skip to Content

Shipment costs based on custom field

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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

    Add comment
    10|10000 characters needed characters exceeded