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: 

Problem in Submit Statement of Alv Report

Former Member
0 Kudos
217

Hi All Experts,

i make one report,my requirement is when i execute my report then it displays 100 records, i select 20 records from 100 records

then based upon 20 records execute the another report with out slection screen. i know the process through the submit statement,but it doesn't give exact output 20 of 20 based upon selected entries.

my Code is:SUBMIT ZPS_PROJ_CN41N USING SELECTION-SCREEN '1000' WITH SELECTION-TABLE RSPAR_TAB

AND RETURN.

give suggistions and correct syntax of submit statement.

Thanks.

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos
55

the syntax of the SUBMIT is correct, check the filling and declaration of RSPAR_TAB

(réf - WITH SELECTION-TABLE rspar in SUBMIT - selscreen_parameters or Filling the Selection Screen of a Called Program)

Regards,

Raymond

0 Kudos
55

put a break point on the submit statement and check what value is passed to the RSPAR_TAB table

Former Member
0 Kudos
55

Hi,



= 'EQ ' for parameters
In for range or selct-options

 SUBMIT  <Report name>
         WITH r_budat IN s_budat           " Selection screen parameters
         WITH kostl   IN s_kostl
         WITH kstar   IN s_kstar
         AND RETURN.

"With Variant
  SUBMIT <Report Name>
     USING SELECTION-SET 'BPC TEST'             "BPC set is Varaint name for report
           EXPORTING LIST TO MEMORY AND RETURN.


"capturing the output to another report
 SUBMIT  <Report name>
         WITH r_budat IN s_budat           " Selection screen parameters
         WITH kostl   IN s_kostl
         WITH kstar   IN s_kstar
        EXPORTING LIST TO MEMORY AND RETURN.     

Prabhudas