Application Development 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: 

Set number of editable lines in table control

Former Member
0 Kudos

Hi,

I have generated a maintenance dialog for a custom table. When the "new entries" button is pressed the table control is cleared, becomes editable and data can be pasted from the clipboard. So far so good. The problem is that the number of editable lines in the table control is limted to 29. After that, scrolling down shows that the remaining rows are greyed out. I need to paste large amounts of data (200 - 300 rows) from the clipboard and save. Currently, only the first 29 rows are copied. Can the number of editable rows in the table control be set to a sufficiently high number (or better yet, unlimited) for this purpose? Help is appreciated, thanks.

Regards

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos

Hi Khan Awkhan,

maintenance dialogs are not meant to do mass updates. You may use batch input to do it if you really need, but 200 or 300 rows is quickly done manually.

BR

Sandra

8 REPLIES 8

Former Member
0 Kudos

Anyone?

Sandra_Rossi
Active Contributor
0 Kudos

Hi Khan Awkhan,

maintenance dialogs are not meant to do mass updates. You may use batch input to do it if you really need, but 200 or 300 rows is quickly done manually.

BR

Sandra

0 Kudos

Hey Sandra,

Thanks for your suggestion. There is already an upload program for this. However, pasting from the clipboard would be a nice to have feature. If there is a constraint on the size of the table control, there must be an upper limit. What would that be and can it be changed, and if so, how? Thanks!

Regards

0 Kudos

Hi Khan Awkhan,

I know that the screen height is 200 rows maximum (7.0), I guess the table control height is allowed to go up to that size (less the fixed rows above and below). Just give it a try, you'll have the answer immediately.

Best regards,

Sandra

Former Member
0 Kudos

Hi,

The all table control's rows must be editable until you make it non-editable. You can set number of line for table control like below.

<tab_ctrl>-lines = <Num of lines in itab>.

Former Member
0 Kudos

Hi,

First of all for setting up line in table control use

TC-lines = <No of lines> you want to put editable,

For Paste from clip boar create 1 button(Like Paste) ,

while pressing this button event in PAI import data from clipboard(CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT)

Regards,

Alpesh

Former Member
0 Kudos

It seems that the number of editable lines increases dynamically by a fixed amount each time data is pasted from the clipboard. The only problem is that I am only allowed to paste up to 29 rows at a time. For really large amounts of data, I'll just use the upload program then. Thanks for the replies everyone!

0 Kudos

Hi Khan Awkhan,

I had no difficulty to extend the maintenance dialog screen height to 200 and table control height to 199 (1 row is reserved to the position field at the bottom), unset the vertical resizing checkbox, and the save was successful.

BR

Sandra