cancel
Showing results for 
Search instead for 
Did you mean: 

need to make table control rows editable and non editable

Former Member
0 Kudos

Hi,

There is a screen containing table control in dialog programming. The user should be able to view the data but should not be able to modify the data already fetched into this table control rows.

However the user should be able to add new rows/data into the table control.

i.e The table control rows will be non editable but the news rows should be editable.

Regards,

Simmi

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

hi...

EDITABLE ALV would help u work out...

for details abt t..have a look at the following thread..

regards..

Ananaya.S

Former Member
0 Kudos

Hi,

MODULE screenmod OUTPUT.

IF v_ucomm = 'DISP'.

LOOP AT SCREEN.

screen-input = 0.

MODIFY SCREEN.

ENDLOOP.

ELSE."if v_UCOMM = 'CHNG'.

LOOP AT SCREEN.

IF screen-group1 = 'G1'.

screen-input = 0.

ELSE.

screen-input = 1.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

endif.

if sy-ucomm = 'INSE'."if anybody presses insert button for insertin new rows

loop at screen.

IF ( tc1-current_line <> tc1-lines ).

screen-input = 0.

else.

screen-input = 1.

modify screen.

endif.

endloop.

endif.

ENDMODULE.

hope this helps,

priya

hymavathi_oruganti
Active Contributor
0 Kudos

priya's logic is very good. try it it works.

but i think instead of

if (tc1-current line<> tc1-line),

if (tc1-lines < tc1-current-line)

screen-input = 1.

else.

screen-input = 0.

modify screen.

Former Member
0 Kudos

Hai Simmi,

These links will give you the answer...

Regards,

Srikanth.

Reward points if helpful..

former_member188685
Active Contributor
0 Kudos

hi,

Check the demo program <b>demo_dynpro_tabcont_loop_at</b>

Regards

vijay

Former Member
0 Kudos

Simmi,

I would suggest that you use EDITABLE ALV Grid for this. Its far more eays and user friendly.

Regards,

Ravi

Note : Please mark the helpful answers