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

regarding table control

Former Member
0 Likes
532

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.

1 ACCEPTED SOLUTION
Read only

gopi_narendra
Active Contributor
0 Likes
511

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

4 REPLIES 4
Read only

former_member508729
Active Participant
0 Likes
511

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

Read only

gopi_narendra
Active Contributor
0 Likes
512

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

Read only

Former Member
0 Likes
511

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

Read only

Former Member
0 Likes
511

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