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

SCREEN INVISIBLE

kiran_k8
Active Contributor
0 Likes
1,280

Hi Folks,

I want when the user enters some name in the field UNAME it should be shown as ******.

I am doing like the below but not working.

LOOP AT SCREEN.

IF SCREEN-NAME = 'UNAME'.

SCREEN-INVISIBLE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

K.Kiran.

1 ACCEPTED SOLUTION
Read only

kostas_tsioubris
Contributor
0 Likes
1,193

Hi,

have you put your code in the AT SELECTION-SCREEN OUTPUT event?

Kostas

Hi Folks,

I want when the user enters some name in the field UNAME it should be shown as ******.

I am doing like the below but not working.

LOOP AT SCREEN.

IF SCREEN-NAME = 'UNAME'.

SCREEN-INVISIBLE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

K.Kiran.

11 REPLIES 11
Read only

Former Member
0 Likes
1,193

hi,

assign a modif-id 'md1'to the screen field 'UNAME' and use

SCREEN-GROUP1 eq 'md1' in place of SCREEN-NAME eq 'UNAME'.

u have to write this code in AT SELECTION-SCREEN OUTPUT event

Read only

0 Likes
1,193

Hi Sankar,

It is saying NOT A VALID USER NAME AND NOT DISPLAYING THE SELECTION TEXTS TOO BY ABRUPTLY EXITING FROM THE PROG.

KIRAN.

Read only

Former Member
0 Likes
1,193

try this

LOOP AT SCREEN.
IF SCREEN-NAME = 'UNAME'.
SCREEN-INVISIBLE = '1'.      "<-----------------1 in quotes
MODIFY SCREEN.
ENDIF.
ENDLOOP.

Read only

Former Member
0 Likes
1,193

hi Kiran,


AT SELCTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'UNAME'.
 SCREEN-INVISIBLE = '1'.
 MODIFY SCREEN.
ENDIF.
ENDLOOP.

Regards,

Santosh

Read only

kostas_tsioubris
Contributor
0 Likes
1,194

Hi,

have you put your code in the AT SELECTION-SCREEN OUTPUT event?

Kostas

Read only

Former Member
0 Likes
1,193

Hi,

Try this:

If you are using screen then go to layout --- double click field name -- ATTRIBUTES -- program -- chk this box "* entry "

Hope this will help you

Read only

former_member632991
Active Contributor
0 Likes
1,193

Hi,

DO u want the field to be invisible or value should be ******

for invisible,

at selection-screen on outout.

LOOP AT SCREEN.

IF SCREEN-NAME = 'UNAME'.

SCREEN-INVISIBLE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

or converting into ****

LOOP AT SCREEN.

IF SCREEN-NAME = 'UNAME'.

SCREEN-value = '******'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Hope it helps.

Regards,

Sonika

Read only

0 Likes
1,193

HI,

I am not using Module Pool but a report.

K.Kiran

Read only

Former Member
0 Likes
1,193

post ur code so that its easy to understand

chk this

REPORT YCHATEST.

PARAMETERS : UNAME LIKE SY-UNAME.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF SCREEN-NAME = 'UNAME'.
SCREEN-INVISIBLE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

Read only

0 Likes
1,193

hi,

I am trying the following code but in vain.kindly help me.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'UNAME'.

SCREEN-INVISIBLE = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

kiran.

Read only

0 Likes
1,193

show the declaration of UNAME also????