Skip to Content

Job submit in more than program.

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.

jerry.png (42.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2016 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 13, 2016 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 18, 2016 at 01:46 PM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.