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: 

report

Former Member
0 Kudos

what is the syntax to call one report from one report where we have to pass values to selection-screen of called report from current report.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Do F1 help on the SUBMIT statement, and check the section for WITH extension of this SUBMIT statement.

Regards,

Rich Heilman

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Do F1 help on the SUBMIT statement, and check the section for WITH extension of this SUBMIT statement.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi,

For example you have



  PARAMETERS : p_werks LIKE marc-werks.
  SELECT-OPTIONS : s_matnr FOR marc-matnr.



  DATA: seltab TYPE TABLE OF rsparams,
        matnr_tab LIKE LINE OF seltab.

  matnr_tab-selname = 'S_MATNR'.
  matnr_tab-sign    = s_matnr-sign.
  matnr_tab-option  = s_matnr-option.


  LOOP AT s_matnr.
    matnr_tab-low = s_matnr-low.
    matnr_tab-high = s_matnr-high.
    APPEND matnr_tab TO seltab.
  ENDLOOP.

  SUBMIT (sy-repid) WITH p_werks EQ p_werks
                    WITH SELECTION-TABLE seltab.