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

Parameter

Former Member
0 Likes
740

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
699

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.

6 REPLIES 6
Read only

Former Member
0 Likes
699

Hi Kumar,

replace

IF SCREEN-NAME = 'A'.

with

if screen-group1 = 'A'.

Regards,

Tobias

Read only

RaymondGiuseppi
Active Contributor
0 Likes
699

Don't check SCREEN-NAME but SCREEN-GROUP1, SCREEN-NAME IS 'P_PWD' not 'A'.

   LOOP AT SCREEN.
    IF screen-group1 EQ 'A'.
      screen-invisible = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP

Regards,

Raymond

Read only

Former Member
0 Likes
700

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.

Read only

Former Member
0 Likes
699

answered

Read only

0 Likes
699

you are welcome...

Read only

Former Member
0 Likes
699

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