Hi, I have a question regarding the table /SAPTRX/AOTREF in TM and entries with empty TRXOBJECT fields.
This is my scenario (two servers):
SAP TM 9.0 Support package 12
SAP EM 9.0 Support package 5
There has been configuration changes in Direct Output Agents, were initially both agents, SEND_EM_DATA_FROM_TOR_ASYNC and SEND_EM_DATA_FROM_TOR were marked as active, and for the SEND_EM_DATA_FROM_TOR, the 'Has Critical o/p: Process during Save - before Commit' mode was selected.
The current configuration is SEND_EM_DATA_FROM_TOR and 'Has Uncritical o/p: Process after Commit (background)' for Synch/Asynch.
In SAP EM, the Application Systems configuration view ( /SAPTRX/V_APPSYS ) hasn't got the acknowledgment option selected for the TM system and are marked as Synch. I will change this configuration later.
Also all entries in the incoming TRFC queues in SAP TM related to EM ( EM*) have been deleted.
So the current situation is that there are thousands of TM documents ( FUs ) that have corresponding entries in table /SAPTRX/AOTREF but with an empty Event Handler GUID in field TRXOBJECT. The Event Handlers exist in EM.
If there were just a few TM documents, I could delete the entries in /SAPTRX/AOTREF and the corresponding Event Handler in EM ( with a custom program that deletes specific entries in all the relevant EM tables, both in TM and in EM ), as there has not been any event activity yet, modify ( some information not affecting the business process ) and save the TM document, which would create a new entry in /SAPTRX/AOTREF, and a new corresponding Event Handler in EM, and the newly created Event Handler GUID in TRXOBJECT.
But as there are thousands of TM documents, I would need some program that I could run for all those Event Handlers ( it would be a different topic how to select them out of all the existing Event Handlers in EM ) and resend the acknowledgement to SAP TM, so the field TRXOBECT and the statuses fields would be updated with the Event Handler GUID and correct values.
I know that there exists a function module ( /SAPTRX/SEND_ACKNOWLEDGE_ASYNC ) and a class instance method ( /SAPTRX/CL_EN_POST_CNTRL->SEND_ACKNOLEDGE ) that use the function module BAPI_TRKOBJ_ACKNSTATUS to send the acknowledgement to TM.
So my questions are:
1 - Is there any standard program that I could run, or procedure that I could follow, that would resend acknowledgements to TM out of existing Event Handlers?
2 - Would invoking the BAPI_TRKOBJ_ACKNSTATUS function module from a custom program the "right" way to resend the acknowledgment?
Thanks for any help on this issue.
Rafael.