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 PROGRAMMING

vallamuthu_madheswaran2
Active Contributor
0 Likes
605

Hi friends,

I want to hide a particular text box.

how to hide it?

Thanks & Regards,

Vallamuthu.M

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
581

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.

5 REPLIES 5
Read only

Former Member
0 Likes
581

u can put invisible to the field or else in program loop at screen...make the field invisible..modify screen...endloop...

Read only

Former Member
0 Likes
582

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.

Read only

Former Member
0 Likes
581

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, .

Read only

Former Member
0 Likes
581

hi,

if u are satisfied by the above answer, pls reward points.

Thanks in advance,

Rajesh

Read only

Former Member
0 Likes
581

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