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: 

Submission of program to a batch job with variant

Former Member
0 Kudos

Hi All,

I have a scenario like i need to submit a program as a step along with a variant which is not fixed.

so can anyone help me in this ;

i want to pass values to the variant dynamically and submit to job as a step using job_submit.

so my question is like how to change the variant values before passing the variant to job_submit.

Thanks & Regards,

Suresh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi!

Instead of using the JOB_SUBMIT, try using the SUBMIT report command. In this you can directly specify the contents for the selection-screen fields. You will have to call JOB_OPNEN, then SUBMIT the program, followed by JOB_CLOSE.

For further details, you can check the SAP help for SUBMIT.

Hope this helps.

Cheers!

1 REPLY 1

Former Member
0 Kudos

Hi!

Instead of using the JOB_SUBMIT, try using the SUBMIT report command. In this you can directly specify the contents for the selection-screen fields. You will have to call JOB_OPNEN, then SUBMIT the program, followed by JOB_CLOSE.

For further details, you can check the SAP help for SUBMIT.

Hope this helps.

Cheers!