Skip to Content

Programmatically update prices of item conditions in Sales Order, BAPI_SALESORDER_CHANGE

Hi all,

we are trying to programmatically update prices of item conditions in Sales Order.

what we do manually is:


for this we are writing a program using function module: BAPI_SALESORDER_CHANGE
at item level, there i could not found any paratmeter to update to 'G'.
also there is one export parameter LOGIC_SWITCH-PRICING, but it is not working.

I checked in scn, but could not help.

is there any way, we can update pricing using pricing type 'G' using Bapi or batch mode.

Madhu_1980

clipboard01.jpg (213.9 kB)
clipboard02.jpg (65.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 13, 2017 at 11:56 AM

    Dear Madhu,

    I am not sure what is your business requirements here. But you don't need to write a program and call BAPI to redetermine the prices. Just add a line code in MV45AFZB program as below.

    FORM USEREXIT_NEW_PRICING_VBAP CHANGING NEW_PRICING.

    new_pricing = 'G'.

    ENDFORM.

    This will redetermine the price for each item automatically. You can write any conditions or logic in the same for itself.

    But if you want to make this happen with BAPI, please follow the below thread.

    https://archive.sap.com/discussions/thread/617361

    Let me know if you have any questions.

    Add comment
    10|10000 characters needed characters exceeded