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

hiding selection block.

Former Member
0 Likes
354

I am doing an alv report.here is my selection screen part.

requirement:

And on the selection screen when I'll click on the p_gen radio button the block3 will be hided immediately.

kindly help me on this.

----


  • S E L E C TI O N S C R E E N *

----


*First Block

SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.

SELECT-OPTIONS : s_po FOR v_aufnr, s_pos FOR v_txt04,

s_art FOR v_plnbez.

SELECTION-SCREEN: END OF BLOCK blk1.

*Second Block

SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.

PARAMETER : rd1 RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND change, "Radio Button For Display

rd2 RADIOBUTTON GROUP g1.

SELECTION-SCREEN:END OF BLOCK blk2.

*Third Block

SELECTION-SCREEN : BEGIN OF BLOCK blk3 WITH FRAME TITLE text-003.

PARAMETER:p_var TYPE disvariant-variant MODIF ID p2. SELECTION-SCREEN:END OF BLOCK blk3.

2 REPLIES 2
Read only

JozsefSzikszai
Active Contributor
0 Likes
334

hi Cinthia,

change:

rd2 RADIOBUTTON GROUP g1 <b>USER COMMAND whatever</b>.

add:

AT SELECTION-SCREEN OUTPUT.

IF P_GEN IS NOT INITIAL.

LOOP AT screen.

IF screen-group1 EQ 'P2'.

screen-active = '0'.

MODIFY screen.

ENDIF.

ENDLOOP.

ENDIF.

hope this helps

ec

Read only

naimesh_patel
Active Contributor
0 Likes
334

Hello,

Try this code:

at selection-screen output.
if p_gen = 'X'.
  loop at screen.
    if sceen-group1 = 'P2'.
       screen-active = 0.
    endif.
  endloop.
endif.

Regards,

Naimesh Patel.