ALV Table Grid: line break possible?

Hi,
I have an ALV Grid where I display some fields. The last field in the displayed structure is a comment field (type CHAR255). I don't want to display the whole field on the screen, because it doesn't fit on it. Is it possible to display one record of the DB-table in several lines of the ALV Grid and if yes, how?
Thanks in advance and regards,
Martin

Hi Martin,
    Show a part of the total text.
And provide an option to the user, to place the cursor and click on some button to show the total text in a popup.
There are a number of example ALV interactive reports in the forum . Search for them.
Regards,
Ravi

Similar Messages

  • Find out number of rows of an ALV table

    I would like to implement a generic method that returns the number of lines that are shown in an ALV table. Is this possible? Can I retrieve this information from the ALV model, or do I have to check the context for this?

    Hi Daniel,
    The iwci_salv_wd_table interface (the interface used which implements the method GET_MODEL), also has the method WD_GET_API, which returns a reference to IF_WD_CONTROLLER. This interface implements methods which will return the context information.
    Hope this helps
    Regards,
    Wenonah

  • JTable Grid Lines became very light when changed to JGoodies L&f

    After changing to the JGoodies Look and Feel, my Table Grid Lines (Row and Column Lines) look very light. They are hardly visible. The former orinignal black grid lines looks light as gray. Is there a way to change the color of Grid lines using the Table Renderers or do I need to do anywhere else
    Can you help me in that. I checked through the API but did not find a function to set so..
    Update to my Question_
    I have placed the below statement in my Overridden getTableCellRendererComponent method as the first statement
    table.setGridColor(Color.red);
    The probelm is everytime I switch windows (between my application and any other program), my application is almost dying (GUI gets completely screwed) until I keep clicking on the Application and then it gets back
    Edited by: hemanthjava on Nov 10, 2008 5:25 AM
    Edited by: hemanthjava on Nov 10, 2008 5:27 AM

    I am not expert in these, but please check out the following things and see whether it would solve your issue. (All these changes can be easily rolled back in case I'm wrong :). So make note of what you do)
    As per your httpd.conf, you have chosen an automatic configuration of Apache by OWCI installer itself. What it does is create an imageserver.conf file in a separate directory and these settings will be included in your httpd.conf as you can see in the first line: Include "C:/bea/alui/plumtreeconf/".
    If you check the imageserver.conf in that location, you would find a line like: Alias /imageserver/ "C:/bea/alui/ptimages/imageserver/". This aliases the original path "C:/bea/alui/ptimages/imageserver/" to /imageserver"
    To confirm whether this is done right, check the following:
    1. Acces 'http://<server ip / server name / localhost >/' from your browser
    This should display the Apache home page (as per your httpd.conf, it uses the default port 80; so no port number required)
    2. Access 'http://<server ip>/imageserver/' from your browser
    This should display the directory structure (if its not disabled) inside your 'C:/bea/alui/ptimages/imageserver/' folder. Also confirm that all the subfolders are accessible.
    3. If all the above is right, it means that your imageserver settings are right. Please check your portalconfig.xml for the correct settings: For example, <setting name="HTTPPort"> should be 7001 in your case. If its something else, change it and restart Weblogic for the settings to take effect.
    Hope this helps.

  • Alv  grid : is it possible to create 2 header lines  ?

    alv  grid : is it possible to create 2 header lines  ?
    for example  :
    open year            close year
    from 2006            until   2008
    data
    data
    data
    data
    i know that i can do so in alv list  , but is it possible in alv
    grid ( with screen )   ?

    No, this is not supported by the ALV Grid control.
    Regards,
    Rich Heilman

  • Separatate column of Web Dynpro ALV table using a vertical line

    Hi Experts!
    I have Web Dynpro ALV table and  I have a requirement to add a colored vertical line between two columns as a separator.   
    Is this possible? Is it possible to adjust border width of individual cells?
    I would be grateful for any ideas you may able to share.

    Both could be achieved by creating custom theme. But those changes will be applicable to tables and ALVs in your applications.
    Nitesh

  • Setting the ALV Hierarchy tree with grid line between the columns and rows

    Hi Experts,
    I would like to ask if there is any suggestion on setting the ALV hierarchy tree to be separated by grid line between the columns and rows just like how it is display the same way in normal ALV grid.
    Thanks in advance.

    Hi Lin,
    The requirement which you have stated is not possible.
    Lin,
    Also i have a query regarding BADI ZME_PROCESS_REQ_CUST, which you had raised on SDN. You have marked the question as solved/answered.
    Changing the data of a customize field in purchase requisition
    Could you please let me know, the steps you did to update the screen fields through the BADI.
    I would really appreciate your reply, because i am facing exactly the same problem which you have mentioned.
    Thanks,
    Best regards,
    Prashant

  • Object ALV Grid - Line selection

    Hi all.
    Is there a way to force my grid to have allways a selected line.
    If possible I would like to see the row marker and I don't want users to be able to select more than one line.
    I tried all layout sel_mode... but I didn't find the result I desire...
    Do you have an idea ?
    Thanks a lot

    Hi,
    check this
        call method grid1->set_table_for_first_display
          exporting
            is_layout                     = gs_layout
            is_variant                    = gs_variant
            i_save                        = v_save
            i_default                     = v_default
            it_toolbar_excluding          = i_exclude[]
          changing
            it_outtab                     = i_output[]
            it_fieldcatalog               = i_fieldcat[]
          exceptions
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            others                        = 4.
        if sy-subrc ne 0.
          message id sy-msgid type sy-msgty number sy-msgno
                      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        endif.
        call method grid1->refresh_table_display.
    * Creating object for the single clickevents
        if event_receiver_grid is initial.
          create object event_receiver_grid.
        endif.
        set handler event_receiver_grid->handle_toolbar_200 for grid1.
        call method grid1->set_toolbar_interactive.
        set handler event_receiver_grid->user_command_200 for grid1.
    module user_command_0200 input.
      call method cl_gui_cfw=>dispatch.
      case ok_code.
        when c_ddno.
          perform f__display.
        when c_exit.
          perform f_exit_program.
        when c_back.
          perform f_exit_program.
        when c_canc.
          perform f_exit_program.
        when others.
      endcase.
      clear ok_code.
    endmodule.                               " User_command_0200 INPUT
    form f_display.
      refresh: i_sel_alvrows,
               i_dblclk.
      clear :  i_sel_alvrows,
               i_dblclk,
               wa_dblclk.
      v_dbcnt = c_0.
      call method grid1->get_selected_rows
        importing
          et_index_rows = i_sel_alvrows[].
      call method cl_gui_cfw=>flush.
      describe table i_sel_alvrows lines v_dbcnt.
      if i_sel_alvrows[] is initial.
        message i176.
      endif.
      if v_dbcnt gt 1.
        message i177.         " You cannot select more that one row
      else.
        loop at i_sel_alvrows into wa_sel_alvrows.
          read table i_output into wa_output index wa_sel_alvrows-index.
          if sy-subrc eq c_0.
            move-corresponding wa_output to wa_dblclk.
            append wa_dblclk to i_dblclk.
            clear: wa_dblclk.
          endif.
        endloop.
      endif.
    endform.                                 
    aRs

  • Outer table frame without grid lines

    Howdy,
    I have a form that is printing a variable size table that can span more than one page.  I am attempting to create an outer frame around the table without grid lines in the middle.
    There is a framed pattern, the one in the upper left hand corner of the patterns, that appears to fit my scenario.  However, when I use this pattern, the outer frame appears, but there are also grid lines.
    Is it possible to create an outerfram around a table without grid lines between the cells?

    Hello Ernest,
    Goto Table Painter Settings, there you have tabs like Grid, Main Grid and so on...
    By default, it would have selected the Display check box in Grid tab. Remove that check and goto Main Grid tab, and check the Display check box.
    I guess your problem is solved.
    Regards,
    Prem

  • How can I make the GRID lines more bold within a table in the new Pages?  (Not the outline of a table)

    I can't find where to darken GRID lines on a table in the new Pages.  I can make the outline more bold, but not the grid lines within the table.  Is there a way to do this?  The default grid lines are far too faint.

    Yeah, the Help is missing a little.
    If you select the block of cells that you want to change, then in the Format inspector:
    Select the Cell tab
    Expand the Border section
    Set a line type
    Set a line width
    Choose a line color
    Choose one of the nine options for which borders get the new settings

  • How to hide the grid lines between two rows in a ALv? Please help!

    Hi Experts,
             I have a ABAP ALV(reuse alv grid FM) report.
    The last field in the ALV is "Description" which can contain data of size more than 130 chars.
    Since the max field length in ALV grid is 130 chars hence I am splitting this field value whenever the field length is more than 130 chars.
    After splitting I am generating duplicate rows but with different "Description" field values ( each contains the splitted values".
    For example:
    Name| City | Description                             |
    Hari|HK    |Employee responsible for time management |
    Hari|HK    |and issue resolution                     |
    Now I want to hide the grid line between these two rows
    and just for Description field.
    In other words I want ALV to display like this:
    Name| City | Description                             |
    Hari|HK    |Employee responsible for time management |
    Hari|HK    |and issue resolution                     |
    How can I acheive this?
    Please provide some sample code.
    Please help. I will be really greatfull to your help.
    Thanks
    Gopal

    Hi Rich,
          If that is the case then atleast how can I hide the complete row grid line?
    Please give some sample code.
    Thanks
    Gopal

  • How to process Line Selection on ALV Table in ABAP WebDynpro

    Hi there,
    I have a view with an ALV table whose context node retrieves its data from a Service Call for a method.
    The method provides certain data of a database table which the ALV displays.
    Now I would like to be able to select one row of that ALV table and after pressing a button or doubleclicking on the row or whatever a different view (as for me it is also ok on the same view) should appear to display the details of that selection.
    I only need to know how to retrieve the selected data.
    Or its index within the internal table.
    I am already looking for hours for a useful thread and actually there is one which obviously is about a similar issue apart from the multiple selection part: 
    How to process multiple row selection in ALV table in Wendynpro ABAP? Help!
    but i am afraid that i don't understand it. Or at least I misunderstand it since it does not work with me.
    The system example mentioned in the thread does not help me either because it somehow does not correspond to my needs, does it?
    It would be GREAT if somebody could help me with that. Please keep it simple for I am not an expert in webdynpro yet (obviously ^^) and also please explain in detail what I have to do with the context nodes since I am not sure whether the selection is stored in my already existing node or whether I need a special one for that.
    Thanks!!
    christina

    Hi Christina,
    If you just want to get one column data of the line that user clicked, use the Web Dynpro Code Wizard to Read Context of attibute you needed, then you will get code as follow:
    * Define data for read attribute
        node_alv TYPE REF TO if_wd_context_node,
        elem_alv TYPE REF TO if_wd_context_element,
        stru_alv TYPE if_view_display=>element_alv ,
        item_column_name  LIKE stru_alv-column_name.
    * navigate from <CONTEXT> to <ALV> via lead selection
      node_alv = wd_context->get_child_node( name = if_view_display=>wdctx_alv ).
    * get element via lead selection
      elem_alv = node_alv->get_element(  ).
    * get single attribute
      elem_alv->get_attribute(
        EXPORTING
          name =  `COLUMN_NAME'
        IMPORTING
          value = item_column_name ).
    The value of column_name is stored in item_column_name.
    If you need the index that the user clicked, try this:
    * Definition of field symbol for index
      FIELD-SYMBOLS : <fs_index> TYPE data.
    * Get the selected index
      ASSIGN r_param->index->* TO <fs_index>.
    The index of clicked line is stored in field symbol <fs_index>.
    Hope it will help.
    Best Regards,
    Stephanie

  • Is it possible to make certain rows mandatory in ALV custom Grid display?

    Hi experts,
                    Is it possible to make certain columns mandatory in the ALV custom grid control just as we give in a selection screen ?
    Thanks in advance
    regards,
    Ashwin

    fieldcat-key = 'X'.
    Regards,
    Amit

  • Hi Sir! I have some questions regarding word report generation please.1.How can i add border to a word page?.2.How can i add grid lines to a table generated in word report?.3.How can i add border to a table of word report?.Thanks Imran Pakistan

    Hi !
    Sir I have some questions regarding word report generation using(C language in labwindows) Please.
    1.How can i add border to a word page?.
    2.How can i add border and grid lines to a table generated in word report(Not the " cvi table control" inserted from gui,i am asking about the table generated in word report)?
    3.How can i fill a cell of word report table withe the data type other than "character"?.
    And sir one question about use of timer in cvi labwindows please.
    Sir i'm trying to set minimum delay interval of timer control to 1millisecond(0.001s),as i set ,timer don't cares of the interval that is set by me it responds only to the default minimum time interval which is i think 10milliseconds(i'am using windows xp service pack3 version 2002).
    Regards
    Imran
    Pakistan
    Solved!
    Go to Solution.

    Hello sir!
    Sir i'm using daq6251.But Sir before implimenting it to my final application now i'm just trying to achieve 1millisecond time interval for timer in a vary simple programe i mean at this time no hardware (daq device) is  involved i,m just trying to achieve minimum time interval of 1millisecond.
    Sir i read form "help" of labwindows how this time interval can be set,i'm trying for,as described in help notes but i could'nt.I'm attaching a screen shot sir for you it may helpful for you to explain me.
    And sir also waiting for your kind reply regarding word report generation.
    Thanks.
    Imran.
    Attachments:
    screen_shot_rigistry.docx ‏65 KB

  • Spry table, vertical grid lines

    How do you format a table so the vertical grid lines show up.
    I have the roll over effect working for rows in the table, but the
    tables are large enough that is can be difficult to follow columns
    straight down. I would like black vertical line to appear between
    columns.
    thanks.

    If I understand you right, you wish to have spreadsheet type
    columns. In that case this is not a Spry question but an HTML and
    CSS question.
    In CSS the format would look something like:
    #mytable th {
    text-align: left;
    padding: 3px;
    font-weight: bold;
    border:1px solid #AAA;
    background-color: #EFEFEF;
    In the above example I am formatting a heading cell.
    In IE, if the cell is empty there will be no border, thus it
    is best to populate the cell with a space as in '   '.
    I hope this helps.

  • ALV Export to excel (spreadsheet) without line break

    my ALV report contains 76 columns, if i try to download it in an excel sheel its not getting displayed in correct format.
    Few columns are automatically displayed in the second row and also all my values are getting collapsed due to this display.
    In the print preview also i am getting the same problem.
    Is there any column limit in ALV display or i can make it to get display correctly as it is in the exact output.
    ALv reports contain various options such as sort,filter,print preview, download to excel etc....in this if i use the download to excel option in the excel sheet its getting displayed as col1,col2,col3.......col54
    col55,col56.................col75
    but i need the output to be in a single line such as col1,col2,col3,.........col75
    I do not want the line break.
    Edited by: Suhas Khengle on Oct 1, 2008 11:50 AM

    Hi Suhas,
    Can you tell me what was the solution for your issue? I'm also facing same issue
    Regards,
    Siva

Maybe you are looking for