‎2007 Jun 18 9:25 AM
hi experts,
i have developed a table control in which the datas are coming correctly
but in editable mode means if u want u can edit(make changes) on the table control,what i want is dat it sud not be editable i,e no one can change it,,for this what sud i do with table control on the screen,,plz help me.
‎2007 Jun 18 9:31 AM
Make all the fileds of the table control in the display mode in the layout itself. If you dont wnt to edit. or select the columns to and change the mode to display mode at in layout editor SE51 only.
But if you wnt to change the attributes of the tab ctrl items at runtime.
do the code in the PBO of the table control loop.
loop at screen.
if SCREEN-NAME = '<tablectrl-field1>' or
SCREEN-NAME = '<tablectrl-field2>'.
SCREEN-INPUT = 0.
modify screen.
endif.
endloop.this will disable the field1 field2 of the table contrl n display in display mode only.
Regards
Gopi
‎2007 Jun 18 9:28 AM
Hi Ravi,
Just on table controls loop where you keep track of sy-loopc write below code
loop at screen
case screen-name
when 'tab1-colname'.
screen-input = '0'
modify screen.
endloop
Regards,
Ashutosh
Reward points if helpfull
‎2007 Jun 18 9:31 AM
Make all the fileds of the table control in the display mode in the layout itself. If you dont wnt to edit. or select the columns to and change the mode to display mode at in layout editor SE51 only.
But if you wnt to change the attributes of the tab ctrl items at runtime.
do the code in the PBO of the table control loop.
loop at screen.
if SCREEN-NAME = '<tablectrl-field1>' or
SCREEN-NAME = '<tablectrl-field2>'.
SCREEN-INPUT = 0.
modify screen.
endif.
endloop.this will disable the field1 field2 of the table contrl n display in display mode only.
Regards
Gopi
‎2007 Jun 18 9:37 AM
Hi
In the Screen attributes, Select that column and set it as "Display only".
Reward points if you got the right answer.
Thanks.
Hari krishna
‎2007 Jun 18 9:38 AM
Hi Ravi,
If you mean the Input/Output setting, you can do this a number of ways. One is that you can go to the screen painter, and double click on the column(in the first cell). You will get a dialog where you can change the status of the field, either Input or Output, or Output Only.
Do reward points if this answers ur query.
Regards:
Sapna