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

Help needed..ALV report

Former Member
0 Likes
491

Hello,

I have a new requirement in a report. There would be two radio buttons on the selection-screen. One for Search Material plant wise and other to search material details only.

Depending on the choice of radio button different selection-screen blocks need to be called.

Can any one suggest a logic for this.

Helpful answers will be rewarded.

Regards,

Subodh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
473

*This program executes the logic to hide the parameters on radio button clicking.

PARAMETERS : R1 RADIOBUTTON GROUP RG USER-COMMAND R DEFAULT 'X'.

PARAMETERS : R2 RADIOBUTTON GROUP RG .

PARAMETERS : R3 RADIOBUTTON GROUP RG .

*----


selection-screen begin of block b1 with frame.

parameters : a(10) type c modif id abc.

parameters : b(10) type c modif id abc.

selection-screen end of block b1.

selection-screen begin of block b2 with frame.

parameters : c(40) type c modif id def.

parameters : d(20) type c modif id def.

selection-screen end of block b2.

selection-screen begin of block b3 with frame.

parameters : e(40) type c modif id ghi.

parameters : f(20) type c modif id ghi.

selection-screen end of block b3.

*----


at selection-screen output.

IF R1 = 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'DEF' or screen-group1 = 'GHI' .

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

IF R2 = 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'ABC' or screen-group1 = 'GHI'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

IF R3 = 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'ABC' or screen-group1 = 'DEF'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Br,

Vij

3 REPLIES 3
Read only

Former Member
0 Likes
474

*This program executes the logic to hide the parameters on radio button clicking.

PARAMETERS : R1 RADIOBUTTON GROUP RG USER-COMMAND R DEFAULT 'X'.

PARAMETERS : R2 RADIOBUTTON GROUP RG .

PARAMETERS : R3 RADIOBUTTON GROUP RG .

*----


selection-screen begin of block b1 with frame.

parameters : a(10) type c modif id abc.

parameters : b(10) type c modif id abc.

selection-screen end of block b1.

selection-screen begin of block b2 with frame.

parameters : c(40) type c modif id def.

parameters : d(20) type c modif id def.

selection-screen end of block b2.

selection-screen begin of block b3 with frame.

parameters : e(40) type c modif id ghi.

parameters : f(20) type c modif id ghi.

selection-screen end of block b3.

*----


at selection-screen output.

IF R1 = 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'DEF' or screen-group1 = 'GHI' .

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

IF R2 = 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'ABC' or screen-group1 = 'GHI'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

IF R3 = 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'ABC' or screen-group1 = 'DEF'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Br,

Vij

Read only

0 Likes
473

Thanks sniper.

Points awarded

Regards,

Subodh

Read only

Former Member
0 Likes
473

Hi,

Single selection block can be used if you are using ranges in ur select statement for material and plant. Fill in the range based onur radio button

Sorry I did not read you query well......

If the hint is usefulu2026 Say thanks by rewardu2026.

Regards,

Prabhu Rajesh

Edited by: PrabhuRajesh Janardanan on Jun 29, 2008 9:45 AM