Skip to Content
avatar image
Former Member

How to make a table scrollable using table control?

Hi,

I'm using Table Control wizard to display an output.I have clicked on he Scrollable checkbox.But my table is still not scrolling.Please help me on this.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 08, 2007 at 06:15 AM

    for this u have to write code..

    ITABCTL is the name of the table control

    write it in PBO of that screen

    MODULE SET_LINES OUTPUT.

    DATA VLINES TYPE I.

    DESCRIBE TABLE ITABCTL LINES VLINES.

    TABCTL-LINES = VLINES + 1.

    ENDMODULE. " set_lines OUTPUT

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 08, 2007 at 06:16 AM

    To make the vertical scroll bar active in table control, just write these statements in the PBO module of the screen logic

    in the PBO include these lines

    <tabctrlname> is the name of the table control placed on the screen.

    it_tabctrl is the internal table data that is being passed to the table control.

    describe table it_tabctrl lines N.
    <tabctrlname>-lines = N.

    Regards

    Gopi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 10:49 AM

    Hello Saket,

    you have to loop on your control like:

    • Declaration of the control

    CONTROLS TABLE_CONTROL TYPE TABLEVIEW USING SCREEN 100.

    In the PBO maka a loop like this (i_table is a table where all the data which you want to display is already selected to)

    ...

    LOOP AT i_table WITH CONTROL table_control CURSOR

    table_control-current_line.

    ENDLOOP.

    ...

    In the PAI you also have to make a loop because otherwise it won't work

    ...

    loop at i_table.

    endloop.

    ...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 09, 2007 at 06:35 AM

    hi,

    to enable scrolling do this

    describe table itab lines N.

    (name of ur tablecontrol)-lines = N.

    Add comment
    10|10000 characters needed characters exceeded