Skip to Content
avatar image
Former Member

Updating Info Parameters via BAPI_EH_POST

Hello Experts,

I would like to know whether I can directly update info parameter , after an event handler is posted. There are certain info parameters that were wrongly updated while event handler creation. And now we need to correct those info parameters.

What I understand is if I pass an new event message , I can update these parameters.Also the UPDATE PARAMETER NEW activity shall be present in the rule set.

I don't want to update an event message , just update the parameter somehow. Is there a solution to it?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 05, 2017 at 02:23 PM

    Standard way is to pass in an event with the updated values set in the Parameters itab but you can write a small ABAP in EM that calls the following method to update it directly:

    * Add/Change/Delete Info Parameter

    CALL METHOD i_eai-eh_model->set_info_parameter
    EXPORTING
    i_eh_info = ls_bapi_info
    RECEIVING
    result = lv_result.

    Pass in your EH GUID (after looping through /SAPTRX/EH_HDR joined with /SAPTRX/EH_INFO to find all the affected records) and parameter detail in ls_bapi_info.

    Good luck

    Thanks

    Kevin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Kevin Wilson : We have created a program as suggested by you & filled the structure as well. But where exactly shall we export I_eai ? We are stuck ,please help.