Skip to Content
author's profile photo Former Member
Former Member

pass values to selection field of another program


I have a select query, i want to pass all the selected values from this query to the

selection screen fields of another program and check how many of these values are executed correctly.

please help me in that.

thanks in advance.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 11, 2008 at 07:26 AM

    Hi Lokesh,

    You can use internal table of type RSPARAMS which will hold Selection screen values.

    Refer to the following code to populate selection fields.

    PERFORM populate_sel_screen_values USING:

    'P_WERKS' 'P' 'I' 'EQ' wa_tab-werks space,

    'S_MESORD' 'S' 'I' 'EQ' wa_tab-aufnr space.


    FORM populate_sel_screen_values USING pv_selname TYPE any

    pv_kind TYPE any

    pv_sign TYPE any

    pv_option TYPE any

    pv_low TYPE any

    pv_high TYPE any.


    pv_selname TO wa_rspar-selname,

    pv_kind TO wa_rspar-kind,

    pv_sign TO wa_rspar-sign,

    pv_option TO wa_rspar-option,

    pv_low TO wa_rspar-low,

    pv_high TO wa_rspar-high.

    APPEND wa_rspar TO i_rspar.

    CLEAR wa_rspar.





    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.