Skip to Content

Read Trigger Process of Process Chain with ABAP

Feb 26 at 10:45 AM


avatar image

Hi experts,

I created a process chain in SAP BW and planed it so that it will run after a event (SM64) is triggered. In the last step of the process chain, I want to execute a ABAP programm which will read the event and the event parameter and then do something depending on the event parameter.

In table TBTCO I can find the current job for my abap programm "BI_PROCESS_ABAP" and I can get the Jobcount with function module "GET_JOB_RUNTIME_INFO". I also can see the job "BI_PROCESS_TRIGGER" in table TBTCO with the event and event parameter.

My problem is: How do I get the correct job "BI_PROCESS_TRIGGER" for the current ABAP job? The key of table TBTCO is jobname and jobcount. I obviously have the jobname, but how do I get the correct jobcount? It's not always the same for the ABAP and the trigger process.

Thanks for any help in advance.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Raymond Giuseppi
Feb 27 at 02:18 PM

In your Abap step of the Process Chain, read LOG_ID from table RSPCPROCESSLOG using values returned by GET_JOB_RUNTIME_INFO. Then read the intiail record for the current Process Chain execution in the same table for this value of Log-Id.

10 |10000 characters needed characters left characters exceeded