‎2006 Nov 24 5:51 AM
Hi friends,
I want to hide a particular text box.
how to hide it?
Thanks & Regards,
Vallamuthu.M
‎2006 Nov 24 5:57 AM
in PBO.
write a module. and loop the screen.
ex: if screen-group1 = 'CB2'.
SCREEN-INPUT = '0'.
endif.
'CB2' is group id, which you have to assign in screen painter.
‎2006 Nov 24 5:54 AM
u can put invisible to the field or else in program loop at screen...make the field invisible..modify screen...endloop...
‎2006 Nov 24 5:57 AM
in PBO.
write a module. and loop the screen.
ex: if screen-group1 = 'CB2'.
SCREEN-INPUT = '0'.
endif.
'CB2' is group id, which you have to assign in screen painter.
‎2006 Nov 24 6:37 AM
In order to hide a text box, first u have to assign that text box to a GROUP in SE51. Usualy, there are 4 groups available. Let us assume that u have assigned the text box to GROUP1.
Then in PBO u have to write a module.
in that module u have to write the following code.
Loop at screen.
if screen-group1 = 'GRP'.
SCREEN-ACTIVE = '0'.
Modify Screen.
endif.
'GRP' is group id for that text box which u have to specify in SE51 while designing the screen, .
‎2006 Nov 24 6:38 AM
hi,
if u are satisfied by the above answer, pls reward points.
Thanks in advance,
Rajesh
‎2006 Nov 27 8:45 AM
Hi ,,
For example u have a text i/o field in the screen ...
there are two ways in which u can make this invisible
(1) in the field attributes under display ...u will have a option called invisible ...U can put a check mark for that option ..which will statically make the field invisible.
(2) The secone option is using a code ... say for instance the name of the field is EXAM.
The code should be used in the PBO module
Module hide_100output.
LOOP AT SCREEN.
IF SCREEN-NAME = 'EXAM'.
SCREEN-INVISIBLE = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
endmodule.
OR
LOOP AT SCREEN.
IF SCREEN-NAME = 'EXAM'.
SCREEN-ACTIVE = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
endmodule.
THE FOLLOWING LINK WILL GIVE U A CLEART IDEA ON SETTING THE ATTRIBUTES DUSRING RUN TIME..
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbab6f35c111d1829f0000e829fbfe/content.htm
IF U ARE SATISFIED WITH THE ANSWER ..PLEASE PROVIDE POINTS.
THANKS
Anand.T