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

disable block

Former Member
0 Likes
427

on selection of the raido button e1 i have to disable the block usr1 if it is e2 it is view plz give suggestation

  • Selection screen for block1

SELECTION-SCREEN BEGIN OF BLOCK USR1 WITH FRAME TITLE text-USR.

SELECT-OPTIONS : S_BNAME FOR USR02-BNAME MODIF ID SC1,

: S_CLASS FOR USR02-CLASS.

SELECTION-SCREEN END OF BLOCK USR1.

  • Selection screen for block2

SELECTION-SCREEN BEGIN OF BLOCK USR WITH FRAME TITLE text-USR.

PARAMETERS: E1 RADIOBUTTON GROUP RAD DEFAULT'X' MODIF ID SC2,

E2 RADIOBUTTON GROUP RAD ."Upload and Updata

SELECTION-SCREEN END OF BLOCK USR.

---.......

...........................

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'SC1'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

CONTINUE.

ENDIF.

IF SCREEN-GROUP1 = 'SC2'.

SCREEN-INTENSIFIED = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

.............................................

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
406

Hi,

<b>USE SCREEN-ACTIVE instead of SCREEN-INPUT</b>

<b>IF you hide all screen elements in a block the block is hidden.</b>

Group all the SCREEN fileds in that section.

SELECTION-SCREEN BEGIN OF BLOCK USR WITH FRAME TITLE text-USR.

PARAMETERS: E1 RADIOBUTTON GROUP RAD DEFAULT'X' MODIF ID SC2,

E2 RADIOBUTTON GROUP RAD ."Upload and Updata

SELECTION-SCREEN END OF BLOCK USR.

And then use like this

LOOP AT SCREEN.

SCREEN-GROUP1 = 'SC2'.

SCREEN-ACTIVE = 0.

MODIFY SCREEN.

ENDLOOP.

Regards,

Sesh

2 REPLIES 2
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
407

Hi,

<b>USE SCREEN-ACTIVE instead of SCREEN-INPUT</b>

<b>IF you hide all screen elements in a block the block is hidden.</b>

Group all the SCREEN fileds in that section.

SELECTION-SCREEN BEGIN OF BLOCK USR WITH FRAME TITLE text-USR.

PARAMETERS: E1 RADIOBUTTON GROUP RAD DEFAULT'X' MODIF ID SC2,

E2 RADIOBUTTON GROUP RAD ."Upload and Updata

SELECTION-SCREEN END OF BLOCK USR.

And then use like this

LOOP AT SCREEN.

SCREEN-GROUP1 = 'SC2'.

SCREEN-ACTIVE = 0.

MODIFY SCREEN.

ENDLOOP.

Regards,

Sesh

Read only

Former Member
0 Likes
406

Hi,

Check this sample code..

REPORT zforum12 message-id vij.

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

PARAMETERS : R2 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.

*----


at selection-screen output.

IF R1 = 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'DEF'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

IF R2 = 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'ABC' .

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Reward if it helps..

Regards,

Omkar.