‎2010 Aug 17 8:14 AM
Hi All,
I have a tble control, created through Tabl;e Control Wizard, My requirement is to dispaly and edit data in the table control. I have disabled two columns but at run time all the columns sholud me at enabled mode.
How can it is possible?.
Need help.
Thanks in advance.
‎2010 Aug 18 6:18 AM
Hello,
data : cols like line of tc2001-cols.In PBO of screen You can set
cols-screen-input = 1.
depending on the column name.
Regards,
Rachana
‎2010 Aug 17 8:20 AM
Hi,
In item of table control, double click on column you want to disable input. In attribute tab, uncheck at Input field.
Please check and reply.
regards,
‎2010 Aug 17 10:18 AM
Hello,
In runtime if you want to enable fields means, in debugging mode you need to open the name of the control and you will find many options.
Change those parameters dynamically. You can enable the disabled columns.
Regards,
Vamsi Krishna
‎2010 Aug 18 6:18 AM
Hello,
data : cols like line of tc2001-cols.In PBO of screen You can set
cols-screen-input = 1.
depending on the column name.
Regards,
Rachana
‎2010 Aug 18 12:39 PM
Hi Ravi,
In PBO you should see the loop below
if it created by the wizard :
LOOP AT ITAB
WITH CONTROL TBCONT
CURSOR TBCONT-CURRENT_LINE.
MODULE TBCONT_GET_LINES.
*&SPWIZARD: MODULE TBCONT_CHANGE_FIELD_ATTR
ENDLOOP.
Can u see any module except for MODULE TBCONT_GET_LINES in this control loop
or a module after this loop?
It is possible to change editable attribute of table control line by line
even cell by cell. But it could be in PBO.
‎2010 Aug 18 12:46 PM
Hi Ravi,
If you want 2 fields to be disabled for input and rest to be enabled, you need to select input option during the creation of table through wizard and after creation go to that particular cell which needs to be disabled(Not the header, any cell below that) and mark output only as its attributes.
Regards,
Nagraj