‎2006 Jun 01 8:44 AM
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.
‎2006 Jun 01 8:47 AM
In PBO of the screen.
loop at screen.
if screen-name = 'xxxx'.
screen-invisible = 0.
endif.
modify screen.
endloop.
Regards,
Ravi
‎2006 Jun 01 8:46 AM
Hi aditya,
if ZA transaction points to Z prog then you can,
by writing code in AT SELECTION SCREEN.
‎2006 Jun 01 8:47 AM
In PBO of the screen.
loop at screen.
if screen-name = 'xxxx'.
screen-invisible = 0.
endif.
modify screen.
endloop.
Regards,
Ravi
‎2006 Jun 01 9:46 AM
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.
‎2006 Jun 01 12:17 PM
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
‎2006 Jun 01 8:47 AM
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..
‎2006 Jun 01 8:52 AM
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.
‎2006 Jun 01 8:54 AM
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.
‎2006 Jun 01 9:01 AM
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
‎2006 Jun 01 9:02 AM
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.
‎2006 Jun 01 9:05 AM
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,
‎2006 Jun 01 12:22 PM
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..
‎2007 May 01 7:51 AM