03-15-2007 2:16 PM
Hello Friends
In case of a table control when it gets displayed, you can make changes to all the fields. Is there a way you can make some of the fields READ ONLY so that the user won't be able to make any changes to those fields but just can see them.
Any feed back will be greatly appreciated.
Thanks
Ram
03-15-2007 2:18 PM
Yes you can do that
double click on those fields , in the attributes give a group name
likewise give the same group name for all those fields u want to show them in display mode
in PBO
loop at screen.
if screen-group1 eq '<GRP_NAME>'.
screen-input = '0'.
modify screen.
endif.
endloop.
Message was edited by:
Chandrasekhar Jagarlamudi
03-15-2007 2:18 PM
Yes you can do that
double click on those fields , in the attributes give a group name
likewise give the same group name for all those fields u want to show them in display mode
in PBO
loop at screen.
if screen-group1 eq '<GRP_NAME>'.
screen-input = '0'.
modify screen.
endif.
endloop.
Message was edited by:
Chandrasekhar Jagarlamudi
03-15-2007 2:19 PM
Hello,
In the PBO event of the screen u can do it like this.
PROCESS BEFORE OUTPUT.
MODULE DISPLAY_FIELD.
MODULE DISPLAY_FIELD.
LOOP AT SCREEN.
IF SCREEN-NAME = 'FIELD'. " Here u need to give the field name you want to display
SCREEN-INPUT = '0'.
SCREEN-OUTPUT = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP:
ENDMODULE DISPLAY_FIELD.
Regards,
Vasanth
03-15-2007 2:21 PM
Hi,
u group the fields which u want to make read only and give the group name at the attributes .
loop at screen.
if screen-group = g1.
screen-input = 0.
modify screen.
endif.
endloop.
Regards,
Sruthi
03-15-2007 2:27 PM
hi ram,
Group the fields u want to be read only and give as
LOOP AT SCREEN.
if screen-group1 = 'G1'.
screen-input = 0.
MODIFY SCREEN.
endif.
ENDLOOP.
regards,
priya.
03-15-2007 6:27 PM