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

Former Member
0 Likes
389

Hi,

After I insert initial data to the table control and press ENTER, the table is locked for editing and I cannot add new lines !

How can I prevent it and allow adding new lines ?

Thanks,

Rotem.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
370

There's probably a better way to do it, but I simply add blank lines to my internal table.

Rob

3 REPLIES 3
Read only

Former Member
0 Likes
371

There's probably a better way to do it, but I simply add blank lines to my internal table.

Rob

Read only

naimesh_patel
Active Contributor
0 Likes
370

Set your table control lines like in PBO.

table_control-lines = 400.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
370

We can do it in many ways,

better solution, count how many rows can be displayed and how many filled up

and use this sample code.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

LOOP AT ITAB.

module read_table_control.

MODULE FILL_TABLE_CONTROL.

ENDLOOP.

*loop with control tc1.

  • MODULE FILL_TABLE_CONTROL.

*endloop.

module add_row.

module del_row.

&----


*& Module add_row INPUT

&----


  • text

----


module add_row input.

*Activate scroll

describe table itab lines v_count.

*if v_count >= tc1-current_line.

  • tc1-lines = 20.

*endif.

-Pavan