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

report

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 20, 2007 at 02:01 PM

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

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 02:16 PM

    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.
    
    
    

    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.