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

Scroll bar in table control without wizard

Former Member
0 Likes
1,714

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,441

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

Read only

Former Member
0 Likes
1,441

hi ,

in pbo, in the table control loop

u need to add


  DESCRIBE TABLE  itab LINES T_LINES.
  tablecontrol-LINES = T_LINES + 10.

Read only

Former Member
0 Likes
1,441

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

Read only

0 Likes
1,441

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

Read only

0 Likes
1,441

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

Read only

Former Member
0 Likes
1,441

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

Read only

0 Likes
1,441

Thanks for your responce.

But it's not working. Can you suggest something else.

I have ticked vertical and horizontal checkboxes.

Regards.

Vijju

Read only

0 Likes
1,441

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..

Read only

Former Member
0 Likes
1,441

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