Application Development 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: 

Scheduling Background job

Former Member
0 Kudos

Hi All,

I have a 3 program.

Program 1 is the main program.

Program 2 and Program 3 are sub programs. These two programs has to be scheduled in background through Program1.

Then i need to check the status of the program2 and program3 in Program1. Further I need to check the spool after the completion of the program2 and program3.

How can i achive this.

4 REPLIES 4

Former Member
0 Kudos

create a recording of sm37 transaction for running programs in background and generate code for it and using call transaction BDC data use it in main program

Former Member
0 Kudos

Hi,

You can submit prograams 2 and 3 from one by using the addition "VIA JOB job NUMBER n"

This job number can be generated using the FM JOB_OPEN.

Hope this helps.

Regards,

Raj

0 Kudos

Hi,

I tried using Submit using JOb job number n.

I wrote like

CALL FUNCTION 'JOB_OPEN'.

SUMBit progeam1 JOB jobname NUMBER n.

CALL FUNCTION 'JOB_CLOSE'.

but when i go and check in sm37 i am not getting the job name.

Is this correct process wht i have written.

former_member953603
Participant
0 Kudos

Hi,

Define back ground job in SM36 T-code. Assign the same in SM37 T-code for Scheduling job with required date.

Regards,

BBR.