FM PROB

HI..
Iam new in using ALV...
this is the following report i created...
When iam executing the following report its getting short dumped..
can anyone help me out in this...
I didnt know how to use the FM reuse_alv_fieldcatalog_merge and iam facing problems in it....
My requirement is to display matnr from mara in alv....
If possible suggest me the step by step process in alv or send me a sample program too for displaying one or two fields of a table using alv.....
REPORT  ZIND_ALV_TEST.
type-pools: slis.
data: begin of iline occurs 0,
      matnr like mara-matnr,
      end of iline.
data: gt_fieldcat type slis_t_fieldcat_alv.
select matnr from mara into table iline.
perform setup-fieldcatalog using gt_fieldcat[].
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
  I_INTERFACE_CHECK              = ' '
  I_BYPASSING_BUFFER             =
  I_BUFFER_ACTIVE                = ' '
  I_CALLBACK_PROGRAM             = ' '
  I_CALLBACK_PF_STATUS_SET       = ' '
  I_CALLBACK_USER_COMMAND        = ' '
  I_STRUCTURE_NAME               = mara
  IS_LAYOUT                      =
   IT_FIELDCAT                    = gt_fieldcat[]
  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
  IR_SALV_LIST_ADAPTER           =
  IT_EXCEPT_QINFO                =
  I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
IMPORTING
  E_EXIT_CAUSED_BY_CALLER        =
  ES_EXIT_CAUSED_BY_USER         =
  TABLES
    t_outtab                       = iline
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 setup-fieldcatalog using fieldcat type slist_fieldcat_alv.
data: ls_fieldcat type slis_fieldcat_alv.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_internal_tabname = 'ILINE'
i_structure_name = 'mara'
changing
ct_fieldcat = gt_fieldcat.
endform. " FIELDCATALOG

Hi Naveen Plz care fully see this program and u can find any kind of answer in ALV Reporting  from this program , Try to debugging this program and analysis ur self and am also write comment each and every line .
TYPE-POOLS: slis.
To pass name of the report in function module for ALV
DATA: v_repid LIKE sy-repid .
To pass the overall structure of the ALV report
DATA:  struct_layout    TYPE slis_layout_alv.
DATA:  struct_layout1   TYPE slis_layout_alv.
Internal table to capture various events in ALV
DATA : i_events TYPE slis_t_event.
Table for catalog of the fields to be displayed
DATA: i_fieldcat TYPE  slis_t_fieldcat_alv.
DATA : x_fieldcat TYPE slis_fieldcat_alv.
DATA:  i_fieldcat1 TYPE  slis_t_fieldcat_alv.
DATA : x_fieldcat1 TYPE slis_fieldcat_alv.
Internal table to mention the sort sequence
DATA : it_sort TYPE slis_t_sortinfo_alv.
DATA : x_sort TYPE slis_sortinfo_alv.
Internal table to display top of page
DATA : i_list_top_of_page TYPE slis_t_listheader.
Structure to display variants
DATA : i_variant LIKE disvariant,
       i_variant1 LIKE disvariant.
Internal table to pass data
DATA: BEGIN OF i_tab OCCURS 0,
        mblnr LIKE mseg-mblnr ,
        matnr LIKE mseg-matnr,
        maktg LIKE makt-maktg ,
        charg LIKE mseg-charg ,
        werks LIKE mseg-werks,
        lgort LIKE mseg-lgort,
        menge LIKE mseg-menge ,
        meins LIKE mseg-meins ,
        dmbtr LIKE mseg-dmbtr,
        ebeln LIKE mseg-ebeln,
        icn(4) TYPE c ,
        sym(4) TYPE c ,
        excpt(2) TYPE c ,
        box(1),
    END OF i_tab.
*EJECT
DATA : BEGIN OF i_doc OCCURS 0 .
        INCLUDE STRUCTURE mseg.
DATA : END OF i_doc.
-------End of Data Declaration-------------*
PARAMETERS : p_var LIKE disvariant-variant.
INITIALIZATION.
  v_repid = sy-repid.
Display default variant
  PERFORM sub_variant_init.
AT SELECTION-SCREEN ON p_var.
Once the user has entered variant, check about its existence
  PERFORM sub_check_pvar.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_var.
Display a list of various variants of the report when the
user presses F4 key in the variant field
  PERFORM sub_variant_f4.
START-OF-SELECTION.
Prepare field catalog for the main report. State the name of
the field , name of internal table , various formatting options etc
  PERFORM sub_prepare_fieldcatalog.
Fetches records from database into table i_tab to be passed as export
parameter t_outtab in function module : REUSE_ALV_GRID_DISPLAY
  PERFORM sub_select_record.
Populate stat and icon columns of internal table i_tab with specific
columns and symbols based on some logic for quantity and value fields.
  PERFORM sub_modify_records.
Defines the overall layout of the report
  PERFORM sub_determine_alv_layout.
Defines the sort sequence of the report
  PERFORM sub_determine_sort_sequence.
Defines the event table
  PERFORM sub_eventtab_build USING i_events.
