Application Development and Automation 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: 
Read only

ALV Report

Former Member
0 Likes
784

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
751

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

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

7 REPLIES 7
Read only

Former Member
0 Likes
752

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

Read only

0 Likes
751

i want to move only two vairiables out of three from selection screen of first report to second selection screen of other report.

Read only

0 Likes
751

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

Read only

0 Likes
751

yes I already tried that one ,but not getting,

I want to move date values into another selection screen .

Read only

0 Likes
751

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.

Read only

Former Member
0 Likes
751

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

Read only

matt
Active Contributor
0 Likes
751

Please use a meaningful informative subject for your questions in future

Edited by: Matt on Dec 10, 2008 12:12 PM