2008 Dec 10 10:34 AM
Moderator message: please use a meaningful informative subject for your questions in future
Hi,
I want to transfer selection screen values of one report to other selection screen of another report.
I use following code for it but in second selection screen P3 and P4 values not getting.
SUBMIT ZVR16 USING SELECTION-SCREEN '1000'
WITH P1 EQ IT_FINAL-EQUNR
WITH P2 EQ IT_FINAL-SWERK
WITH P3-LOW EQ P2-LOW
WITH P3-HIGH EQ P2-HIGH
WITH P4-LOW EQ P3-LOW
with P4-HIGH EQ P3-HIGH
AND RETURN.
Thanks in advance.....
Edited by: Matt on Dec 10, 2008 12:11 PM
2008 Dec 10 10:37 AM
use this f.m it will fetch full data of 1st selection screen and give u in 2nd repot
DATA : SEL_TAB TYPE RSPARAMS OCCURS 0,
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
CURR_REPORT = 'ZRx'
TABLES
SELECTION_TABLE = SEL_TAB.
subbmit........WITH SELECTION-TABLE SEL_TAB AND RETURN
yes I already tried that one ,but not getting,
I want to move date values into another selection screen .
2008 Dec 10 10:37 AM
use this f.m it will fetch full data of 1st selection screen and give u in 2nd repot
DATA : SEL_TAB TYPE RSPARAMS OCCURS 0,
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
CURR_REPORT = 'ZRx'
TABLES
SELECTION_TABLE = SEL_TAB.
subbmit........WITH SELECTION-TABLE SEL_TAB AND RETURN
2008 Dec 13 11:39 AM
i want to move only two vairiables out of three from selection screen of first report to second selection screen of other report.
2008 Dec 13 1:53 PM
Hi Varun
Have you tried this :
SUBMIT ZVR16 USING SELECTION-SCREEN '1000'
WITH P1 EQ IT_FINAL-EQUNR
WITH P2 EQ IT_FINAL-SWERK
WITH P3 in P2
WITH P4 in P3
AND RETURN.
Neha
2008 Dec 13 2:26 PM
yes I already tried that one ,but not getting,
I want to move date values into another selection screen .
2008 Dec 13 2:56 PM
Hi
have you tried this :
SUBMIT ZVR16 Via SELECTION-SCREEN
WITH P1 EQ 'Value'
WITH P2 EQ 'Value'
WITH P3 in r_P2 (r_P2 is a range)
WITH P4 in r_P3
AND RETURN.
2008 Dec 10 10:56 AM
HI,
See if this is useful...
Program accessed
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
2008 Dec 10 11:12 AM
Please use a meaningful informative subject for your questions in future
Edited by: Matt on Dec 10, 2008 12:12 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |