To change the subtotals row color in ALV(Grid / List ) .

I am trying to change the color of a row which gives the subtotal...in ALV report...
but it is not working....
I have used the following code but not getting where i m wrong
I have u sed the following code wih the help of our forum only...
<CODE>
TYPE-POOLS: SLIS.
*& Internal Table Delcaration
DATA : BEGIN OF IT_SCALE OCCURS 0,
         DATUM LIKE ZSCALE-DATUM,
         MCOD1 LIKE ZSCALE-MCOD1,
         MATNR LIKE ZSCALE-MATNR,
         MAKTG LIKE ZSCALE-MAKTG,
         MEINS LIKE ZSCALE-MEINS,
         RATE LIKE ZSCALE-RATE,
         TOTAL LIKE ZSCALE-TOTAL,
         LI_COLOR(4),
       END OF IT_SCALE.
DATA : INDEX LIKE SY-TABIX.
*& ALV Data Declaration
DATA: IT_FIELDCAT  TYPE SLIS_T_FIELDCAT_ALV.
DATA: WA_FIELDCAT  LIKE LINE OF IT_FIELDCAT.
DATA : T_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
DATA : IT_EVENTS   TYPE SLIS_T_EVENT WITH HEADER LINE.
DATA : G_SAVE(1)   TYPE C VALUE 'A',
       GX_SAVE(1)  TYPE C VALUE 'A',
       GX_VARIANT  LIKE DISVARIANT,
       G_VARIANT   LIKE DISVARIANT,
       GS_LAYOUT   TYPE SLIS_LAYOUT_ALV,
       T_FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
       T_I_EVENT      TYPE SLIS_ALV_EVENT.
DATA : L_LIST(105)    TYPE C,         "Store the Top-of-page headings
       L_DATEFROM(10) TYPE C,         "Store date in top-of-page
       L_DATETO(10)   TYPE C.         "Store date in top-of-page
<code>
START-OF-SELECTION.
  PERFORM GET_DATA.
  PERFORM ALV_FIELDCAT.
  PERFORM GET_EVENTS.
  PERFORM SUB_COMMENT_BUILD USING T_LIST_TOP_OF_PAGE.
  PERFORM ALV_DISPLAY.
FORM GET_DATA .
DATA : LINE_COLOR.
  SELECT DATUM MCOD1 MATNR MAKTG MEINS RATE TOTAL
         FROM ZSCALE INTO CORRESPONDING FIELDS OF TABLE IT_SCALE
         WHERE DATUM IN S_DATE
           AND LIFNR IN S_LIFNR
           AND MATNR IN S_MATNR.
loop at IT_SCALE.
  LINE_color = LINE_color + 2.
  if LINE_color < 7.
    LINE_color = 1.
  endif.
  concatenate 'C' lINE_color '00' into IT_SCALE-li_color.
  modify it_SCALE TRANSPORTING LI_COLOR.
endloop.
FORM ALV_FIELDCAT.
  DATA: COUNTER      TYPE I.
  COUNTER = COUNTER + 1.
  WA_FIELDCAT-COL_POS    = COUNTER.
  WA_FIELDCAT-FIELDNAME  = 'DATUM'.
  WA_FIELDCAT-TABNAME    = 'IT_SCALE'.
  WA_FIELDCAT-SELTEXT_L  = 'Date'.
  WA_FIELDCAT-JUST       = 'C'.
  WA_FIELDCAT-NO_ZERO    = 'X'.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
  CLEAR WA_FIELDCAT.
.endform.
FORM ALV_DISPLAY .
GS_LAYOUT-ZEBRA        = 'X'.
  GS_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
  GS_LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
gS_layout-no_input          = 'X'.
  gS_layout-totals_text       = 'Totals'(201).
  gS_layout-subtotals_text = 'Subtotal'.
  IF IT_SCALE[] IS INITIAL.
    MESSAGE I001(38) WITH 'No Data to Display'.
  ELSE.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
   I_CALLBACK_PROGRAM             = SY-REPID
   IS_LAYOUT                      = GS_LAYOUT
  IT_FIELDCAT                    = IT_FIELDCAT
   I_SAVE                         = G_SAVE
   IS_VARIANT                     = GX_VARIANT
  TABLES
    T_OUTTAB                       = IT_SCALE[].
  ENDIF.
