Skip to Content

How to get GUIDs after posting event parameters

Hello All,

I am getting my data from a flat file with serial number, event id and other fields using FM' /SAPTRX/BAPI_EH_ADDEVENTMSG_02' with this I am also updating a Z table with parameters along with guids, but after executing this bapi the return parameters does not return with guids for the events.

Now I have to update another Z table using the same internal table along with GUIDs, could any one let me know how to get the GUIDs for the events I posted.

Thanks,

Kishore.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 12, 2014 at 10:11 PM

    Hello Kishore,

    If the parameters are the part of system/info/control then it will be always good to add rule set to udpate Z table and get EVM_GUID from I_EAI table.

    Create Acitivity function and update Z table enteries in this function. Remember not to mentioned commit statement as it will impact your current ruleset processing.

    Thanks,

    Kinjal Rathod

    Add comment
    10|10000 characters needed characters exceeded

    • You could use a preprocessing function.

      There you could get the current guids of the Event Messages. And store them e.g. in global table of a function group to have it later.

      SPRO:

      Event Management

            Event Messages, Status Queries, and Web Interface

                Define Criteria for Event Message Processing

      Best regards,

      Steffen

  • avatar image
    Former Member
    Sep 11, 2014 at 02:38 AM

    Hi Kishore,

    You have to give Tracking ID header data to retrieve GUID.  First set the breakpoint in two areas

    PERFORM data_preprocessing_02 and PERFORM fill_tables_02.  Now, Import parameters SIMULATE = X and enter data in table TRACKINGHEADER-EVTCOD then press F8.

    You can see GUID's populated in APPEND lv_guid TO et_guids.

    If you don't give Tracking Header Data then BAPI won't return the GUID's for the message.  Can you give me what is the return message you are getting like "Event message header table is empty".

    Regards

    GGOPII

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member kishore kakarla

      Hi Kishore,

      Can you give me your sample file (dummy data) to check what all fields you are passing into BAPI?  I can quickly check for you.

      Also, can you elaborately explain "no other table is returning with GUIDs.

      Regards

      GGOPII