Skip to Content
author's profile photo Former Member
Former Member

Dynamic SUBMIT statement


I am a BI developer with mostly no ABAP help in my team. Certain requirement I am having demands a program where I need to call another program with SUBMIT statement. But the problem is the name of the program will be dynamic depending on certain conditions. Can it be handled by field-symbols or something similar ? I tried field symbol type ANY and assigned it from a string type variable and called SUBMIT. But I am facing dump saying program not found and analysis shows that it could not resolve the field symbol.

I can concatenate & capture the name of the program into a string variable (say prg_nm). I need to to know the steps after that.

I have also thought of using CASE like :

case prg-nm.

when 'PROG1'.


when 'PROG2'.




But in this way, I'd need to change the code in future as well (because program list can increase in future). Please advise.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2010 at 03:30 PM

    Use a variable in parenthesis:

    data: v_name(40).

    v_name = 'PROGRAM1'.

    submit (v_name).....

    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.