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: 

Submit program to back ground job

venu_001
Participant
0 Kudos

Hi All,

I have a issue with submit program to back ground job, i have submitted report to batch job using following statement.

      SUBMIT zxxxx USING SELECTION-SET 'VARIANT'

                         WITH p_param = lv_param

                VIA JOB lv_jobname NUMBER lv_jobcount AND RETURN.

Variant 'VARIANT' passed to program is not updated variant field in jobstep.

when i check in SM37-->STEP, the variant field is updated with some &00000xxx, my requirement is variant name which is passed with submitted program should be updated in step.

If i use fm JOB_SUBMIT and passed variant field correctly updated in job step, i can't use this fm because i want to pass some selection parameters along with variant.

Please let me know if any solution.

Regards,

1 ACCEPTED SOLUTION

matt
Active Contributor
0 Kudos

Use TVARVC variables in your variant. Update the variables in your program before submitting the job.

Alternatively, it is possible to dynamically update the variant - again, before submitting.

2 REPLIES 2

matt
Active Contributor
0 Kudos

Use TVARVC variables in your variant. Update the variables in your program before submitting the job.

Alternatively, it is possible to dynamically update the variant - again, before submitting.

0 Kudos

Hi Matthew,

Thank you for your reply and good solution, it works.

Regards,