‎2007 May 15 8:02 AM
Hi all
i have to grey out some fields in Module pool programming.. Can somebody please help me in this.
Regards
jai
‎2007 May 15 8:14 AM
Hi,
If you want to grayout the fields from Program, then you need to use LOOP AT SCREEn and ENDLOOP in the PBO event.
or elese, you can gray out the fields using the Field attributes, just double click the screen field in the layout, there in the attributes, you will find a checkbox fro grayout
Regards
Sudheer
‎2007 May 15 8:06 AM
hi
in the properties of that field set inputfield as uncheck....
‎2007 May 15 8:14 AM
Hi,
If you want to grayout the fields from Program, then you need to use LOOP AT SCREEn and ENDLOOP in the PBO event.
or elese, you can gray out the fields using the Field attributes, just double click the screen field in the layout, there in the attributes, you will find a checkbox fro grayout
Regards
Sudheer
‎2007 May 15 8:19 AM
Hi,
use it in pbo if u want to get it always.if u want to grayout after clicking a button then writs code in the pai(below the okcode of that button).
loop at screen.
if screen-name = 'field u want 2 grayout'.
screen-input = '0'.
modify screen.
endif.
endloop.
rgds,
bharat.
‎2007 May 15 8:22 AM
Hi
1) you want particular field to be gratout all the time just uncheck the Input only
mark from the attribute of Screen field
2) For runtime u can put below code in PBO of the Screen.
loop at screen.
condition
if screen-name eq <fieldname>.
screen-input = 0
endif.
modify screen.
endloop.
Thanks
Reward if useful