Application Development 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: 

Submitting an internal table to a report select-option

Former Member
0 Kudos

Hi ,

iam having an internal table which has values from 1 to 50, I want to pass this value 1 to 50 to a second program's select-option on the selection screen.

using submit statement .

can anyone explain me on how to do this.

Regards,

Phyrose.

3 REPLIES 3

Former Member
0 Kudos

Hi,

You can use the below :

loop at itab.
     SUBMIT zprogram
              WITH sp_comp = itab-bukrs
              AND RETURN.

endloop.

Thanks,

Sriram Ponna.

JozsefSzikszai
Active Contributor
0 Kudos

hi camila,

your internal table has to look like a select-option (or range), i. e.:

sign option low high

inside the values should be:

sign = I

option = BT

low = 1

high = 50

this works only if you have no gas in your data betwee 1 and 50, otherwise yuo need separate lines like:

sign = I

option = EQ

low = 1

sign = I

option = EQ

low = 2

sign = I

option = EQ

low = 3

etc.

Pls. note that 'I' stands for Include (in sign), the oppiosite would be E (Exclude)

hope this helps

ec

former_member589029
Active Contributor
0 Kudos

Hello Camilla,

You can submit the select option values in a table to the program:

DATA: lt_par TYPE TABLE OF rsparams,

ls_par TYPE rsparams.

  • filename

CLEAR: ls_par, lt_par.

ls_par-selname = gc_sel_fname.

ls_par-kind = gc_char_p.

ls_par-sign = gc_i.

ls_par-option = gc_eq.

ls_par-low = x_file->mv_name_with_path.

APPEND ls_par TO lt_par.

SUBMIT rfkkze00 USING SELECTION-SCREEN 1000

WITH SELECTION-TABLE lt_par.

Instead of a parameter in this case, you can also submit it as kind 'S' and populate LOW and HIGH for a range.

Regards,

Michael