Skip to Content

Updating Info Parameters via BAPI_EH_POST

Sep 05, 2017 at 07:30 AM


avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member 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
i_eh_info = ls_bapi_info
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



Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Former Member : 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.