Application Development and Automation 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: 
Read only

command 'SUBMIT<program> ' program is hardcoded

Former Member
0 Likes
337

Hi All,

Any idea if we can use ABAP command (SUBMIT <program> with Variant) <program> as variable instead of hardcoding program name?

I tried But I found only in command 'SUBMIT program ' program is hardcoded i.e. can not be variable.

Can any one please guide if we can use program name as variable in SUBMIT ABAP statement?


submit ZTEST2 and return
                        using selection-set 'TESTV'
                        user SY-UNAME
                        via job JOBNAME
                        number JOBCOUNT.

regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
298

Hello,

Please use

submit (lh_prog) and return

using selection-set 'TESTV'

user SY-UNAME

via job JOBNAME

number JOBCOUNT.

where lh_prog is a variable type chracter...

1 REPLY 1
Read only

Former Member
0 Likes
299

Hello,

Please use

submit (lh_prog) and return

using selection-set 'TESTV'

user SY-UNAME

via job JOBNAME

number JOBCOUNT.

where lh_prog is a variable type chracter...