ENDFORM.                    " ALV_DISPLAY
ThanX in Adavance....

Hi Prasad,
I provided some code snippets for you. Please go through.
Hope this proves to be helpful to you.
The steps for coloring a line i the grid is much the same as making a traffic light.
To color a line the structure of the  table must include a  Char 4 field  for color properties
TYPES: BEGIN OF st_sflight.
        INCLUDE STRUCTURE zsflight.
      Field for line color
types:  line_color(4) type c.
TYPES: END OF st_sflight.
TYPES: tt_sflight TYPE STANDARD TABLE OF st_sflight.
DATA: gi_sflight TYPE tt_sflight.
Loop trough the table to set the color properties of each line. The color properties field is
Char 4 and the characters is set as follows:
Char 1 = C = This is a color property
Char 2 = 6 = Color code (1 - 7)
Char 3 = Intensified on/of = 1 = on
Char 4 = Inverse display = 0 = of
     LOOP AT gi_sflight INTO g_wa_sflight.
      IF g_wa_sflight-paymentsum < 100000.
        g_wa_sflight-line_color    = 'C610'.
      ENDIF.
      MODIFY gi_sflight FROM g_wa_sflight.
    ENDLOOP.
Name of the color field
gs_layout-info_fname = 'LINE_COLOR'.
Grid setup for first display
CALL METHOD go_grid->set_table_for_first_display
      EXPORTING i_structure_name = 'SFLIGHT'
                             is_layout                = gs_layout
      CHANGING  it_outtab                 = gi_sflight.
Heres another Example for you:
    & Report  Z_ALV_COLOURS                                              &
    & This report shows how to use colours in REUSE_ALV_GRID_DISPLAY     &
    & C = Colour        (all codes must start with 'C')                  &
    & X = Colour number (1-9)                                            &
    & Y = Intensified   (0 = off, 1 = on)                                &
    & Z = Inverse       (0 = off, 1 = on)                                &
    report  z_alv_colours.
    data count_1(1) type c.
ALV definitions
    type-pools: slis.
    data i_fieldcat type slis_t_fieldcat_alv with header line.
    data i_layout   type slis_layout_alv.
    types: begin of t_alv,
          f1(4) type c,
          f2(15) type c,
          f3(4) type c,
          f4(4) type c,
          f5(4) type c,
          f6(4) type c,
          colour(4)   type c,
          coltab type slis_t_specialcol_alv,
    end of t_alv.
    data: i_alv type standard table of t_alv with header line.
    data l_alvcolor type slis_specialcol_alv.
    & create table entries for LINE colours                              &
    do 9 times.
      count_1 = sy-index.
      clear i_alv.
      concatenate 'C' count_1 '0' '0' into i_alv-f1.
      concatenate 'C' count_1 '0' '0' into i_alv-colour.
      i_alv-f2 = 'Line colour'.
      i_alv-f3 = 'X'.
      append i_alv.
Intensified
      clear i_alv.
      concatenate 'C' count_1 '1' '0' into i_alv-f1.
      concatenate 'C' count_1 '1' '0' into i_alv-colour.
      i_alv-f2 = 'Line colour'.
      i_alv-f4 = 'X'.
      append i_alv.
Inverse
      clear i_alv.
      concatenate 'C' count_1 '0' '1' into i_alv-f1.
      concatenate 'C' count_1 '0' '1' into i_alv-colour.
      i_alv-f2 = 'Line colour'.
      i_alv-f5 = 'X'.
      append i_alv.
Intensified & Inverse
      clear i_alv.
      concatenate 'C' count_1 '1' '1' into i_alv-f1.
      concatenate 'C' count_1 '1' '1' into i_alv-colour.
      i_alv-f2 = 'Line colour'.
      i_alv-f6 = 'X'.
      append i_alv.
    enddo.
