cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Updating Info Parameters via BAPI_EH_POST

arun_yesodharan
Active Participant
0 Kudos
296

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?

Accepted Solutions (1)

Accepted Solutions (1)

kevin_wilson2
Contributor
0 Kudos

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

arun_yesodharan
Active Participant
0 Kudos

kevin.wilson2 : 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.

Answers (0)