Alv cell display

hi all,
In alv ,how can we ,de highlight the cell border when no data is available for the output field.
Anitha

Hi,
To my knowledge, we cannot highlight the border of the cell, Instaed u can fill the Cell with some color where there is no data.
Is that your requirement.?
Revart back,
regards
Naveen

Similar Messages

  • How to give color of particular cell in alv list display for dynamic table

    Dear Experts,
    i want to give color of a particular cell in alv list display (reuse_alv_list_display). Here i am passing data through dynamic table?

    Hi,
    Se this:
    DATA: lt_color    TYPE lvc_t_scol WITH HEADER LINE.
    DATA: BEGIN OF data_tab OCCURS 0.
             tabcolor     TYPE   lvc_t_scol,
          END OF data_tab.
    * Befone ALV call
      alv_layout-coltab_fieldname  = 'TABCOLOR'.
    * For each row in data_tab
    REFRESH: lt_color.
    CLEAR: lt_color.
    lt_color-color-col = 6.
    lt_color-color-int = 1.
    lt_color-fname = FIELD1'.
    APPEND lt_color.
    lt_color-color-col = 2.
    lt_color-color-int = 0.
    lt_color-fname = 'FIELD2'.
    APPEND lt_color.
    data_tab-tabcolor[] = lt_color[].
    append data_tab.
    Best regards,
    Leandro Mengue

  • EDIT THE FIELV VALUE IN ALV GRID DISPLAY

    Hi Guru ,
    How can I edit the value of a particular one or two fields in ALV GRID DISPLAY .
    Please reply me

    hi,
    1.Set status of all cells to editable using the layout structure.
    2.Use SET_READY_FOR_INPUT to activate the edit feature initially.
       (state "editable activated").
    3.Use IS_READY_FOR_INPUT to fetch current substate of editable cells.
    4.Use SET_READY_FOR_INPUT to switch between the substates.
        CALL METHOD g_grid->set_table_for_first_display
             EXPORTING i_structure_name = 'SFLIGHT'
                       is_layout        = gs_layout
             CHANGING  it_outtab        = gt_outtab.
    *§2.Use SET_READY_FOR_INPUT to allow editing initially.
    *   (state "editable and ready for input").
        CALL METHOD g_grid->set_ready_for_input
              EXPORTING i_ready_for_input = 1.
    *Use IS_READY_FOR_INPUT to fetch current substate of editable cells.
      IF g_grid->is_ready_for_input( ) EQ 0.
    *Use SET_READY_FOR_INPUT to switch between the substates.
        CALL METHOD g_grid->set_ready_for_input
                         EXPORTING i_ready_for_input = 1.
      ELSE.
        CALL METHOD g_grid->set_ready_for_input
                         EXPORTING i_ready_for_input = 0.
      ENDIF.

  • ALV Grid display Drop down lists

    I have a alv grid display with a few records say 5 records which display 5 columns 5 rows. I want to know is it possible to have drop down lists for each column row cell but with different drop down values for each record.
    So 5 columns 5 rows 25 cells but each cell have different drop down values.
    Any info would be appreciated

    Hi,
    Thanks for the replies.
    Currently i do understand how to get the drop down handle per column and add values but this will only show the drop down values for each cell the same for each column.
    What i am trying is that each cell of each colum of each row must have different drop down values.
    Example below: Where the ; is devider for new value as a drop down value for that cell
    Record-- column1---column2   column3  column4  column5
      1 -
    a;b;c -
    d;e;f -
    g;h;i -
    k;l;m -
    o;i
      2 -
    l;k;j -
    i;j;g----
    q;e;r -
    o;u;g -
    g;d;e

  • Downloading format breaking line in ALV Grid display

    Dear All,
    When i am downloading data from from table or using spool request, why after few line item many data comes into one cell.
    I have selected ALV Grid display and taking output in *.xls format.
    Please find the attached screen shot for your reference
    Regards
    Sanjeet Kumar

    Hi,
    Check these links for more details -
    http://www.sapfans.com/forums/viewtopic.php?t=84933
    http://www.sapfans.com/forums/viewtopic.php?t=69878
    ashish

  • Maximum number of character we can print in a column uing ALV grid display

    Hi frnds,
    My requirment is to print 500 charcter data in a column using ALV grid display.
    Could any body tell me is it possible and the maximum character it can i print in a column using ALV grid dispaly.
    Regards,
    Sandipan

    Hi Sandipan,
    refer notes 857823, 910300 and 959775. All these say there is a limitation of 128 characters.
    857823 - ALV grid: Strings with a maximum of 128 characters
    Symptom
    Entries in cells of the type CHAR or string are truncated after 128
    characters in the SAP GUI.
    also refer,
    ALV Grid Control (cl_gui_alv_grid), function module (Full-screen) Grid
    (Reuse_alv_grid_display, SAPLSLVC_FULLSCREEN), SAPGUI, back end, front end
    Cause and Prerequisites
    The data table that is sent to the front end only allows character values
    with the length 128.
    Solution
    This is the standard system behavior and cannot be changed.

  • 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.

  • Colors in Dynamic ALV table display

    Hello All,
    I have dynamic ALV table display in which i created the columns dynamically and finally binded that created node and diplayed the table ..
    Now what i want to do is depending on some condition i need to change the colors in the table display..
    I tried to set the color in this way inside the loop .
                     if lv_phase  = '3'.
                   lr_column->set_cell_design( CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-badvalue_medium ).
                     else.
                    lr_column->set_cell_design( CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-standard ).
                   endif.
    This piece of code either changes all the coloumns into one color only why it is not changing the color based upon the condition . I am unable to understand..
    Please help me in this...Do i need to some thing else..

    Solved by creating a new column called cell design ... and settign the set_cell_design_fieldname ...
    This solved my Problem ..

  • Query regarding SAP ABAP ALV List display

    Hi All,
    Have a requirement where in, when a user double clicks on a particular field as shown below, the particular cell where he has clicked has to be changed to editable and input mode. I am using ALV LIST DISPLAY.
    Please reply me if someone has worked on similar requirement.

    Hi Priya,
    Check this link: http://www.saptechnicl.com/Tutorials/ALV/Edit/demo.htm. I think this is exactly what you require.
    Hope this helps! Do let me know if you need anything else!!
    (rename "technicl" as "technical", my apologies for the typo).
    Cheers,
    Shailesh.

  • How to display field of 250 character length using ALV Grid display

    Hello Experts,
    Currently I'm using 4.6 version.
    I got to insert a new field of length 250 characters into an existing ALV grid display.
    I passed a value of length 250 chars into the field and assigned it to the itab passing to the fn module
    'REUSE_ALV_GRID_DISPLAY'.
    But in the ALV display I am able to view only 132 chars only. I increased the line-size of the report also accordingly. But I'm unable to view all the 250 chars.
    Kindly help me out in fixing this issue.

    you just can't do that
    I suggest that you put the first characters in cell and allow user to double-click on cell in order to view the full value in a popup window

  • ALV GRID DISPLAY USING FACTORY METHODS

    Hi all
    I am using factory methods for my alv grid display.
    I have a list of functionalities, for which i am not able to find a correct method..
    1) Header of alv(with all the values of the selection-screen)
    2)How to give text to a subtotal(ed) column, i.e. if i subtotal a qty field against a sorted field, i want to display ==> Nett Wt. = 123.00 (for first header entry) and so on for each header entry.
    3)how to remove the zeroes from a quantity field?
    4) Displaying the cells as blanks where data is 0( for quantity fields if i have a cell with zero value, it should be blank.)
    5) double click on a cell to open a transaction with the cell's value.
    Any help on this would be appreciated.
    Points will be rewarded for sure...
    Thanks & Regards
    Ravish Garg

    Hello Ravish
    Regarding the display of zero values as empty cells have a look at my <i>modified </i>sample report <b>ZUS_SDN_CL_SALV_TABLE_INTERACT</b>.
    *& Report  ZUS_SDN_CL_SALV_TABLE_INTERACT
    REPORT  zus_sdn_cl_salv_table_interact.
    TYPE-POOLS: abap.
    DATA:
      gt_knb1        TYPE STANDARD TABLE OF knb1.
    DATA:
      go_table       TYPE REF TO cl_salv_table,
      go_events      TYPE REF TO cl_salv_events_table.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_double_click FOR EVENT
              if_salv_events_actions_table~double_click
              OF cl_salv_events_table
              IMPORTING
                row
                column.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_double_click.
    *   define local data
        DATA:
          lo_table   TYPE REF TO cl_salv_table,
          lt_orders  TYPE STANDARD TABLE OF bapiorders,
          ls_knb1    TYPE knb1.
        READ TABLE gt_knb1 INTO ls_knb1 INDEX row.
        IF ( syst-subrc = 0 ).
          CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
            EXPORTING
              customer_number             = ls_knb1-kunnr
              sales_organization          = '1000'
    *         MATERIAL                    =
    *         DOCUMENT_DATE               =
    *         DOCUMENT_DATE_TO            =
    *         PURCHASE_ORDER              =
    *         TRANSACTION_GROUP           = 0
    *         PURCHASE_ORDER_NUMBER       =
    *       IMPORTING
    *         RETURN                      =
            TABLES
              sales_orders                = lt_orders.
    *     Create ALV grid instance
          TRY.
              CALL METHOD cl_salv_table=>factory
    *        EXPORTING
    *          LIST_DISPLAY   = IF_SALV_C_BOOL_SAP=>FALSE
    *          R_CONTAINER    =
    *          CONTAINER_NAME =
                IMPORTING
                  r_salv_table   = lo_table
                CHANGING
                  t_table        = lt_orders.
            CATCH cx_salv_msg .
          ENDTRY.
          lo_table->display( ).
    **      SET PARAMETER ID 'BUK' FIELD ls_knb1-bukrs.
    **      SET PARAMETER ID 'KUN' FIELD ls_knb1-kunnr.
    **      CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDMETHOD.                    "handle_double_click
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    START-OF-SELECTION.
      SELECT        * FROM  knb1 INTO TABLE gt_knb1
             WHERE  bukrs  = '1000'.
    * Create ALV grid instance
      TRY.
          CALL METHOD cl_salv_table=>factory
    *    EXPORTING
    *      LIST_DISPLAY   = IF_SALV_C_BOOL_SAP=>FALSE
    *      R_CONTAINER    =
    *      CONTAINER_NAME =
            IMPORTING
              r_salv_table   = go_table
            CHANGING
              t_table        = gt_knb1.
        CATCH cx_salv_msg .
      ENDTRY.
    * Create event instance
      go_events = go_table->get_event( ).
    * Set event handler
      SET HANDLER:
        lcl_eventhandler=>handle_double_click FOR go_events.
      PERFORM modify_columns.
      go_table->display( ).
    END-OF-SELECTION.
    *&      Form  MODIFY_COLUMNS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM modify_columns .
    * define local data
      DATA:
        lt_dfies        TYPE ddfields,
        ls_dfies        TYPE dfies,
        lo_typedescr    TYPE REF TO cl_abap_typedescr,
        lo_strucdescr   TYPE REF TO cl_abap_structdescr,
        lo_tabledescr   TYPE REF TO cl_abap_tabledescr,
        lo_columns      TYPE REF TO cl_salv_columns_table,
        lo_column       TYPE REF TO cl_salv_column.
      lo_columns = go_table->get_columns( ).
      lo_typedescr = cl_abap_typedescr=>describe_by_data( gt_knb1 ).
      lo_tabledescr ?= lo_typedescr.
      lo_strucdescr ?= lo_tabledescr->get_table_line_type( ).
      lt_dfies = lo_strucdescr->get_ddic_field_list( ).
      LOOP AT lt_dfies INTO ls_dfies.
        lo_column = lo_columns->get_column( ls_dfies-fieldname ).
        IF ( ls_dfies-keyflag = abap_true ).
          CONTINUE.
        ELSEIF ( ls_dfies-fieldname = 'WEBTR' ).  " Bill of ex. limit
          lo_column->set_zero( if_salv_c_bool_sap=>true ).   " display zero
          lo_column->set_zero( if_salv_c_bool_sap=>false ).  " hide zero
        ELSE.
          lo_column->set_technical( if_salv_c_bool_sap=>true ).  " hide col
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " MODIFY_COLUMNS
    Regards
      Uwe

  • Alv cell color with FM

    hi ,
    can one send me program for alv cell color with help of function modules
    kiran

    Hi Kiran .
    <b>1.Cell Color.</b>
    While Building Fieldcatalog ,there is one field called
    EMPHASIZE.You have to set like this .
    i_field-emphasize = 'C26'.
    <b>2.ROW COLOR.</b>
    Have a look at this example .
    <b>a</b>.Define one variable COLOR in ur main ITAB.
    <b>b</b>.Fill it .
    <b>c</b>.Pass this info.
      w_layout-info_fieldname = 'COLOR'.
    <b>d</b>. display it .
    *& Report  ZGRID_COLOR                                                 *
    REPORT  zgrid_color                             .
    TYPE-POOLS slis.
    DATA: BEGIN OF i_pa0001 OCCURS 0,
    <b>        color(3) TYPE c,</b>
            pernr TYPE pa0001-pernr,
            subty TYPE pa0001-subty,
          END OF i_pa0001.
    DATA :i_field TYPE slis_t_fieldcat_alv,
          w_field LIKE LINE OF i_field,
          w_layout TYPE slis_layout_alv.
    START-OF-SELECTION .
      PERFORM get_data.
      PERFORM fieldcat.
      PERFORM layout_build.
      PERFORM dispaly .
    *&      Form  fieldcat
    FORM fieldcat .
      CLEAR :w_field,i_field[].
      w_field-fieldname = 'PERNR'.
      w_field-tabname   = 'I_PA0001'.
      w_field-seltext_m = 'PERNR'.
      APPEND w_field TO i_field.
      CLEAR w_field.
      w_field-fieldname = 'SUBTY'.
      w_field-tabname   = 'I_PA0001'.
      w_field-seltext_m = 'SUBTY'.
      APPEND w_field TO i_field.
      CLEAR w_field.
    ENDFORM.                    " fieldcat
    *&      Form  dispaly
    FORM dispaly .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       i_callback_program                = 'ZGRID_COLOR'
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
    <b>   is_layout                         = w_layout</b>
       it_fieldcat                       = i_field
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = i_pa0001
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " dispaly
    *&      Form  get_data
    FORM get_data .
      SELECT pernr subty
      FROM pa0001
      INTO CORRESPONDING FIELDS OF TABLE i_pa0001
      UP TO 10 ROWS.
    LOOP AT i_pa0001.
        IF sy-tabix GT 5.
      <b>    i_pa0001-color = 'C51'.</b>
          MODIFY i_pa0001 INDEX sy-tabix.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " get_data
    *&      Form  layout_build
    FORM layout_build .
    <b>  w_layout-info_fieldname = 'COLOR'.</b>
    ENDFORM.                    " layout_build
    I hope it helps u .
    <b>Thanks,
    Venkat.O</b>

  • Color in alv ( cell)

    hello
    i tried to color only some cells in alv but i want just what i write will be colored and not all the row
    for exmaple:
    if i have in one row the value 500 i want just the 500 will have color and not all the row
    thanks

    Hi,
    here is another sample report..
    report zc9_alvgrid_final_now .
    *PROGRAM ON ALV-GRID.
    *TABLE DECLARATION.
    *tables:zc9_employee, zc9_empspec.
    type-pools: slis. "ALV Declarations
    data: celcol1 type slis_specialcol_alv.
    data: syprindex type i value 1.
    *INTERNAL TABLE DECLARATION.
    data: begin of itab_alv1 OCCURS 0,
    emp_id(5) TYPE C,
    emp_name(20) TYPE C,
    certified(3) TYPE C,
    celcol type slis_t_specialcol_alv,
    selected(1) type c,
    end of itab_alv1.
    data: begin of itab_alv3 OCCURS 0,
    emp_id(5) TYPE C,
    emp_name(20) TYPE C,
    certified(3) TYPE C,
    end of itab_alv3.
    data: mulrowtab1 like line of itab_alv1.
    data: mulrowtab like table of itab_alv1.
    data: wa_emp_name like zc9_employee-emp_name.
    data: mulrowindex type i value 1.
    data: maxlines type i.
    data: wa like line of itab_alv1.
    data: wa_itab like line of itab_alv1.
    data: ok-code like sy-ucomm.
    data: ok-code1 like sy-ucomm.
    data: ind type i.
    data: newvar type disvariant.
    data: tempvar type i value 0.
    data: gd_repid like sy-repid.
    *ALV-GRID DATA DECLARATION.
    data: fieldcatalog type slis_t_fieldcat_alv.
    * FIELD CATALOG.
    data: fieldcatalog1 type slis_fieldcat_alv.
    data: gd_layout type slis_layout_alv.
    * LAYOUT DECLARATION.
    data: id_color type c.
    data: eventtable type slis_t_event.
    data: wa_event type slis_alv_event.
    data: newvariant type disvariant.
    data: i_exclude type slis_t_extab, "ALV Exclusion Table
    wa_exclude type slis_extab. "ALV Exclusion Structure
    *VARIANT DECLARATION.
    data: vartype like disvariant.
    data: var_save(1) type c.
    data: w_exit(1) type c.
    data: wx_variant like disvariant.
    data: variant_para like disvariant-variant.
    data: itab_emp like table of zc9_employee.
    data: itab_emp1 like line of itab_emp.
    data: itab_spec like table of zc9_empspec.
    data: itab_spec1 like line of itab_spec.
    data: ls_sort type slis_sortinfo_alv.
    data: lt_sort type slis_t_sortinfo_alv.
    parameter: LAYOUT like disvariant-variant.
    * INITIALIZATION.
    gd_repid = sy-repid.
    *CALLING SELECTION SCREEN-SUBROUTINES.
    *AT SELECTION SCREEN
    at selection-screen output.
    perform init_variant.
    perform variant_default using LAYOUT.
    at selection-screen on value-request for LAYOUT.
    perform variant_select using LAYOUT.
    at selection-screen.
    perform variant_fill.
    newvar = vartype.
    * LAYOUT DECLARATION.
    gd_layout-zebra = 'X'.
    gd_layout-no_input = 'X'.
    gd_layout-colwidth_optimize = 'X'.
    gd_layout-box_fieldname = 'SELECTED'.
    gd_layout-box_tabname = 'ITAB_ALV1'.
    gd_layout-totals_text = 'Totals'(201).
    gd_layout-coltab_fieldname = 'CELCOL'.
    gd_layout-f2code = 'DISP'. "Sets fcode for when double
    * "click(press f2)
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    exporting
    i_program_name = gd_repid
    i_internal_tabname = 'ITAB_ALV3'
    i_inclname = gd_repid
    changing
    ct_fieldcat = fieldcatalog
    *FIELD-CATALOG DECLARATION.
    loop at fieldcatalog into fieldcatalog1.
    case fieldcatalog1-fieldname.
    when 'EMP_ID'.
    fieldcatalog1-seltext_m = 'EMP-ID'.
    fieldcatalog1-col_pos = 0.
    fieldcatalog1-outputlen = 10.
    fieldcatalog1-emphasize = 'C2'.
    fieldcatalog1-key = 'X'.
    fieldcatalog1-do_sum = 'X'.
    fieldcatalog1-sp_group = 'A'.
    when 'EMP_NAME'.
    fieldcatalog1-fieldname = 'EMP_NAME'.
    fieldcatalog1-seltext_m = 'EMPLOYEE_NAME'.
    fieldcatalog1-col_pos = 1.
    fieldcatalog1-emphasize = 'C2'.
    fieldcatalog1-hotspot = 'X'.
    fieldcatalog1-key = 'X'.
    fieldcatalog1-outputlen = 20.
    fieldcatalog1-sp_group = 'B'.
    when 'CERTIFIED'.
    fieldcatalog1-fieldname = 'CERTIFIED'.
    fieldcatalog1-seltext_m = 'CERTIFIED'.
    fieldcatalog1-col_pos = 2.
    fieldcatalog1-emphasize = 'C2'.
    fieldcatalog1-key = 'X'.
    fieldcatalog1-sp_group = 'C'.
    endcase.
    modify fieldcatalog from fieldcatalog1.
    endloop.
    *SORTING FIELD CATALOG FIELD.
    ls_sort-spos = 1.
    ls_sort-fieldname = 'EMP_ID'.
    ls_sort-up = 'X'.
    ls_sort-subtot = 'X'.
    append ls_sort to lt_sort.
    *POPULATING THE INTERNAL TABLE.
    ITAB_ALV1-EMP_ID = '15530'.
    ITAB_ALV1-EMP_NAME = 'THILAKJI'.
    ITAB_ALV1-CERTIFIED = 'YES'.
    APPEND ITAB_ALV1.
    ITAB_ALV1-EMP_ID = '15531'.
    ITAB_ALV1-EMP_NAME = 'MATHEWS'.
    ITAB_ALV1-CERTIFIED = 'NO'.
    APPEND ITAB_ALV1.
    ITAB_ALV1-EMP_ID = '15532'.
    ITAB_ALV1-EMP_NAME = 'JAISI'.
    ITAB_ALV1-CERTIFIED = 'YES'.
    APPEND ITAB_ALV1.
    ITAB_ALV1-EMP_ID = '15533'.
    ITAB_ALV1-EMP_NAME = 'ADAMS'.
    ITAB_ALV1-CERTIFIED = 'YES'.
    APPEND ITAB_ALV1.
    ITAB_ALV1-EMP_ID = '15534'.
    ITAB_ALV1-EMP_NAME = 'PAUL'.
    ITAB_ALV1-CERTIFIED = 'NO'.
    APPEND ITAB_ALV1.
    * FORM TO MAKE THE CELL CONTENTS INVISIBLE.
    PERFORM INVISIBLE_CELL_CONTENTS.
    *EXCLUDE-DECLARATION.
    clear wa_exclude.
    wa_exclude-fcode = '&VEXCEL'.
    append wa_exclude to i_exclude.
    * FUNCTION MODULE CALL-REUSE-ALV-GRID-DISPLAY.
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
    i_callback_program = gd_repid
    i_callback_top_of_page = 'TOP-OF-PAGE2' "see FORM
    i_callback_user_command = 'USER_COMMAND'
    i_grid_title = 'ALV GRID-EMPLOYEE'
    is_layout = gd_layout
    it_fieldcat = fieldcatalog[]
    it_sort = lt_sort
    it_excluding = i_exclude
    i_callback_pf_status_set = 'SET_PF_STATUS' "see FORM
    i_save = 'A'
    is_variant = newvar
    tables
    t_outtab = itab_alv1
    exceptions
    program_error = 1
    others = 2.
    * Form TOP-OF-PAGE *
    * ALV Report Header *
    form top-of-page2.
    data: header type slis_t_listheader,
    wa type slis_listheader,
    infield like wa-info,
    nline type i,
    nlinechar(2) type c.
    *TITLE AREA
    wa-typ = 'H'.
    wa-info = 'EMPLOYEE-DETAILS'.
    append wa to header.
    *BELOW AREA.
    wa-typ = 'S'.
    wa-key = 'DATE'.
    concatenate sy-datum+6(2) '.' sy-datum+4(2) '.' sy-datum(4) into wa-info
    append wa to header.
    *NEXT LINE.
    wa-typ = 'S'.
    describe table itab_alv1 lines nline.
    nlinechar = nline.
    wa-key = 'TABLE DETAILS'.
    concatenate 'NO.of.Lines:' nlinechar into wa-info separated by space.
    append wa to header.
    call function 'REUSE_ALV_COMMENTARY_WRITE'
    exporting
    it_list_commentary = header
    i_logo = 'ALVLOGO'.
    endform.
    * FORM SET_PF_STATUS *
    form set_pf_status using rt_extab type slis_t_extab.
    set pf-status 'NEWSTATUS123'.
    endform.
    * FORM USER_COMMAND *
    * --> R_UCOMM *
    * --> RS_SELFIELD *
    form user_command using r_ucomm like sy-ucomm
    rs_selfield type slis_selfield.
    * Check function code
    case r_ucomm.
    when 'SELM'.
    loop at itab_alv1 where selected = 'X'.
    move-corresponding itab_alv1 to mulrowtab1.
    append mulrowtab1 to mulrowtab.
    endloop.
    message i029(zmc).
    clear mulrowtab1.
    when 'DISP'.
    * Check field clicked on within ALVgrid report
    if rs_selfield-fieldname = 'EMP_ID'.
    * Read data table, using index of row user clicked on
    read table itab_alv1 into wa index rs_selfield-tabindex.
    ind = rs_selfield-tabindex.
    message i025(zmc) with rs_selfield-fieldname .
    elseif rs_selfield-fieldname = 'EMP_NAME'.
    read table itab_alv1 into wa index rs_selfield-tabindex.
    ind = rs_selfield-tabindex.
    message i028(zmc) with rs_selfield-fieldname wa-emp_name .
    endif.
    when 'EXIT'.
    * MESSAGE I026(ZMC).
    leave program.
    when 'CHAN'.
    * READ TABLE itab_alv1 INTO wa INDEX rs_selfield-tabindex.
    read table itab_alv1 into wa index rs_selfield-tabindex.
    call screen 1551.
    tempvar = 1.
    *CALLING THE GRID DISPLAY FUNCTION AGAIN.
    * FUNCTION MODULE CALL-REUSE-ALV-GRID-DISPLAY.
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
    i_callback_program = gd_repid
    i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
    i_callback_user_command = 'USER_COMMAND'
    i_grid_title = 'ALV GRID-EMPLOYEE'
    is_layout = gd_layout
    it_fieldcat = fieldcatalog[]
    it_events = eventtable
    i_save = 'X'
    it_excluding = i_exclude
    i_callback_pf_status_set = 'SET_PF_STATUS' "see FORM
    is_variant = newvar
    tables
    t_outtab = itab_alv1
    exceptions
    program_error = 1
    others = 2.
    r_ucomm = '&F03'.
    when '&F03'.
    * IF TEMPVAR = 1.
    leave program.
    endcase.
    clear r_ucomm.
    endform.
    *& Module USER_COMMAND_1551 INPUT
    * text
    module user_command_1551 input.
    data: syprtabix type i.
    case ok-code.
    when 'QUIT'.
    set screen 0.
    leave screen.
    clear itab_alv1.
    sy-tabix = 0.
    when 'UPDA'.
    loop at itab_alv1 where emp_id = wa-emp_id.
    syprtabix = sy-tabix.
    endloop.
    modify itab_alv1 from wa index syprtabix transporting emp_id emp_name
    certified.
    message i027(zmc).
    leave screen.
    endcase.
    endmodule. " USER_COMMAND_1551 INPUT
    *& Module STATUS_1551 OUTPUT
    * text
    module status_1551 output.
    set pf-status 'ZNEWSTATUS'.
    * SET TITLEBAR 'xxx'.
    endmodule. " STATUS_1551 OUTPUT
    *FORM FOR SELECTING LAYOUT.
    form variant_select using form_varpar.
    call function 'LVC_VARIANT_F4'
    exporting
    is_variant = vartype
    * IT_DEFAULT_FIELDCAT =
    i_save = var_save
    importing
    e_exit = w_exit
    es_variant = wx_variant
    exceptions
    not_found = 1
    program_error = 2
    others = 3
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    if w_exit is initial.
    vartype-variant = wx_variant-variant.
    form_varpar = wx_variant-variant.
    endif.
    endform.
    *& Form init_variant
    form init_variant.
    clear: vartype.
    gd_repid = sy-repid.
    vartype-report = sy-repid.
    vartype-username = sy-uname.
    var_save = 'A'. "All types
    endform.
    *& Form variant_default
    form variant_default using p_variant.
    wx_variant = vartype.
    if not p_variant is initial.
    wx_variant-variant = p_variant.
    endif.
    call function 'LVC_VARIANT_DEFAULT_GET'
    exporting
    i_save = var_save
    changing
    cs_variant = wx_variant
    exceptions
    wrong_input = 1
    not_found = 2
    program_error = 3
    others = 4.
    case sy-subrc.
    when 0.
    p_variant = wx_variant-variant.
    when 2.
    clear: p_variant.
    endcase.
    endform.
    *& Form variant_fill
    form variant_fill.
    clear: vartype.
    if LAYOUT is initial.
    vartype-variant = 'STANDARD'.
    vartype-report = sy-repid.
    else.
    vartype-variant = LAYOUT.
    vartype-report = sy-repid.
    call function 'LVC_VARIANT_EXISTENCE_CHECK'
    exporting
    i_save = var_save
    changing
    cs_variant = vartype
    exceptions
    others = 01.
    if sy-subrc ne 0.
    message i000(zz) with text-g02.
    endif.
    endif.
    endform.
    *& Module STATUS_1234 OUTPUT
    * text
    module status_1234 output.
    * SET PF-STATUS 'xxxxxxxx'.
    * SET TITLEBAR 'xxx'.
    endmodule. " STATUS_1234 OUTPUT
    *& Module USER_COMMAND_1234 INPUT
    * text
    module user_command_1234 input.
    sort mulrowtab.
    describe table mulrowtab lines maxlines.
    case ok-code1.
    when 'OUT1'.
    set screen 0.
    leave screen.
    when 'PUSH'.
    clear mulrowtab1.
    if mulrowindex <= maxlines.
    read table mulrowtab into mulrowtab1 index mulrowindex.
    mulrowindex = mulrowindex + 1.
    else.
    message i030(zmc).
    endif.
    endcase.
    endmodule. " USER_COMMAND_1234 INPUT
    * CEL COLOR TABLE POPULATION.
    FORM INVISIBLE_CELL_CONTENTS.
    loop at itab_alv1 INTO WA.
    IF WA-EMP_ID = ' '.
    EXIT.
    ENDIF.
    clear itab_alv1.
    move-corresponding WA to itab_alv1.
    clear celcol1.
    celcol1-fieldname = 'EMP_ID'.
    celcol1-color-col = syprindex.
    append celcol1 to itab_alv1-celcol.
    celcol1-fieldname = 'EMP_NAME'.
    celcol1-color-col = syprindex + 2.
    append celcol1 to itab_alv1-celcol.
    * CODE FOR MAKING THE GRID CELL CONTENTS INVISIBLE BASED ON THE VALUE OF
    *THE CELL.THE CONDITION CHECKED IS WHETHER
    * CERTIFIED FIELD HAS VALUE 'NO'.
    celcol1-fieldname = 'CERTIFIED'.
    if itab_alv1-certified = 'NO'.
    itab_alv1-emp_name = ' '.
    endif.
    celcol1-color-col = syprindex + 3.
    append celcol1 to itab_alv1-celcol.
    MODIFY ITAB_ALV1.
    syprindex = celcol1-color-col - 1.
    CLEAR ITAB_ALV1.
    endloop.
    ENDFORM.
    Regards,
    Suresh Datti

  • Kindly help to develop alv grid display

    Hi ,
    I have a requirement in which I need to display ALV GRID display and in its tool bar 4 butons are required. In the same view down to alv display i want to develop a tabstrip and its functionalities.I have designed classic alv using SALV_WD_TABLE component. I want a good GRID Display, not like flat field names that comes in list display, looking for bulged fields(like what comes for ALV GRID in normal abap)  display with print version etc hidden and buttons at the top of ALV.  Kindly help
    Highly rewarded
    Kindly help
    Regards,
    Lakshmi
    Edited by: Lakshmi Menon on Nov 27, 2008 4:49 PM

    Well Web Dynpro is generally output in HTML so the output formatting is never going to quite look like a desktop application (which is the case with the ALV Grid).  You have very little control over the look of the column headers.  In fact you can only manipulate what is available via the Portal Theme. 
    There is a new Tradeshow Plus theme available in NetWeaver 7.01 which uses a gradiant background for the column headers.  This gives them a little more depth:
    http://www.flickr.com/photos/tjung/3068850120/
    The other option is next year when NetWeaver Business Client version 3.0 comes out, you will be able to render Web Dynpro applications using the NWBC Smart Client Rendering.  This will render Web Dynpro applications using desktop libraries instead of HTML/Browser. This gives Web Dynpro a more SAPGUI/Desktop appears of course.
    http://www.flickr.com/photos/tjung/2685619882/in/set-72157606418550143/

  • Hide delete option is not working in ALV List  Display- urgent

    Hi All,
    In my program i am displaying the output by using alv list display. after displaying the data i am displaying my own pf status here. in this i have few pushbuttons like
    selest all, deselect all, hide . first two options are working fine. when i click hide button selected records are going to be hide.but this is not happening in my program. any body cam send me the code plz.
    i am sending my code below. if possible please modify and resend the code asap.
    my code:
    type-pools : slis.
    tables : zuser_secobjects.
    data : t_header1 like zuser_secobjects.
    data : begin of it_secobjects occurs 0.
            include structure t_header1.
    *data :  box,
           input(1) type c,
    data :   checkbox type c,
            flag type c,
          end of it_secobjects.
    data : wa_ita like line of it_secobjects.
    *data : it_secobjects like zuser_secobjects occurs 0 with header line.
    data : i_field type slis_t_fieldcat_alv with header line.
    data : w_field like line of i_field.
    data : i_sort type slis_t_sortinfo_alv.
    data : w_sort like line of i_sort.
    data : it_filt1 type slis_t_filter_alv with header line.
    data:
    i_tabname type tabname,
    i_repid like sy-repid,
    is_lout type slis_layout_alv.
    data :   it_filt type slis_t_filter_alv   with header line,
             it_evts type slis_t_event        with header line.
    DATA : is_vari type disvariant.
    constants :   c_default_vari value 'X',
                  c_save_vari    value 'U',
                   c_checkfield type slis_fieldname     value 'ACTION',
                   c_f2code     type sy-ucomm           value '&ETA'.
    data : chk_box type slis_fieldname.
    selection-screen: begin of block b1 with frame title text-t01.
    parameters : p_appln type zuser_secobjects-appln.
    parameters : p_user type usr02-bname, "zuser_secobjects-appln_user,
    p_partnr type zuser_secobjects-appln_partner,
    p_ptype type zuser_secobjects-partner_type default '02',
    p_upostn type zuser_secobjects-user_position,
    p_sdate like likp-erdat default sy-datum,
    p_edate(10) default '12/31/9999',
    p_revnum type zuser_secobjects-revnum,
    p_cted type zuser_secobjects-created_by,
    p_cdate type zuser_secobjects-creation_date,
    p_ctime type zuser_secobjects-creation_time,
    p_chnby type zuser_secobjects-changed_by,
    p_cdate1 type zuser_secobjects-changed_date,
    p_ctime1 type zuser_secobjects-changed_time.
    selection-screen: end of block b1.
    form user_command using p_ucomm like sy-ucomm
    rs_selfield type slis_selfield.
    *DATA :   it_filt type slis_t_filter_alv   with header line.
      case p_ucomm.
        when 'SELECT_ALL'. " SELALL is the FCODE of ur push button
          loop at it_secobjects into wa_ita.
            wa_ita-checkbox = 'X'.
            modify it_secobjects from wa_ita.
          endloop.
      rs_selfield-refresh = 'X'.   "<-  ADD THIS
      when 'DESLCT_ALL'.
        loop at it_secobjects into wa_ita.
            wa_ita-checkbox = ' '.
            modify it_secobjects from wa_ita.
          endloop.
      rs_selfield-refresh = 'X'.   "<-  ADD THIS
        is_lout-f2code               = c_f2code.
        is_lout-box_fieldname        = c_checkfield.
        is_lout-get_selinfos         = 'X'.
        is_lout-detail_popup         = 'X'.
        is_lout-detail_initial_lines = 'X'.
    when 'HIDE_DEL'.
          rs_selfield-exit  = 'X'.
          it_filt-fieldname = 'CHECKBOX'.
          it_filt-tabname   = '1'.
          it_filt-valuf     = 'X'.
          it_filt-intlen    = '1'.
          it_filt-inttype   = 'C'.
          it_filt-datatype  = 'CHAR'.
          it_filt-valuf_int = 'X'.
          it_filt-sign0     = 'E'.
          it_filt-optio     = 'EQ'.
          if it_filt[] is initial.
            append it_filt.
          else.
            modify it_filt index 1.
          endif.
         perform display using i_object.
    PERForm  ALV_LIST_DISPLAY.
    WHEN 'SHOW_DEL'.
          rs_selfield-exit = 'X'.
          free it_filt.
    PERForm  ALV_LIST_DISPLAY.
    when 'SAVE1'.
           select * from zuser_secobjects where
                        appln = zuser_secobjects-appln
                  and   appln_partner = zuser_secobjects-appln_partner
                  and   partner_type = zuser_secobjects-partner_type
                  and   start_date = zuser_secobjects-start_date
                  and   end_date = zuser_secobjects-end_date.
          endselect.
          if sy-subrc eq 0.
            message e000(ZV) with 'Duplicate Entry'.
          endif.
      endcase.
    endform.
    *&      Form  delete
    form delete.
      data : begin of is_secobjects occurs 0.
              include structure zuser_secobjects.
      data : checkbox type c.
      data : end of is_secobjects.
      is_secobjects-checkbox = 'X'.
      modify is_secobjects
        from it_secobjects
        transporting checkbox
      where checkbox = 'X'.
    endform.
    *&      Form  get_data
    form get_data.
      select * from zuser_secobjects
      into table it_secobjects.
    endform.                    " get_data
    *&      Form  prepare_fieldcatalog
          text
    -->  p1        text
    <--  p2        text
    form prepare_fieldcatalog.
      clear: w_field,i_field.
      refresh:i_field.
      i_field-key = 'X'.
      i_field-col_pos = 1.
      i_field-ddictxt = 'S'.
      i_field-seltext_s = '@11@'.
      i_field-checkbox = 'X'.
      i_field-input = 'X'.
      i_field-fieldname = 'HEADER'.
      i_field-outputlen = 0.
      append i_field.
      clear i_field.
      w_field-fieldname = 'APPLN'.
      w_field-tabname = 'IT_SECOBJECTS'.
      w_field-seltext_l = text-m01.
      w_field-outputlen = '10'.
      w_field-col_pos = 1.
      append w_field to i_field.
      clear w_field.
      w_field-fieldname = 'APPLN_USER'.
      w_field-tabname = 'IT_SECOBJECTS'.
      w_field-just = 'C'.
      w_field-seltext_l = text-m02.
      w_field-outputlen = '7'.
      w_field-col_pos = 2.
      append w_field to i_field.
      clear w_field.
    endform.                    " prepare_fieldcatalog
    *&      Form  ALV_LIST_DISPLAY
          text
    -->  p1        text
    <--  p2        text
    form alv_list_display.
      i_repid = sy-repid.
      is_lout-box_fieldname = 'CHECKBOX'.
      it_filt-fieldname = 'CHECKBOX'.
      call function 'REUSE_ALV_LIST_DISPLAY'
           exporting
                i_callback_program       = i_repid
                i_callback_pf_status_set = 'PF_STATUS_SET'
                i_callback_user_command  = 'USER_COMMAND'
                is_layout                = is_lout
                it_fieldcat              = i_field[]
                it_filter                = it_filt[]
                 it_events                = it_evts[]
                i_default                = c_default_vari
                i_save                   = c_save_vari
                is_variant               = is_vari
           tables
                t_outtab                 = it_secobjects.
    endform.                    " ALV_LIST_DISPLAY
    *&      Form  display
          text
         -->P_I_OBJECT  text
    form display using    object.
      case object.
    ENDCASE.
    endform.                    " display
    thanks,
    maheedhar.t

    Hi,
    What do you mean by Hiding the records.
    Deleting completely from the screen.
    You can just delete the records from the internal table and pass to field catalog before displaying again.
    or serach in the slis structrue for hiding the contents of the output.
    reward if useful
    regards,
    Anji

