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 with non editable rows

Former Member
0 Likes
1,810

Hi,

I have an requirement in which i need to make some rows of a table control editable and some rows non editable.

How can i acheive this?

Regards,

Arun.

5 REPLIES 5
Read only

Former Member
0 Likes
1,152

Hi,

PROCESS BEFORE OUTPUT.

LOOP AT itab WITH CONTROL tc.

MODULE modify_screen.

ENDLOOP.

MODULE STATUS_0100.

MODULE modify_screen OUTPUT.

row_count = row_count + 1.

LOOP AT SCREEN.

if row_count = 2. " For the 2nd row in the table control

screen-input = 0.

MODIFY SCREEN .

endif.

ENDLOOP.

Hope it helps you,

Regards,

Abhijit G. Borkar

Read only

0 Likes
1,152

hi abhijeet i applied your codes but the problem is that inside loop of PBO table control the module 'modify_screen' is not geting triggered. So how can i do that using sy-tabix?

Read only

0 Likes
1,152

thank you abhijeet now its working fine. Actually previously i was using with cursor top_line, so for that reason it was not geting triggered. Now i removed with cursor and its working fine.

Read only

Former Member
0 Likes
1,151

Hi Arun,

How about adding a Check Box Field in each row of Table Control. So, once the user checks the check box, this will trigger a PAI event and based on that we can enable or disable input for that corresponding row of that Table Control. This will also give a greater control of modification of each individual row of the table control element in the ABAP Dynpro.

Have a look at these demo code of Table Control:

DEMO_DYNPRO_TABCONT_LOOP

DEMO_DYNPRO_TABCONT_LOOP_AT

DEMO_DYNPRO_TABLE_CONTROL_1

DEMO_DYNPRO_TABLE_CONTROL_2.

Hope this will help. It would be great if you can share your views regarding this idea.

Thanks,

Samantak.

Read only

Former Member
0 Likes
1,151

Hi,

In the Flowlogic >PBOJust Loop at screen and modify accordingly.

If u require any column for editable than..


Loop at tablecontrol-columns into workarea.

Do the Manipulation.
Modify the tablecontrol-columns
Endloop.

Regards

Arbind