Hide a field in ALV "Display Details" list

Hi Experts,
I have a requirment where I have to hide a field in ALV output, as well as in "Details display".  I already put NO_OUT = 'X' for that field in fieldcatalog itself. It is hidden in the ALV output anyway, but the problem is when user selects a row and clicks on "Details" button in toolbar of ALV, it still displays the hidden fields of that ALV list with/out headings there. 
Hope you understood my problem, pls respond soon if you hav any solution for this?
Thanks
Sarav

Use TECH = 'X' in field catalog.
Regards,
Raymond

Similar Messages

  • Hiding a field in ALV Display

    Hi Experts,
    How can we hide a field in the ALV Dipslay.

    hi check this ....
    here i had 3 fields and i am displaying 2 only..
    REPORT  ZPR_02 no standard page heading.
    TYPE-POOLS: SLIS.
    TABLES: MARA.
    DATA: BEGIN OF IT_MARA OCCURS 0,
            MATNR LIKE MARA-MATNR,
            MTART LIKE MARA-MTART,
            MATKL LIKE MARA-MATKL,
            check type c,
          END OF IT_MARA.
    DATA: IT_FIELD_CAT TYPE SLIS_T_FIELDCAT_ALV,
          WA_FIELD_CAT TYPE SLIS_FIELDCAT_ALV,
          IT_EVENTS TYPE SLIS_T_EVENT,
          WA_EVENTS TYPE SLIS_ALV_EVENT,
          IT_HEADER TYPE SLIS_T_LISTHEADER,
          WA_HEADER TYPE SLIS_LISTHEADER,
          wa_layout type SLIS_LAYOUT_ALV.
    data : is_variant like disvariant.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    START-OF-SELECTION.
      PERFORM GET_DATA.
      PERFORM BUILD_FIELD_CAT.
      PERFORM GET_EVENTS.
      PERFORM DISPLAY_DATA.
    *&      Form  get_data
          text
    FORM GET_DATA .
      SELECT MATNR
             MTART
             MATKL FROM MARA
           INTO TABLE IT_MARA
           WHERE MATNR IN S_MATNR.
    ENDFORM.                    " get_data
    *&      Form  build_field_cat
          text
    FORM BUILD_FIELD_CAT .
      CLEAR WA_FIELD_CAT.
      WA_FIELD_CAT-COL_POS = 4.
      WA_FIELD_CAT-FIELDNAME = 'MATNR'.
      WA_FIELD_CAT-SELTEXT_L = 'Material Number'.
      WA_FIELD_cat-no_zero = 'X'.
      WA_FIELD_CAT-emphasize = 'C100'.
      APPEND WA_FIELD_CAT TO IT_FIELD_CAT.
    clear WA_FIELD_CAT.
      WA_FIELD_CAT-COL_POS = 2.
      WA_FIELD_CAT-FIELDNAME = 'MTART'.
      WA_FIELD_CAT-SELTEXT_L = 'Material Type'.
      WA_FIELD_CAT-no_out  = 'X'.
      WA_FIELD_CAT-emphasize = 'C110'.
      APPEND WA_FIELD_CAT TO IT_FIELD_CAT.
    clear WA_FIELD_CAT.
      WA_FIELD_CAT-COL_POS = 3.
      WA_FIELD_CAT-FIELDNAME = 'MATKL'.
      WA_FIELD_CAT-SELTEXT_L = 'Material Group'.
      WA_FIELD_CAT-JUST = 'R'.
      WA_FIELD_CAT-emphasize = 'C410'.
      APPEND WA_FIELD_CAT TO IT_FIELD_CAT.
    clear WA_FIELD_CAT.
    ENDFORM.                    " build_field_cat
    *&      Form  display_data
          text
    FORM DISPLAY_DATA .
    wa_layout-box_fieldname = 'CHECK'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM = SY-REPID
       I_CALLBACK_PF_STATUS_SET   = 'GUI_SET'
       I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
          IS_LAYOUT          = WA_LAYOUT
          IT_FIELDCAT        = IT_FIELD_CAT
          IT_EVENTS          = IT_EVENTS
        TABLES
          T_OUTTAB           = IT_MARA.
    ENDFORM.                    " display_data
    *&      Form  GUI_SET
    FORM GUI_SET USING RT_EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'A000'.
    ENDFORM.                    "GUI_SET
    *&      Form  USER_COMMAND
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                            R_SELFIELD TYPE SLIS_SELFIELD.
    *refresh itab.
      CASE R_UCOMM.
        WHEN 'TEST'.
        when 'LIST'.
      ENDCASE.
    ENDFORM.                    "USER_COMMAND
    *&      Form  get_events
          text
    FORM GET_EVENTS .
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
      I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = IT_EVENTS .
      READ TABLE IT_EVENTS INTO WA_EVENTS
                           WITH KEY NAME = SLIS_EV_TOP_OF_PAGE.
      IF SY-SUBRC = 0.
        WA_EVENTS-FORM = 'TOP_OF_PAGE'.
        MODIFY IT_EVENTS FROM WA_EVENTS INDEX SY-TABIX.
      ENDIF.
    ENDFORM.                    " get_events
    *&      Form  top_of_page
          text
    FORM TOP_OF_PAGE.
      WA_HEADER-TYP = 'H'.
      WA_HEADER-INFO = 'Material Data'.
      APPEND WA_HEADER TO IT_HEADER.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY       = IT_HEADER
         I_LOGO                   = I_LOGO
         I_END_OF_LIST_GRID       = I_END_OF_LIST_GRID
         I_ALV_FORM               = I_ALV_FORM
    ENDFORM. "top_of_page
    regards,
    venkat.

  • F4 for Editable field in ALV, display Name but capture ID

    Hi Friends,
    I have a ALV for which i have defined a Structure, which is passed to Fieldcatlog.
    I have defined a Search help - ZUSER_NAME which has following fields to display.
    USERID - USR02-BNAME
    FNAME
    LNAME
    FULLNAME
    So my structure for fieldcatalog has User-id which is linked to this search help with Domain XUBNAME.
    So in my report i made this User-Id as editable and F4 available, everything is working fine.
    when user does a F4, its displaying Userid,Fname,Lname and complete name.upon selection and save i am capturing the id and storing in the ztable.
    But now i have a requirement that when user selects a value from this search help on F4, i need to display Fullname but capture the User Id. How can i do that?
    This is something similar to the one we have in BSP- key-value pair.
    how to do this in ALV.
    Appreciate if someone can guide me thru.
    Thanks,
    Simha
    Edited by: Simha on Sep 6, 2008 2:24 PM

    hai ,  this is example code for editing the F4 display .. check out this
    REPORT zalv_editf4display.
    *Type pools for alv
    TYPE-POOLS : slis.
    *structure for t582a tbale
    TYPES : BEGIN OF ty_table,
            infty TYPE infty,
            pnnnn TYPE pnnnn_d,
            zrmkz TYPE dzrmkz,
            zeitb TYPE dzeitb,
            dname TYPE dianm,
             davo TYPE davo,
            davoe TYPE davoe,
            END OF ty_table.
    *Structure for infotype text
    TYPES : BEGIN OF ty_itext,
            infty TYPE infty,
            itext TYPE intxt,
            sprsl TYPE sprsl,
            END OF ty_itext.
    *Structure for output display
    TYPES : BEGIN OF ty_output,
            infty TYPE infty,
            itext TYPE intxt,
            pnnnn TYPE pnnnn_d,
            zrmkz TYPE dzrmkz,
            zeitb TYPE dzeitb,
            dname TYPE dianm,
            davo TYPE davo,
            davoe TYPE davoe,
           END OF ty_output.
    *internal table and work area declarations
    DATA : it_table TYPE STANDARD TABLE OF ty_table INITIAL SIZE 0,
           it_output TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,
           it_pbo TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,
           it_ittext TYPE STANDARD TABLE OF ty_itext INITIAL SIZE 0,
           wa_table TYPE ty_table,
           wa_output TYPE ty_output,
           wa_ittext TYPE ty_itext.
    *Data declarations for dropdown lists for f4
    DATA: it_dropdown TYPE lvc_t_drop,
          ty_dropdown TYPE lvc_s_drop,
    *data declaration for refreshing of alv
          stable TYPE lvc_s_stbl.
    *Global variable declaration
    DATA: gstring TYPE c.
    *Data declarations for ALV
    DATA: c_ccont TYPE REF TO cl_gui_custom_container,         "Custom container object
          c_alvgd         TYPE REF TO cl_gui_alv_grid,         "ALV grid object
          it_fcat            TYPE lvc_t_fcat,                  "Field catalogue
          it_layout          TYPE lvc_s_layo.                  "Layout
    *ok code declaration
    DATA:
      ok_code       TYPE ui_func.
    *initialization event
    INITIALIZATION.
    *start of selection event
    START-OF-SELECTION.
    *select the infotypes maintained
      SELECT infty
              pnnnn
              zrmkz
              zeitb
              dname
              davo
              davoe
              FROM t582a UP TO 10 ROWS
              INTO CORRESPONDING FIELDS OF TABLE it_table.
    *Select the infotype texts
      IF it_table[] IS NOT INITIAL.
        SELECT itext
                 infty
                 sprsl
                 FROM t582s
                 INTO CORRESPONDING FIELDS OF TABLE it_ittext
                 FOR ALL ENTRIES IN it_table
                 WHERE infty = it_table-infty
                 AND sprsl = 'E'.
      ENDIF.
    *Apppending the data to the internal table of ALV output
      LOOP AT it_table INTO wa_table.
        wa_output-infty = wa_table-infty.
        wa_output-pnnnn = wa_table-pnnnn.
        wa_output-zrmkz = wa_table-zrmkz.
        wa_output-zeitb = wa_table-zeitb.
        wa_output-dname = wa_table-dname.
        wa_output-davo = wa_table-davo.
        wa_output-davoe = wa_table-davoe.
    For texts
        READ TABLE it_ittext INTO wa_ittext WITH KEY infty = wa_table-infty.
        wa_output-itext = wa_ittext-itext.
        APPEND wa_output TO it_output.
        CLEAR wa_output.
      ENDLOOP.
    Calling the ALV screen with custom container
      CALL SCREEN 0600.
    *On this statement double click  it takes you to the screen painter SE51.
    *Enter the attributes
    *Create a Custom container and name it CCONT and OK code as OK_CODE.
    *Save check and Activate the screen painter.
    *Now a normal screen with number 600 is created which holds the ALV grid.
    PBO of the actual screen ,
    Here we can give a title and customized menus
    *create 2 buttons with function code 'SAVE' and 'EXIT'.
    GIVE A SUITABLE TITLE
    *&      Module  STATUS_0600  OUTPUT
          text
    MODULE status_0600 OUTPUT.
      SET PF-STATUS 'DISP'.
      SET TITLEBAR 'ALVF4'.
    ENDMODULE.                 " STATUS_0600  OUTPUT
    calling the PBO module ALV_GRID.
    *&      Module  PBO  OUTPUT
          text
    MODULE pbo OUTPUT.
    *Creating objects of the container
      CREATE OBJECT c_ccont
           EXPORTING
              container_name = 'CCONT'.
    create object for alv grid
      create object c_alvgd
      exporting
      i_parent = c_ccont.
    SET field for ALV
      PERFORM alv_build_fieldcat.
    Set ALV attributes FOR LAYOUT
      PERFORM alv_report_layout.
      CHECK NOT c_alvgd IS INITIAL.
    Call ALV GRID
      CALL METHOD c_alvgd->set_table_for_first_display
        EXPORTING
          is_layout                     = it_layout
          i_save                        = 'A'
        CHANGING
          it_outtab                     = it_output
          it_fieldcatalog               = it_fcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDMODULE.                 " PBO  OUTPUT
    *&      Form  alv_build_fieldcat
          text
         <--P_IT_FCAT  text
    *subroutine to build fieldcat
    FORM alv_build_fieldcat.
      DATA lv_fldcat TYPE lvc_s_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '1'.
      lv_fldcat-fieldname = 'INFTY'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 8.
      lv_fldcat-scrtext_m = 'Infotype'.
      lv_fldcat-icon = 'X'.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '2'.
      lv_fldcat-fieldname = 'PNNNN'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 15.
      lv_fldcat-scrtext_m = 'Structure'.
      lv_fldcat-icon = ''.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '3'.
      lv_fldcat-fieldname = 'ITEXT'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 60.
      lv_fldcat-scrtext_m = 'Description'.
      lv_fldcat-icon = ''.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '5'.
      lv_fldcat-fieldname = 'ZRMKZ'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 1.
      lv_fldcat-scrtext_m = 'PERIOD'.
      lv_fldcat-icon = ''.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '6'.
      lv_fldcat-fieldname = 'ZEITB'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 5.
      lv_fldcat-scrtext_m = 'Time constraint'.
      lv_fldcat-edit = 'X'.
    *To avail the existing F4 help these are to
    *be given in the field catalogue
      lv_fldcat-f4availabl = 'X'.
      lv_fldcat-ref_table = 'T582A'.
      lv_fldcat-ref_field = 'ZEITB'.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '7'.
      lv_fldcat-fieldname = 'DNAME'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 15.
      lv_fldcat-scrtext_m = 'Dialogmodule'.
      lv_fldcat-icon = ''.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '8'.
      lv_fldcat-fieldname = 'DAVO'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 15.
      lv_fldcat-scrtext_m = 'Start'.
      lv_fldcat-edit = 'X'.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '9'.
      lv_fldcat-fieldname = 'DAVOE'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 15.
      lv_fldcat-scrtext_m = 'End'.
      lv_fldcat-icon = ''.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
    *To create drop down for the field 'DAVO'
    with our own f4 help
      ty_dropdown-handle = '1'.
      ty_dropdown-value = ' '.
      APPEND ty_dropdown TO it_dropdown.
      ty_dropdown-handle = '1'.
      ty_dropdown-value = '1'.
      APPEND ty_dropdown TO it_dropdown.
      ty_dropdown-handle = '1'.
      ty_dropdown-value = '2'.
      APPEND ty_dropdown TO it_dropdown.
      ty_dropdown-handle = '1'.
      ty_dropdown-value = '3'.
      APPEND ty_dropdown TO it_dropdown.
      CALL METHOD c_alvgd->set_drop_down_table
        EXPORTING
          it_drop_down = it_dropdown.
      LOOP AT it_fcat INTO lv_fldcat.
        CASE lv_fldcat-fieldname.
    To assign dropdown in the fieldcataogue
          WHEN 'DAVO'.
            lv_fldcat-drdn_hndl = '1'.
            lv_fldcat-outputlen = 15.
            MODIFY it_fcat FROM lv_fldcat.
        ENDCASE.
      ENDLOOP.
    ENDFORM.                    " alv_build_fieldcat
    *&      Form  alv_report_layout
          text
         <--P_IT_LAYOUT  text
    *Subroutine for setting alv layout
    FORM alv_report_layout.
      it_layout-cwidth_opt = 'X'.
      it_layout-col_opt = 'X'.
      it_layout-zebra = 'X'.
    ENDFORM.                    " alv_report_layout
    PAI module of the screen created. In case we use an interactive ALV or
    *for additional functionalities we can create OK codes
    *and based on the user command we can do the coding.
    *&      Module  PAI  INPUT
          text
    MODULE pai INPUT.
    *To change the existing values and refresh the grid
    *And only values in the dropdown or in the default
    *F4 can be given , else no action takes place for the dropdown
    *and error is thrown for the default F4 help and font changes to red
    *and on still saving, value is not changed
      c_alvgd->check_changed_data( ).
    *Based on the user input
    *When user clicks 'SAVE;
      CASE ok_code.
        WHEN 'SAVE'.
    *A pop up is called to confirm the saving of changed data
          CALL FUNCTION 'POPUP_TO_CONFIRM'
            EXPORTING
              titlebar       = 'SAVING DATA'
              text_question  = 'Continue?'
              icon_button_1  = 'icon_booking_ok'
            IMPORTING
              answer         = gstring
            EXCEPTIONS
              text_not_found = 1
              OTHERS         = 2.
          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.
    *When the User clicks 'YES'
          IF ( gstring = '1' ).
            MESSAGE 'Saved' TYPE 'S'.
    *Now the changed data is stored in the it_pbo internal table
            it_pbo = it_output.
    *Subroutine to display the ALV with changed data.
            PERFORM redisplay.
          ELSE.
    *When user clicks NO or Cancel
            MESSAGE 'Not Saved'  TYPE 'S'.
          ENDIF.
    **When the user clicks the 'EXIT; he is out
        WHEN 'EXIT'.
          LEAVE PROGRAM.
      ENDCASE.
      CLEAR: ok_code.
    ENDMODULE.                 " PAI  INPUT
    *&      Form  REDISPLAY
          text
    -->  p1        text
    <--  p2        text
    FORM redisplay .
    *Cells of the alv are made non editable after entering OK to save
      CALL METHOD c_alvgd->set_ready_for_input
        EXPORTING
          i_ready_for_input = 0.
    *Row and column of the alv are refreshed after changing values
      stable-row = 'X'.
      stable-col = 'X'.
    *REfreshed ALV display with the changed values
    *This ALV is non editable and contains new values
      CALL METHOD c_alvgd->refresh_table_display
        EXPORTING
          is_stable = stable
        EXCEPTIONS
          finished  = 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.                    " REDISPLAY

  • Reading fields from ALV display

    Hi All,
    I have a check box in front of each data record in the ALV display. This check box is editable. The user will check some records after seeing the details and click on a puch button provided. On the click of this button I need to read all the records whose check box has been checked.
    However, this edited value of check box is not getting reflected in the program. Is there any FM or any other method through which I can read the changed values in the ALV display ??
    Request your urgent help.
    Thanks and Regards,
    Archana.

    Hi ,
    Please see this example program - BCALV_EDIT_05
    I am sure this will help you.
    If u have used standard ALV function module(REUSE_ALV_GRID_DISPLAY) instead of class cl_gui_alv_grid , then you can set layout and fieldcatalog accordinglly.
    dont forget to add filed
    checkbox type c.
    in your display table (itab).
    fieldcatalog setting  :
      for field : 'CHECKBOX'.
    <b>  ls_fcat-checkbox = 'X'.
      ls_fcat-edit = 'X'.</b>
    In user command subroutine :
    check displayed internal table (itab here)
    u will find the checkbox-checked record has itab-checkbox = 'X' .
    Regards,
    Mihir.

  • Quantity field in alv display

    Hi all.
    we are phasing a  problem.
    I am using alv to display in output.
    I am using a Quantiti field (BDMNG),.
    in this field if nodata is there then it is showing 0.000(that is the default value).
    I don't want those zeros.I want only space(blank only).
    Can any body help me to solve this issue.
    Thanks in advance
    Eswar.

    Hai,
         While building field catalog For quantity field Set the NO-ZERO attribute to 'X'.
         Or you can change the quantity filed to character in the alv display.
    Mark points if helpful.
    Regards,
    Umasankar

  • Leading zero for a character datatype field in ALV display

    I have field access sequence value(VAKEY) which is concatenated by sales org, distibution chnl and division
    (0100/01/01).  the field is populating proprerly in internal tables, but in ALV display it is displaying as 100/01/01. How to consider leading zero in ALV for a CHAR datatype field.
    Thanks in Advance.

    Hi Srnii,
    You can use the below sample statement
    Shift mara-matnr right deleting trailing ' '.
    overlay mara-matnr with '0000000'.
    Thanks,
    Chidanand

  • HIde columnns in POWL ALV display but download them in excel

    Hi Webdynpro experts,
    We are using Personal Worklist (POWL) for generating online reports. There is new requirement from our customer.
    The customer does not want all the contents to be seen in the Report output. but they need these to be downloaded to excel on click of Export to Excel. We can hide fields by adjusting visible property in field catalog but then these fields doesn't get downloaded to excel. how to solve this? 
    Thanks in advance,
    Sachin

    Hi Mahender,
    you can do it by making the columns conditional. Edit the IR report attribute and in the Conditional Display section add a condition type Request = Expression 1 and in Expression 1 enter CSV .
    I have created a report on emp table and made Mgr and hire date column conditional on request = CSV
    http://apex.oracle.com/pls/otn/f?p=50942:64
    Thanks,
    Manish

  • Profile for field selection on object detail list

    Hi All ,
            What is the customizing path or tcode to define  Field selection profile and also object profile
    to choose in COIO transaction , please advice the assignment process also .
    Thanks
    Anil

    Hi All , thanks for your quick response
    I can create only overall profiles in COISN tcode .Please advice me where can we create Object profile and field profile and assignment of the same to overall profile .
    My purpose of defining above profiles is I wish to incorporate a field name resource in the seperate column with including the list of fields which is showing currently in COIO order header (here we can not find resource untill drill down) .For acheiving the same I think I can define new field profile and assigning that one to object profile , and thus I can able to select the desired object profile after executing the COIO order header --> settings --> select profile . Please suggest me if I am wrong and also the other transaction codes
    Thanks
    Anil

  • Alv drilldown-fields are hiding in secondary list-when layout option used

    hey guys,
    i displayed alv grid using fms.
    the basic list has default layout option.
    but when user gives a deault layout,and try to see secondary list,the fields appear as hidden.
    one has to unhide them manualy to see.

    Kumar,
      Check the Field catalog Before displaying Secondary list, If NO_OUT is set for Hidden fields.
    Thanks,
    Kishore

  • Sum of a field in ALV List

    Hello Guys,
    I'm using 'REUSE_ALV_GRID_DISPLAY' in my prog.
    There is a field in output table which is of type P(8) Decimals 3.
    When I'm trying to get the sum of this field in ALV Display it gives the message " Desired operation cannot be performed for column 'Converted Quantity' ".
    I have also tried do_sum = 'X'.
    But it is not working. Please help guys.
    Regards,
    Abhinav

    Thanks a lot guys for your inputs.
    The program is working now.
    Now I'm using :
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'QUAN'.
    *  wa_fieldcat-ref_tabname = 'I_OUT2'.
    *  wa_fieldcat-tabname = 'I_OUT2'.
      wa_fieldcat-qfieldname = 'MEAS'.
      wa_fieldcat-qtabname = 'I_OUT2'.
      wa_fieldcat-outputlen = '15'.
      wa_fieldcat-seltext_l = text-052.
      APPEND wa_fieldcat TO i_fieldcat.
    The program is working fine now.
    I have commented tabname and -ref_tabname , and the program is working fine now.
    Thanks a lot.

  • Hiding some fields from ALV report

    Hi All,
    I want to know if there is way to hide certain fields in ALV for some users only and not for others?
    If I use the option NO_OUT = 'X'  it will not be displayed in the list but the user can see the in the Layout option fields but if use NO_OUT = 'X' and TECH = 'X' the field will not be in the list and in the layout also but other users will miss that field.
    If I create user specific variant, but once the user is in the report he can change the layout so certain fields cannot be hidden.
    So, is there any way to hide some fields for certain users and not for others without hard coding user ids in program and restricting the fields from display??
    Thanks in Advance.
    Sonali.

    Thank You Vijay for the reply.
    I knew that Authorization object was the final solution but before using it I wanted to find out if there was a way in the ALV report to restrict certain fields.
    Sonali.

  • Documentaion for the report in the ALV display

    Hi
    I am using the function module 'REUSE_ALV_LIST_DISPLAY
    ' to display the list. I want some options which can display the documentation of the report after ALV displays the list.
    Now i  am using the documentation (se38) for the report which we can see pressing a button 'i' on the selection screen.
    Ramesh

    Hi Ramesh,
    i use it like this:
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM       = PROGNAME
    I_CALLBACK_PF_STATUS_SET = 'MAIN'
                I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
                IS_VARIANT               = VARIANT
                IS_LAYOUT                = LAYOUT
                IT_FIELDCAT              = FIELDCAT
                IT_SORT                  = SORT
                IT_FILTER                = FILTER
                I_SAVE                   = 'A'
                IT_EVENTS                = EVENTS
                IT_EVENT_EXIT            = EVENT_EXIT
                IS_PRINT                 = PRINT
                I_TABNAME_HEADER         = 'HEADER'
                I_TABNAME_ITEM           = 'BESTAND'
                IS_KEYINFO               = KEYINFO
           TABLES
                T_OUTTAB_HEADER          = HEADER
                T_OUTTAB_ITEM            = BESTAND
           EXCEPTIONS
                PROGRAM_ERROR            = 1
                OTHERS                   = 2.
    And this:
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                            RS_SELFIELD TYPE SLIS_SELFIELD.
    aktueller Satz beider Tabellen lesen, da hierarchisch
      READ TABLE HEADER  INDEX RS_SELFIELD-TABINDEX.
      READ TABLE BESTAND INDEX RS_SELFIELD-TABINDEX.
      IF  R_UCOMM EQ '&IC1'  AND RS_SELFIELD-TABNAME =  'HEADER'.
        IF RS_SELFIELD-FIELDNAME = 'QMNUM'.
          PERFORM IW53    USING HEADER-QMNUM.
        ENDIF.
        IF RS_SELFIELD-FIELDNAME = 'AUFNR' AND HEADER-AUFNR <> SPACE.
          PERFORM CS_AUFTRAG USING HEADER-AUFNR.
        ENDIF.
        IF RS_SELFIELD-FIELDNAME = 'EQUNR'.
          PERFORM PM_HIER USING HEADER-EQUNR.
        ENDIF.
        IF RS_SELFIELD-FIELDNAME = 'MATNR'.
          PERFORM MM03 USING HEADER-MATNR.
        ENDIF.
        IF RS_SELFIELD-FIELDNAME = 'SERIALNR'.
          PERFORM IQ03 USING HEADER-MATNR HEADER-SERIALNR.
        ENDIF.
      ELSEIF R_UCOMM = '&IC1' AND RS_SELFIELD-TABNAME = 'BESTAND'.
        IF RS_SELFIELD-FIELDNAME = 'OTGRP'.
          PERFORM EXCEL_OBJEKT.
        ENDIF.
      ELSEIF R_UCOMM = 'REFR'.
    Ausgabe neu einlesen
        RS_SELFIELD-REFRESH = 'X'.
        PERFORM DATEN_EINLESEN.
    Programmdokumentation.
    ELSEIF R_UCOMM = 'DOKU'.
    CALL FUNCTION 'DSYS_SHOW_FOR_F1HELP'
    EXPORTING
    DOKCLASS = 'RE'
    DOKNAME = PROGNAME
    SHORT_TEXT = 'X'
    EXCEPTIONS
    CLASS_UNKNOWN = 1
    OBJECT_NOT_FOUND = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE I010 WITH 'Keine Dokumentation vorhanden!'.
    ENDIF.
      ELSEIF R_UCOMM = 'GRAPH'.
        PERFORM GRAPHIK.
      ELSE.
        MESSAGE I010 WITH 'Bitte markieren sie eine gültige Tabellenzeile!'.
      ENDIF.
    ENDFORM.
    And it works in the Output-List correct.
    Regards, Dieter

  • Editable field in alv list display

    i WANT TO GIVE COLOR FOR EDITABLE FIELD IN ALV LIST DISPLAY.i TRIED WITH EMPHASIZE IN FIELD CATALOGUE ASSIGNING.bUT,IT IS NOT WORKING.HOW TO DO.tHANX IN ADVANCE.........

    HI,
    Please refer the link below:
    http://www.****************/Tutorials/ALV/Edit/demo.htm
    http://www.****************/Tutorials/ALV/ColorSALV/Demo.htm
    Thanks,
    Sriram Ponna.

  • How to add an extra field in the alv display(Scope of List:ALV) for me55.

    Hello..
    I've to display 2 fields- (wbs element description) and (network description) along with the standard ALV display, for the Account Assignment type 'Q'  and 'N' of all purchase requisitions being displayed.
    I was suggested to modify the standard program RM06BF00.
    Can you please let me know where and how should I modify the program RM06BF00. Is there any userexit or badi to add my fields??
    Thanks in advance.
    With Regards,
    Him

    Hello,
    If we create a Z report for this program, can anyone please tell me where can I find the function "REUSE_ALV_GRID_DISPLAY" in the given program so that I can add my fields along with the default filelds displayed...
    Thanks
    ~Him

  • In ALV report.The user wants to hide specfic fields

    Hi
    In ALV report.The user wants to hide specfic fields  but the user must be able to add these fields to the report:
    can any one give the suggestions

    in reuse alv list display or grid
    i_save  = 'A'.
    now user can choose the layout.
    for hiding
    in fieldcat
    wfieldcat-No_out = 'X'.
    regards
    shiba dutta

Maybe you are looking for

  • "build EJB archive" context menu is disabled...

    hello, I changed java beans file, and tried to build jar file again, then the "build EJB archive" context menu is disabled so I can not make EJB jar file! So frustrated.. NWDS recognizes the changes in the java files , right? How come there 's no Bui

  • IPhone 3GS to factory settings

    Hello I have iPhone 3GS purchased from Singapore while I live in india I jailbroked my iPhone and now want back in factory settings As suggested by different blogs I tried it by restoring using iTunes but that left iPhone useless until it is jailbrok

  • BAPI or Function to plan costs on Network activity

    Hi Gurus, weu2019re using PS (Wbs and activities network) to manage Investment Projects. In our model planning process is carried out by internal activities and costs activities network throught unit costing; in both types of activities we use equal

  • Latest outlook connector

    I have installed the latest oracle connector (9042) one a standard Windows 2000sp4/Outlook 2003(no other office installs) install. The machine has nothing else installed. I open outlook and my inbox contains only calendar schedual things plus the "we

  • Best Db2 thin driver

    Hi All, Can some one recommend a reliable jdbc thin driver which supports distributed transactions for DB2 on windows and solaris. What is the reliability of the db2jcc driver (Universal driver) which comes with the DB2 (8.1) installation. Also want