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: 

Update pricing in outbound delivery

Former Member
0 Kudos

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 ?

5 REPLIES 5

Ajit_K_Panda
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

0 Kudos

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

0 Kudos

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.

Jelena
Active Contributor
0 Kudos

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.

0 Kudos

Hi jelena,

Can you share your BDC program? How to choose this screen field?

Thanks