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: 

About table control line count in BDC.

Former Member
0 Kudos

Dear All,

Is there a way to know how many lines a standard screen table control has at run time. Eg: In VK11 say 17 lines are visible. But if I change the screen resolution, the no. of lines in the table control changes.

Now I want to write a BDC for program having such a table. Hence, I need to know the number of lines of the table control has at run time so that I can fix the number of table control lines in my code (Is there a better way to do this).

Can anybody help me on this?

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I don't remember VK11, but I have done two ways....on some screens SAP has buttons at bottom to allow you to reposition to a particular item (puts that item on top line) thus making subscript(2) always available after reposition...after first item, one would press the button, specifying item just entered, SAP would reposition, then from that point on, you just repeat always populating row 2.

In other situations, I've experimented with page down after a block of entries, always populating a row further down the page after entry of 5 rows or so....entering 5 rows, then doing page down, then starting at row (subscript) 3 or 4 and putting in 5 more rows....etc.

You may need to experiment with how you need to manage the screen within your own BDC...

But, the best solution for this, IMHO, is a BAPI that will do what you want if there is one available!

2 REPLIES 2

Former Member
0 Kudos

I don't remember VK11, but I have done two ways....on some screens SAP has buttons at bottom to allow you to reposition to a particular item (puts that item on top line) thus making subscript(2) always available after reposition...after first item, one would press the button, specifying item just entered, SAP would reposition, then from that point on, you just repeat always populating row 2.

In other situations, I've experimented with page down after a block of entries, always populating a row further down the page after entry of 5 rows or so....entering 5 rows, then doing page down, then starting at row (subscript) 3 or 4 and putting in 5 more rows....etc.

You may need to experiment with how you need to manage the screen within your own BDC...

But, the best solution for this, IMHO, is a BAPI that will do what you want if there is one available!

Former Member
0 Kudos

-