2016 Jul 13 3:50 AM
Hi experts
I have a job created in sm37 with 3. programs
My question is:
how can i use CALL FUNCTION 'JOB_SUBMIT' to call this programs in one job?
need i to call one by turn?
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
authcknam = 'ECCREMOTE' " Runtime authorizations user
jobcount = lv_jobcount " Value from JOB_OPEN
jobname = lv_jobname " Value from JOB_OPEN
report = 'RIMODGEN' " Report to be run
variant = lv_variante " Variant to use with
EXCEPTIONS
bad_priparams = 01
invalid_jobdata = 02
jobname_missing = 03
job_notex = 04
job_submit_failed = 05
lock_failed = 06
program_missing = 07
prog_abap_and_extpg_set = 08
OTHERS = 99.
thanks.
Hi experts
I have a job created in sm37 with 3. programs
My question is:
how can i use CALL FUNCTION 'JOB_SUBMIT' to call this programs in one job?
need i to call one by turn?
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
authcknam = 'ECCREMOTE' " Runtime authorizations user
jobcount = lv_jobcount " Value from JOB_OPEN
jobname = lv_jobname " Value from JOB_OPEN
report = 'RIMODGEN' " Report to be run
variant = lv_variante " Variant to use with
EXCEPTIONS
bad_priparams = 01
invalid_jobdata = 02
jobname_missing = 03
job_notex = 04
job_submit_failed = 05
lock_failed = 06
program_missing = 07
prog_abap_and_extpg_set = 08
OTHERS = 99.
thanks.
2016 Jul 13 4:10 AM
Hi Ronaldo
Have you tried using the SUBMIT Function with and Return
SUBMIT your_program_name
using selection-set your_variant
and return.
Repeat this code for your 3 program calls
Regards
Arden
2016 Jul 13 10:57 AM
As your screen captures shows the result achieved, I guess you did it manually and you ask how to do it programmatically.
call function 'JOB_OPEN' ...
call function 'JOB_SUBMIT' ... "program of step 1
call function 'JOB_SUBMIT' ... "program of step 2
call function 'JOB_SUBMIT' ... "program of step 3
call function 'JOB_CLOSE' ...cf sap Library
2016 Jul 18 2:46 PM
First search online help like in Background Processing - Programming with the Background Processing System (BC-CCM-BTC) - Reference: Background Processing Function Modules, there look for JOB_OPEN, JOB_SUBMIT or ABAP SUBMIT and JOB_CLOSE.
Regards,
Raymond