cancel
Showing results for 
Search instead for 
Did you mean: 

Add a new tracking ID

Former Member
0 Kudos

Hi All,

We want to add a new tracking id to an existing event handler. I know we could use /SAPTRX/BAPI_EH_POST but we can not as we do not have the

application object id available in the calling the system.

We also can not use the /SAPTRX/BAPI_EH_ADD_TID as this is obsolete now.

Thanks,

Deb

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jonathan/Gopi,

Thank you for your response. I am sorry that I had not mentioned this earlier in the main post.


We do not want to send an additional message to add this tracking id.


We have used the  /saptrx/cl_eh_det_intf_cntrl=>add_tracking_ids instead and is working fine as desired.


Thanks,

Deb

former_member190756
Active Contributor
0 Kudos

Hello Deb,

when using this method you should explicitly lock the EH before updating Tracking IDs otherwise you can get inconsistencies. The method does not call any Enqueue module.

For Enqueue function module:

ENQUEUE_/SAPTRX/E_EHHDR

After update dor Dequeue:

DEQUEUE_/SAPTRX/E_EHHDR

Examples you can find with Where used list.

Best regards,

Steffen

Former Member
0 Kudos

Thanks Steffen. We had taken care of that.

Thanks,

Deb

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Deb,

There was a similar discussion like yours

Jonathan is pointed out correctly to you.

Check this one and let's know.

Regards


GGOPII

Former Member
0 Kudos

Hi Deb,

Have you tried using /SAPTRX/BAPI_EH_ADDEVENTMSG_02 with Activity Method 'TRACKING_ID_SET'?  Use the TRACKREFERENCES in the BAPI to add additional tracking ID's.

TRACKING_ID_SET - Create Additional Tracking ID(s) from Event Message Further Reference Data

Short Text

Create Additional Tr. ID(s) from Evt Msg. Further Ref. Data

Functionality

This method creates additional tracking IDs for an event handler from data contained in the further reference table of an event message.

This method can only be used in rule activities.

  • Parameter-1: Enter the tracking ID code set of the further reference record(s) contained in the event message from which the new tracking ID(s) is to be retrieved, before being added to the event handler. Multiple tracking IDs are created, if more than one further reference record exists for the tracking ID code set specified.

Return code:

  • 0 - If the new tracking ID(s) was added
  • 2 - If the tracking ID code set in the further reference record was blank
  • 4 - If no further reference record was found for the tracking ID code set specified in parameter-1.

Regards,

Jonathan Hansen

Former Member
0 Kudos

Deb,

By the way, here is the location of some really good documentation from SAP regarding /SAPTRX/BAPI_EH_ADDEVENTMSG_02.

https://websmp101.sap-ag.de/~sapidb/011000358700002439552003E/EvtMgeInput-SAPEM-40_v11.pdf

Regards,

Jonathan Hansen