create table entries for CELL colours
    do 9 times.
      count_1 = sy-index.
      concatenate 'C' count_1 '0' '0' into i_alv-f1.
      i_alv-f2 = 'Cell colour'.
      concatenate 'C' count_1 '0' '0' into i_alv-f3.
      concatenate 'C' count_1 '1' '0' into i_alv-f4.
      concatenate 'C' count_1 '0' '1' into i_alv-f5.
      concatenate 'C' count_1 '1' '1' into i_alv-f6.
      append i_alv.
    enddo.
    & Create table entries for CELL colours                              &
    loop at i_alv where f2 = 'Cell colour'.
Colour cells
      clear l_alvcolor.
      l_alvcolor-fieldname = 'F3'.
      l_alvcolor-color-col = i_alv-f3+1(1).
      l_alvcolor-color-int = i_alv-f3+2(1).
      l_alvcolor-color-inv = i_alv-f3+3(1).
      l_alvcolor-nokeycol = 'X'.
      append l_alvcolor to i_alv-coltab.
      clear l_alvcolor.
      l_alvcolor-fieldname = 'F4'.
      l_alvcolor-color-col = i_alv-f4+1(1).
      l_alvcolor-color-int = i_alv-f4+2(1).
      l_alvcolor-color-inv = i_alv-f4+3(1).
      l_alvcolor-nokeycol = 'X'.
      append l_alvcolor to i_alv-coltab.
      clear l_alvcolor.
      l_alvcolor-fieldname = 'F5'.
      l_alvcolor-color-col = i_alv-f5+1(1).
      l_alvcolor-color-int = i_alv-f5+2(1).
      l_alvcolor-color-inv = i_alv-f5+3(1).
      l_alvcolor-nokeycol = 'X'.
      append l_alvcolor to i_alv-coltab.
      clear l_alvcolor.
      l_alvcolor-fieldname = 'F6'.
      l_alvcolor-color-col = i_alv-f6+1(1).
      l_alvcolor-color-int = i_alv-f6+2(1).
      l_alvcolor-color-inv = i_alv-f6+3(1).
      l_alvcolor-nokeycol = 'X'.
      append l_alvcolor to i_alv-coltab.
      modify i_alv.
    endloop.
    & Configure ALV settings                                             &
Create field catalog
    perform create_field_catalog using 'F1'     'T_ALV' 'Colour name'.
    perform create_field_catalog using 'F2'     'T_ALV' 'Description'.
    perform create_field_catalog using 'F3'     'T_ALV' 'BaseColour'.
    perform create_field_catalog using 'F4'     'T_ALV' 'Intensified'.
    perform create_field_catalog using 'F5'     'T_ALV' 'Inverse'.
    perform create_field_catalog using 'F6'     'T_ALV' 'Both Inv/Int'.
    perform create_field_catalog using 'COLOUR' 'T_ALV' 'Colour'.
Layout
    clear i_layout.
    i_layout-colwidth_optimize   = 'X'.
    i_layout-info_fieldname      = 'COLOUR'.   " for line colour
    i_layout-coltab_fieldname    = 'COLTAB'.   " for cell colour
    call function 'REUSE_ALV_GRID_DISPLAY'
      exporting
        i_callback_program      = sy-cprog
        i_callback_user_command = 'USER_COMMAND'
        is_layout               = i_layout
        it_fieldcat             = i_fieldcat[]
        i_default               = 'X'
        i_save                  = 'A'
      tables
        t_outtab                = i_alv.
    & Form  CREATE_FIELD_CATALOG                                          &
    form create_field_catalog using    p_fieldname
                                       p_tabname
                                       p_text.
      i_fieldcat-fieldname        = p_fieldname.
      i_fieldcat-tabname          = p_tabname.
      i_fieldcat-seltext_l        = p_text.
      append i_fieldcat.
    endform.                    " CREATE_FIELD_CATALOG
For more information about Coloring in ALV, Please refer :
Coloring Rows in ALV
Hope this helps you in solving your issue.
Please Reward Points if any of the above points are helpful to you.
Regards,
Kalyan Chakravarthy

