Skip to Content
avatar image
Former Member

Submitting Report with selection screen options

Hi all,

I have a situation, in my report i am using a selection screen which contains input select-options are store(range), date (from ..to)....after that i am calling other report with submit.. in that report, selection screen fields store and date fields will be inserted by previously entered values... we have to pass parameters to the second selection screen... how can we do this.. can anybody help me ...

Thanks

R Nittala

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 27, 2005 at 03:51 PM

    Hello,

    Here is the sample...

    SUBMIT ztest

    WITH sel_mat IN sel_mat "Sel Opt

    WITH sel_wrk EQ l_werks "Parameter

    WITH sel_anw EQ '3'

    WITH sel_alt EQ '01'

    WITH p_aennr EQ p_baennr "Parameter

    AND RETURN.

    You need to fill the Select Option / Parameters from the calling program.

    Hope this helps you.

    Regds, Murugesh AS

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rajesh,

      I think that you will find this FM - 'RS_REFRESH_FROM_SELECTOPTIONS' really helpful. All you have to do is give the input as the report whose selection screen you need in the next report you will submit.

      Example:

      DATA T_rsparams TYPE TABLE OF rsparams.

      CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

      EXPORTING

      CURR_REPORT = <Report Name>

      • IMPORTING

      • SP =

      TABLES

      SELECTION_TABLE = T_rsparams

      • EXCEPTIONS

      • NOT_FOUND = 1

      • NO_REPORT = 2

      • OTHERS = 3

      .

      SUBMIT <Report Name> WITH SELECTION-TABLE T_rsparams

      AND RETURN.

      Regards,

      Aditya

      Edited by: Aditya Niyogi on Oct 16, 2008 12:30 PM

  • avatar image
    Former Member
    Apr 27, 2005 at 03:50 PM

    With a SUBMIT statement !

    Check the online help.

    Regards,

    Erwan.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2005 at 03:50 PM

    Hi Rajesh,

    I think you can make it thru

    SUBMIT report WITH param IN range.
    

    ... where "range" is an internal table (it's recommended to declare it as "RANGES range FOR ...", filled with the specification of all the values/ranges/exclusions/patterns etc.

    Pls let us know if it helped. BR,

    Alvaro

    Add comment
    10|10000 characters needed characters exceeded