Things to be written at the top of the page
  PERFORM sub_comment_build USING i_list_top_of_page.
Display the ALV list
  PERFORM sub_show_alv_list.
struct_layout-hotspot_fieldname  = 'X'.
AT LINE-SELECTION.
  PERFORM sub_hotspot.
*&      Form  SUB_VARIANT_INIT
Display default variant
FORM sub_variant_init.
  i_variant1-report = sy-repid.
Search default variant for the report
  CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    EXPORTING
      i_save     = 'A'
    CHANGING
      cs_variant = i_variant1
    EXCEPTIONS
      not_found  = 2.
If default variant is found , use it as default.
Else , use the variant LAYOUT1.
  IF sy-subrc = 0.
    p_var = i_variant1-variant.
  ELSE.
    p_var = 'LAYOUT1'.
  ENDIF.
ENDFORM.                    " SUB_VARIANT_INIT
*&      Form  SUB_CHECK_PVAR
Once the user has entered variant, check about its existence
FORM sub_check_pvar.
If the name of the variable is not blank, check about its existence
  IF NOT p_var IS INITIAL.
    CLEAR i_variant.
    i_variant-report = sy-repid.
    i_variant-variant = p_var.
    CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
      EXPORTING
        i_save     = 'A'
      CHANGING
        cs_variant = i_variant.
If no such variant found , flash error message
    IF sy-subrc NE 0 .
      MESSAGE e398(00) WITH 'No such variant exists'.
    ELSE.
If variant exists , use the variant name to populate structure
I_VARIANT1 which will be used for export parameter : IS_VARIANT
in the function module : REUSE_ALV_GRID_DISPLAY
      CLEAR i_variant1.
      MOVE p_var TO i_variant1-variant.
      MOVE sy-repid TO i_variant1-report.
    ENDIF.
  ELSE.
    CLEAR i_variant.
  ENDIF.
ENDFORM.                    " SUB_CHECK_PVAR
*&      Form  SUB_PREPARE_FIELDCATALOG
Prepare field catalog for the main report. State the name of
the field , name of internal table , various formatting options etc
FORM sub_prepare_fieldcatalog.
First field to appear in ALV list
  x_fieldcat-col_pos = 1.
Name of the internal table field
  x_fieldcat-fieldname = 'SYM'.
Name of the internal table
  x_fieldcat-tabname = 'I_TAB'.
Heading for the field
  x_fieldcat-seltext_m = 'Stat'.
The field is going to contain a symbol
  x_fieldcat-symbol = 'X'.
Append the specifications to the internal table for field catalog.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
Second field to appear in ALV list
  x_fieldcat-col_pos = 2.
Name of the field in the internal table
  x_fieldcat-fieldname = 'MATNR'.
Name of the internal table
  x_fieldcat-tabname = 'I_TAB'.
Heading for the column
  x_fieldcat-seltext_m = 'MatItem'.
It is going to be the key field.The color for this field is going to
be different
  x_fieldcat-key = 'X'.
  x_fieldcat-key_sel = 'X'.
Single click on the field will trigger double click event.Also, a hand
will appear when the cursor navigates to the field
  x_fieldcat-hotspot = 'X'.
The column and those left to it will not scroll
  x_fieldcat-fix_column = 'X'.
F1 help will come as it is referenced to DDIC table
  x_fieldcat-ref_tabname = 'MSEG'.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
  x_fieldcat-col_pos = 3.
  x_fieldcat-fieldname = 'MAKTG'.
  x_fieldcat-tabname = 'I_TAB'.
  x_fieldcat-seltext_m = 'Description'.
X_FIELDCAT-OUTPUTLEN = 50.
  x_fieldcat-hotspot = space.
The field is centre(C for centre, R and L for left and
right) justified
  x_fieldcat-just = 'C'.
  x_fieldcat-key = 'X'.
  x_fieldcat-fix_column = 'X'.
X_fieldcat-no_out = 'X'.
  x_fieldcat-fix_column = 'X'.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
  x_fieldcat-col_pos = 4.
  x_fieldcat-fieldname = 'CHARG'.
  x_fieldcat-tabname = 'I_TAB'.
  x_fieldcat-seltext_m = 'Batch'.
X_FIELDCAT-OUTPUTLEN = 10.
  x_fieldcat-hotspot = space.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
  x_fieldcat-col_pos = 5.
  x_fieldcat-fieldname = 'EBELN'.
  x_fieldcat-tabname = 'I_TAB'.
  x_fieldcat-seltext_m = 'Purchase Order'.
X_FIELDCAT-OUTPUTLEN = 14.
The field will be colored differently(Cxyz)
  x_fieldcat-emphasize = 'C511'.
Initially the field will be hidden
  x_fieldcat-no_out = 'X'.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
  x_fieldcat-col_pos = 6.
  x_fieldcat-fieldname = 'MBLNR'.
  x_fieldcat-tabname = 'I_TAB'.
  x_fieldcat-seltext_m = 'Document no'.
