11-21-2013 9:42 PM
We are having an interface from PI to SAP ECC to change outbound delivery document(VL02n) in SAP.
BAPI_OUTB_DELIVERY_CHANGE was used inside the proxy to accomplish the change of delivery.
Now we also need to update pricing conditions in Delivery like Freight in header level and another 3 more pricing conditions in item level.
The Bapi does not support pricing conditions as a parameter and so we need to have some other means to update.
Please share any function module/class method which can used ? Or is it possible through some other BAPI ?
11-22-2013 4:56 AM
Hi,
Please check these function modules.
BAPI_PRICES_CONDITIONS
BAPI_FREEGOODS_CONDITIONS
BAPI_FTR_CONDITION_CHANGE
BAPI_FTR_CONDITION_CREATE
BAPI_FTR_CONDITION_DELETE
BAPI_FTR_CONDITION_GETLIST
Hope it helps.
Regards,
Ajit
02-05-2014 3:03 PM
Hi,
even I guess I am to late, but for all others facing the same challenge.
We did the following:
Before we are calling WS_DELIVERY_UPDATE_2 to post goods issue and set the weight and package count,
we call also a function where we set the delivery, and pricing relevant info into the global data of this function group.
During the delivery change we call in user exit USEREXIT_SAVE_DOCUMENT_PREPARE - MV50AFZ1 a other function which is in the same function group as the one before and read the global data from the function group we set before and update the tkomv.
Not nice and tidy but it does the job
Bernhard
02-05-2014 5:31 PM
Hi mathew,
You can call fm " PRICING_DOC_UPDATE" after changing the delivery data using fm "BAPI_OUTB_DELIVERY_CHANGE". so that in the same proxy, you can update the Pricing conditions for the changed delivery.
Thanks,
Kishor.
02-05-2014 10:24 PM
We have a program that updates Freight pricing in the delivery and we use BDC. Maybe you'll have better luck but, unfortunately, none of the BAPIs/functions worked for us. If you find a better option, kindly update the post - I'd be interested as well.
Thank you.
01-20-2022 1:02 AM
Hi jelena,
Can you share your BDC program? How to choose this screen field?
Thanks