Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Submit ... using variables to specify the program name.

Hello people,

I have a small question/problem/concern regarding the Submit statment. I have noticed that you use

<b>"SUBMIT (Program Name) EXPORTING LIST TO MEMORY AND RETURN"</b>.

You have to hardcode the Program name in the submit button; if you try using a variable to store the program name the program will encounter a runtime error. Which is awkward, because I want to make the program as flexible as possible. In any event, I was thinking if there could be a way to use a variable or equivalent in a Submit statment. Thank you all and good day.

Tags:
replied

Chad,

This statement is working for me.

data : w_program(20).

w_program = 'PROGRAM NAME'.

submit (w_program) exporting list to memory and return.

Regards,

Ravi

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question