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

Hide Selection Screen still shows input field

Former Member
0 Likes
726

I have been trying to hide this entire block based on certain events and I am struggling to get it to work.

The Block itself hides and the Parameter text for xemail hides, but the input field for xemail displays no matter what

I do. I have tried it using the MODIF ID and with just the screen names. Any ideas would be most appreciated.

SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE Text-147.

PARAMETERS xemail TYPE CHAR40 MODIF ID md5.

SELECTION-SCREEN END OF BLOCK b4.

LOOP AT SCREEN.

IF screen-name = '%B147031_BLOCK_1000'.

screen-input = '0'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

IF screen-group1 = 'md5'.

screen-input = '0'.

screen-active = '0'.

screen-output = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
698

where you are writing this logic -> at selection-screen output ?

Just use : PARAMETERS xemail TYPE CHAR40 MODIF ID md5 NO-DISPLAY.

I have been trying to hide this entire block based on certain events and I am struggling to get it to work.

The Block itself hides and the Parameter text for xemail hides, but the input field for xemail displays no matter what

I do. I have tried it using the MODIF ID and with just the screen names. Any ideas would be most appreciated.

SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE Text-147.

PARAMETERS xemail TYPE CHAR40 MODIF ID md5.

SELECTION-SCREEN END OF BLOCK b4.

LOOP AT SCREEN.

IF screen-name = '%B147031_BLOCK_1000'.

screen-input = '0'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

IF screen-group1 = 'md5'.

screen-input = '0'.

screen-active = '0'.

screen-output = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

3 REPLIES 3
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
699

where you are writing this logic -> at selection-screen output ?

Just use : PARAMETERS xemail TYPE CHAR40 MODIF ID md5 NO-DISPLAY.

Read only

0 Likes
698

That was it ... I did not have it in Selection-Screen output. Thank-you!!

Read only

former_member585060
Active Contributor
0 Likes
698

Hi,

Your code is correct, except put the LOOP at screen in At Selection Output event, and remove the If condition on Screen-Name, modified code is below,

SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-147.
PARAMETERS xemail TYPE char40 MODIF ID md5.
SELECTION-SCREEN END OF BLOCK b4.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-group1 = 'MD5'.    " -----> Give Modif id in Capitol letters.
      screen-active = '0'.
      screen-invisible = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

START-OF-SELECTION.

Regards

Bala Krishna