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: 

Problem with table control

Former Member
0 Kudos

Hi,

I have created one table control, to take the input. When i designed the TC i designed only for 5 lines, but unfortunately even on the screen it was comming like that only, i mean it was not dynamically extending...and did not see the vertical scroll bar...

Any one can help me...

regards

jaya

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

You need to increase the no. of lines in table control by adding some number other than exisitng.

For example,if your internal table is having 5 lines,then in table control make the no. of lines as 105 so that you can see the vertical scroll bar.

DESCRIBE TABLE lt_trans LINES fill.

tabctrl1-lines = fill + 100.

Check this link.In this, if you see the coding part, I am doing like that.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table%20c...

Message was edited by:

Jayanthi Jayaraman

3 REPLIES 3

Former Member
0 Kudos

Hi Jaya,

Refer to the below thread

Reward points if useful.

Regards,

Atish

gopi_narendra
Active Contributor
0 Kudos

in the PBO of the screen module, before calling the table control lines just write these statements

itab is the internal table being passed to the table control

tabctrl is the name of the table control placed on the screen.

data : N type I.
describe table itab lines N.
tabctrl-lines = N.

Regards

Gopi

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

You need to increase the no. of lines in table control by adding some number other than exisitng.

For example,if your internal table is having 5 lines,then in table control make the no. of lines as 105 so that you can see the vertical scroll bar.

DESCRIBE TABLE lt_trans LINES fill.

tabctrl1-lines = fill + 100.

Check this link.In this, if you see the coding part, I am doing like that.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table%20c...

Message was edited by:

Jayanthi Jayaraman