<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595520#M267494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an event table, which are used for firing both user commands and the system dependent events i.e. top of page, end of page etc.&lt;/P&gt;&lt;P&gt;A list of possible events is populated into an event table (I_EVENTS) when this table is passed to the function module REUSE_ALV_EVENT_NAMES_GET. The return table from this function module contains all the possible events.&lt;/P&gt;&lt;P&gt;The function module contains following import and export parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING PARAMETERS: I_LIST_TYPE&lt;/P&gt;&lt;P&gt;This parameter has possible values from 0-4.&lt;/P&gt;&lt;P&gt;The parameter I_LIST_TYPE is of TYPE SLIS_LIST_TYPE and is DEFAULT 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EXPORTING PARAMETERS:  I_EVENTS table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table is of TYPE SLIS_T_EVENT and returns to the program the name of all the possible events. &lt;/P&gt;&lt;P&gt;The table structure contains the fields:&lt;/P&gt;&lt;P&gt; 	I_EVENTS-NAME: Name of the Callback event.&lt;/P&gt;&lt;P&gt;I_EVENTS-FORM: Name of the form routine that should be called in the calling program at the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only events with a form routine name are processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The I_EVENTS table returns with the following possible constants:&lt;/P&gt;&lt;P&gt;***************************************************&lt;/P&gt;&lt;P&gt;FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',&lt;/P&gt;&lt;P&gt;FORMNAME_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE', FORMNAME_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'USER_COMMAND'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: L_I_EVENT TYPE SLIS_ALV_EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;           I_LIST_TYPE = 0&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            ET_EVENTS   = I_EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE I_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE&lt;/P&gt;&lt;P&gt;                           INTO L_I_EVENT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    MOVE FORMNAME_TOP_OF_PAGE TO L_I_EVENT-FORM.&lt;/P&gt;&lt;P&gt;    APPEND L_I_EVENT TO I_EVENTS.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE I_EVENTS WITH KEY NAME = SLIS_EV_END_OF_PAGE&lt;/P&gt;&lt;P&gt;                           INTO L_I_EVENT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    MOVE FORMNAME_END_OF_PAGE TO L_I_EVENT-FORM.&lt;/P&gt;&lt;P&gt;    APPEND L_I_EVENT TO I_EVENTS.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CLEAR L_I_EVENT.&lt;/P&gt;&lt;P&gt;  READ TABLE I_EVENTS WITH KEY NAME = SLIS_EV_USER_COMMAND&lt;/P&gt;&lt;P&gt;                           INTO L_I_EVENT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    MOVE FORMNAME_USER_COMMAND TO L_I_EVENT-FORM.&lt;/P&gt;&lt;P&gt;    APPEND L_I_EVENT TO I_EVENTS.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Madhavi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Oct 2006 21:20:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-01T21:20:30Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595515#M267489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    How to handle the TOP OF PAGE and END OF PAGE events in ALV Grid Control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srinu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 20:47:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595515#M267489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-01T20:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595516#M267490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you using the function module to display the ALV..Pass the events in the parameters IT_EVENTS to the function module...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the events using the function module REUSE_ALV_EVENTS_GET..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then add the event name and the form name to the internal table T_EVENTS and pass in the parameters IT_EVENTS...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 20:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595516#M267490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-01T20:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595517#M267491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if u have any sample code plz forward to me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 20:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595517#M267491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-01T20:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595518#M267492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;check the below link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 21:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595518#M267492</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-10-01T21:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595519#M267493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        vbeln TYPE vbeln,&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab1 OCCURS 0,&lt;/P&gt;&lt;P&gt;        vbeln TYPE vbeln,&lt;/P&gt;&lt;P&gt;        posnr TYPE posnr,&lt;/P&gt;&lt;P&gt;        netpr TYPE netpr,&lt;/P&gt;&lt;P&gt;        matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;      END OF itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA: s_fieldcatalog TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_fieldcatalog-col_pos = '1'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname   = 'ITAB1'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-rollname  = 'VBELN'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO t_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_fieldcatalog-col_pos = '2'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'POSNR'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname   = 'ITAB1'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-rollname  = 'POSNR'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO t_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: s_fieldcatalog.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-col_pos = '3'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'NETPR'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname   = 'ITAB1'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-rollname  = 'NETPR'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-do_sum    = 'X'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO t_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: s_fieldcatalog.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-col_pos = '4'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname   = 'ITAB1'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-rollname  = 'MATNR'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_tabname = 'MARA'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-ref_fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-edit = 'X'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-input = 'X'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO t_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: s_layout TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_layout-subtotals_text            = 'SUBTOTAL TEXT'.&lt;/P&gt;&lt;P&gt;s_layout-key_hotspot = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;       FROM&lt;/P&gt;&lt;P&gt;       vbak&lt;/P&gt;&lt;P&gt;       INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT itab[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT vbeln posnr netpr matnr&lt;/P&gt;&lt;P&gt;         FROM vbap&lt;/P&gt;&lt;P&gt;         INTO TABLE itab1&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN itab&lt;/P&gt;&lt;P&gt;         WHERE vbeln = itab-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_repid TYPE syrepid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_events TYPE slis_t_event.&lt;/P&gt;&lt;P&gt;DATA: s_events TYPE slis_alv_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_events-name = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;s_events-form = 'FORM_TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND s_events TO t_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          i_callback_program = v_repid&lt;/P&gt;&lt;P&gt;          it_fieldcat        = t_fieldcatalog&lt;/P&gt;&lt;P&gt;          it_events          = t_events&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          t_outtab           = itab1&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          program_error      = 1&lt;/P&gt;&lt;P&gt;          OTHERS             = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM FORM_TOP_OF_PAGE                                         *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ........                                                      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM form_top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ref TYPE REF TO cl_dd_document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ld_logo    TYPE sdydo_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: gt_header       TYPE  slis_t_listheader WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE: 'H'               TO gt_header-typ,&lt;/P&gt;&lt;P&gt;        'Alv report'      TO gt_header-info.&lt;/P&gt;&lt;P&gt;  APPEND gt_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXPORT it_list_commentary FROM gt_header&lt;/P&gt;&lt;P&gt;           i_logo FROM ld_logo&lt;/P&gt;&lt;P&gt;           TO MEMORY ID 'DYNDOS_FOR_ALV'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_COMMENTARY_SET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document       = ref&lt;/P&gt;&lt;P&gt;      bottom         = ''&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    LENGTH         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 21:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595519#M267493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-01T21:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595520#M267494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an event table, which are used for firing both user commands and the system dependent events i.e. top of page, end of page etc.&lt;/P&gt;&lt;P&gt;A list of possible events is populated into an event table (I_EVENTS) when this table is passed to the function module REUSE_ALV_EVENT_NAMES_GET. The return table from this function module contains all the possible events.&lt;/P&gt;&lt;P&gt;The function module contains following import and export parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING PARAMETERS: I_LIST_TYPE&lt;/P&gt;&lt;P&gt;This parameter has possible values from 0-4.&lt;/P&gt;&lt;P&gt;The parameter I_LIST_TYPE is of TYPE SLIS_LIST_TYPE and is DEFAULT 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EXPORTING PARAMETERS:  I_EVENTS table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table is of TYPE SLIS_T_EVENT and returns to the program the name of all the possible events. &lt;/P&gt;&lt;P&gt;The table structure contains the fields:&lt;/P&gt;&lt;P&gt; 	I_EVENTS-NAME: Name of the Callback event.&lt;/P&gt;&lt;P&gt;I_EVENTS-FORM: Name of the form routine that should be called in the calling program at the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only events with a form routine name are processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The I_EVENTS table returns with the following possible constants:&lt;/P&gt;&lt;P&gt;***************************************************&lt;/P&gt;&lt;P&gt;FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',&lt;/P&gt;&lt;P&gt;FORMNAME_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE', FORMNAME_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'USER_COMMAND'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: L_I_EVENT TYPE SLIS_ALV_EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;           I_LIST_TYPE = 0&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            ET_EVENTS   = I_EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE I_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE&lt;/P&gt;&lt;P&gt;                           INTO L_I_EVENT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    MOVE FORMNAME_TOP_OF_PAGE TO L_I_EVENT-FORM.&lt;/P&gt;&lt;P&gt;    APPEND L_I_EVENT TO I_EVENTS.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE I_EVENTS WITH KEY NAME = SLIS_EV_END_OF_PAGE&lt;/P&gt;&lt;P&gt;                           INTO L_I_EVENT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    MOVE FORMNAME_END_OF_PAGE TO L_I_EVENT-FORM.&lt;/P&gt;&lt;P&gt;    APPEND L_I_EVENT TO I_EVENTS.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CLEAR L_I_EVENT.&lt;/P&gt;&lt;P&gt;  READ TABLE I_EVENTS WITH KEY NAME = SLIS_EV_USER_COMMAND&lt;/P&gt;&lt;P&gt;                           INTO L_I_EVENT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    MOVE FORMNAME_USER_COMMAND TO L_I_EVENT-FORM.&lt;/P&gt;&lt;P&gt;    APPEND L_I_EVENT TO I_EVENTS.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Madhavi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 21:20:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1595520#M267494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-01T21:20:30Z</dc:date>
    </item>
  </channel>
</rss>

