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

ABAP- Table control error

Former Member
0 Likes
358

Hello,

In screen painter, I use table control to edit a specifique table, when loading the table with no data, I can edit all the row, Howerver if the table contains some data (some rows), When I change to edit mode for the columns, It only enable the row that contain data, How can I enable all the other rows for editing too ?

I use the command :

DATA: ws_col02 TYPE tab_control-cols.

LOOP AT tab_control-cols INTO ws_col01.

ws_col01-screen-input = 1.

MODIFY tab_control-cols FROM ws_col01 INDEX sy-tabix.

ENDLOOP.

Thank you for your help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
327

Hi,

Check the following

In PBO

module status_100.
loop at itab with control tc.

endloop.

in PAI
loop at itab
module modify_tc.
endloop


in program,

module status_100.
describe table itab lines tc-lines.
if tc-lines = 0.
tc-lines = 10.
else.
tc-lines = tc-lines + 10.
endif.
endmodule

in Program
module modify_tc.
describe table itab lines tc-lines.
if tc-lines > tc-current_line.
modify itab index tc-current_line.
else.
append itab.
endmodule

Cheerz

Ram

1 REPLY 1
Read only

Former Member
0 Likes
328

Hi,

Check the following

In PBO

module status_100.
loop at itab with control tc.

endloop.

in PAI
loop at itab
module modify_tc.
endloop


in program,

module status_100.
describe table itab lines tc-lines.
if tc-lines = 0.
tc-lines = 10.
else.
tc-lines = tc-lines + 10.
endif.
endmodule

in Program
module modify_tc.
describe table itab lines tc-lines.
if tc-lines > tc-current_line.
modify itab index tc-current_line.
else.
append itab.
endmodule

Cheerz

Ram