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

dialog Program issue

former_member184495
Active Contributor
0 Likes
1,073

hi,

i have a transaction "ZA"

the screen ZA has a text field zemp-name and is set to invisible mode.

now can i change this mode to visible <b>through the program</b> ?

rewards for sure.

cheers

Aditya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,052

In PBO of the screen.

loop at screen.

if screen-name = 'xxxx'.

screen-invisible = 0.

endif.

modify screen.

endloop.

Regards,

Ravi

12 REPLIES 12
Read only

Former Member
0 Likes
1,052

Hi aditya,

if ZA transaction points to Z prog then you can,

by writing code in AT SELECTION SCREEN.

Read only

Former Member
0 Likes
1,053

In PBO of the screen.

loop at screen.

if screen-name = 'xxxx'.

screen-invisible = 0.

endif.

modify screen.

endloop.

Regards,

Ravi

Read only

0 Likes
1,052

hi,

as said ...

i did that, but isnt working...

the screen ZA field is set with input as 'possible'

still it isnt working,

i might be wrong somewhere,

but...

thanks,

shall reward all those which were worth.

Aditya.

Read only

0 Likes
1,052

Hi Aditya,

<b>Is your problem solved??</b>

I just got the solution to your problem..

Goto the attributes of the field.

In the Program tab, just give uncheck <b>Output only checkbox and Input Checkbox</b>. so that it is neither Input nor output.

In the Display tab, just check the <b>Invisible </b> checkbox.

Now in the PBO of the program, just code like this..

LOOP AT SCREEN.

IF SCREEN-NAME = 'name of the field'.

SCREEN-INVISIBLE = 0.

SCREEN-INPUT = 1.

SCREEN-OUTPUT = 1.

MODIFY SCREEN.

EXIT.

ENDIF.

ENDLOOP.

This will work..

Regards,

SP.

Message was edited by: Sylendra Prasad

Read only

Former Member
0 Likes
1,052

go to screen painter(layout)

there is in properties..

3 tab strip in bottom in one of the tab strip there is option for that..just uncheck invisible check...

or if u want to change it by programm for certain things than do the same as ravi reply..

Read only

Former Member
0 Likes
1,052

Hi,

You can use the following coding under

At selection-screen event:

Loop at screen.

if screen-name = 'name'.

screen-invisible = '0'.

modify screen.

endif

endloop.

Read only

Former Member
0 Likes
1,052

Hi Aditya,

In the PBO of the screen, write this code.

Suppose the field name is 'FIELD1'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'FIELD1'.

SCREEN-ACTIVE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

You can also use SCREEN-INVISIBLE = 0.

If you want the field to be Input/Output and Visible, Just write SCREEN-ACTIVE = 1. It is similar to

SCREEN-INPUT = 1.

SCREEN-OUTPUT = 1.

SCREEN-INVISIBLE = 0.

Regards,

SP.

Read only

Former Member
0 Likes
1,052

Hi,

in your PBO of the screen you have to write this code.


loop at screen.
if screen-name = 'SCREENFIELD'.
screen-invisible = 0.
endif.
modify screen.
endloop.

Regards

vijay

Read only

Former Member
0 Likes
1,052

Hello Aditya,

There are two aspects in this. I am assuming this is a custom development. If you permanantly want to change this then u can go to screen painter and change the attribute for the field. However if you want to do programatically under certain condition then in PBO section of the screen,

Loop at screen.

if screen-name = 'whatever in the field name'

screen-invisible = '0'.

modify screen.

endloop.

Read only

Former Member
0 Likes
1,052

Hi,

Just put this code at your PBO Module.


  LOOP AT SCREEN.
    IF SCREEN-NAME CS 'FIELD1'.
        SCREEN-ACTIVE  = '1'.
        SCREEN-OUTPUT  = '1'.
        SCREEN-INVISIBLE = '1'.
        MODIFY screen .
    ENDIF.
  ENDLOOP.

Regards,

Read only

abdul_hakim
Active Contributor
0 Likes
1,052

hi in the PBO event you write the below code..

LOOP AT SCREEN.

IF SCREEN-NAME = 'XYZZ'.

SCREEN-INVISIBLE = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Cheers,

Abdul Hakim

Mark all useful answers..

Read only

former_member184495
Active Contributor
0 Likes
1,052

answered