2013 Jul 23 11:13 AM
Hello,
We currently have a job which executes RPTARQPOST and then RPTEXTPT with appropriate variants every few minutes.
The trouble is lately we've noticed that multiple copies of the job that runs them end up running at the same time as the first job hasn't finished in the allowed timeframe.
I have looked into RSBTONEJOB and RSBTONEJOB2 in Note Note 557610 - CUA: Lock problem with serial IDOC processing. I think RSBTONEJOB2 would be the one to use but from what I can see it only allows you to run one report but I obviously want to run both the reports one after the other each time. Is there a way to do this without splitting them into two jobs or is that my only option ?
I'm probably missing something somewhere, it's not uncommon, but any help/suggestions much appreciated.
Thank you,
Daniel
2013 Jul 23 6:36 PM
Hi,
try creating a job with 3 steps...1st step that will be running RSBTONEJOB2 and 2nd and 3rd steps as RPTARQPOST and then RPTEXTPT...
Please correct me if I misunderstood your problem..
Thanks
Naren
2013 Jul 23 7:10 PM
Hi,
Sorry...Correcting my earlier...reply..
I just checked both the programs...looks like for your requirement you have to use RSBTONEJOB..since it gives you the option to abort..the job...if the current job is already running..
otherwise...you can copy RSBTONEJOB2 and submit the programs one after another...
* S-message is used to get a job log entry without aborting the job
message s398(00)
with 'Ok, exact one job is running'(004) space space space.
perform submit.
Thanks
Naren
2013 Jul 23 7:25 PM
Hi,
I believe you cannot achieve this just using RSBTONEJOB2...in 1 job..without additional coding..
Thanks
Naren
2013 Jul 24 9:34 AM
Narendran,
Thank you for your reply. I was hoping I could have got it to work with RSBTONEJOB2 to save cancelled jobs in SM37 but it sounds like that is the best option in this case.
Thank you for your help.