Skip to Content

Update the "Revaluation Reason" in MR21

Hi experts,

I need to update the field "Revaluation Reason" (KONGR) for a price change in MR21. The current code is using the FM "BAPI_MATVAL_PRICE_CHANGE" to update the Moving Average Price. However, this BAPI doesn't have this field available for updates.

Do you know any other FM/BAPI/etc. that I could be using to update this field?

Thank you in advance!


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jun 06, 2017 at 01:40 PM

    The BAPI use the FM CKML_MATVAL_PRICE_CHANGE which then call the FM PRICES_POST without passing the PRICES_POST parameter...

    Add comment
    10|10000 characters needed characters exceeded

    • So creation of a wrapper Z_BAPI with the reason parameter, export value to memory before calling the standard BAPI, implict enhancement point at start of PRICES_POST there read from memory, override and clear memory, you could even check that the Z_BAPI is active in the Abap stack to prevent problems.