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

Table control query

Former Member
0 Likes
1,200

i dont seem to get vertical scroll bars in my table control when i create one

how do i get it??

thnks

Vs

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,175

HI ,

try this code,

In PBO of the table control

MODULE STATUS_1000 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

DATA lines TYPE I.

DESCRIBE TABLE <it_tab> LINES lines.

<TC>-LINES = lines.

ENDMODULE. " STATUS_1000 OUTPUT

hop this will help u

shan

Message was edited by:

sivakumar palaniswamy

12 REPLIES 12
Read only

Former Member
0 Likes
1,175

Hi Vishal,

While creating a Table control, just tick the check-box for Vertical Scroll bar in the creation screen & you will get the same.

Regards,

Chetan

PS: Reward points if this helps.

Read only

0 Likes
1,175

It will automatically appear if there are more records tha the visible lines.

set the more lines than visible line, then you get the vertical scrollbar .

if there are visible lines in table control is 20 lines, then give

tc-lines = 30.

Read only

Former Member
0 Likes
1,175

How did u creat the tablecontrol, using wizard or manually u created,

regards

justin

Read only

0 Likes
1,175

To all,

1. the table control was created manually .

2. i hav marked the v_scroll field as 'X' but still it doesnt give vertical scrollbars..

3. and the rows havin values also exceeds the no. of rows in display...

Read only

0 Likes
1,175

vat ever be the case .. just follow this

in the PBO just write the statements below as

describe table itab lines N.

<tab ctrl name>-lines = N.

Regards

- Gopi

Read only

0 Likes
1,175

yes...it works but will somebody pls expalin how it does....

i tried giving values explicitly n its workin fine

it scrolls for the same no. of times as the value given.........

what is the reason behind it and why doesnt the v_scroll = 'X' works??

Read only

0 Likes
1,175

v_scroll is just to enable the Scroll Vertically.

but vat it depends on is the number of rows in the table control which can be handled in the way i explained above.

Regards

- Gopi

Read only

0 Likes
1,175

ok got it ...

thnks a lot gopi...and regards

Vs

Read only

0 Likes
1,175

Glad to help u

Regards

- Gopi

Read only

Former Member
0 Likes
1,175

hi

good

go through these links which ll give you deetail idea about the vertical scroll bar

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm

http://sts1.sts.tu-harburg.de/teaching/sap_r3/ABAP4/contro02.htm

thanks

mrutyun^

Read only

gopi_narendra
Active Contributor
0 Likes
1,175

in the PBO just write the statements below as

describe table itab lines N.

<tab ctrl name>-lines = N.

Regards

- Gopi

Read only

Former Member
0 Likes
1,176

HI ,

try this code,

In PBO of the table control

MODULE STATUS_1000 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

DATA lines TYPE I.

DESCRIBE TABLE <it_tab> LINES lines.

<TC>-LINES = lines.

ENDMODULE. " STATUS_1000 OUTPUT

hop this will help u

shan

Message was edited by:

sivakumar palaniswamy