Application Development 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: 

TABLE CONTROL: How can I make some fields just read only

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

thanks a lot friends