Similar Messages

  • How to change the selected row color in an alv grid display ?

    Hello ,
    I WANT TO CHANGE THE COLOR OF THE SELECTED RECORDS  IN AN ALV GRID DISPLAY ?
    ITS URGENT..
    WILL BE REWARDED...

    hai   Ssnagh Samala 
    EXicut This report >
    Hope It Will  Meet U r Requirement.
    If Found Helpfull Reward.
    REPORT zcuitest_alv_07.
    Use of colours in ALV grid (cell, line and column) *
    Table
    TABLES : mara.
    Type
    TYPES : BEGIN OF ty_mara,
    matnr LIKE mara-matnr,
    matkl LIKE mara-matkl,
    counter(4) TYPE n,
    free_text(15) TYPE c,
    color_line(4) TYPE c, " Line color
    color_cell TYPE lvc_t_scol, " Cell color
    END OF ty_mara.
    Structures
    DATA : wa_mara TYPE ty_mara,
    wa_fieldcat TYPE lvc_s_fcat,
    is_layout TYPE lvc_s_layo,
    wa_color TYPE lvc_s_scol.
    Internal table
    DATA : it_mara TYPE STANDARD TABLE OF ty_mara,
    it_fieldcat TYPE STANDARD TABLE OF lvc_s_fcat,
    it_color TYPE TABLE OF lvc_s_scol.
    Variables
    DATA : okcode LIKE sy-ucomm,
    w_alv_grid TYPE REF TO cl_gui_alv_grid,
    w_docking_container TYPE REF TO cl_gui_docking_container.
    PARAMETERS : p_column AS CHECKBOX,
    p_line AS CHECKBOX,
    p_cell AS CHECKBOX.
    START-OF-SELECTION.
    PERFORM get_data.
    END-OF-SELECTION.
    PERFORM fill_catalog.
    PERFORM fill_layout.
    CALL SCREEN 2000.
    *& Module status_2000 OUTPUT
    text
    MODULE status_2000 OUTPUT.
    SET PF-STATUS '2000'.
    ENDMODULE. " status_2000 OUTPUT
    *& Module user_command_2000 INPUT
    text
    MODULE user_command_2000 INPUT.
    DATA : w_okcode LIKE sy-ucomm.
    MOVE okcode TO w_okcode.
    CLEAR okcode.
    CASE w_okcode.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE. " user_command_2000 INPUT
    *& Module alv_grid OUTPUT
    text
    MODULE alv_grid OUTPUT.
    IF w_docking_container IS INITIAL.
    PERFORM create_objects.
    PERFORM display_alv_grid.
    ENDIF.
    ENDMODULE. " alv_grid OUTPUT
    *& Form create_objects
    text
    --> p1 text
    <-- p2 text
    FORM create_objects.
    Ratio must be included in http://5..95
    CREATE OBJECT w_docking_container
    EXPORTING
    ratio = 95
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    others = 6.
    CREATE OBJECT w_alv_grid
    EXPORTING
    i_parent = w_docking_container.
    ENDFORM. " create_objects
    *& Form display_alv_grid
    text
    --> p1 text
    <-- p2 text
    FORM display_alv_grid.
    CALL METHOD w_alv_grid->set_table_for_first_display
    EXPORTING
    is_layout = is_layout
    CHANGING
    it_outtab = it_mara
    it_fieldcatalog = it_fieldcat
    EXCEPTIONS
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    OTHERS = 4.
    ENDFORM. " display_alv_grid
    *& Form get_data
    text
    --> p1 text
    <-- p2 text
    FORM get_data.
    SELECT * FROM mara UP TO 5 ROWS.
    CLEAR : wa_mara-color_line, wa_mara-color_cell.
    MOVE-CORRESPONDING mara TO wa_mara.
    ADD 1 TO wa_mara-counter.
    MOVE 'Blabla' TO wa_mara-free_text.
    IF wa_mara-counter = '0002'
    AND p_line = 'X'.
    Color line
    MOVE 'C410' TO wa_mara-color_line.
    ELSEIF wa_mara-counter = '0004'
    AND p_cell = 'X'.
    Color cell
    MOVE 'FREE_TEXT' TO wa_color-fname.
    MOVE '5' TO wa_color-color-col.
    MOVE '1' TO wa_color-color-int.
    MOVE '1' TO wa_color-color-inv.
    APPEND wa_color TO it_color.
    wa_mara-color_cell] = it_color[.
    ENDIF.
    APPEND wa_mara TO it_mara.
    ENDSELECT.
    ENDFORM. " get_data
    *& Form fill_catalog
    text
    --> p1 text
    <-- p2 text
    FORM fill_catalog.
    Colour code : *
    Colour is a 4-char field where : *
    - 1st char = C (color property) *
    - 2nd char = color code (from 0 to 7) *
    0 = background color *
    1 = blue *
    2 = gray *
    3 = yellow *
    4 = blue/gray *
    5 = green *
    6 = red *
    7 = orange *
    - 3rd char = intensified (0=off, 1=on) *
    - 4th char = inverse display (0=off, 1=on) *
    Colour overwriting priority : *
    1. Line *
    2. Cell *
    3. Column *
    DATA : w_position TYPE i VALUE '1'.
    CLEAR wa_fieldcat.
    MOVE w_position TO wa_fieldcat-col_pos.
    MOVE 'MATNR' TO wa_fieldcat-fieldname.
    MOVE 'MARA' TO wa_fieldcat-ref_table.
    MOVE 'MATNR' TO wa_fieldcat-ref_field.
    APPEND wa_fieldcat TO it_fieldcat.
    ADD 1 TO w_position.
    CLEAR wa_fieldcat.
    MOVE w_position TO wa_fieldcat-col_pos.
    MOVE 'MATKL' TO wa_fieldcat-fieldname.
    MOVE 'MARA' TO wa_fieldcat-ref_table.
    MOVE 'MATKL' TO wa_fieldcat-ref_field.
    Color column
    IF p_column = 'X'.
    MOVE 'C610' TO wa_fieldcat-emphasize.
    ENDIF.
    APPEND wa_fieldcat TO it_fieldcat.
    ADD 1 TO w_position.
    CLEAR wa_fieldcat.
    MOVE w_position TO wa_fieldcat-col_pos.
    MOVE 'COUNTER' TO wa_fieldcat-fieldname.
    MOVE 'N' TO wa_fieldcat-inttype.
    MOVE '4' TO wa_fieldcat-intlen.
    MOVE 'Counter' TO wa_fieldcat-coltext.
    APPEND wa_fieldcat TO it_fieldcat.
    ADD 1 TO w_position.
    CLEAR wa_fieldcat.
    MOVE w_position TO wa_fieldcat-col_pos.
    MOVE 'FREE_TEXT' TO wa_fieldcat-fieldname.
    MOVE 'C' TO wa_fieldcat-inttype.
    MOVE '20' TO wa_fieldcat-intlen.
    MOVE 'Text' TO wa_fieldcat-coltext.
    APPEND wa_fieldcat TO it_fieldcat.
    ENDFORM. " fill_catalog
    *& Form fill_layout
    text
    --> p1 text
    <-- p2 text
    FORM fill_layout.
    Field that identify color line in internal table
    MOVE 'COLOR_LINE' TO is_layout-info_fname.
    Field that identify cell color in inetrnal table
    MOVE 'COLOR_CELL' TO is_layout-ctab_fname.
    ENDFORM. " fill_layout
    Regards.
    Eshwar.

  • How to disable the first row of an ALV Grid?

    Hi All,
          I am working on a module pool programme. I am displaying ALV grid. I have to give some default values in the first row and disable it. I have to disable the third column and fourth row value. How can i achieve this?
    Help will be appreciated.
    Thanks,
    Ibrahim.

    here is the code i have written....but its not working...
    TYPES : BEGIN OF tp_grid,
            fname(25)   TYPE c,
            reqd,
            seqno       TYPE n,
            tl_styl TYPE lvc_t_styl,
            edit,
            END OF tp_grid.
    DATA : wl_styl TYPE lvc_s_styl.
    DATA : wl_layout TYPE lvc_s_layo.
    DATA : lt_celltab TYPE lvc_t_styl.
      READ TABLE tl_grid INTO wl_grid INDEX 1.
      wl_styl-fieldname = 'TAG NUMBER'.
      wl_styl-style = cl_gui_alv_grid=>mc_style_disabled.
      INSERT wl_styl INTO TABLE lt_celltab.
      INSERT LINES OF lt_celltab INTO  wl_grid-tl_styl index 1.
      MODIFY tl_grid INDEX 1 FROM wl_grid.
      wl_layout-stylefname = 'TL_STYL'.
      CALL METHOD l_initgrid->set_table_for_first_display
        EXPORTING
          is_layout                     = wl_layout
        CHANGING
          it_outtab                     = tl_grid
          it_fieldcatalog               = tl_init_fcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
    ENDFORM.                    " display_initgrid
    Help will be appreciated....
    Thanks,
    Ibrahim

  • How can I get the selected rows from two ALV grids at the same time?

    I have a program that uses two ALV grids in one dialog screen. I'm using the OO ALV model (SALV* classes).
    The user can select any number of rows from each grid. Then, when a toolbar pushbutton is pressed, I'd have to retrieve the selected rows from both grids and start some processing with these rows.
    It is no problem to assign event handlers to both grids, and use the CL_SALV_TABLE->GET_SELECTIONS and CL_SALV_SELECTIONS->GET_SELECTED_ROWS methods to find out which rows were marked by the user. Trouble is, this only works when I raise an event in each grid separately, for instance via an own function that I added to the grid's toolbar. So, I can only see the selected rows of the same grid where such an event was raised.
    If I try to do this in the PBO of the dialog screen (that contains the two grids), the result of CL_SALV_SELECTIONS->GET_SELECTED_ROWS will be empty, as the program does not recognize the marked entries in the grids. Also, an event for grid1 does not see the selected rows from grid2 either.
    As it is right now, I can have an own button in both grid's toolbar, select the rows, click on the extra button in each grid (this will tell me what entries were selected per grid). Then, I'd have to click on a third button (the one in the dialog screen's toolbar), and process the selected rows from both grids.
    How can I select the rows, then click on just one button, and process the marked entries from both grids?
    Is it somehow possible to raise an event belonging to each grid programmatically, so that then the corresponding CL_SALV_SELECTIONS->GET_SELECTED_ROWS will work?
    Thanks.

    Hello Tamas ,
    If I try to do this in the PBO of the dialog screen (that contains the two grids), the result of CL_SALV_SELECTIONS->GET_SELECTED_ROWS will be empty, as the program does not recognize the marked entries in the grids. Also, an event for grid1 does not see the selected rows from grid2 either.--->
    is it possible to  have a check box in each grid  & get the selected lines in PAI of the screen ?
    regards
    prabhu

  • Can we control the output screen area of alv grid list

    Hi All,
    can we control the screen area of grid control in alv's , not using ooalv's. By default grid list is displaying in the whole screen, but i want  to display this grid list in specific area in output screen , not in full screen, how to set these screen area for this grid control. Please let me know.

    Hi,
    If you use the following parameters
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
    you will get the output in the size expected but it will be in the form of a pop up box and a blank screen at the back and user action like cancel etc will take you back to the selection screen.

  • Row Selection in ALV Grid created using CL_GUI_ALV_GRID

    Hi,
    I have ALV grid using cl_gui_alv_grid. I want to capture the row selection and display the selected rows in 2nd ALV grid (using cl_gui_alv_grid).
    Method CALL METHOD Grid->get_selected_rows giving right no. of selected records first time and process these records by POST button and hence shows these records in next alv grid. but when i came back to 1st ALV by pressing BACK button on 2nd ALV then if I again select records on the same 1st ALV grid the same Method CALL METHOD Grid->get_selected_rows fires again. but this times it wouldn't give the selected records. I mean first time this gives me correct no. of selected records but 2nd time wouldn't.
    how do I capture the row selection.?
    Kindly suggest me. helpful answer will be appreciated.
    Thanx in Advance.
    Robin

    Hi,
    Write this code, you have to free the container.
    MODULE user_command_0101 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
           c_container->free( ).
           c_container1->free( ). " this is the container of secondary list.
           clear: r_grid,  r_grid1, c_container, c_container1.
          LEAVE TO SCREEN 100.
      ENDCASE.
    Regards and Best wishes.

  • Change  row color on alv

    hi
    how can i change row color on alv.

    Hi
    thanks your answer  Uday Gubbala         
    i was examinated this link  [https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/abapWebDynproALV-ChangeCellColourbasedonContent]
    but i don't  do   this row  wd_this->m_alv_model = lo_value. error message : m_alv_model unknow.
    and this sample change column color but i want to row
    Thanks.

  • How to give colors to the top-of-page in ALV Grid

    How to give colors to the top-of-page in ALV Grid
    in table GT_LIST_TOP_OF_PAGE i am filling 3 rows ,i need 3 different colors to be displyed on top-of-page(one color to one row)
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    I_LOGO = 'ENJOYSAP_LOGO'
    IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
    please help mee

    HI Kranthi,
    Check out teh foll. link,
    http://www.sapfans.com/forums/viewtopic.php?t=52107
    Hope this helps.

  • How do I programaticly change the header BG color on a multiline listbox

    How do I programaticly change the header BG color on a multiline listbox

    Hi,
    If you mean the multicolumn listbox then you have to create the its property node on the diagram (right click on the item and select "Create->property node" from pop-up menu). Then you have to select two properties:
    "Active Cell"
    "Cell Background color".
    You can do it by expanding prperty node to 2 rows and right clicking on each row. Then select "Properties" from pop-up menu and the appropriate property.
    Then you have to set-up "active cell" to the appropriate coordinates of the column header. (row=-1; column=N or column=-2 if you want to change the colors of all headers).
    Now you have to connect the appropriate colorbox or numeric variable to "Cell Background color" property node and run the program.
    I've attached the example.
    Good luck/
    Ole
    g Chutko.
    Attachments:
    Color.vi ‏15 KB

  • CSS issue when changing the table row height to 16px

    Hello,
    After changing the table row height through css like this:
    .table-row-cell, .table-cell {
    -fx-cell-size: 16;
    the table rows are correctly displayed with a 16px height but the cell bottoms seem to be incorrectly set.
    For example the following css style (a red 3px bottom border):
    .table-cell {
    -fx-border-width: 0 0 3 0;
    -fx-border-color: red;
    doesn't work anymore with the new row height whereas it works with the 24px standard row height.
    While investigating with Scenic View, I noticed that changing the row height changes the TableRow layoutBounds height (from 24px to 16px so that's ok) but not the boundsInParent height which remains to 27px. I think it should become 19px (16 + 1.5 + 1.5). I don't know if it's a bug.
    Anyway, any help making the css red border working for a 16px row height would be greatly appreciated.
    Regards,
    Bruno.

    Q: Would this help to just use absolute div tags and give me 'ABSOLUTELY ABSOLUTE' positioning?
    No.  APDivs are not a good primary layout method.  Use default CSS positioning (which is no positioning at all).  Align page elements with margins, floats and padding.
    See example -- 2-Column CSS Layout with Grids
    (View Page Source in your browser to see the code)
    http://alt-web.com/TEMPLATES/2-col-fixed-with-grid.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How to Change the position of Column in ALV report

    Hi Follks,
        Is is possible to change the position of column in ALV report?.If yes then how?
        Basically my requirement is, that user want afacility where , he should be able to change the position
        of column aftre he runs the report.
        Eg: After running the report , user felt that column 5 should be at position 2 , in that case he should   
               be able to drag column 5 at position 2 and vice versa.
        Please help me, how to solve this issue.
        Note : I am using NW 7.0 SP 9
        Regards
        PG
    Edited by: PG on Apr 13, 2009 11:10 AM

    HI PG,
    do below whie filling the filed catlog
    wa_fieldcat-fieldname        = 'Field1".
    wa_fieldcat-COL_POS = '1',
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname         = 'Field2".
    wa_fieldcat-COL_POS = '2',
    wa_fieldcat-fieldname         = 'Field3".
    wa_fieldcat-COL_POS = '3',
    Thanks!

  • How can I change the font and color of an email signature?

    How can i change the font and color of an email signature?

    Mail > Preferences > Signature
    Highlight the Signature.
    Click Format in the menu bar and select " Show Fonts".
    Select the Font.
    Highlight the Text.
    Click Format in the menu bar and select " Show Colors".
    Select the color.
    Mail > Preferences > Composing > Message Format:  Rich Text
    Best.

  • How do I change the default window color?

    Having white screens is too bright for my eyes!! I always change the default window color in Windows (hiss hiss) to a light shade of gray and that setting carries thru to all windows (i.e. Word, Excel, notepad....). Is it possible to do a similar thing with Tiger? I see that I can choose between a couple of "schemes" from a "Desktop and Dashboard Settings" area (or similar - i don't have my mac here now so can't look to see the proper name) but I see no way to alter colors within those schemes. If you can tell me how to change the default color for my windows I will be awfully happy. thanks.

    Personally, I wouldn't trust it, and I don't hesitate to try these things most of the time even though they sometimes cause problems. But I've used Unsanity products before and they all require installing a preference pane called APE; Application Enhancement module, and that thing caused me lots of problems for my system, lots of crashes and flakiness. I won't use it again.
    But I'm sure there are lots of people using it happily, but if you don't feel confident in dealing with system problems stay away from anything that adds a system preference pane or goes up in the top menu bar at the top (Apple icons excepted) or has to start up with the system.

  • I want to change the size and color of text in call out boxes and text boxes. How can I do this? Jack

    I want to change the size and color of text in call out boxes and text boxes. How can I do this? Jack

    Highlite the text inside the text box and then press Ctrl+E.

  • How do I change the tab background color in Firefox 4?

    I just upgraded to Firefox 4. Tabs are now fine black font on dark grey background -- very hard to read. How do I change the tab background color?
    I have searched and the closest I can come is some instructions for modifying .css files, and it is not clear that those instructions will impact the tab background color.
    Thanks in advance for your help.

    Similar question asked by TH received another response.
    Here is the address of that question and answer:
    https://support.mozilla.com/en-US/questions/804464?s=change+tab+color+firefox+4&as=s
    I like the solution recommended there.
    Added information - after several days experience, I notice that some tabs occasionally revert to the original dark grey. So I am still looking for a better solution, ideally within Firefox rather than via add on. This seems like a basic setting for the browser that should be easy to change, rather than something so complex that I need an add on to change it. Or just build it without such a dark grey background to begin with and I would not need to change it.

Maybe you are looking for

  • Inconsistent date formats between Rich Client and HTML client

    Hey All, Just wondering if anyone has come across an issue with inconsistent date formats from a universe based on an MS SSAS 2012 database connection in 4.x? The value of the date is returned as a string from the query but the object data type has b

  • Automation testing Flash 8

    Our project is currently faced with having to build an automation testing framework for our flash games. We are currently using Flash 8, flex, and ActionScript 2, but we are wrapping everything for easy transition into Flash 9 and AS 3 as soon as it

  • IPhone 5 won't start up or charge

                    My friend had been given a iphone 5 that doesn't work. It will not start up and when plugging it into the wall charger the electric arc symbol had came on and cycled. I had let it charge overnight and now the phone doesn't show the sy

  • HTTP Connection to ABAP System - Query String Not Allowed message

    Hi All, We are trying to create HTTP Connection to ABAP System on a SAP ECC system. Following entries are added 1 Connection Type: H 2 Target Host: Host name 3 Service Number: HTTP Port name 4 Path Prefix: /sap/XI/engine/?type=entry It is not allowin

  • How to check Organizational Unit

    Hi experts, How many ways are there to check the organizational unit of an User? (i need Tcodes or tables to check) Thanks in advance