Skip to Content
author's profile photo
Former Member

Submitting an internal table to a report select-option

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Oct 11, 2007 at 02:37 PM

    Hi,

    You can use the below :

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

    Thanks,

    Sriram Ponna.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 11, 2007 at 02:37 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 11, 2007 at 02:40 PM

    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

    Add comment
    10|10000 characters needed characters exceeded