Calling event top_of_page

Hello friends,
I had created program for displaying data in ALV grid and when I double any row in the grid then second alv list will generate with new data. I had programmed list heading in top_of_page function. The problem is on the first alv display top_of_page is working fine but when I double click any row then for second list form top_of_page is not calleing up. Here is the code for displaying data in second alv grid.
REPORT  ZALV12.
TYPE-POOLS SLIS.
DATA: it_vbak type standard table of VBAK,
      it_vbap type table of VBAP.
DATA: wa_vbak like line of it_vbak,
      wa_vbap like line of it_vbap.
DATA syrepid like sy-repid.
DATA:fld_vbak type SLIS_T_FIELDCAT_ALV,
      fld_vbap type SLIS_T_FIELDCAT_ALV.
DATA:fld_wa_vbak type SLIS_FIELDCAT_ALV,
     fld_wa_vbap type SLIS_FIELDCAT_ALV.
DATA:vevent type SLIS_T_EVENT,
     vevent1 type SLIS_T_EVENT,
     waevent type SLIS_ALV_EVENT,
     waevent1 type SLIS_ALV_EVENT.
DATA:LST_HEADR type SLIS_T_LISTHEADER,
      LST_HEADR1 type SLIS_T_LISTHEADER.
DATA title_alv type LVC_TITLE value 'LIST FOR VBAK'.
INITIALIZATION.
syrepid = sy-repid.
perform get_event.
perform populate_event.
perform set_list_headr using LST_HEADR.
perform field_cat.
.................                       "code for displaying data in first alv.
  form USER_COMMAND using R_UCOMM type SY-UCOMM    "<------code for displaying second alv.
     r_selfield type SLIS_SELFIELD.
    case R_UCOMM.
     when '&IC1'.
       read table it_vbak into wa_vbak index r_selfield-TABINDEX.
        perform data_select.
        perform list_heading using LST_HEADR1.
        perform event_get.
        perform build_event.
        perform alv_display.
    endcase.
endform.
form data_select.
   select * from VBAP into table it_vbap up to 200 rows.
endform.
form list_heading using i_lst type SLIS_T_LISTHEADER.
   data HLINE type SLIS_LISTHEADER.
   HLINE-TYP = 'H'.
   HLINE-INFO = 'FOR VBAP'.
   append HLINE to i_lst.
endform.
form alv_display.
   CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
     EXPORTING
       I_CALLBACK_PROGRAM                = syrepid
       I_STRUCTURE_NAME                  = 'VBAP'
       I_GRID_TITLE                      = 'SCREEN2_VBAP'
     TABLES
       T_OUTTAB                          = it_vbap
   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.
   form event_get.
     CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 0
      IMPORTING
         ET_EVENTS             = vevent1
     EXCEPTIONS
       LIST_TYPE_WRONG       = 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.
  form build_event.
    read table vevent1 into waevent1 with key name = 'TOP_OF_PAGE'.
    if sy-subrc = 0.
      waevent1-form = 'F_TOP_OF_PAGE'.
      modify vevent1 from waevent1 transporting form
      where name = 'TOP_OF_PAGE'.
      endif.
  endform.
  form F_TOP_OF_PAGE.                              "  <----
this function is not calling up."
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        IT_LIST_COMMENTARY       = LST_HEADR1
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
      I_ALV_FORM               =
  endform.
Edited by: shubh_ag on Nov 10, 2010 7:18 AM

Hello friends,
I had created program for displaying data in ALV grid and when I double any row in the grid then second alv list will generate with new data. I had programmed list heading in top_of_page function. The problem is on the first alv display top_of_page is working fine but when I double click any row then for second list form top_of_page is not calleing up. Here is the code for displaying data in second alv grid.
REPORT  ZALV12.
TYPE-POOLS SLIS.
DATA: it_vbak type standard table of VBAK,
      it_vbap type table of VBAP.
DATA: wa_vbak like line of it_vbak,
      wa_vbap like line of it_vbap.
DATA syrepid like sy-repid.
DATA:fld_vbak type SLIS_T_FIELDCAT_ALV,
      fld_vbap type SLIS_T_FIELDCAT_ALV.
DATA:fld_wa_vbak type SLIS_FIELDCAT_ALV,
     fld_wa_vbap type SLIS_FIELDCAT_ALV.
DATA:vevent type SLIS_T_EVENT,
     vevent1 type SLIS_T_EVENT,
     waevent type SLIS_ALV_EVENT,
     waevent1 type SLIS_ALV_EVENT.
DATA:LST_HEADR type SLIS_T_LISTHEADER,
      LST_HEADR1 type SLIS_T_LISTHEADER.