Maybe you are looking for

  • Issue after ldap syncronization enabled in oim 11.1.1.5.0 unable to create user in oim  console

    Hi Experts, I installed oim 11.1.1.5.0 and enabled ldap sync OID 11.1.1.6.0 and after completion of deployments i tried to create user from OIM admin console resulted in error.if i create roles it is working fine.I can see the same roles in OID. Erro

  • Count No of records in an internal table using 4 fields

    Hi All, I have an internal table with about 50,000 records. I need to group these (sort) based on 4 fields and then provide the count for each combination of the 4 fields. For eg, if I have 3 records in the table which have the same values for all th

  • How do I add pages to a pdf file?

    I am new to iMac. I am used to using Adobe Acrobat for Windows to create pdf files. In Acrobat, when you scan a page, you have the option to add the page to an existing pdf file. I know how to use the Scan feature on Print & Fax to create pdf files o

  • A problem with ole

    hi everyone... i am having a problem with ole in oracle forms 6i. i have created to fields blob in a table, and i have also created ole for these 2 fields (word.application). but my am having some weird results. 1. when i insert a word doc from appli

  • Roles not getting reflected after logout

    Hi All, I am using JDeveloper, LDAP , and Single Sign on for authentication and Roles. After the user is authenticated using SSO I have the following code in my Action class String userDN = actionContext.getHttpServletRequest().getHeader("Osso-User-D