2010 Sep 06 5:22 PM
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.
2010 Sep 06 5:36 PM
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.
2010 Sep 06 5:36 PM
where you are writing this logic -> at selection-screen output ?
Just use : PARAMETERS xemail TYPE CHAR40 MODIF ID md5 NO-DISPLAY.
2010 Sep 06 9:27 PM
That was it ... I did not have it in Selection-Screen output. Thank-you!!
2010 Sep 06 6:21 PM
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