Application Development and Automation 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: 
Read only

table control (dialog programing)

Former Member
0 Likes
736

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
706

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

5 REPLIES 5
Read only

Former Member
0 Likes
706

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,

Read only

Former Member
0 Likes
706

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

Read only

Former Member
0 Likes
707

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

Read only

bbalci
Contributor
0 Likes
706

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.

Read only

Former Member
0 Likes
706

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