X_FIELDCAT-OUTPUTLEN = 14.
  x_fieldcat-emphasize = 'C711'.
  x_fieldcat-no_out = 'X'.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
  x_fieldcat-col_pos = 7.
  x_fieldcat-fieldname = 'WERKS'.
  x_fieldcat-tabname = 'I_TAB'.
  x_fieldcat-seltext_m = 'Plant'.
X_FIELDCAT-OUTPUTLEN = 5.
  x_fieldcat-emphasize = 'C310'.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
  x_fieldcat-col_pos = 8.
  x_fieldcat-fieldname = 'LGORT'.
  x_fieldcat-tabname = 'I_TAB'.
  x_fieldcat-seltext_m = 'St.Loc'.
X_FIELDCAT-OUTPUTLEN = 7.
X_fieldcat-no_out = 'X'.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
  x_fieldcat-col_pos = 9.
  x_fieldcat-fieldname = 'MENGE'.
  x_fieldcat-tabname = 'I_TAB'.
  x_fieldcat-seltext_m = 'Quantity'.
  x_fieldcat-outputlen = 12.
Summation is allowed for this field
  x_fieldcat-do_sum = 'X'.
  x_fieldcat-ref_tabname = 'MSEG'.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
  x_fieldcat-col_pos = 10.
  x_fieldcat-fieldname = 'ICN'.
  x_fieldcat-tabname = 'I_TAB'.
  x_fieldcat-seltext_m = ''.
  x_fieldcat-outputlen = 2.
  x_fieldcat-icon = 'X'.
X_fieldcat-no_out = 'X'.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
  x_fieldcat-col_pos = 11.
  x_fieldcat-fieldname = 'MEINS'.
  x_fieldcat-tabname = 'I_TAB'.
  x_fieldcat-seltext_m = 'Unit'.
  x_fieldcat-outputlen = 5.
  x_fieldcat-qfieldname = 'MEINS'.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
  x_fieldcat-col_pos = 12.
  x_fieldcat-fieldname = 'DMBTR'.
  x_fieldcat-tabname = 'I_TAB'.
  x_fieldcat-seltext_m = 'Local curr'.
  x_fieldcat-outputlen = 12.
  x_fieldcat-inttype = 'P'.
  x_fieldcat-just = 'R'.
  x_fieldcat-do_sum = 'X'.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
  x_fieldcat-col_pos = 13.
  x_fieldcat-fieldname = 'EXCPT'.
  x_fieldcat-tabname = 'I_TAB'.
  x_fieldcat-seltext_m = ''.
  x_fieldcat-outputlen = 3.
  APPEND x_fieldcat TO i_fieldcat.
  CLEAR x_fieldcat.
ENDFORM.                    " SUB_PREPARE_FIELDCATALOG
*&      Form  SUB_SELECT_RECORD
Fetches records from database into table i_tab to be passed as export
parameter t_outtab in function module : REUSE_ALV_GRID_DISPLAY
FORM sub_select_record.
  SELECT  mblnr amatnr amaktg charg
          werks lgort menge meins dmbtr ebeln
           FROM makt AS a JOIN mseg AS b
             ON ( amatnr = bmatnr )
             INTO TABLE i_tab
             WHERE b~bwart = '101' .
ENDFORM.                    " SUB_SELECT_RECORD
*&      Form  SUB_MODIFY_RECORDS
Populate stat and icon columns of internal table i_tab with specific
columns and symbols based on some logic for quantity and value fields.
FORM sub_modify_records.
  LOOP AT i_tab.
    IF i_tab-dmbtr GT 10000.
Field icn of internal table is going to contain icon . For this column
*icon_allowed is set in the field catalog table. For various icons,see
type pool <ICON>
      i_tab-icn = '@1V@'.
      MODIFY i_tab TRANSPORTING icn.
    ENDIF.
    IF i_tab-menge GT 50.
Field icn of internal table is going to contain symbol . For this
column symbol_allowed is set in the field catalog table. For various
icons,see type pool <SYMBOL>
      i_tab-sym = 'N'.
      MODIFY i_tab TRANSPORTING sym.
    ENDIF.
    IF i_tab-werks NE 'SDC1'.
This field will contain lights , traffic signals : red.yellow,green
That this field will be used as a light will be specified in the
column of structure STRUCT_LAYOUT.
      i_tab-excpt = '1'.
      MODIFY i_tab TRANSPORTING excpt.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " SUB_MODIFY_RECORDS
*&      Form  SUB_DETERMINE_ALV_LAYOUT                                 *
*& Defines the overall structure of the report layout                  *
FORM sub_determine_alv_layout.
Field EXCPT will show the light signal
  struct_layout-lights_fieldname       = 'EXCPT'.
Field BOS of the internal table will act as pushbutton and will appear
at the left of the grid display. User will press that to select a
record
  struct_layout-box_fieldname          = 'BOX'.
  struct_layout-totals_text            = 'Totqty '.
  struct_layout-zebra                  = 'X'.
  struct_layout-confirmation_prompt    = 'X'.
  struct_layout-detail_titlebar        = 'Details of Storing'.
  struct_layout-no_sumchoice           = 'X'.
  struct_layout-totals_only            = 'X'.
