2008 Dec 02 8:56 AM
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.
2008 Dec 02 8:58 AM
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
2008 Dec 02 8:59 AM
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
2008 Dec 02 9:31 AM
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.
2008 Dec 02 9:36 AM
Hi,
Define back ground job in SM36 T-code. Assign the same in SM37 T-code for Scheduling job with required date.
Regards,
BBR.