Horizontal Scroll on ALV last column

Hi gurus,
Let see I can explain my issue.
I have an ALV with 20 fields, I have put scrolling for 5 columns, to first two ones are frozen. I have set 150px as width for each column. Scrolling is working fine but when I reach the final scroll I can't see the LAST COLUMN (FIELD20), I mean, the column doesn't have the proper width (150px), for the rest columns the width is appearing properly.
I copy my source code and a image link to more details:
  DATA lo_column TYPE REF TO cl_salv_wd_column.
  lo_column = lo_value->if_salv_wd_column_settings~get_column( 'FIELD' ).
  lo_column->set_fixed_position( cl_wd_abstr_table_column=>e_fixed_position-left ).
  lo_column = lo_value->if_salv_wd_column_settings~get_column( 'FIELD_OCULTO' ).
  lo_column->set_fixed_position( cl_wd_abstr_table_column=>e_fixed_position-left ).
  DATA: lt_columns TYPE salv_wd_t_column_ref,
        ls_column  TYPE salv_wd_s_column_ref.
  CALL METHOD lo_value->if_salv_wd_column_settings~get_columns
    RECEIVING
      value = lt_columns.
  LOOP AT lt_columns INTO ls_column.
    lo_column = lo_value->if_salv_wd_column_settings~get_column( ls_column-id ).
    lo_column->set_width( '150PX' ).
  ENDLOOP.
  lo_value->if_salv_wd_table_settings~set_fixed_table_layout( abap_true ).
* Cantidad de columnas que ocupan el scroll.
  CALL METHOD lo_value->if_salv_wd_table_settings~set_first_visible_scroll_col
    EXPORTING
      value  = 'FIELD'.
  lo_value->if_salv_wd_table_settings~set_scrollable_col_count( 5 ).
