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

Create table control as input table

Former Member
0 Likes
475

Hi all,

I have a problem with a report I'm coding, I need to create in a dynpro a table control which allows me to create entries for an internal table.

This is no big deal an I have created a table control which I can use to create the entries to this table.

The problem I have is that the table control has a finite number of free lines where I can input the data. I would like to have the posibility to scroll on the screen and have more empty lines, but instead of that I can only use the (let's say) 35 lines that I can see.

In many SAP transactions you have dynpros where you can use a table control for input data and you can have as many lines as you need. Does anyone know how can I create the table control so I can do the same?

Thanks in advance guys.

1 ACCEPTED SOLUTION
Read only

Kiran_Valluru
Active Contributor
0 Likes
446

Hi.,

To get scroll bar you have to do it manually in coding,

Set the lines in table control..

tab_ctrl-lines = w_lines + 100. " here w_lines is no of records in internal table.

check this wiki for further reference : [Starting Table Control|http://wiki.sdn.sap.com/wiki/display/ABAP/LearnMakingFirstTableControl]

hope this helps u.,

Thanks & Regards,

Kiran

2 REPLIES 2
Read only

Kiran_Valluru
Active Contributor
0 Likes
447

Hi.,

To get scroll bar you have to do it manually in coding,

Set the lines in table control..

tab_ctrl-lines = w_lines + 100. " here w_lines is no of records in internal table.

check this wiki for further reference : [Starting Table Control|http://wiki.sdn.sap.com/wiki/display/ABAP/LearnMakingFirstTableControl]

hope this helps u.,

Thanks & Regards,

Kiran

Read only

Former Member
0 Likes
446

Exactly, that was it.

Thanks a lot, I have been reading many table control creation tutorials during the morning but I was unable to solve this problem.