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: 

Table Control, number of lines

Former Member
0 Kudos

Hello Community,

does anybody have an idea how to obtain the number of rows of a

given table control within a dynpro.

Notice: I do not mean the number of occupied lines of the table (Describe Table ...lines into ...) but the number of rows which can be adressed when inserting lines by using a 'Call Transaction' (Batch Input).

Thanks in advance

Rüdiger

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Rüdiger,

If you have meant the total number of line items (not the visible line items) which can be inserted in the table control, we have to look into the table where the record gets updated. There would be field in the table which indicates the line item number. Checking the length of the field will let you know the maximum line items allowed. In most cases, the length is 3, which means maximum number of line items allowed would be 999.

Reward if helpful.

Regards,

Ravikanth

5 REPLIES 5

Former Member
0 Kudos

Hi Rüdiger,

Try using sy-LOOPC.

Regards

Arun

0 Kudos

Hello Anrun,

sy-loopc provides the number of table lines currently used - not the number of lines

which can be used.

Regards Rüdiger

Former Member
0 Kudos

In my experience, if you are doing a BDC to a screen with a table control on it then you are usually better off trying to fill only the top line or two and then using a "goto", or scroll, to access the next lines. I've hit problems in the past with screen resolutions etc that have meant that my assumption that there would be "X" lines available has proven to be a bad assumption... What are you trying to call?

Jonathan

0 Kudos

Hello Jonathan,

I try to call the 'CJ40' (Change unit cost estimate) with a liste of items to be inserted. In the moment I first try to allocate the number of lines needed by using function 'Edit->New Entries' and afterwards fill the allocated lines with the items. I will change the processing in the way that from now on I will perform for each needed entry the function 'Edit->Insert item'. This always happens at the top line of the table control and won't hopefully cause no further problems.

Best Regards Rüdiger

Former Member
0 Kudos

Hi Rüdiger,

If you have meant the total number of line items (not the visible line items) which can be inserted in the table control, we have to look into the table where the record gets updated. There would be field in the table which indicates the line item number. Checking the length of the field will let you know the maximum line items allowed. In most cases, the length is 3, which means maximum number of line items allowed would be 999.

Reward if helpful.

Regards,

Ravikanth