DATA title_alv type LVC_TITLE value 'LIST FOR VBAK'.
INITIALIZATION.
syrepid = sy-repid.
perform get_event.
perform populate_event.
perform set_list_headr using LST_HEADR.
perform field_cat.
.................                       "code for displaying data in first alv.
  form USER_COMMAND using R_UCOMM type SY-UCOMM    "<------code for displaying second alv.
     r_selfield type SLIS_SELFIELD.
    case R_UCOMM.
     when '&IC1'.
       read table it_vbak into wa_vbak index r_selfield-TABINDEX.
        perform data_select.
        perform list_heading using LST_HEADR1.
        perform event_get.
        perform build_event.
        perform alv_display.
    endcase.
endform.
form data_select.
   select * from VBAP into table it_vbap up to 200 rows.
endform.
form list_heading using i_lst type SLIS_T_LISTHEADER.
   data HLINE type SLIS_LISTHEADER.
   HLINE-TYP = 'H'.
   HLINE-INFO = 'FOR VBAP'.
   append HLINE to i_lst.
endform.
form alv_display.
   CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
     EXPORTING
       I_CALLBACK_PROGRAM                = syrepid
       I_STRUCTURE_NAME                  = 'VBAP'
       I_GRID_TITLE                      = 'SCREEN2_VBAP'
     TABLES
       T_OUTTAB                          = it_vbap
   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.
   form event_get.
     CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 0
      IMPORTING
         ET_EVENTS             = vevent1
     EXCEPTIONS
       LIST_TYPE_WRONG       = 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.
  form build_event.
    read table vevent1 into waevent1 with key name = 'TOP_OF_PAGE'.
    if sy-subrc = 0.
      waevent1-form = 'F_TOP_OF_PAGE'.
      modify vevent1 from waevent1 transporting form
      where name = 'TOP_OF_PAGE'.
      endif.
  endform.
  form F_TOP_OF_PAGE.                              "  <----
this function is not calling up."
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        IT_LIST_COMMENTARY       = LST_HEADR1
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
      I_ALV_FORM               =
  endform.
Edited by: shubh_ag on Nov 10, 2010 7:18 AM

