‎2006 Nov 23 6:14 AM
i dont seem to get vertical scroll bars in my table control when i create one
how do i get it??
thnks
Vs
‎2006 Nov 23 6:36 AM
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
‎2006 Nov 23 6:15 AM
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.
‎2006 Nov 23 6:20 AM
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.
‎2006 Nov 23 6:20 AM
How did u creat the tablecontrol, using wizard or manually u created,
regards
justin
‎2006 Nov 23 6:45 AM
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...
‎2006 Nov 23 6:47 AM
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
‎2006 Nov 23 7:02 AM
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??
‎2006 Nov 23 7:12 AM
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
‎2006 Nov 23 7:17 AM
‎2006 Nov 23 7:22 AM
‎2006 Nov 23 6:21 AM
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^
‎2006 Nov 23 6:31 AM
in the PBO just write the statements below as
describe table itab lines N.
<tab ctrl name>-lines = N.
Regards
- Gopi
‎2006 Nov 23 6:36 AM
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