cancel
Showing results for 
Search instead for 
Did you mean: 

adding an info parameter

Former Member
0 Kudos

Dear All,

               I want to add an info parameter to an EH on reporting of an event for another EH.  I have set the rule processing parameter to dynamically add an info parameter such that once a particular event is reported then i will also update the EH of another EHT.

               The method that i am calling is i_eai-eh_model->update_info_params with the parameter i_info_param_tab filled with the EH GUID of another event handler. The parameter is not getting added in /saptrx/eh_info table.

Thanks,

Shubh.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190756
Active Contributor
0 Kudos

Hello Shubh,

why don't you use activity PARAMETER_CHANGE?

The way with the Rule Processing Parameters i don't understand.

Best regards,

Steffen

Former Member
0 Kudos

Dear Steffen,

                   Will the activity PARAMETER_CHANGE will work even if we want to add the parameter to another Event Handler.  The context in i_eai parameter will be for the current Event handler only and if we want to change the value for another event handler how will we get the context ?

Thanks,

Shubh.

former_member190756
Active Contributor
0 Kudos

Ok,

now i got it.

You could send an Event Message to the other EH.

Activity function RESEND does something similar. It is important that you send the message not to the same EH.

In your case i would recommend using QRFC.

i.e.:

CALL FUNCTION 'TRFC_SET_QUEUE_NAME'                      

    EXPORTING

      qname              = <QUEUE_NAME e.g. guid or document number>

    EXCEPTIONS

      invalid_queue_name = 1

      OTHERS             = 2.



  CALL FUNCTION 'TRFC_SET_QIN_PROPERTIES'

    EXPORTING

      qin_name = <QUEUE_NAME e.g. guid or document number>.

The call the Event Message BAPI with

IN BACKGROUND TASK

      DESTINATION <YOUR_DESTINATION>

In the rule set of the other EH you can then use PARAMETER_CHANGE activity.

In the Event Message you have to fill the TRACKPARAMETERS structure with the info parameter you want to add. Explanation how to fill it you find in the docu of PARAMETER_CHANGE activity.

Best regards,

Steffen