HELP -HIERARCHICAL DISPLAY

hi,
  pls help me to know the mandatory fields in REUSE_ALV_HIERSEQ_LIST_DISPLAY.
if possible explain with an example.
thanks ,
ganesh

here is the sample code... Just copy paste and enjoy ..
*& Report  Z_ALV_TRAINING_LIST_HOTSPOT
REPORT  Z_ALV_TRAINING_LIST_HOTSPOT.
type-pools slis.
data : it_header     type standard table of t001 initial size 0,
       it_item       type standard table of bkpf initial size 0,
       fl_key_info   type SLIS_KEYINFO_ALV,
       it_field_cat  TYPE slis_t_fieldcat_alv.
select * from t001 into table it_header where bukrs le '1000'.
select * from bkpf into table it_item for all entries in it_header where bukrs = it_header-bukrs.
Define the relation ship
fl_key_info-header01 = 'BUKRS'.
fl_key_info-item01 = 'BUKRS'.
Define the Field catalog    ***
Fill field Catalog ***************
  PERFORM fill_field_catalog USING:
***************Header****************
Row  POS  TABLE         FIELD           JUST   REF TAB   REF FIELD
  '01'  '01'   'IT_HEADER'   'BUTXT'   'C'   ' '   ' '
*TEXT  LENGTH  DDIC TXT
  'Company Name'   '45'     'M',
  '02' '01' 'IT_HEADER' 'BUKRS' 'C'  ' '  ' '  ' '  '55' 'M',
**************Item***************
Row  *POS  TABLE       FIELD          JUST   REF TAB  REF FIELD
'01'   '01'  'IT_ITEM'   'BUKRS'   'L'    'T001'  'BUKRS'
*TEXT  LENGTH  DDIC TXT
''   '10'     'M',
Row  *POS  TABLE       FIELD          JUST   REF TAB  REF FIELD
'01'   '02'  'IT_ITEM'   'BELNR'   'L'    'BKPF'  'BELNR'
*TEXT  LENGTH  DDIC TXT
''   '10'     'M'.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
  EXPORTING
  I_INTERFACE_CHECK              = ' '
  I_CALLBACK_PROGRAM             =
  I_CALLBACK_PF_STATUS_SET       = ' '
  I_CALLBACK_USER_COMMAND        = ' '
  IS_LAYOUT                      =
    IT_FIELDCAT                    = it_field_cat
  IT_EXCLUDING                   =
  IT_SPECIAL_GROUPS              =
  IT_SORT                        =
  IT_FILTER                      =
  IS_SEL_HIDE                    =
  I_SCREEN_START_COLUMN          = 0
  I_SCREEN_START_LINE            = 0
  I_SCREEN_END_COLUMN            = 0
  I_SCREEN_END_LINE              = 0
  I_DEFAULT                      = 'X'
  I_SAVE                         = ' '
  IS_VARIANT                     =
  IT_EVENTS                      =
  IT_EVENT_EXIT                  =
    i_tabname_header               = 'IT_HEADER'
    i_tabname_item                 = 'IT_ITEM'
  I_STRUCTURE_NAME_HEADER        =
  I_STRUCTURE_NAME_ITEM          =
    is_keyinfo                     = fl_key_info
  IS_PRINT                       =
  IS_REPREP_ID                   =
  I_BYPASSING_BUFFER             =
  I_BUFFER_ACTIVE                =
  IR_SALV_HIERSEQ_ADAPTER        =
  IT_EXCEPT_QINFO                =
  I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
IMPORTING
  E_EXIT_CAUSED_BY_CALLER        =
  ES_EXIT_CAUSED_BY_USER         =
  tables
    t_outtab_header                = it_header
    t_outtab_item                  = it_item
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.
*&      Form  fill_field_catalog
      Subroutine to populate the field catalog internal table
FORM fill_field_catalog  USING pv_row_pos   TYPE sy-curow
                               pv_position   TYPE sycucol    "COLUMN
                                                             "POSITION
                               pv_table      TYPE tabname    "INTERNAL
                                                             "TABLE NAME
                               pv_fieldname  TYPE fieldname  "FIELD NAME
                               pv_just       TYPE char1      "JUSTIFIED
                               pv_ref_tab    TYPE tabname    "REF. TABLE
                                                             "NAME
                               pv_ref_field  TYPE fieldname  "REF. FIELD
                                                             "NAME
                               pv_seltext_m  TYPE c          "TEXT
                               pv_out_length TYPE i          "OUTPUT
                                                             "LENGTH
                               pv_ddictxt    TYPE ddictxt.   "DDIC TEXT
