AnsweredAssumed Answered

SAP Agent: R3_GET_EVENT remains active after SAP event occurs

Question asked by RichardVasquez604385 on Feb 7, 2018
Latest reply on Feb 12, 2018 by bobby_tamayo_automic
Hi,

I created an AE test Workflow with 2 SAP jobs.
Our goal: The second job should start after an SAP event is triggered. The first job checks if the SAP event has been triggered.

1. job process tab: R3_GET_EVENT ID="JOB1_ENDED" No Parameters or Timeouts are defined
2. job process tab: R3_ACTIVATE_REPORT REPORT="ABAP_INTRO_DUMMY"

After starting the workflow it remains active i.e. job 1 is running. In the AE server logs I can see messages logged every minute:
20180207/172816.748 - U00007000 'JOBS.R3.GET_EVENT_JOB1_ENDED' activated with RunID '0098284849'.
20180207/172816.971 - U00011020 'SAPECE_DEV' is reporting job status 'R' for job '78.JOBS.R3.GET_EVENT_JOB1ENDED' (RunID '0098284849'). Job-status number: ' 0000000001' DB: ' 0000000000'
20180207/172847.906 - U00011020 'SAPECE_DEV' is reporting job status 'R' for job '78.JOBS.R3.GET_EVENT_JOB1ENDED' (RunID '0098284849'). Job-status number: ' 0000000002' DB: ' 0000000001'
20180207/172948.905 - U00011020 'SAPECE_DEV' is reporting job status 'R' for job '78.JOBS.R3.GET_EVENT_JOB1ENDED' (RunID '0098284849'). Job-status number: ' 0000000003' DB: ' 0000000002'
20180207/173049.910 - U00011020 'SAPECE_DEV' is reporting job status 'R' for job '78.JOBS.R3.GET_EVENT_JOB1ENDED' (RunID '0098284849'). Job-status number: ' 0000000004' DB: ' 0000000003'
20180207/173150.917 - U00011020 'SAPECE_DEV' is reporting job status 'R' for job '78.JOBS.R3.GET_EVENT_JOB1ENDED' (RunID '0098284849'). Job-status number: ' 0000000005' DB: ' 0000000004'
20180207/173251.922 - U00011020 'SAPECE_DEV' is reporting job status 'R' for job '78.JOBS.R3.GET_EVENT_JOB1ENDED' (RunID '0098284849'). Job-status number: ' 0000000006' DB: ' 0000000005'

I don't understand why the first job runs endlessly, even after the event in SAP is triggered.
How can we achieve our goal with the SAP Agent?

Thanks,
Rick

Outcomes