Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using RSBTONEJOB2 with multiple reports

daniel_piggott-genge
Participant
0 Likes
6,722

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

4 REPLIES 4
Read only

Former Member
0 Likes
2,728

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

Read only

0 Likes
2,728

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

Read only

0 Likes
2,728

Hi,

  I believe you cannot achieve this just using RSBTONEJOB2...in 1 job..without additional coding..

Thanks

Naren

Read only

0 Likes
2,728

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.