*Structure for ALV field catalog
  DATA: ls_fieldcat TYPE slis_fieldcat_alv.
  CLEAR ls_fieldcat.
*Structure for field catalog is populated
  ls_fieldcat-row_pos       = pv_row_pos .
  ls_fieldcat-col_pos       = pv_position.
  ls_fieldcat-tabname       = pv_table.
  ls_fieldcat-fieldname     = pv_fieldname.
  ls_fieldcat-just          = pv_just.
  ls_fieldcat-ref_tabname   = pv_ref_tab.
  ls_fieldcat-ref_fieldname = pv_ref_field.
  ls_fieldcat-seltext_m     = pv_seltext_m.
  ls_fieldcat-outputlen     = pv_out_length.
  ls_fieldcat-ddictxt       = pv_ddictxt.
*Structure is appended to the internal table INT_FIELDCAT
  APPEND ls_fieldcat TO it_field_cat.
ENDFORM.                    "fill_field_catalog

Similar Messages

  • ALV Hierarchical Display

    Hi,
        Can any one of you tell  me how do we use ALV Hierarchical display.
    In this I want to display only the header details,then only when the user clicks on any one of the field on the header,I want the details to be displayed.I know that we have to set some parameter,but whci parameter we have to set,I am not able to find out.Pls help me out.This is very urgent.
    Ramya

    HI,
    just copy and paste the following program .
    REPORT ZALV_HIER .
    type-pools:slis.
    tables: ekko,ekpo.
    DATA:  alv_layout       TYPE slis_layout_alv.
    data:begin of it_ekko occurs 0,
            EXPA  type FLAG,
            ebeln like ekko-ebeln,
            bukrs like ekko-bukrs,
            lifnr like ekko-lifnr,
            bedat like ekko-bedat,
          end of it_ekko.
    data: begin of it_ekpo occurs 0,
            sno like ekpo-ebeln,
            ebelp like ekpo-ebelp,
            menge like ekpo-menge,
            netwr like ekpo-netwr,
          end of it_ekpo.
    data v_repid like sy-repid.
    data it_fieldcat type slis_fieldcat_alv occurs 0 with header line.
    data x_keyinfo type slis_keyinfo_alv.
    select-options:s_ebeln for ekko-ebeln.
    initialization.
      v_repid = sy-repid.
      s_ebeln-low = '1000'.
      s_ebeln-sign = 'I'.
      s_ebeln-option = 'EQ'.
      S_ebeln-high = '5000'.
      append s_ebeln.
    start-of-selection.
      perform get_data.
      perform get_field.
      perform get_key.
      perform key_modify.
      perform display.
    *& Form get_data
    * text
    * --> p1 text
    * <-- p2 text
    form get_data.
      select ebeln  bukrs
             lifnr  bedat
      from ekko
      into corresponding fields of table it_ekko.
      it_ekko-expa = 'X'.
      MODIFY it_ekko transporting expa
      WHERE expa = space.
      select ebeln ebelp
             menge netwr
      from ekpo
      into table it_ekpo.
    endform. " get_data
    *& Form get_field
    * text
    * --> p1 text
    * <-- p2 text
    form get_field.
      call function 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                i_program_name     = v_repid
                i_internal_tabname = 'IT_EKKO'
                i_inclname         = v_repid
           CHANGING
                ct_fieldcat        = it_fieldcat[].
      call function 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                i_program_name     = v_repid
                i_internal_tabname = 'IT_EKPO'
                i_inclname         = v_repid
           CHANGING
                ct_fieldcat        = it_fieldcat[].
    endform. " get_field
    *& Form get_key
    * text
    * --> p1 text
    * <-- p2 text
    form get_key.
      x_keyinfo-header01 = 'EBELN'.
      x_keyinfo-item01 = 'SNO'.
    endform. " get_key
    *& Form DISPLAY
    * text
    * --> p1 text
    * <-- p2 text
    form display.
      alv_layout-detail_popup      = 'X'.
      alv_layout-group_change_edit = 'X'.
      alv_layout-EXPAND_FIELDNAME  = 'EXPA'.
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
           EXPORTING
                i_callback_program = v_repid
                IS_LAYOUT          = alv_layout
                it_fieldcat        = it_fieldcat[]
                i_tabname_header   = 'IT_EKKO'
                i_tabname_item     = 'IT_EKPO'
                is_keyinfo         = x_keyinfo
           TABLES
                t_outtab_header    = it_ekko
                t_outtab_item      = it_ekpo.
    endform. " DISPLAY
    *& Form key_modify
    * text
    * --> p1 text
    * <-- p2 text
    form key_modify.
      loop at it_fieldcat. "Avoid Repitiotion of data.
        case it_fieldcat-fieldname.
          when 'SNO'.
            if it_fieldcat-tabname = 'IT_EKPO'.
              it_fieldcat-no_out = 'X'.
              it_fieldcat-key = space.
            endif.
        endcase.
        modify it_fieldcat index sy-tabix.
      endloop.
    endform.

  • Help needed Displaying ALV  Secondary list without using oops concept

    Hi Experts
    Help needed Displaying ALV  Secondary list without using oops concept.
    its urgent
    regds
    rajasekhar

    hi chk this code
    ******************TABLES DECLARATION*****************
    TABLES : VBAP,MARA.
    *****************TYPE POOLS**************************
    TYPE-POOLS : SLIS.
    ****************INTERNAL TABLES**********************
    DATA : BEGIN OF IT_VBAP OCCURS 0,
    VBELN LIKE VBAP-VBELN, "SALES DOCUMENT
    POSNR LIKE VBAP-POSNR, "SALES DOCUMENT ITEM
    MATNR LIKE VBAP-MATNR, "MATERIAL NUMBER
    END OF IT_VBAP.
    ****************TEMPORARY VARIABLES******************
    DATA : V_VBELN LIKE VBAP-VBELN."SALES DOCUMENT
    DATA : V_MTART LIKE MARA-MTART. "MATERIAL TYPE
    *****************FIELD CATALOG***********************
    DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    ****************LAYOUT*******************************
    DATA : WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
    ***************VARIANT*******************************
    DATA : G_VARIANT LIKE DISVARIANT.
    ****************SAVE*********************************
    DATA : G_SAVE(1) TYPE C.
    *****************EVENTS******************************
    DATA : XS_EVENTS TYPE SLIS_ALV_EVENT,
           G_EVENTS TYPE SLIS_T_EVENT.
    ******************PF STATUS**************************
    DATA : PF_STATUS TYPE SLIS_FORMNAME VALUE 'SET_PF_STATUS'.
    ******************USER COMMAND************************
    DATA : USER_COMMAND TYPE SLIS_FORMNAME VALUE 'SET_USER_COMMAND',
           R_UCOMM LIKE SY-UCOMM.
    ****************SELECTION SCREEN************************
    SELECT-OPTIONS : S_VBELN FOR VBAP-VBELN.
    ***************AT SELECTION SCREEN*********************
    AT SELECTION-SCREEN.
      PERFORM VALIDATE.
    **************START-OF-SELECTION**************************
    START-OF-SELECTION.
      PERFORM GET_DETAILS.
      PERFORM FIELDCAT.
      PERFORM LAYOUT.
      PERFORM VARIANT.
      PERFORM SAVE.
      PERFORM EVENTS.
      PERFORM ALV_DISPLAY.
    *********************FORMS*******************************************
    *&      Form  validate
          text
    -->  p1        text
    <--  p2        text
    FORM VALIDATE .
      SELECT SINGLE VBELN
                    FROM VBAP
                    INTO V_VBELN
                    WHERE VBELN IN S_VBELN.
      IF SY-SUBRC <> 0.
        MESSAGE E000 WITH 'enter valid vbeln'.
      ENDIF.
    ENDFORM.                    " validate
    *&      Form  get_details
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DETAILS .
      SELECT VBELN
             POSNR
             MATNR
             FROM VBAP
             INTO TABLE IT_VBAP
             WHERE VBELN IN S_VBELN.
      IF SY-SUBRC <> 0.
        MESSAGE E000 WITH 'no details found'.
      ENDIF.
    ENDFORM.                    " get_details
    *&      Form  fieldcat
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCAT .
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'VBELN'.
      WA_FIELDCAT-OUTPUTLEN = 10.
      WA_FIELDCAT-SELTEXT_L = 'SALES DOC'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'POSNR'.
      WA_FIELDCAT-OUTPUTLEN = 6.
      WA_FIELDCAT-SELTEXT_L = 'ITEM'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'MATNR'.
      WA_FIELDCAT-OUTPUTLEN = 18.
      WA_FIELDCAT-SELTEXT_L = 'MATERIAL NO'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
    ENDFORM.                    " fieldcat
    *&      Form  LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM LAYOUT .
      WA_LAYOUT-ZEBRA = 'X'.
    ENDFORM.                    " LAYOUT
    *&      Form  VARIANT
          text
    -->  p1        text
    <--  p2        text
    FORM VARIANT .
      CLEAR G_VARIANT.
      G_VARIANT-REPORT = SY-REPID.
    ENDFORM.                    " VARIANT
    *&      Form  SAVE
          text
    -->  p1        text
    <--  p2        text
    FORM SAVE .
      CLEAR G_SAVE.
      G_SAVE = 'A'.
    ENDFORM.                    " SAVE
    *&      Form  EVENTS
          text
    -->  p1        text
    <--  p2        text
    FORM EVENTS .
      CLEAR XS_EVENTS.
      XS_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE.
      XS_EVENTS-FORM = 'TOP_OF_PAGE'.
      APPEND XS_EVENTS TO G_EVENTS.
    ENDFORM.                    " EVENTS
    *&      Form  TOP_OF_PAGE
          text
    FORM TOP_OF_PAGE.
      WRITE :/ ' INTELLI GROUP'.
    ENDFORM.                    "TOP_OF_PAGE
    *&      Form  ALV_DISPLAY
          text
    -->  p1        text
    <--  p2        text
    FORM ALV_DISPLAY .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         I_CALLBACK_PROGRAM             = SY-REPID
         I_CALLBACK_PF_STATUS_SET       = PF_STATUS
         I_CALLBACK_USER_COMMAND        = USER_COMMAND
      I_STRUCTURE_NAME               =
         IS_LAYOUT                      = WA_LAYOUT
         IT_FIELDCAT                    = IT_FIELDCAT
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
         I_SAVE                         = G_SAVE
         IS_VARIANT                     = G_VARIANT
         IT_EVENTS                      = G_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
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          T_OUTTAB                       = IT_VBAP
       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.                    " ALV_DISPLAY
    *&      Form  SET_PF_STATUS
          text
    FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'Z50651_PFSTATUS' EXCLUDING EXTAB.
    ENDFORM.                    "SET_PF_STATUS
    *&      Form  SET_USER_COMMAND
          text
    FORM SET_USER_COMMAND USING R_UCOMM
                                RS_SELFIELD TYPE SLIS_SELFIELD.
      CASE R_UCOMM.
        WHEN 'DC'.
          READ TABLE IT_VBAP INDEX RS_SELFIELD-TABINDEX.
          IF SY-SUBRC = 0.
            SELECT SINGLE MTART
                          FROM MARA
                          INTO V_MTART
                          WHERE MATNR = IT_VBAP-MATNR.
            IF SY-SUBRC <> 0.
       MESSAGE E000 WITH 'NO MATERIAL DESCRIPTION FOR SELECTED MATERIAL NO'.
            ELSE.
              WRITE :/ 'MATERIAL NO :',IT_VBAP-MATNR.
              WRITE :/ 'MATERIAL TYPE :' , V_MTART.
            ENDIF.
          ENDIF.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'EXIT'.
          LEAVE TO SCREEN 0.
        WHEN 'CLOSE'.
          CALL TRANSACTION 'SE38'.
      ENDCASE.
    REPORT  Z_ALV_INTERACTIVE  MESSAGE-ID ZMSG_50651
                                    LINE-SIZE 100
                                    LINE-COUNT 60
                                    NO STANDARD PAGE HEADING.
    ******************TABLES DECLARATION*****************
    TABLES : VBAP,MARA.
    *****************TYPE POOLS**************************
    TYPE-POOLS : SLIS.
    ****************INTERNAL TABLES**********************
    DATA : BEGIN OF IT_VBAP OCCURS 0,
    VBELN LIKE VBAP-VBELN, "SALES DOCUMENT
    POSNR LIKE VBAP-POSNR, "SALES DOCUMENT ITEM
    MATNR LIKE VBAP-MATNR, "MATERIAL NUMBER
    END OF IT_VBAP.
    ****************TEMPORARY VARIABLES******************
    DATA : V_VBELN LIKE VBAP-VBELN."SALES DOCUMENT
    DATA : V_MTART LIKE MARA-MTART. "MATERIAL TYPE
    *****************FIELD CATALOG***********************
    DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    ****************LAYOUT*******************************
    DATA : WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
    ***************VARIANT*******************************
    DATA : G_VARIANT LIKE DISVARIANT.
    ****************SAVE*********************************
    DATA : G_SAVE(1) TYPE C.
    *****************EVENTS******************************
    DATA : XS_EVENTS TYPE SLIS_ALV_EVENT,
           G_EVENTS TYPE SLIS_T_EVENT.
    ******************PF STATUS**************************
    DATA : PF_STATUS TYPE SLIS_FORMNAME VALUE 'SET_PF_STATUS'.
    ******************USER COMMAND************************
    DATA : USER_COMMAND TYPE SLIS_FORMNAME VALUE 'SET_USER_COMMAND',
           R_UCOMM LIKE SY-UCOMM.
    ****************SELECTION SCREEN************************
    SELECT-OPTIONS : S_VBELN FOR VBAP-VBELN.
    ***************AT SELECTION SCREEN*********************
    AT SELECTION-SCREEN.
      PERFORM VALIDATE.
    **************START-OF-SELECTION**************************
    START-OF-SELECTION.
      PERFORM GET_DETAILS.
      PERFORM FIELDCAT.
      PERFORM LAYOUT.
      PERFORM VARIANT.
      PERFORM SAVE.
      PERFORM EVENTS.
      PERFORM ALV_DISPLAY.
    *********************FORMS*******************************************
    *&      Form  validate
          text
    -->  p1        text
    <--  p2        text
    FORM VALIDATE .
      SELECT SINGLE VBELN
                    FROM VBAP
                    INTO V_VBELN
                    WHERE VBELN IN S_VBELN.
      IF SY-SUBRC <> 0.
        MESSAGE E000 WITH 'enter valid vbeln'.
      ENDIF.
    ENDFORM.                    " validate
    *&      Form  get_details
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DETAILS .
      SELECT VBELN
             POSNR
             MATNR
             FROM VBAP
             INTO TABLE IT_VBAP
             WHERE VBELN IN S_VBELN.
      IF SY-SUBRC <> 0.
        MESSAGE E000 WITH 'no details found'.
      ENDIF.
    ENDFORM.                    " get_details
    *&      Form  fieldcat
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCAT .
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'VBELN'.
      WA_FIELDCAT-OUTPUTLEN = 10.
      WA_FIELDCAT-SELTEXT_L = 'SALES DOC'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'POSNR'.
      WA_FIELDCAT-OUTPUTLEN = 6.
      WA_FIELDCAT-SELTEXT_L = 'ITEM'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'MATNR'.
      WA_FIELDCAT-OUTPUTLEN = 18.
      WA_FIELDCAT-SELTEXT_L = 'MATERIAL NO'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
    ENDFORM.                    " fieldcat
    *&      Form  LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM LAYOUT .
      WA_LAYOUT-ZEBRA = 'X'.
    ENDFORM.                    " LAYOUT
    *&      Form  VARIANT
          text
    -->  p1        text
    <--  p2        text
    FORM VARIANT .
      CLEAR G_VARIANT.
      G_VARIANT-REPORT = SY-REPID.
    ENDFORM.                    " VARIANT
    *&      Form  SAVE
          text
    -->  p1        text
    <--  p2        text
    FORM SAVE .
      CLEAR G_SAVE.
      G_SAVE = 'A'.
    ENDFORM.                    " SAVE
    *&      Form  EVENTS
          text
    -->  p1        text
    <--  p2        text
    FORM EVENTS .
      CLEAR XS_EVENTS.
      XS_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE.
      XS_EVENTS-FORM = 'TOP_OF_PAGE'.
      APPEND XS_EVENTS TO G_EVENTS.
    ENDFORM.                    " EVENTS
    *&      Form  TOP_OF_PAGE
          text
    FORM TOP_OF_PAGE.
      WRITE :/ ' INTELLI GROUP'.
    ENDFORM.                    "TOP_OF_PAGE
    *&      Form  ALV_DISPLAY
          text
    -->  p1        text
    <--  p2        text
    FORM ALV_DISPLAY .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         I_CALLBACK_PROGRAM             = SY-REPID
       I_CALLBACK_PF_STATUS_SET         = PF_STATUS
         I_CALLBACK_USER_COMMAND        = USER_COMMAND
      I_STRUCTURE_NAME               =
         IS_LAYOUT                      = WA_LAYOUT
         IT_FIELDCAT                    = IT_FIELDCAT
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
         I_SAVE                         = G_SAVE
        IS_VARIANT                      = G_VARIANT
         IT_EVENTS                      = G_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
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          T_OUTTAB                       = IT_VBAP
       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.                    " ALV_DISPLAY
    *&      Form  SET_PF_STATUS
          text
    FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'STANDARD' EXCLUDING EXTAB.
    ENDFORM.                    "SET_PF_STATUS
    *&      Form  SET_USER_COMMAND
          text
    FORM SET_USER_COMMAND USING R_UCOMM
                                RS_SELFIELD TYPE SLIS_SELFIELD.
      CASE R_UCOMM.
        WHEN 'DC'.
          READ TABLE IT_VBAP INDEX RS_SELFIELD-TABINDEX.
          IF SY-SUBRC = 0.
            SELECT SINGLE MTART
                          FROM MARA
                          INTO V_MTART
                          WHERE MATNR = IT_VBAP-MATNR.
            IF SY-SUBRC <> 0.
       MESSAGE E000 WITH 'NO MATERIAL DESCRIPTION FOR SELECTED MATERIAL NO'.
            ELSE.
              WRITE :/ 'MATERIAL NO :',IT_VBAP-MATNR.
              WRITE :/ 'MATERIAL TYPE :' , V_MTART.
      SUBMIT SLIS_DUMMY WITH P_MATNR EQ IT_VBAP-MATNR
                        WITH P_MTART EQ V_MTART.
            ENDIF.
          ENDIF.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'EXIT'.
          LEAVE TO SCREEN 0.
        WHEN 'CLOSE'.
          CALL TRANSACTION 'SE38'.
      ENDCASE.
    plz reward if useful

  • Apps tab of Creative Cloud desktop helper constantly displays "Download error. press retry or contact customer support". I've quit CC desktop helper, restarted computer, checked network settings, relogged in. Cannot download any new apps or updates. HELP

    Apps tab of Creative Cloud desktop helper constantly displays "Download error. press retry or contact customer support". As well as reloading, I've also quit CC desktop helper, restarted computer, checked network settings, relogged in. Cannot download any new apps or updates. please help.
    System: Mac OSX 10.9.4. 3.4ghz intel core i7, 8gb ram

    Hello,
    Adobe has brought these new links in this matter:
    Troubleshoot Creative Cloud download and install issues and
    App doesn’t open; progress wheel spins continually
    Please have a look there. If necessary and for further questions click through http://helpx.adobe.com/contact.html and if "open" please use chat, I had the best experiences. I quote from Preran: The chat button is activated as soon as there is an agent available to help.
    Good luck!
    Hans-Günter

  • Help with displaying image received from socket on Canvas

    Dear programmers
    I know that I'm pestering you lot for a lot of help but I just got one tiny problem which I just can't get over.
    I'm developing a remote desktop application which uses an applet as it's client and I need help in displaying the image.
    When a connection is made to the server, it continuously takes screenshots, converts them to jpg and then send them to the client applet via socket communication. I've got the the server doing this in a for(;;) loop and I've tested the communication and all seems to be working fine. However the applet is causing some issues such as displaying "loading applet" until I stop the server and then the 1st screenshot is displayed. Is there a way to modify the following code so that it displays the current image onto a canvas while the next image is being downloaded and then replace the original image with the one which has just been downloaded. All this needs to be done with as little flicker as possible.
    for(;;)
        filename = dis.readUTF();
        fileSize = dis.readInt();
        fileInBuffer = new byte[fileSize];
        dis.readFully(fileInBuffer, 0, fileSize-1);
        //Create an image from the byte array
        img = Toolkit.getDefaultToolkit().createImage(fileInBuffer);
        //Create a MyCanvas object and add the canvas to the applet
        canvas = new IRDPCanvas(img, this);
        canvas.addMouseListener(this);
        canvas.addKeyListener(this);
        add(canvas);
    }

    Anyone?

  • Search for user role but help poppup display

    Anyone ever trying to search for user role from search action bar or user admin page?
    Whenever select role and clicked on the magnifying glass icon, help content displays instead of role selection.
    At first I think this is a bug. But when I asked Customer Care they said its an expected behaviour which means that this is how the engineers designed it.
    Dont you feel weird? because other field like status, correctly displays status info after clicking the icon.
    Hope u can try it this out and give your opinion here.

    Can you provide a little more detail on what you were trying to do.

  • Can anyone help me display the calendar list using an iphone4 wit iso 7.1.1?  I have already tried tapping the magnifying glass and that doesn't work.

    Can anyone help me display the calendar list using an iphone4 with iso 7.1.1?  I have already tried tapping the magnifying glass and that doesn't work.

    That icon allows for the calendar month to display with the appts for that month below.  I want to see only the list of appointments without the month displaying.  I use to be able to get that display but since the last update tapping the magnifiying glass doesn't work.

  • How do I get online help to display full screen when opened?

    I'm working in RoboHelp HTML 8 developing
    WebHelp. My client wants the help to display full screen (100%) when it's
    opened.
    How do I accomplish this?
    Thanks
    Mendonite

    If your just opening the html file from a link within your site, then you could code the link to open in a new window at full size. This is not done through RH, but instead on the site where its linking to your webhelp index.html page. Its relatively simple, and you can customise things like viewable buttons, scroll bars etc etc.
    have a look here:
    http://www.htmlcodetutorial.com/linking/linking_famsupp_87.html

  • Need help on displaying the callers name on ip phone with cme using external directory

    Hello Guys,
    Need help on displaying the callers name on ip phone with cme while using external directory
    Thank you,
    Khaja

    Thanks for your help,
    Does it 100% work with CME. We use SIP and 2ring for external directory?  Thanks you.

  • Multiple Hierarchies display in BW report

    Hi All,
    I am having issue regarding multiple hierarchies display in BW report, not all levels are displayed, but i can see them in their respective hierarchy maintenance.
    i have a report like project definition hierarchy then WBS hierarchy then followed by Order info object into rows and then some KFs in colums.
    when i drill down project  definition hierarchy i coudn't able to see some middle nodes, but few at the bottom which have orders in next WBS hierarchies. and same as in WBS hierarchy i can see ony few WBS which have orders.
    But i want to display all project definition nodes and WBS hierarchy nodes. even though there are no ordes for WBS elements.
    there are no zero supressions neither in Hierarchy attributes nor in KF structures.
    what could be the problem, how can i resolve it. I have been searching in SDN but couldnt find suitable solutions. Please let me know the earliest.
    Thanks
    Robyn.

    Hi,
    The problem that you have explained generally comes because of two problems.
    1. If you do check for zero suppression
    2. You don't go for full expansion level of heirarchy.
    Any way you mentioned first case is not applicable for you, check for second case. Expand heirarchy upto maximum level. Your problem will be resolved.

  • Managing the Help Screen display location and TOC frame width

    Is there any way I can set how the Help is displayed when it first opens?  I want to force it that the TOC frame is a certain width so the text is displayed properly always in the same way. 

    I think you will find the answer here.
    http://www.robowizard.com/RoboWizard/NewProject.htm#Downloads/Skinny_on_Skins.htm
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Record Level - Enabling & Disabling Item Checkbox in hierarchical Display

    Hi all,
    I need to display the a Hierarchical ALV. My requirement is to enable or disable particular Line Item's Checkbox.
                  *Header
                     Field1     Field2      Field3      Field4    Field5
                          #Item
                             'Checkbox'    Field1       Field2       Field3         Field4    Field5    Field6      Field7
    Here for perticular Item records ,the checkbox should be disabled.
    Please help me in this aspect.
    Thanks & Best Regards,
    Vishnu

    You can do that using TOP_OF_LIST event , there you can Disable or Enable the check box using the condition.
    In TOP_OF_LIST Event , read the report line by line and there you can check the condition.

  • Help on display

    Hi,
    Can you help me on what methods of FMs to use?
    I need to have a report that will be displayed on screen, can be e-mailed, and can be printed.
    It has a header and a footer.
    The header has a logo on the left side and has header texts that are positioned in the left, right, and center.
    The vendor will be displayed in the header.
    There will be more than one vendor that will be entered in the selection-screen.
    Now the requirement also asks me to have page-breaks in every vendor. Meaning, for every vendor, there will be also a header and a footer.
    What will I do to achieve this display???

    Hi,
    Regarding page-break for every vendor, what you can use is:
    AT NEW..
    For this what you can do is that in your internal table also take a field for vendor and populate it with values.
    Sort the internal table by Vendor.
    Now while displaying the report output, you can use..
    Loop at itab.
    AT NEW VENDOR.
    NEW-PAGE.
    ENDAT.
    write: / 10 itab-vendor,
    Endloop.
    This will trigger a new page every time a new vendor data starts.
    Since a new page will be triggered so, your Top-of-Page and End-Of-Page events will also be triggered.
    Hope this resolves your problem.
    Regards,
    Himanshu

  • Need help to display content in a KM folder

    I need to develop a component which will accept a KM folder name as an input field from UI (for eg : \documents\folder1) and will display all the subfolders and files inside that KM folder along with its details. Need info on how i can implement this and if anyone has already done something similar please help.
    Regards
    Shabeer
    Edited by: Mohammed Shabeer on Mar 18, 2009 5:31 AM

    Hi
    You can achieve this using KM API's.
    Assuming your folder location is  /documents/xxx. chekc the sample code below.
    IUser user = request.getUser(); //You can use cmadmin service as alternate option//
    String location = "/documents/xxx";
    IResourceContext resourceContext = new ResourceContext(user);
    RID rid = RID.getRID(location);
    IResource resource = ResourceFactory.getInstance().getResource(rid,resourceContext);
    ICollection collection = (ICollection) resource;
    IResourceList resourceList = collection.getChildren(); //Gives list of files and folders inside the KM location//
    for(int i=0;i<resourceList.size();i++) {
      IResource res = resourceList.get(i);
      //Get the required info from the resource object and display
    For further details, check the link below
    http://help.sap.com/javadocs/NW04S/current/km/index.html
    Regards,
    Yoga

  • Help with display quality (LCD TV)

    I've hooked up my Mac mini to my Samsung 32" LCD TV via HDMI cable.
    The overall quality is just far from desireable and is taking away all of the fun from using this new mac.
    I set the resolution output to 720p, which is what the TV supports. So that's good.
    I played slightly with the Contrast and Brightness on the TV settings.
    But I must be missing something. Although the image is sharp, it's very difficult to read from 6ft away, pictures look terrible (seeing the same picture on a different computer and monitor is so much more revealing), and the display is bad for everything basically.
    Please help with any settings suggestions or perhaps a detailed guideline for my setup.
    I started to configure a color profile on the display settings but the results weren't that great and I reverted to default. Too many subtle changes. My colorblindness probably doesn't help.
    Thanks.

    Thanks for the response.
    It's the latest Mac Mini with 2.5ghz i5, AMD Radeon HD 6630M, and 8GB RAM.
    I am familiar with the "Just Scan" setting under picture size on the Samsung TV.
    I'll look for the digital noise reduction.
    Are there complete guides with recommended settings for different setups? Or maybe even general, that would help me here?
    Thanks.

Maybe you are looking for

  • Standard report for BLOCKED SALES ORDERS

    Hey friends,           Do any one of you know whether there is any standard report that shows the Blocked sales orders..?? thanks in advance, Regards, Anvita.

  • AirPort Extreme + AirPort Express for AirTunes

    Hi there, I've just unpacked my new AP Extreme station (v7.3.2) as a replacement for the AP Express (v6.3) and it works just fine. What I now have been trying for some hours is to set up AP Express for AirTunes, but it doesn't work. I just want to ad

  • [F8]Need to turn this gallery into a slide show

    I have some code from a "how to" used to create a photo gallery. This gallery was meant to be used with buttons but, what I need is for the images to fade in and out automatically. Not sure what code would allow that to happen. Im using this type of

  • Can't send texts to certain people after switching phones.

    I just switched from my old iPhone 4S to a iPhone 5S as part of my family's upgrade plan (this is through Sprint). Since restoring my phone from my backup saved on my laptop here, I've noticed an issue regarding my texting. I can text other iPhone us

  • Initialization of data in function module (module PP)

    I developed a transaction to maintain production orders (similar to transaction CO02). I use the function module CMOC_COMP_READ to read the component data into a resbd-structure (this works fine). My transaction creates a purchase order to one compon