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 with dynamically created parameters and selectoptions

h_senden2
Active Contributor
0 Likes
417

Hi,

it's possible to dynamically fill the report name for the SUBMIT statement by using something like SUBMIT (l_prog) ....

But is it also possible to dynamically create the parameter and/or select-option part for the SUBMIT ? So that you dynamically create the WITH <parameter> = <value> and/or WITH <selopt> IN <range> for the SUBMIT ?

CASE l_prog.

WHEN c_prog1.

  • no parameters

  • no selection options

WHEN c_prog2.

create parameter part for the SUBMIT

  • no select options

WHEN c_prog3.

  • no parameters

create select-options part for the SUBMIT.

ENDCASE.

SUBMIT (l_prog)

... parameter part ...

... select-option part ....

etc.

regards,

Hans

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
369

Yes, you want to use the WITH SELECTION-TABLE extension.

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm

Regards,

Rich Heilman

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
370

Yes, you want to use the WITH SELECTION-TABLE extension.

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm

Regards,

Rich Heilman

Read only

0 Likes
369

Thanx Rich,

my problem is solved