ENDFORM.                    " SUB_DETERMINE_ALV_LAYOUT
*&      Form  SUB_DETERMINE_SORT_SEQUENCE
Defines the sort sequence of the report
FORM sub_determine_sort_sequence.
  x_sort-spos = 1.                           " Sort order
  x_sort-fieldname = 'MATNR'.
  x_sort-tabname = 'I_TAB'.
  x_sort-up = 'X'.
  x_sort-subtot = 'X'.                      " Sub total allowed
  APPEND x_sort TO it_sort.
  CLEAR x_sort.
ENDFORM.                    " SUB_DETERMINE_SORT_SEQUENCE
*&      Form  SUB_SHOW_ALV_LIST
Shows ALV list in grid form
FORM sub_show_alv_list.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
Name of the program
      i_callback_program                    = v_repid
title
      i_grid_title                          = 'Details of Storing'
calls subroutine : PF_STATUS_SET
         i_callback_pf_status_set           = 'PF_STATUS_SET'
Calls subroutine : user_command
          i_callback_user_command           = 'USER_COMMAND'
Overall structure of the report
         is_layout                          = struct_layout
Passes the field catg internal table
         it_fieldcat                        = i_fieldcat
Passws the sort sequence internal table
         it_sort                            = it_sort
         i_default                          = 'X'
         i_save                             = 'A'
Passes the internal table for variants
         is_variant                         = i_variant1
fetches different events into internal table i_events
         it_events                          = i_events[]
        TABLES
Passes data table for ALV display
          t_outtab                          = i_tab
       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.                    " SUB_SHOW_ALV_LIST
*&      Form  set_status
Form used to set the Custom pf-status of the List Display
rt_extab :
FORM pf_status_set USING i_rt_extab TYPE slis_t_extab.
  DATA : x_extab TYPE slis_extab.
  x_extab-fcode = '&LFO'.
  APPEND x_extab TO i_rt_extab.
Pf-status STANDARD of program SAPLSALV is copied to ZSTANDARD of the
current program and the pushbutton for Information (okcode=&LFO) is
excluded
  SET PF-STATUS 'ZSTANDARD' EXCLUDING i_rt_extab .
ENDFORM.                    "pf_status_set
*&      Form  user_command
Form used to handle USER_COMMAND events
rf_ucomm: Function Code
rs      : Internal Table containing the selection information.
FORM user_command USING rf_ucomm LIKE sy-ucomm
                          rs TYPE slis_selfield.
  DATA : v_mblnr LIKE mseg-mblnr.
  CASE rf_ucomm.
A custom pushbutton for record deletion is set in the GUI status.
When a record is selected , the field BOC for that record becomes 'X'.
The records are traced and deleted and the fields are refreshed( rs
of type slis_selfield is refreshed)
    WHEN '&DEL'.                 "Print button clicked.
      DELETE i_tab WHERE box = 'X'.
      rs-refresh = 'X'.
When the user selects a row and presses the Select pushbutton ( user
defined ) from the application toolbar, the details of the document
will be shown in another ALV list
    WHEN '&SEL'.
      PERFORM sub_select_document.
  set parameter id 'MBN'  field  i_tab-mblnr.
  call transaction 'MB03'.
Ok code for double click is &IC1 for ALV report
    WHEN '&IC1'.
      PERFORM sub_hotspot.
  ENDCASE.
ENDFORM.                    "user_command
*&      Form  SUB_HOTSPOT
      text
-->  p1        text
<--  p2        text
FORM sub_hotspot.
  MESSAGE i398(00) WITH 'Hello'.
ENDFORM.                    " SUB_HOTSPOT
*&      Form  SUB_VARIANT_F4
Display a list of various variants of the report when the
user presses F4 key in the variant field
FORM sub_variant_f4.
  i_variant-report = sy-repid.
Utilising the name of the report , this function module will
search for a list of variants and will fetch the selected one into
the parameter field for variants
  CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
    EXPORTING
      is_variant         = i_variant
      i_save             = 'A'
      i_display_via_grid = 'X'
    IMPORTING
      es_variant         = i_variant1
    EXCEPTIONS
      not_found          = 1
      program_error      = 2
      OTHERS             = 3.
  IF sy-subrc = 0.
    p_var = i_variant1-variant.
  ENDIF.
ENDFORM.                    " SUB_VARIANT_F4
*&      Form  SUB_SELECT_DOCUMENT
      text
-->  p1        text
<--  p2        text
FORM sub_select_document.
  DATA : v_lines TYPE i .
  READ TABLE i_tab WITH KEY box = 'X'.
  SELECT *
         FROM mseg INTO TABLE i_doc
         WHERE mblnr = i_tab-mblnr.
  IF sy-subrc EQ 0 .
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
        i_program_name         = v_repid
        i_internal_tabname     = 'I_DOC'
        i_structure_name       = 'MSEG'
      CHANGING
        ct_fieldcat            = i_fieldcat1
      EXCEPTIONS
        inconsistent_interface = 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.
    CLEAR struct_layout1.
    struct_layout1-colwidth_optimize  = 'X'.
    REFRESH it_sort.
    CLEAR it_sort.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = v_repid
        i_grid_title       = 'Details of Document'
        is_layout          = struct_layout1
        it_fieldcat        = i_fieldcat1
        i_structure_name   = 'MSEG'
        i_default          = 'X'
        i_save             = 'A'
      TABLES
        t_outtab           = i_doc
      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.
  ENDIF.
