‎2009 Jul 02 10:20 AM
Hi ,
Have a parameter which i want to be invisible to the user as its a password. i am using the following code which isnt working. Can u give some suggestions.
Parameter : p_pwd(30) TYPE C LOWER CASE DEFAULT password' MODIF ID A.
AT SELECTION-SCREEN OUTPUT.
make password field invisible
LOOP AT SCREEN.
IF SCREEN-NAME = 'A'.
SCREEN-INVISIBLE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Regards,
Kumar
‎2009 Jul 02 10:26 AM
Screen-name should be name of the parameter not the modif id
IF SCREEN-NAME = 'A'. Wrong
IF SCREEN-NAME = 'P_PWD (should be in caps)' Correct
so the code will be
LOOP AT SCREEN.
IF SCREEN-NAME = 'P_PWD'
SCREEN-INVISIBLE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Hope this will works.
‎2009 Jul 02 10:24 AM
Hi Kumar,
replace
IF SCREEN-NAME = 'A'.
with
if screen-group1 = 'A'.
Regards,
Tobias
‎2009 Jul 02 10:25 AM
‎2009 Jul 02 10:26 AM
Screen-name should be name of the parameter not the modif id
IF SCREEN-NAME = 'A'. Wrong
IF SCREEN-NAME = 'P_PWD (should be in caps)' Correct
so the code will be
LOOP AT SCREEN.
IF SCREEN-NAME = 'P_PWD'
SCREEN-INVISIBLE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Hope this will works.
‎2009 Jul 02 10:26 AM
‎2009 Jul 02 10:36 AM
‎2009 Jul 02 10:28 AM
Use Following code after checking condition for the user login:
CASE SCREEN-NAME.
WHEN 'KOMV-KSCHL'.
SCREEN-INVISIBLE = 1.
Try removing single quotes and then modify the screen:
ENDCASE.
Regds,
Anil