10-08-2008 11:26 AM
Hi Experts,
I want to skip the selection screen while using the SUBMIT command to call a report. Can anybody help me that how I can do this?
Thanks a lot in advance.
10-08-2008 11:31 AM
Hi
SUBMIT <REPORT> WITH <PARAMETERS FOR SELECTION SCREEN> AND RETURN.
In this way the selection-screen will be skipped automatically, if you need to stop the calling to the selection-screen u need to use the option VIA SELECTION-SCREEN.
Max
10-08-2008 11:41 AM
10-08-2008 11:50 AM
SUBMIT REPORT ZTEST WITH SELECTION-TABLE GT_RSPAR AND RETURN.
You can fill the table gt_rspar with the selection screen details of report ZTEST. The table gt_rspar should be declared as an internal table with the structure of RSPARAMS from ABAP dictionary.
Regards
Sathar
10-08-2008 12:02 PM
HI,
Please find the below sample code.
REPORT report1.
DATA text TYPE c LENGTH 10.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
...
Calling program
REPORT report2.
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
...
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
With regards,
Padmaja.
10-08-2008 12:09 PM
Use SUBMIT report_name USING SELECTION-SET 'variant1'.
'variant1' is the name of the variant created in the program.
Regards,
Saurabh
10-08-2008 1:38 PM
10-08-2008 2:03 PM