‎2012 Jan 06 6:34 AM
Dear All,
I have made a module pool program for gate pass. In which i have taken a TABLE CONTROL WITHOUT WIZARD. Now my problem is , the table control does not have the SCROLL BAR functionality. It is not showing the scroll bar also. So can any one of you can help with the code that i can use to bring that scroll bar.
Table control is without wizard.
Thanks & Regards
Vijju
‎2012 Jan 06 6:40 AM
Hi,
while placing table control on the screen , In the attributes window you have resizing menu.
Under that you have vertical and horizontal check boxes.
In the PBO, loop at <itab> tablecontrl.
tabcontrl-lines = sy-dbcnt. write inside loop
endloop.
Edited by: Parupelly on Jan 6, 2012 1:06 PM
‎2012 Jan 06 6:49 AM
hi ,
in pbo, in the table control loop
u need to add
DESCRIBE TABLE itab LINES T_LINES.
tablecontrol-LINES = T_LINES + 10.
‎2012 Jan 06 6:53 AM
Hi,
In PBO module write the code as,
data: fill TYPE i.
DESCRIBE TABLE itab LINES fill.
flights-lines = fill.
Flights is the table control name in screen and itab is the internal table name.
Regards
Haritha
Edited by: Haritha Teegala on Jan 6, 2012 7:53 AM
‎2012 Jan 09 5:39 AM
Hi,
Thanks for your reply.
My scenario is : I have created a table control without wizard. In it have 7 cols. In it i have to enter line items one by one . once the number of lines shown on screen are over then i need a scroll bar to enter other line items.
After this i click on save button , so that my data can be saved in ZTABLE. SO pls help me out of this.
Thanks and regards
Vijju
‎2012 Jan 10 4:35 PM
In table control attributes enablehorizontal and verticall scrolling..plus in you code if table control is tc_control
Set it equal to 100 for test run..you code this dynamically
Nabheet
‎2012 Jan 06 7:18 AM
Hi Vijju,
After Created Table Control Double click on Table Control->Attributes->Resizing->Select Vertical and Horizontal Check boxes->select Seperators->Select Horizontal And Vertical Check Boxes .
Whenever Your Data Increased you will get the scroll bar automatically....
Regards
ManiReddy
‎2012 Jan 09 4:58 AM
Thanks for your responce.
But it's not working. Can you suggest something else.
I have ticked vertical and horizontal checkboxes.
Regards.
Vijju
‎2012 Jan 10 9:37 AM
Hi Vijju,
Have You Check The SCROLL Check box while Creating Table Control With Wizard ?? If you Don't Check that check box you won't get the scrolling..
If this ans is useful to you reward me..
‎2012 Jan 11 5:01 AM
Write the below logic... It worked for me..
In PBO, whatever is your internal table suppose i_tab which you are displaying in TABLE CONTROL.
DESCRIBE TABLEi_tab LINES g_lines2.
tab-lines = sy-tfill + 1.
Here tab is the TABLE CONTROL name