Skip to Content

Read Trigger Process of Process Chain with ABAP

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.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 27, 2018 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.

    Add comment
    10|10000 characters needed characters exceeded