Similar Messages

  • CL_GUI_ALV_GRID  event TOP_OF_PAGE

    Hi there,
    I found when searching older threads about the same problem but no solution. I have also an ALV program and have registered the event TOP_OF_PAGE (NOT PRINT_TOP_OF_PAGE). The event ist not fired and not processed. As other peoples programs also mine can use print_top_of_page or e.g. hotspot_click without problems.
    This is the relevant part of my code. Program does not reach the break-point.
    DATA: gfd_title_doc_1        TYPE REF TO cl_dd_document.
    CLASS lcl_event_handler_1 DEFINITION DEFERRED.
    DATA: gfd_event_receiver_1 TYPE REF TO lcl_event_handler_1.
    CLASS DEFINITION
    *Event Handler
    CLASS lcl_event_handler_1 DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          on_top_of_page_1       FOR EVENT top_of_page OF cl_gui_alv_grid
                                 IMPORTING e_dyndoc_id,
    ENDCLASS.                    "lcl_event_handler DEFINITION
    CLASS IMPLEMENTATION
    Event Handler
    CLASS lcl_event_handler_1 IMPLEMENTATION.
      METHOD on_top_of_page_1.
        break z00238pw.
        PERFORM top_of_page_1 USING e_dyndoc_id.
      ENDMETHOD.                    "on_print_top_of_page
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    IF gfd_custom_container_1 IS INITIAL.
        CREATE OBJECT gfd_custom_container_1
          EXPORTING
            container_name = gfd_container_1.
        CREATE OBJECT gfd_grid_1
          EXPORTING
            i_parent = gfd_custom_container_1.
      Create ALV
        CALL METHOD gfd_grid_1->set_table_for_first_display
               EXPORTING
                   i_structure_name     = gc_structure_1
                   is_variant           = gwa_variant_1
                   is_layout            = gwa_layout_1
                   i_save               = gc_save_all
                 it_toolbar_excluding = i_excl_alv
               CHANGING
                   it_outtab            = git_list_1
                   it_fieldcatalog      = git_fieldcat_1
                   it_sort              = git_sort_1
               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.
        CREATE OBJECT gfd_title_doc_1.
        CALL METHOD gfd_title_doc_1->initialize_document.
        CALL METHOD gfd_grid_1->list_processing_events
          EXPORTING
            i_event_name = 'TOP_OF_PAGE'
            i_dyndoc_id  = gfd_title_doc_1.
        CREATE OBJECT gfd_event_receiver_1.
      ENDIF.
      SET HANDLER:
        gfd_event_receiver_1->on_top_of_page_1        FOR gfd_grid_1.
    Thank you in advance for your help
    Axel

    Hi,
    Refer this sample code:
    CLASS v_lcl_event_receiver DEFINITION
    CLASS lcl_event_receiver DEFINITION.
    PUBLIC SECTION.
    METHODS:
    handle_print_top_of_page FOR EVENT print_top_of_page OF
    cl_gui_alv_grid,
    handle_top_of_page FOR EVENT top_of_page OF
    cl_gui_alv_grid,
    ENDCLASS. "o_lcl_event_receiver DEFINITION
    data: o_event_receiver TYPE REF TO lcl_event_receiver,
    o_html TYPE REF TO cl_dd_document.
    CLASS LCL_EVENT_RECEIVER IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
    *-- Top of Page
    METHOD handle_print_top_of_page.
    ENDMETHOD. "handle_print_top_of_page
    METHOD handle_top_of_page.
    ENDMETHOD. "handle_top_of_page
    ENDCLASS. "lcl_event_receiver IMPLEMENTATION
    *--Get the containers of the splitter control
    o_container_top = o_split->top_left_container.
    o_container_bot = o_split->bottom_right_container.
    ENDIF.
    CREATE OBJECT o_alvgrid
    EXPORTING
    i_parent = o_container_bot.
    *-- Print Top of Page
    PERFORM f0041_top_of_page.
    FORM f0041_top_of_page.
    DATA: lws_text TYPE sdydo_text_element.
    IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    *-- Object for HTML top container
    CREATE OBJECT o_html
    EXPORTING style = 'ALV_GRID'
    background_color = 35.
    *-- Top of Page
    CALL METHOD o_alvgrid->list_processing_events
    EXPORTING
    i_event_name = 'TOP_OF_PAGE'
    i_dyndoc_id = o_html.
    *-- Total Record Text
    CALL METHOD o_html->add_text
    EXPORTING
    text = text-049
    sap_emphasis = text-051.
    CALL METHOD o_html->add_gap
    EXPORTING
    width = 8.
    **-- Total record Value
    lws_text = cnt_total.
    CALL METHOD o_html->add_text
    EXPORTING
    text = lws_text
    sap_emphasis = text-051.
    CLEAR lws_text.
    CALL METHOD o_html->new_line
    EXPORTING
    repeat = 1.
    *-- Display Report Header
    CALL METHOD o_html->display_document
    EXPORTING
    parent = o_container_top.
    ENDIF.
    ENDFORM. " f0041_top_of_page
    <b>Reward points if it helps,</b>
    Satish

  • How to Call Event Handler Method in Another view

    Hi Experts,
                       Can anybody tell me how to call Event handler Method which is declared in View A ,it Should be Called in
      view B,Thanks in Advance.
    Thanks & Regards
    Santhosh

    hi,
    1)    You can make the method EH_ONSELECT as public and static and call this method in viewGS_CM/ADDDOC  using syntax
        impl class name of view GS_CM/DOCTREE=>EH_ONSELECT "method name.
                 or
    2)The view GS_CM/ADDDOC which contains EH_ONSELECT method has been already enhanced, so I can't execute such kind of operation one more time.
                         or
    3)If both views or viewarea containing that view are under same window , then you can get the instance ofGS_CM/DOCTREE from view GS_CM/ADDDOC  through the main window controller.
    lr_window = me->view_manager->get_window_controller( ).
        lv_viewname = 'GS_CM/DOCTREE '.
      lr_viewctrl ?=  lr_window ->get_subcontroller_by_viewname( lv_viewname ).
    Now you can access the method of view GS_CM/DOCTREE .
    Let me know in case you face any issues.
    Message was edited by: Laure Cetin
    Please do not ask for points, this is against the Rules of Engagement: http://scn.sap.com/docs/DOC-18590

  • Event call event

    hello,
    I would like to know how to call event from another,
    I have for the moment 5 individuals actions (manage with event structure) A B C D and E  and
    i  need  in somecase that A want to call E, B to call E or  B to call E then quit on quit button.
    is there a way to call ( simulate) an event call at end of first really called (by user) ?
    can i use flag, event register ? i don't kow what is best solution
    Best regards 
    Tinnitus
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte
    Attachments:
    eventcall.vi ‏14 KB

    Yes but it send me an error
    see attachement
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte
    Attachments:
    eventcall2.vi ‏19 KB

  • How to catch call events?

    Hi, I'm trying to develop a java application for mobile devices (mobile phones) that should automatically Reject when somebody calls (based on some rules).
    I don't know how to catch the "+call event+".
    Can anyone help me ?

    Hi,
    This is not possible using core Java ME (CLDC + MIDP). You can initiate a call in MIDP 2.0 by using platformRequest.
    The optional JSR 253 makes it possible to do what you want do do, but I haven't seen any devices with this JSR implemented.
    http://jcp.org/en/jsr/detail?id=253
    -henrik

  • How to catch ALL call events with JTAPI

    Hi,
    I have my JTAPI application witch is listening for ALL calls that are placed on CUCM system. Based on this information this software is making some routing decisions. At present getting the information about all calls is very inconvenient - I have to track all events from all phones, so my CTI user has to have ALL phones on its Controlled Devices List.
    Is there more intelligent way of getting all call events without controlling every single device? I am interested in any version of CM or CUCM.
    Regards,
    Andrius Kislas
    CCIE #18338 Voice

    According to the documentation, lineMonitorTones should be available (though that's the 7.0 documentation I'm looking at) - going through a wrapper always add another place where things can go wrong. E.g. we're supposed to get device state events with the latest version but when I tried I still got nothing. If you can handle tapi browser you might want to try it and see if it works, and if so, get in touch with the developer of the lib (I did once... really nice and helpful guy).
    Alternatively, there's no need to catch digits.. you may not even be able to terminate the call in the status you're looking at so you could just listen to call events and get the first one where the call actually starts (as in "all digits dialed") and terminate it then.. it probably won't make much of a difference either unless you want to prevent people from making certain calls and cut them off after a few digits.. but that is better done using partitions and css.. they are meant to prevent people from calling certain numbers and it would be ill advised to duplicate this functionality in your own software (which after all could fail every now and then.. or the app could lose the connection to the server, etc.)

  • Calling Events in ALV

    hi friends,
    i have developed ALV and blocked ALV report, in that i want to use at line-selection event .
    if any body knows please let me know.
    thanks and regards.

    Hi,
    Please refer this program
    TYPE-POOLS: SLIS.
    *type declaration for values from ekko
    TYPES: BEGIN OF I_EKKO,
           EBELN LIKE EKKO-EBELN,
           AEDAT LIKE EKKO-AEDAT,
           BUKRS LIKE EKKO-BUKRS,
           BSART LIKE EKKO-BSART,
           LIFNR LIKE EKKO-LIFNR,
           END OF I_EKKO.
    DATA: IT_EKKO TYPE STANDARD TABLE OF I_EKKO INITIAL SIZE 0,
          WA_EKKO TYPE I_EKKO.
    *type declaration for values from ekpo
    TYPES: BEGIN OF I_EKPO,
           EBELN LIKE EKPO-EBELN,
           EBELP LIKE EKPO-EBELP,
           MATNR LIKE EKPO-MATNR,
           MENGE LIKE EKPO-MENGE,
           MEINS LIKE EKPO-MEINS,
           NETPR LIKE EKPO-NETPR,
           END OF I_EKPO.
    DATA: IT_EKPO TYPE STANDARD TABLE OF I_EKPO INITIAL SIZE 0,
          WA_EKPO TYPE I_EKPO .
    *variable for Report ID
    DATA: V_REPID LIKE SY-REPID .
    *declaration for fieldcatalog
    DATA: I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
          WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    DATA: IT_LISTHEADER TYPE SLIS_T_LISTHEADER.
    * declaration for events table where user comand or set PF status will
    * be defined
    DATA: V_EVENTS TYPE SLIS_T_EVENT,
          WA_EVENT TYPE SLIS_ALV_EVENT.
    * declartion for layout
    DATA: ALV_LAYOUT TYPE SLIS_LAYOUT_ALV.
    * declaration for variant(type of display we want)
    DATA: I_VARIANT TYPE DISVARIANT,
          I_VARIANT1 TYPE DISVARIANT,
          I_SAVE(1) TYPE C.
    *PARAMETERS : p_var TYPE disvariant-variant.
    *Title displayed when the alv list is displayed
    DATA:  I_TITLE_EKKO TYPE LVC_TITLE VALUE 'FIRST LIST DISPLAYED'.
    DATA:  I_TITLE_EKPO TYPE LVC_TITLE VALUE 'SECONDRY LIST DISPLAYED'.
    INITIALIZATION.
      V_REPID = SY-REPID.
      PERFORM BUILD_FIELDCATLOG.
      PERFORM EVENT_CALL.
      PERFORM POPULATE_EVENT.
    START-OF-SELECTION.
      PERFORM DATA_RETRIEVAL.
      PERFORM BUILD_LISTHEADER USING IT_LISTHEADER.
      PERFORM DISPLAY_ALV_REPORT.
    *&      Form  BUILD_FIELDCATLOG
    *       Fieldcatalog has all the field details from ekko
    FORM BUILD_FIELDCATLOG.
      WA_FIELDCAT-TABNAME = 'IT_EKKO'.
      WA_FIELDCAT-FIELDNAME = 'EBELN'.
      WA_FIELDCAT-SELTEXT_M = 'PO NO.'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_EKKO'.
      WA_FIELDCAT-FIELDNAME = 'AEDAT'.
      WA_FIELDCAT-SELTEXT_M = 'DATE.'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_EKKO'.
      WA_FIELDCAT-FIELDNAME = 'BUKRS'.
      WA_FIELDCAT-SELTEXT_M = 'COMPANY CODE'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    WA_FIELDCAT-TABNAME = 'IT_EKKO'.
      WA_FIELDCAT-FIELDNAME = 'BUKRS'.
      WA_FIELDCAT-SELTEXT_M = 'DOCMENT TYPE'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    WA_FIELDCAT-TABNAME = 'IT_EKKO'.
      WA_FIELDCAT-FIELDNAME = 'LIFNR'.
      WA_FIELDCAT-NO_OUT    = 'X'.
      WA_FIELDCAT-SELTEXT_M = 'VENDOR CODE'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    ENDFORM.                    "BUILD_FIELDCATLOG
    *&      Form  EVENT_CALL
    *   we get all events - TOP OF PAGE or USER COMMAND in table v_events
    FORM EVENT_CALL.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = V_EVENTS
    *  EXCEPTIONS
    *    LIST_TYPE_WRONG       = 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.
    ENDFORM.                    "EVENT_CALL
    *&      Form  POPULATE_EVENT
    *      Events populated for TOP OF PAGE & USER COMAND
    FORM POPULATE_EVENT.
      READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
      IF SY-SUBRC EQ 0.
        WA_EVENT-FORM = 'TOP_OF_PAGE'.
        MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
    WA_EVENT-FORM.
      ENDIF.
      READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND'.
      IF SY-SUBRC EQ 0.
        WA_EVENT-FORM = 'USER_COMMAND'.
        MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
    WA_EVENT-NAME.
      ENDIF.
    ENDFORM.                    "POPULATE_EVENT
    *&      Form  data_retrieval
    *   retreiving values from the database table ekko
    FORM DATA_RETRIEVAL.
      SELECT EBELN AEDAT BUKRS BSART LIFNR FROM EKKO INTO TABLE IT_EKKO.
    ENDFORM.                    "data_retrieval
    *&      Form  bUild_listheader
    *       text
    *      -->I_LISTHEADEtext
    FORM BUILD_LISTHEADER USING I_LISTHEADER TYPE SLIS_T_LISTHEADER.
      DATA HLINE TYPE SLIS_LISTHEADER.
      HLINE-INFO = 'this is my first alv pgm'.
      HLINE-TYP = 'H'.
    ENDFORM.                    "build_listheader
    *&      Form  display_alv_report
    *       text
    FORM DISPLAY_ALV_REPORT.
      V_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         I_CALLBACK_PROGRAM                = V_REPID
    *   I_CALLBACK_PF_STATUS_SET          = ' '
         I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
         I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
         I_GRID_TITLE                      = I_TITLE_EKKO
    *   I_GRID_SETTINGS                   =
    *   IS_LAYOUT                         = ALV_LAYOUT
         IT_FIELDCAT                       = I_FIELDCAT[]
    *   IT_EXCLUDING                      =
    *   IT_SPECIAL_GROUPS                 =
    *   IT_SORT                           =
    *   IT_FILTER                         =
    *   IS_SEL_HIDE                       =
    *     i_default                         = 'ZLAY1'
         I_SAVE                            = 'A'
    *     is_variant                        = i_variant
         IT_EVENTS                         = V_EVENTS
        TABLES
          T_OUTTAB                          = IT_EKKO
    * EXCEPTIONS
    *   PROGRAM_ERROR                     = 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.
    ENDFORM.                    "display_alv_report
    *&      Form  TOP_OF_PAGE
    *       text
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY       = IT_LISTHEADER
    *    i_logo                   =
    *    I_END_OF_LIST_GRID       =
    ENDFORM.                    "TOP_OF_PAGE
    *&      Form  USER_COMMAND
    *       text
    *      -->R_UCOMM    text
    *      -->,          text
    *      -->RS_SLEFIELDtext
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
    RS_SELFIELD TYPE SLIS_SELFIELD.
      CASE R_UCOMM.
        WHEN '&IC1'.
          READ TABLE IT_EKKO INTO WA_EKKO INDEX RS_SELFIELD-TABINDEX.
          PERFORM BUILD_FIELDCATLOG_EKPO.
          PERFORM EVENT_CALL_EKPO.
          PERFORM POPULATE_EVENT_EKPO.
          PERFORM DATA_RETRIEVAL_EKPO.
          PERFORM BUILD_LISTHEADER_EKPO USING IT_LISTHEADER.
          PERFORM DISPLAY_ALV_EKPO.
      ENDCASE.
    ENDFORM.                    "user_command
    *&      Form  BUILD_FIELDCATLOG_EKPO
    *       text
    FORM BUILD_FIELDCATLOG_EKPO.
      WA_FIELDCAT-TABNAME = 'IT_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'EBELN'.
      WA_FIELDCAT-SELTEXT_M = 'PO NO.'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'EBELP'.
      WA_FIELDCAT-SELTEXT_M = 'LINE NO'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'I_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'MATNR'.
      WA_FIELDCAT-SELTEXT_M = 'MATERIAL NO.'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    WA_FIELDCAT-TABNAME = 'I_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'MENGE'.
      WA_FIELDCAT-SELTEXT_M = 'QUANTITY'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    WA_FIELDCAT-TABNAME = 'I_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'MEINS'.
      WA_FIELDCAT-SELTEXT_M = 'UOM'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    WA_FIELDCAT-TABNAME = 'I_EKPO'.
      WA_FIELDCAT-FIELDNAME = 'NETPR'.
      WA_FIELDCAT-SELTEXT_M = 'PRICE'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    ENDFORM.                    "BUILD_FIELDCATLOG_EKPO
    *&      Form  event_call_ekpo
    *   we get all events - TOP OF PAGE or USER COMMAND in table v_events
    FORM EVENT_CALL_EKPO.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = V_EVENTS
    * EXCEPTIONS
    *   LIST_TYPE_WRONG       = 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.
    ENDFORM.                    "event_call_ekpo
    *&      Form  POPULATE_EVENT
    *        Events populated for TOP OF PAGE & USER COMAND
    FORM POPULATE_EVENT_EKPO.
      READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
      IF SY-SUBRC EQ 0.
        WA_EVENT-FORM = 'TOP_OF_PAGE'.
        MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
    WA_EVENT-FORM.
      ENDIF.
      ENDFORM.                    "POPULATE_EVENT
    *&      Form  TOP_OF_PAGE
    *       text
    FORM F_TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY       = IT_LISTHEADER
    *    i_logo                   =
    *    I_END_OF_LIST_GRID       =
    ENDFORM.                    "TOP_OF_PAGE
    *&      Form  USER_COMMAND
    *       text
    *      -->R_UCOMM    text
    *      -->,          text
    *      -->RS_SLEFIELDtext
    *retreiving values from the database table ekko
    FORM DATA_RETRIEVAL_EKPO.
    SELECT EBELN EBELP MATNR MENGE MEINS NETPR FROM EKPO INTO TABLE IT_EKPO.
    ENDFORM.
    FORM BUILD_LISTHEADER_EKPO USING I_LISTHEADER TYPE SLIS_T_LISTHEADER.
    DATA: HLINE1 TYPE SLIS_LISTHEADER.
    HLINE1-TYP = 'H'.
    HLINE1-INFO = 'CHECKING PGM'.
    ENDFORM.
    FORM DISPLAY_ALV_EKPO.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    *   I_INTERFACE_CHECK                 = ' '
    *   I_BYPASSING_BUFFER                = ' '
    *   I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = V_REPID
    *   I_CALLBACK_PF_STATUS_SET          = ' '
    *   I_CALLBACK_USER_COMMAND           = 'F_USER_COMMAND'
       I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
    *   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    *   I_CALLBACK_HTML_END_OF_LIST       = ' '
    *   I_STRUCTURE_NAME                  =
    *   I_BACKGROUND_ID                   = ' '
       I_GRID_TITLE                      = I_TITLE_EKPO
    *   I_GRID_SETTINGS                   =
    *   IS_LAYOUT                         =
       IT_FIELDCAT                       = I_FIELDCAT[]
    *   IT_EXCLUDING                      =
    *   IT_SPECIAL_GROUPS                 =
    *   IT_SORT                           =
    *   IT_FILTER                         =
    *   IS_SEL_HIDE                       =
    *   I_DEFAULT                         =
       I_SAVE                            = 'A'
    *   IS_VARIANT                        =
       IT_EVENTS                         = V_EVENTS
      TABLES
        T_OUTTAB                          = IT_EKPO
    EXCEPTIONS
       PROGRAM_ERROR                     = 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.
    ENDFORM.
    Hope this helps...
    Best regards,
    raam

  • Recent call/event notices won't go away

    I've got a weird problem with Skype 4.2.0.11 (and previous versions). When I sign in, notifications of recent calls appear like so:
     (contact list)
     (tray icon)
    When I click "Mark All Viewed" or the 'X' next to each notification, the notification clears as it should. But when I sign out and sign in again after clearing them, the notifications reappear just as if I hadn't cleared them. 
    Any idea what's causing this or how to fix it?
    I'm running Linux Mint 14, but have seen the same behavior in Ubuntu 12.10.

    The script below will erase all history. Use it when not logged into Skype and do adjust the PROGDIR1 and WORKDIR variables.
    PROGDIR1=/home/Skype/SkypeClear
    WORKDIR=/home/Ben9999/.Skype
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/bistats.db "delete from Reports;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/bistats.db "delete from Events;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/bistats.db "delete from Sqlite_Sequence;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/bistats.db "insert into "Sqlite_Sequence" values('events',1);"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/bistats.db "insert into "Sqlite_Sequence" values('reports',1);"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/bistats.db "vacuum;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "delete from CallMembers;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "delete from Calls;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "delete from ChatMembers;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "delete from Chats;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "update Contacts set Avatar_Image = NULL;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "update Contacts set Saved_Directory_Blob = NULL;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "delete from ContactGroups;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "delete from Conversations;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "delete from Messages;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "delete from Participants;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "delete from Videos;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "delete from VoiceMails;"
    $PROGDIR1/sqlite3 $WORKDIR/Ben9999/main.db "vacuum;"
    find $WORKDIR \( -iname chatsync -o -iname "*journal" -o -iname "*.lck" \) -exec rm -fr {} \;
    find $WORKDIR -exec touch {} \;

  • Adding a call event in calendar

    Hi,
    is it possible to schedule a phone call in calendar application? Or add an event that is related to a contact? I have looked in the user guide but not found anything like it
    Ideas?
    Thanks

    Open the calender app.  Go to the day you want and double touch it.  (depending on what view you are using, this will open up the day).   At the bottom right of the screen there is a little+ sign. Touch it to create a new event.

  • Error calling Events

    Hi again
    I have a problem calling an event, the event sends an error to the agent WF_ERROR, but when i try to visualize the error it only give me this...
    XML document must have a top level element. Error processing resource 'http://oraclesrv/pls/wf/wf_event_html.EventDataContents?p_message_id=65AF14CB3011409D836B6403201B5044&p_queue_table=WF_ERROR'.
    What4s the problem ????
    Why can i visualize the error in question???
    Cheers

    When you click on the hyperlink, we are telling the browser that the content type is XML, and it is validating the XML content. In this case, either your content is not XML or is not valid XML. Why don;t you right click and select Save As, and save the file to your local PC and then open up the contents in a Text Editor.
    Hi again
    I have a problem calling an event, the event sends an error to the agent WF_ERROR, but when i try to visualize the error it only give me this...
    XML document must have a top level element. Error processing resource 'http://oraclesrv/pls/wf/wf_event_html.EventDataContents?p_message_id=65AF14CB3011409D836B6403201B5044&p_queue_table=WF_ERROR'.
    What4s the problem ????
    Why can i visualize the error in question???
    Cheers

  • Call event from another event

    I have a button where i need to call one event from another... does anyone have any ideas on what the syntax would be?
    public class PushButton extends Button
    public PushButton()
    * Mouse Pressed Event
    this.addEventHandler(MouseEvent.MOUSE_PRESSED,
    new EventHandler<MouseEvent>() {
    @Override
    public void handle(MouseEvent e) {
    System.out.println("MousePressed");
    * Mouse Released Event
    this.addEventHandler(MouseEvent.MOUSE_RELEASED,
    new EventHandler<MouseEvent>() {
    @Override
    public void handle(MouseEvent e) {
    System.out.println("MouseReleased");
              *// Make a call to the mouse pressed event????*
    }

    Hi,
    As per your requirement, i hope the below code should work. :)
    public class PushButton extends Button
         public PushButton()
               * Mouse Pressed Event
              final EventHandler<MouseEvent> mousePressedEvent = new EventHandler<MouseEvent>() {
                   @Override
                   public void handle(MouseEvent e) {
                        System.out.println("MousePressed");
              this.addEventHandler(MouseEvent.MOUSE_PRESSED, mousePressedEvent);
               * Mouse Released Event
              this.addEventHandler(MouseEvent.MOUSE_RELEASED,
                        new EventHandler<MouseEvent>() {
                   @Override
                   public void handle(MouseEvent e) {
                        System.out.println("MouseReleased");
                        // Make a call to the mouse pressed event
                        mousePressedEvent.handle(e);
    }Happy Coding !! :)
    Regards,
    Sai Pradeep Dandem.

  • Is it possible to call event within even in Java

    I want to call Mouse Move event in Mouse dragg event, is it possible. Could you please give reference on how to do that.

    The simplistic answer: Yes, if you only want to use some "bland" code in the mouseMoved() method. But I'm not sure how the MouseEvent is set up differently between the two. I would bet that the getPoint() function has useful data in it.
    addMouseMotionListener(new MouseMotionAdapter() {
    @Override
    public void mouseDragged ( MouseEvent e ) {
    this.mouseMoved(e);
    e.consume ();
    @Override
    public void mouseMoved ( MouseEvent e ) {
    mousePos = e.getPoint();
    });

  • Getting ie error when calling event from code.

    Hi all!
    I've got an application (running on 6.40 sp8, ep6 sp2) that is pretty basic by all means. Since I want to implement some way to tell the user when he/she has made an error or just to inform him/her about something, I decided to use the ConfirmationDialog.
    I've created an action called onActionShowErrorMessage in my view. This action is tied to my controller and an event defined in the controller.
    Hence, when I want to show the ConfirmationDialog to show the user an error message, I call the controller method and in the method I fire the event that my view method is looking for.
    So far so good..
    When I call my controller method from a button action in the view everything works nicely, but when I try to call it from the wdInit method it fails?! I do get the ConfirmationDialog up but I also get an IE error window telling me that IE is trying to open a page it cannot find. I have no idea why it tries to open any page at all, since there is no navigation defined for this action.
    Anyone got an idea? I couldn't find any good stuff in the system logs either
    Best regards,
    Andreas

    Hello Sam!
    Thanks for your answer! I would like to use something more of a pop thing, since i want to make sure the user sees it. The MessageManager does not work as good as it used to anymore, since it puts all messages in the bottom of the page. This page needs to be scrolled in order to see the error message..
    Anyone got an idea of a workaround? I'm reading a propsfile, and in case I'm not able to read it I want to display this to the user.
    B.R
    Andreas

  • Call event handler programatically

    Hi, I have a function that handles a change event from a
    combo box. The problem is that, I also want to call the function
    from within the program, but the function is waiting for a change
    event. Is it possible to call an event handler
    programatically?

    if you're not using the event that is passed to the event
    handler, then you can initialise the event to null, which means
    that Flash won't worry if no event is passed to the event handler,
    and you could either call this as a function or use it as an event
    handler eg:
    function comboChange(event:Event=null):void
    if you were using the event handler(which is probably the
    best idea to target the combo from event.currentTarget rather than
    directly in case you want to extend this handler in future), then
    it might be nicer to do this sort of thing:

  • DescriptorEventAdapter's aboutToUpdate and calling event.getOriginalObject

    Hi All
    We have a class extending DescriptorEventAdapter and implementing its aboutToUpdate() method to update some audit information in every object. The implementation is here.
    public void aboutToUpdate(DescriptorEvent event)
    log.debug("Object updated " + event.getOriginalObject().getClass().getSimpleName());
    event.updateAttributeWithObject("SOME_FIELD", obj.getId().intValue());
    Above implementation causing the object(being updated) having null values in it and database throws eerror complaining about NULL values.
    It looks call to event.getOriginalObject() in log.debug statement updating/replacing? the object with null values
    If we delete the log.debug... line then it works fine.
    Any idea why/how call to event.getOriginalObject() causing this issue.
    Thanks you very much for clearing concepts.
    Regards,
    HH

    take a look at java.util.Observable and java.util.Observer. Alternatively, write your own event dispatch framework.

Maybe you are looking for

  • Problems to sync after Upgrade Touch 4G

    Hi folks, right after upgrade my Ipod Touch 4G to iOS 5 I experience major problem with syncing my IPod with ITunes (Also updated) In most tries Itunes tells me that it cannot connect properly with the IPod and I need to restore it. This happens with

  • Oracle 8i database-Date format

    hello i got my database in mssql server, now we want to shift to Oracle8i, while accomplishing above task, i am not able to export date type data from mssql to oracle8i, because of date format mssql date format is "07/21/2001" and oracle8i, format is

  • VOCAL EFFECT QUESTION

    Can anyone help me figure out how to get the effect used on that e-40 featuring t-pain "u and dat" song? It's the electronic sounding effect on t-pain's voice while he's singing. I think Cher andd a bunch of other artists have used it before. I'd rea

  • JDO Auto Generate Primary Key

    Hi I am working with JDO. I want to auto generate the primary key value that should increment for each entry into database. How can i do it, please guide me. Any link or doc will be appreciated. Regards Osman

  • AP not associate with occur electrical cut

    Hi I have a different models of Access-Point, but when occur electrical cut, the ap not associate againt to controller, additional lost a domain and dns. All AP have static ip address, dns and domain. I configure HA Regards.