cancel
Showing results for 
Search instead for 
Did you mean: 

Read Trigger Process of Process Chain with ABAP

marius_margraf
Participant
0 Kudos

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.

Regards,

Marius

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor
0 Kudos

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.

Answers (0)