ENDFORM.                    " SUB_SELECT_DOCUMENT
*&      Form  SUB_COMMENT_BUILD
      text
     -->P_I_LIST_TOP_OF_PAGE  text
FORM sub_comment_build USING   i_top_of_page TYPE slis_t_listheader.
  DATA: ls_line TYPE slis_listheader.
***Header
  CLEAR ls_line.
  ls_line-typ  = 'H'.
LS_LINE-KEY: not used for this type
  ls_line-info = 'Heading list'.
  APPEND ls_line TO i_top_of_page.
***Selection
  CLEAR ls_line.
  ls_line-typ  = 'S'.
  ls_line-key  = 'Key 1'.
  ls_line-info = 'Material '.
  APPEND ls_line TO i_top_of_page.
  ls_line-key  = 'Key 2'.
  ls_line-info = 'Document no'.
  APPEND ls_line TO i_top_of_page.
***Action
  CLEAR ls_line.
ENDFORM.                    " SUB_COMMENT_BUILD
*&      Form  SUB_EVENTTAB_BUILD
Defines the event table
FORM sub_eventtab_build USING l_events TYPE slis_t_event.
  DATA: ls_event TYPE slis_alv_event.
Get the different events of the ALV
  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
      i_list_type = 0
    IMPORTING
      et_events   = l_events.
Search the top of page events
  READ TABLE l_events WITH KEY name = slis_ev_top_of_page INTO ls_event.
  IF sy-subrc = 0.
    MOVE 'TOP_OF_PAGE' TO ls_event-form.
    APPEND ls_event TO l_events.
  ENDIF.
ENDFORM.                    " SUB_EVENTTAB_BUILD
      FORM TOP_OF_PAGE                                              *
When TOP-OF-PAGE will be fired , this event will be called and it
will use the contents of i_list_top_of_page for output in the header
FORM top_of_page.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      i_logo             = 'ENJOYSAP_LOGO'
      it_list_commentary = i_list_top_of_page.
ENDFORM.                    "top_of_page
Regards,
Nihar Swain........

