‎2006 Apr 05 2:43 PM
Hi folks,
I have a report in which I create and trigger an SM35 session. I use RSBDCSUB report to do the same.
Now, is there anyway to wait until the session has been processed? I mean, I need to do a few things in the report only after the session has been processed.
Thanks
Sagar
‎2006 Apr 05 3:02 PM
‎2006 Apr 05 3:02 PM
‎2006 Apr 05 3:02 PM
Hi,
You could try checking the job status (table TBTCO) inside a DO or WHILE loop. To pause up to 5 seconds between your lookup on TBTCO, you can call function module 'RZL_SLEEP'.
If checking TBTCO does not work out for you, you can try the same loop logic with a call to function module 'ENQUEUE_BDC_QID' instead of looking up the job status. If the enqueue has been released then the job has finished.
Regards,
James G.
‎2006 Apr 05 3:03 PM
Hello,
try like ..
Do.
select single from apqi
into l_apqi
WHERE DATATYP = 'BDC'
AND MANDANT = SY-MANDT
AND GROUPID = group name.
if l_apqi-state = 'F'.
exit.
endif.
enddo.
But keep mind, to break the do loop after certain time.
Regards,
Naimesh
‎2007 Sep 10 10:54 AM