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

Submit dynamic program in ABAP

Former Member
0 Likes
4,065

Hi,

I have to take the name of the program from the user in parameter on the selection screen and then call it. for this purpose i have used SUMBIT stmt as follows:

parameters : p_pname(15), "program name

p_var(15). " name of the varaint

start-of-selection.

SUBMIT p_pname with SELECTION-SET eq p_var.

-


But the above code gives a dump stating the program p_pname doesn't exist.

Kindly tell me how should this be done?

Regards,

Mansi.

Edited by: SAP USER on Jul 10, 2008 10:09 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,805

hi,

Put p_name in brackets.

Like SUBMIT (p_name) ....

That will do.

Also Check ABAPDOCU you will find Sample program there.

Regards

Sumit Agarwal

3 REPLIES 3
Read only

Former Member
0 Likes
1,806

hi,

Put p_name in brackets.

Like SUBMIT (p_name) ....

That will do.

Also Check ABAPDOCU you will find Sample program there.

Regards

Sumit Agarwal

Read only

former_member386202
Active Contributor
0 Likes
1,805

Hi,

Refer below code

SUBMIT zk_ra_enhancement "TO SAP-SPOOL

"IMMEDIATELY 'X'

"WITHOUT SPOOL DYNPRO

USING SELECTION-SCREEN 1000

WITH cn_pspnr CP st_wbs-low

WITH koagr = c_cost_ele_grp

WITH r_budat BETWEEN g_first_date_in_period AND g_last_date_in_period

AND RETURN.

Regards,

Prashant

Read only

0 Likes
1,805

Hi,

TRY THIS SYNTAX.

SUBMIT 'P_PNAME' VIA SELECTION-SCREEN.

REGARDS.

SRIRAM.