Application Development 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: 

Fix the coloums in table control

Former Member
0 Kudos

Hi gurus ,

I am working on table control , my requirement is, while horizatal scrolling the frist two coloums should be fixed .. , Like ALVs

shiv'

Edited by: shiva pasam on May 1, 2009 11:17 AM

6 REPLIES 6

Former Member
0 Kudos

Hi,

In the Table control attributes fill the the Fixed the colums with the number of colums to be fixed.

Refer to this link..http://i678.photobucket.com/albums/vv145/avinashkodarapu/untitled-1.jpg

Edited by: Avinash Kodarapu on May 1, 2009 2:58 PM

Former Member
0 Kudos

Hi,

In attributes of tablecontrol we have a text field called fixed coulmes to the bottom of the attributes which you fill as 2.

hope this will solve your problem.

cheers

Suvendu

Edited by: Suvendu Swain on May 1, 2009 11:51 AM

I355602
Advisor
Advisor
0 Kudos

Hi,

Double click on the table control, and you can specify the number of columns to be fixed in the table control.

NOTE : you need to start fixing columns from left hand side.

Please close the thread if solved......

Hope this helps you.

Regards,

Tarun

Former Member
0 Kudos

Hai...

Goto table control . double click on table control attributes in that fixed colums option is there

there u can specify how many coloums want to make fix .

Former Member
0 Kudos

hi

double click on the table control that u have placed on the layout

now u see a new Attributes screen, in that bottom of the screen attributes screen

u can see a Fix Columns i/o field in that u mention 2 no of coulmns to be fixed.

Regards

Former Member
0 Kudos

Hi Shiva,

You can also do this in abap module:


PROCESS BEFORE OUTPUT.
  LOOP AT gt_copa WITH CONTROL t_ctrl CURSOR t_ctrl-current_line.
*   Set screen to display/change
    MODULE set_screen_dc.
  ENDLOOP.
*&--------------------------------------------------------------------*
*&      Module  SET_SCREEN_DC  OUTPUT
*&--------------------------------------------------------------------*
*       Set screen to display/change
*----------------------------------------------------------------------*
MODULE set_screen_dc OUTPUT.
  TYPES: BEGIN OF typ_ctrl,
          vislength TYPE i,
         END   OF typ_ctrl.
  DATA: ls_ctrl TYPE typ_ctrl.
  FIELD-SYMBOLS <fs_ctrl> TYPE ANY.
* Adjust the length of the column
  READ TABLE t_ctrl-cols ASSIGNING <fs_ctrl> INDEX 5. " 5th column
  ls_ctrl-vislength = 17.
  MOVE-CORRESPONDING ls_ctrl TO <fs_ctrl>.
  READ TABLE t_ctrl-cols ASSIGNING <fs_ctrl> INDEX 6. " 6th column
  ls_ctrl-vislength = 17.
  MOVE-CORRESPONDING ls_ctrl TO <fs_ctrl>.

Regards,

Mawi