Similar Messages

  • My apps dance open and close on their own in my IPad 2 what can be the prob? I have already restored

    I got the charger flex or pin changed and now the apps dance on the screen, photos open and zoom in, then out, the other apps open and close. I have already restored the device with Itunes and prob is still there. What can be the problem? Any suggestion will be welcome. Thank you

    THANKS for your prompt reply  Bluetooth is off in my laptop and IPhone.. and in fact the reset is the only thing that can make it back to normal. But for a lil while. I wonder if it is the touch, or the home botton... both things are very expensive to replace, so I wouldn't like to spend $$ and continue having the prob.....

  • Prob in decode function

    hi iam having prob with the following decode function
    declare
    c varchar2(20);
    begin
    select decode(deptno,
         10, 'accounting',
         20,'Research',
         30 ,'sales',
         40,'operations','UNKNOWN') into c from dept where loc='DALLAS';
    dbms_output.put_line('DEPARTMENT in DALLAS'||c);
    select decode(deptno,
         10, 'accounting',
         20,'Research',
         30 ,'sales',
         40,'operations','UNKNOWN') into c from dept where loc='INDIA';
    dbms_output.put_line('DEPARTMENT IN INDIA'||c);
    end;
    iam getting no_data_found exception which is reasonable..but what happened to 'unknown' clause in decode function.
    thank u
    rajiv

    DECODE only works on rows returned from the database. If there are no rows, DECODE has nothing to work on.
    Consider:
    SQL> SELECT DECODE(dummy, 'X', 'Found a row', 'No row')
      2  FROM dual;
    DECODE(DUMM
    Found a row
    SQL> SELECT DECODE(dummy, 'X', 'Found a row', 'No row')
      2  FROM dual
      3  WHERE 1=2;
    no rows selectedIf you want to have c contain UNKNOWN when there are no rows returned, you need to do something more like:
    DECLARE
    c VARCHAR2(20);
    BEGIN
       BEGIN
          SELECT DECODE(deptno, 10, 'accounting',
                                20,'Research',
                                30 ,'sales',
                                40,'operations','UNKNOWN')
          INTO c
          FROM dept
          WHERE loc='DALLAS';
       EXCEPTION
          c := 'UNKNOWN';
       END;
       DBMS_OUTPUT.Put_Line('DEPARTMENT in DALLAS'||c);
       BEGIN
          SELECT DECODE(deptno, 10, 'accounting',
                                20,'Research',
                                30 ,'sales',
                                40,'operations','UNKNOWN')
          INTO c
          FROM dept
          WHERE loc='INDIA';
       EXCEPTION
          c := 'UNKNOWN';
       END;
       DBMS_OUTPUT.Put_Line('DEPARTMENT IN INDIA'||c);
    END;HTH
    John

  • ISE 1.2 - Multiple NICs/Load Balancing for DHCP Probe

    Hello guys
    Just prepping an ISE 1.2 patch 8 setup in our organization. I am going for the virtual appliances with multiple NICs. It will be a distributed deployment with 4 x PSNs behind a load balancer and there is no requirement for wireless or guest user at the moment. I've got 2 points I will like to get some guidance on:
    Our DC has a dedicated mgmt network and I plan to IP the gig0 interface of the PANs, MNTs and PSNs from this subnet. All device admin, clustering, config replication, etc will be over this interface. However, RADIUS/probe/other user traffic to the ISE PSNs will be over the gig1 interface which will be addressed from another L3 network. Is this a supported configuration in ISE?
    I intend to use the DHCP probe as part of device profiling and will ideally like to have just an additional ip helper to add to our switch SVI config. Also, it will appear that WLCs can only be configured for 2 DHCP servers for a given network so another consideration for when we bringing our WLAN in scope. We however use ACE load balancers within our DC and from what I have read, they do not support DHCP load balancing. Are there any workarounds to using the DHCP probe with multiple PSNs without having to add each node as an ip helper/DHCP server on the NADs?
    Thanks in advance
    Sayre

    Hello Sayre-
    For Question #1:
    Management is restricted to GigabitEthernet 0 and that cannot be changed so you should be good there
    You can configure Radius and Profiling to be enabled on other interfaces
    Even though you are not using guest services yet, you can dedicate an interface just for that. As a result, you can separate guest traffic completely from your production network
    Take a look at this link for more info:
    http://www.cisco.com/c/en/us/td/docs/security/ise/1-2/installation_guide/ise_ig/ise_app_c-ports.html
    For Question #2
    If you are using a Cisco WLC and running code 7.4 and newer you don't need to mess with the IP helper configurations. 
    The controller can be configured to act as a collector for client profiling and interact with the DHCP thread along with the RADIUS accounting task that is running on the controller. The controller receives a copy of the DHCP request packet sent from the DHCP thread and parses the DHCP packet for two options:
    –Option 12—HostName of the client
    –Option 60—The Vendor Class Identifier
    After this information is gathered from the DHCP_REQUEST packet, a message is formed by the controller with these option fields and is sent to the RADIUS accounting thread, which is in turn transmitted to the ISE in the form of an interim accounting message.
    Both DHCP and HTTP profiling settings are located under the "Advanced" configuration tab in the WLC
    On the other hand, you can also use Anycast for profiling. You can check out some of Cisco Live's sessions for more info on that. Here is one that is from a couple of years (There are more recent ones that are available as well):
    http://www.alcatron.net/Cisco%20Live%202013%20Melbourne/Cisco%20Live%20Content/Security/BRKSEC-3040%20%20Advanced%20ISE%20and%20Secure%20Access%20Deployment.pdf
    I hope this helps!
    Thank you for rating helpful posts!

  • I'm try to buy a movie from iTunes with my I pad 3 and it tells me there is not enough local storage and when I go to my local storage there is a lot on free storage I also restarted my ipad but still the same prob what do I do?

    I'm try to buy a movie from iTunes with my I pad 3 and it tells me there is not enough local storage and when I go to my local storage there is a lot on free storage I also restarted my ipad but still the same prob what do I do?

    5GB is typically not enough space to download a movie.  Often, movies take from 3 - 5 GB to begin with.  The only option you have is to delete more things from your iPad.  You can remove unused Apps, pictures, music, text message (messages with pictures can take up a lot of space), email messages, books, magazines etc.

  • Issue in FF v 3.6.10: I have a page which have more than 20 link, clicking on these link opens up a popup using window.showModalDialog, for the first 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open.

    Issue in FF v 3.6.10: I have a web page which have more than 20 link, clicking on each of these link opens up a pop-up using window.showModalDialog, for the first consecutive 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open. This is m problem, the real user on the web page can click on more than 20 link in such a scenario it may create problem, please help

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • Prob. with iTunes, Phone won't shut off.  Tks.

    3GS with 6.1.3 Prob. with iTunes.  When I want to close out of iTunes after a Podcast the App will not close out when I hit Home. All other Apps shut down, only prob. is with iTunes.  Cant turn phone off goes back ti iTunes when turned on again.  Tks.

    I hope the previous replies are wrong. It was my understanding that even when Match is turned off in iTunes, music previously matched or uploaded to iCloud will stay there, associated with my Apple ID, even through a cold boot etc. If you want to remove songs from iCloud, but keep them locally, do this:
    1. Click "Store" in the iTunes top Menu
    2. Select "Turn on iTunes Match" (if it isn't already turned on)
    3. Close iTunes.
    4. Hold down the Shift key while you open iTunes - this will prompt you to choose or create a (new, locally empty) Library in a different folder from your main Library.
    5. Now you should see ONLY music that is stored in iCloud.
    6. Delete them all. iTunes will show a checkbox or button for you to click to delete the selected items from iCloud.
    7. Turn off iTunes Match (see #1)
    8. Restart iTunes with the Shift key again, so you can get back to your main Library - with Match turned off.

  • Prob with iTunes on Vista! Please Help!

    hi guys,
    i am getting the following error message when i install iTunes 7.5 version
    [IMG]http://img403.imageshack.us/img403/8344/itunesprobbo9.jpg[/IMG]
    i also tried iTunes 7.4 version but i am getting the same error message
    iTunes used to work before, but suddenly the prob
    i tried unistalling and installing the app again but in vain...
    Please Help!
    Thanks in advance!
    -Manish

    “iTunes.exe – Bad Image” ... “C:\Windows\system32\mssip32.dll is either not designed to run on Windows or it contains an error. Try installing the program using the original installation media or contact our system administrator or the software vendor for support.”
    Okay. Literally, it's saying that one of the dlls associated with Cryptographic Services on the PC is damaged. That can cause an iTunes launch failure.
    ... However, most of our experience here at Discussions is with troubleshooting these sorts of messages on Windows XP systems, rather than Vista and I don't have a Vista box handy for reference.
    So, if you don't receive any further replies here, it might be best to try posting instead at the Windows Vista Community Discussions Groups. Fingers crossed someone there might be better placed to help you troubleshoot this:
    http://windowshelp.microsoft.com/communities/newsgroups/en-us/default.mspx
    (Not trying to get rid of you here, just trying to get you on the radar screens of people who might be in a better position to help.)

  • TS1702 Telegraph app does not allow access to newspaper says have not paid subscription. Paid through iTunes and tel says it is iTunes prob. Can't talk to anybody at itunes

    Telegraph app does not allow access to newspaper. Says. Have not paid sub but pay via iTunes Store. Telegraph says it is an iTunes prob but I can't get to talk to anyone there! Any suggestions please?

    Just got this -
    Dear iTunes Customer,
    You recently received an email informing you that your iTunes Match Subscription could not be auto-renewed. We have resolved the problem and your iTunes Match Subscription has been renewed.
    We apologize for the delay with your auto-renewal. If you have any questions, please contact AppleCare at http://www.apple.com/support/itunes/
    I hope everyone else is all set too.

  • Hi, have a iphone/macbook itunes prob. i connected my phone to mac to add songs, and it wiped 99% of music from my phone. on the mac it still lists the songs on my phone but they are greyed out. can anyone help? very frustrated and want my music back.

    hi, have a iphone/macbook itunes prob. i connected my phone to mac to add songs, and it wiped 99% of music from my phone. on the mac it still lists the songs on my phone but they are greyed out. can anyone help? very frustrated and want my music back.

    I am having the same problem. I have just tried this. Unplug iphone > open itunes > delete all music from itunes library > close itunes > re-open itunes > add music from original folder > plug in iphone > select songs > press sync > unplug iphone using eject button onscreen > checked phone .... still nothing in music folder on phone. On itunes the "On this iphone" tab the songs remain there but greyed out.

  • Itunes in my laptop is not showing my iphone5 (7.0.4) but it has no problem wat so ever showing in another laptop...and my laptop has no prob showing other iphones

    itunes in my laptop is not showing my iphone5 (7.0.4) but it has no problem wat so ever showing in another laptop...and my laptop has no prob showing other iphones

    Hi siva samba,
    If you are having issues with your iPhone not being recognized in iTunes, you may find one of the following articles helpful:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    Regards,
    - Brenden

  • ITunes erased my library to force me to subscribe to Cloud, and Cloud wiped out my iPad twice.  Anyone w/same prob?

    iTunes took back my entire library to force me to subscribe to Cloud, but now it will not re-download all of my purchases, and the Cloud also seems to want to wipe my iPad (has done it twice). 2 hours on the phone with Apple no help. Anyone w/same prob?

    I guess I should have been more clear. One morning (5 days ago now) we realized that our complete itunes library was gone--all media (music, shows, movies, podcasts) was gone and could not be located on our hard drive. When I went onto itunes under the "help" section there was a comment that you could upgrade your itunes to Cloud and then access all your purchases and either re-download them or play them from the itunes page. So, I upgraded itunes and went about accessing all my purchases(thousands of dollars worth of media--so you can imagine my stress). Meanwhile, my husband was at work with his ipad and realized that everything was gone--all his apps, music, even apps for work that were downloaded at his work. Completely gone. I told him that I had found everything on Cloud and that he could probably just re-download everything when he got home but we both agreed it was weird. When he got home he noted that only about 1/3rd of our purchases were available on the Cloud website--all of my son's shows were still not there and many albums that we had bought over the last year were still missing. My husband called Apple yesterday and spent two hours on the phone with them. He said it was all very mysterious as they would not admit or deny anything and he said that he spoke with several people that were very ambiguous about what had happened and were careful about what they said. They agreed to re-release to us all of the media that we could not access on Cloud, but that they could not provide us with media that had copyright expired. They basically said it was our fault for not backing everything up on a separate system. While we explained that we do have a back up hard drive, we don't back up every time we make a purchase--so we haven't done so for several months. Then, this morning my husband was on his ipad and a message popped up that froze the ipad and it said that he needed to sync into itunes. He did so and then when he went back to unplug to go to work he realized everything was gone again! All his apps, music, everything. He was so upset because he saw no reason why this keeps happening.....Any thoughts??

  • ITunes/Outlook 2007/ Windows 7 sync prob

    Outlook 2007 sync issue with iTunes 10.4.0.80 on Windows 7. This config has been working ok syncing with outlook calendar and contacts. All of a sudden iTunes no longer sees outlook as an option for syncing under 'info' and the contact/calendar syncing has stopped working. The checkbox works but the drop down box next to 'Sync contacts with...' is empty. I have made sure the itunes addin for outlook is working. I have tried uninstalling itunes as per HT1923 and reinstalled but no good. I have tried reinstalling outlook but again not progress.
    Any ideas?
    The only thing I have done is some HD partition maintenace (to recover some unused space from an OEM recovery partition) which I can't see would be related as all other software still works perfectly.

    Hi.
    Lots of people have viewed my prob but no suggestions. Guess this is indication of extent of iTunes probs!! Anyway, for anyone in same situation I have just found the solution:
    1. Close iTunes down
    2. Navigate to C:/Users/{YOUR ACCOUNT}/AppData/Roaming/Apple Computer/
    3. Remove the contents of /SyncServices/
    4. Start iTunes
    5. Connect iPhone
    Hope this helps someone in future!

  • Prob in alv report

    hi all,
    I hav prob in alv report .I made a purchse register alv report.when I see output it show's everything right but in printpreiew and when transfer to spreadsheet. It cut's back part of voucher number.for ex.v.no :5100021 but see in print priew itshow's like this 51000... and in excel sheet it cut down the last no. so it creates rundancy of voucher no. plz tell me sol. I don't know wat is happening.
    regards,
    hemlata

    hi hemlata.
    you can do this for the voucher number in your fieldcat.
    give the outputlen as the maximum outputlength of the voucher no.
    fieldcat-fieldname = 'VOUCHER'.
    fieldcat-...
    <b>fieldcat-NO_ZERO = 'X'.</b>
    append fieldcat to it_fieldcat.
    and now check it.
    Regards
    vijay

  • Prob in getting Mail body for the standard tcode F150(Dunning).

    Hello all,
    I am using F150 for the dunning notice print out.After seeing the display of the dunning notice once we come back it populates a popup window where it asks to send the mail to the particular mailid or not. I have used the BTE ---  SAMPLE_PROCEE_00001040 and copied it as z function module and customised according to my requirement in order to get the mail id of the customer in the pop up.My mail is going to the customers mail id properly only but my prob is that we are not able to get any mail body for that particular mail.Where can we add the mail body text to that mail in the standard tcode f150.can any one suggest is it possible or not.
    Regards,
    Pavani.
    Edited by: Pavani Rayappureddi on Aug 11, 2009 11:21 AM

    solved my self.
    added         C_ITCPO-TDTITLE  = 'Pending Receivables Statement-XXX GROUP'.
    in the bte code.

  • Why does LabView crash when I run it in parallel with a temp/ RH logging probe?

    I am running LabView 6.1 on windows 95. Up till now I have had no problems. However, we recently acquired a Temperature / Humidity probe which plugs into the Com1 port of the computer and logs the data using it's own software. Since then, when the two programs are used together, eventually LabView crashes with the following error message: Failure, 'image.cpp, line 5793.
    Can you tell me why this occurs and what the solution is?

    Taking a shot at this. It could be because the two programs are trying to access the same type of logging program(excel??). Only one link can be active at a time or they crash. Try running it without saving the data and see if it crashes.

Maybe you are looking for

  • How to change current Solaris version for a program?

    Hello, A program I am trying to run under Solaris 5.10 checks the OS version to be 5.8 or 5.9. Can I somehow tell Solaris to report 5.9 to the program instead of 5.10? According to "Solaris Application Guarantee" I should be able to run 5.8/9 program

  • Rendering in cs4 pro

    I've never rendered in adobe before. I am going to play the video on a large projector, and want the best quality that will hold up on a Windows 7 laptop. I want to render at least 3 or 4 because if one doesn't work,then I'll have a back up, so pleas

  • Bar Chart Sort Order

    HI I'm having a display/sort issue with Bar Charts and cannot find an option in the properties to fix it. If I have the following in cells B2:C5 in a spreadsheet: A   500 B   250 C   400 D   750 The Bar Chart will always displays the category labels

  • Color Management Workflow

    Trying to create a CM workflow that does the following: 1. Takes an RGB Photoshop document and ensures that it is tagged with a profile 2. Converts all layers into a Smart Object 3. The name of this SO layer matches the Document RGB profile 4. Conver

  • PD Profile for ESS when using contextual authorizations

    Hi all, We are using contextual authorizations, we have MSS working nicely, and now we are implementing ESS. Does anyone know what the PD profile would look like for the basic generic ESS implementation?  The pre-delivered roles have P_ORGIN objects