[http://imageshack.us/photo/my-images/836/abap.jpg/]
Any idea?
Regards

Hi,
Try adding this:
DATA l_table TYPE REF TO cl_salv_wd_config_table.
l_table->if_salv_wd_table_settings~set_fixed_table_layout( abap_true ).
In case this doesn't help, does the problem remain when you try changing the column width to, let's say, 75PX?
Cheers, Lukas

Similar Messages

  • Horizontal Scroll in ALV Trees

    Is it possible to have horizontal scrolling in ALV Trees ,
    If possible suggest please.

    With the current version of VC there is no horizontal scroll bar in the Flex tables possible.

  • REGARDING horizontal scroller in alv grid o/p

    hi,
       i have developed a report in alv grid its wrking fine..
      i want one thing >>>>in the o/p screen the plantid  is the first column, the second column is the plant name what i want is that, horizontal  scroller will work from plant name not from plantid for this what parameters sud i pass in the fieldcat for plantid.plz help me.

    Hi,
    U have to put for that particular plant id
    wfieldcat-key = 'X'.
    Thanks,
    Sankar M

  • JTABLE - horizontal scrolling only for some columns

    Hi all,
    In my JTABLE I have to scroll the horizontal scrollbar only from column 5 to the last, the columns 0 - 4 should be fixed ! Is this possible ?
    Thanks in advance,
    Arpana

    Please see
    http://www.senun.com/Left/Programming/Java_old/Examples_swing/JTableExamples1.html
    http://www.senun.com/Left/Programming/Java_old/Examples_swing/src/examples/FixedColumnExample.java

  • Locking the first column in advanced data grid on horizontal scrolling

    Hi All,
    My requirement is to freeze or lock the first column in the advanceddatagrid from scrolling on horizontal scroll event.
    The column should always remain in the left hand side of the grid.
    I tried with lockedColumnCount property of the advanced grid. But it is not working.
    Could anyone help me please with code examples

    I am able to do the above by using the method which passes
    the sort information to data provider. But now the problem I am
    facing is I cannot use event.preventDefault(); along with that
    method. If I use event.preventDefault(); then it does not show the
    descending arrow on the column, nor does it sort on multiple
    columns.
    But if I do not use event.preventDefault(); then the problem
    I am getting is it remembers the previous sort order for a
    particular column. eg. If I sorted on col A (desc)+colB and now I
    sort on colC. Again if I click on col A, the data provider sorts on
    colA ascending shows it and then the grid refreshes sorting on col
    A but in descending order.
    Does somebody know how to get around this problem?

  • WAD - how to get fixed display of colums when horizontal scrolling

    Hi All,
    Is it possible in the Web Application Designer to have the first 2 or 3 columns at a fixed position (meaning no horizontal scroll) while the other columns (next to them) will scroll horizontaly (using the horizontal scroll bar). Like the 'protect' function as you have in Excel.
    Best regards,
    Josh

    Dear Josh,
    basicly there a to options to achieve scrolling with fixed cells:
    1. BW Standard Scrolling
       Use Scrolling function of the Web Template Item, it
       create icon below the table
    2. Use CSS based scroll feature
       like: http://www.imaputz.com/cssStuff/bigFourVersion.html
    search google for "css table scroll"
    Regards Marcus

  • ALV freeze Columns in Horizontal Scroll

    Hi All,
    I am using ALV object cl_gui_alv_grid-> set_table_for_first_display and want to freeze the first three columns when doing horizontal scroll.
    I am passing it_fieldcatalog-fix_column = 'X' for the first three column fields but these columns are not being freozen when I do Horizontal Scroll.
    Kindly let me know what else I need to pass or any alternative way to achieve this in ALV.
    Thanks in advance.
    Vijoy

    Vijoy,
    Making the FIX_COLUMN to X should have solved your problem. As a work around, make those columns as KEY columns in the fieldcatalog and see if it works that way.
    I hope you don't have any other column in front of these columns which is NOT fixed. If yes, that it will not work.
    Regards,
    Ravi
    Note : Please mark the helpful answers and close the thread if the question is answered
    Message was edited by: Ravikumar Allampallam

  • Horizontal scrolling in a JTable with fixed-size columns

    Hello,
    I have come to a roadblock concerning the following issue. Perhaps someone can share their ideas...
    I have a JTable with three fixed-size columns. I implemented a JScrollPane with vertical and horizontal scrolling. However, the text inserted into the last column is too long to fit in the specified column width. I would like to be able to scroll the table so that I can view all of the text in the last column. Right now, the text cuts off and ends with three dots (...). Is there a way in which a horizontal scroll bar can be implemented to view all the text in the last column?
    Here is a portion of my code:
    num_of_rows_Table2 = (int) Math.pow(3, num_of_vars);
    String[] colunmNames_Table2 = {"Decimal Identifier", "Ternary Identifier", "Cancellation of nonimplicants"};
    dataModel2 = new DefaultTableModel(colunmNames_Table2, num_of_rows_Table2);
    SpaceOfTermsTable = new JTable(dataModel2);
    for (int z = 0; z < num_of_rows_Table2; z++)
    SpaceOfTermsTable.setRowHeight(z, row_height);
    SpaceOfTermsTable.setBounds(new Rectangle(x1_Table2, y1_Table2, width_of_pane2, height_pane2));
    SpaceOfTermsTable.getTableHeader().setReorderingAllowed(false);
    for (int i = 0; i < 2; i++)
    TableColumn col = SpaceOfTermsTable.getColumnModel().getColumn(i);
    col.setMinWidth(colwidth_Table2);
    col.setMaxWidth(colwidth_Table2);
    col.setPreferredWidth(colwidth_Table2);
    TableColumn lastcol = SpaceOfTermsTable.getColumnModel().getColumn(2); lastcol.setMinWidth(lastcol_Table2);
    lastcol.setMaxWidth(lastcol_Table2);
    lastcol.setPreferredWidth(lastcol_Table2);
    SpaceOfTermsTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    scrollPanel2 = new JScrollPane(SpaceOfTermsTable, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    scrollPanel2.setAutoscrolls(true);
    scrollPanel2.setBounds(new Rectangle(x1_Table2, y1_Table2, width_of_pane2, height_pane2));
    Thanks in advance for all of the help!

    Hi, I hava a similar problem than yours - can you tell me how you sorted out yer's?

  • ALV - Excel download Date field sits in the last Column

    Hi,
    I have custom ALV grid report using OOp . From the report i am exporting the results to an EXCEL, but the date columns in the report sits as last column the exported excel.
    Any idea ?
    Thanks
    aRs

    That is the default functionality of the ALV grid, it collects all the similar data types together and then donwloads the data.
    If you don't want that, you will have write code yourself and download the data
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • No horizontal scroll bar on the Jtable. In order to see long column.....

    No horizontal scroll bar on the tJable.
    In order to see long cell data we have to eliminate other columns of the table.
    I need an horizontal scroll bar on the JTable if the data in a cell is longer.
    Could somebody help me out?
    Thanks in advance.

    in the jtable use following method :
    myTable.setAutoResizeMode(this.AUTO_RESIZE_OFF);
    KR,
    Jan

  • Horizontal scroll bar in tabular form with columns freeze

    Hi All,
    I have a requirement where i have to create a tabular form in which the first three columns should be in freeze mode and it should have a horizontal scroll bar.
    with the help of Google i found an example [http://apex.oracle.com/pls/otn/f?p=267:46]
    I want the same thing as in the example but with first three columns in freeze mode
    But could not find out how to create this column freeze and horizontal scroll bar.
    Let me know if you have any idea on this
    Thanks in advance,
    Ananth

    Hi,
    It is easy to look at the page source and see what they have done
    if you search for var d1 = document.getElementById("d and d1 you see some javascript doing the magic.
    Thanks

  • Oracle Forms 6i/11i Apps: Horizontal scroll bar is hiding last record in the form, issue with folder switcher

    Horizontal scroll bar is hiding last record in the form. Attached the screenshot which shows the issue.
    Regards,
    Venkat K

    If this is a custom form, you will have to alter the design. If this is a seeded form, pl open an SR with Support

  • Regarding Horizontal Scroll bar in ALV

    Hi Experts,
    I am using FM " Reuse_alv_grid_display" to dsplay the output. But defaultly it is not showing all the output in single view .I have large no of columns to show up.horizontal scroll bar is not set up defaultly.
    I would like to use CL_GUI_ALV_GRID->SET_HORIZONTAL_SCROLLBARS method
    is this is the right way to do it ? suggest best and simple way to do it.
    regards
    Vishnu

    hi,
    there was exception raised  "raise exception type cx_salv_not_found"
    i have used the fallowing code:
    cl_salv_table=>factory(
        IMPORTING
          r_salv_table = gr_table
        CHANGING
          t_table      = INT_FINAL ).
      DATA: lr_columns TYPE REF TO cl_salv_columns_table,
            lr_column  TYPE REF TO cl_salv_column_table.
      lr_columns = gr_table->get_columns( ).
      lr_columns->set_optimize( gc_true ).
          lr_column ?= lr_columns->get_column( 'SYMBOL' ).
          lr_column->set_symbol( if_salv_c_bool_sap=>true ).
          lr_column->set_long_text( 'SYMBOL' ).
      gr_table->display( ).
    Please let me know how to proceed
    regards
    vishnu

  • Last Column of ALV gets compressed

    HI ,
    The last column of ALV gets compressed when I manually set my widths to my fields.
    I have a comments section in my Table when the data is huge, So I have to set the width of the field so that the table does not look odd.
    But when I add the same, the last field of my ALV gets compressed. I added one last field to the same ALV table, and last added field is compressed.
    My code for setting the ALV data is as follows.
        lo_table_settings->set_fixed_table_layout( abap_true ).
    LOOP AT t_column INTO w_column.
           IF w_column-id = 'COMMENTS'.
             lr_textview ?= w_column-r_column->get_cell_editor( ).
             lr_textview->set_wrapping( abap_true ).
             lr_textview->set_design(
                 value = cl_wd_text_view=>e_design-label_small
             w_column-r_column->set_width( value = '600' ).
           ELSE.
             w_column-r_column->set_width( value = '100' ).
             lr_header =  w_column-r_column->get_header( ).
             lr_header->set_header_text_wrapping( value = abap_true  ).
           ENDIF.
         ENDLOOP.
    Please help me in this regard.

    Hi Rama,
    The last column of ALV is compressed, the Width of last column is so small that the table looks very awkward.
    The complete data is shown, no data is truncated.
    I already set the condition you mentioned. I placed the same in code in my post.

  • JTabel Horizontal scroll bar problem

    Hi,
    I want a horizontal scroll bar added to my table
    hence I do this
    table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    but the problem is If I increase the size of frame
    the cells do not resize hence there is a gap after
    the last column.
    How do I remove this gap

    Please reduce the container size in the screen thru SE51 that automatically create the scroll
    or check whether in the attributes of the screen "Hold scroll positio" not to be checked

Maybe you are looking for

  • My Apple ID has been disabled! What can I do to fix it ?

    Hi everyone! As I said my apple ID was disabled. I'm trully terrified cuz i have so much music on this acount and i can't download it anymore. What should I do? I send message to apple support but im not exacly sure what should i do next. Help me ple

  • BIP Report Server URL

    The default URL for the report server ( http://10.146.91.165:9704/xmlpserver ) returns an error message. I am accessing from Word and everything else works and appears to be running. Would someone please check the June 2009 BIC2G Windows Image and co

  • Conversion of variable character error

    I use this statement within a query to  get a blank result with a WHEN/THEN statement but keep getting the following error message: " The conversion of a varchar data type to a datetime data type resulted in an out-of-range value." Below is the state

  • How to display output parameters in storedprocedures in front end?

    hi all ,thank you for all the support. Now i want your help .Here below i have given the general format of stored procedure we are using in our application . In procedure we are catching the exception and assigning to an output variable P_STATUS . If

  • Os x mavericks ping latency

    hi; i have a problem about ping latency on os x mavericks. my product is mbp retina 13 inch late 2012 and i have made 10 tests on each platform which are mavericks 10.9.2, win 7 64bit with bootcamp on same device and win 7 64 bit on another laptop (p