<?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: Question Regarding ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333630#M169719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the class class cl_gui_alv_grid to display the ALV grid, then you can get the selected rows index using the method get_selected_rows of the class cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2006 04:48:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-10T04:48:32Z</dc:date>
    <item>
      <title>Question Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333627#M169716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made a report for alv grid. A custom button was added to the toolabar of the alv grid which does a forward function.  the user comes in and selects some rows of the alv grid and want to forward it to others. I couldnt catch up the row value that is been selected by the user. Is there any field that stores the selected row value by the user in the internal table of the alv grid. Please help me asap...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 04:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333627#M169716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T04:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333628#M169717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume your are talking about alv grid using FM.&lt;/P&gt;&lt;P&gt;(and not oo concept)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In our internal we have to take&lt;/P&gt;&lt;P&gt;  on extra field of type c,&lt;/P&gt;&lt;P&gt;  which will CAPTURE the selected rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important code has been marked specifically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. To get a taste of it,&lt;/P&gt;&lt;P&gt;   just copy paste this program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. It will display alv (t001)&lt;/P&gt;&lt;P&gt;  and DOUBLE-CLICK ON any row.&lt;/P&gt;&lt;P&gt;   It will TICK ALL THE CHECKBOXES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. &lt;/P&gt;&lt;P&gt;REPORT abc.&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;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE t001.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA : flag tyPE c,&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;P&gt;     END OF itab.&lt;/P&gt;&lt;P&gt;DATA : alvfc TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA : alvly TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; Select Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM t001 INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*------- Field Catalogue&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_program_name         = sy-repid&lt;/P&gt;&lt;P&gt;    i_internal_tabname     = 'ITAB'&lt;/P&gt;&lt;P&gt;    i_inclname             = sy-repid&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    ct_fieldcat            = alvfc&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;    program_error          = 2&lt;/P&gt;&lt;P&gt;    OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;Display&lt;/P&gt;&lt;P&gt;alvly-box_fieldname = 'FLAG'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    it_fieldcat             = alvfc&lt;/P&gt;&lt;P&gt;    i_callback_program      = sy-repid "&amp;lt;-------Important&lt;/P&gt;&lt;P&gt;    i_callback_user_command = 'ITAB_USER_COMMAND' "&amp;lt;------ Important&lt;/P&gt;&lt;P&gt;    is_layout               = alvly&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    t_outtab                = itab&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALL BACK FORM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE&lt;/P&gt;&lt;P&gt;slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab.&lt;/P&gt;&lt;P&gt;    itab-flag = 'X'.&lt;/P&gt;&lt;P&gt;    MODIFY itab.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; IMPORTANT.&lt;/P&gt;&lt;P&gt;WHATROW-REFRESH = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "ITAB_user_command&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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 04:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333628#M169717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T04:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333629#M169718</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;GOOD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HOPE THERE WONT BE ANY FIELD WHICH WILL STORE THE VALUE OF THE SELECTED ROW ,I THINK YOU HAVE TO USE THE LOGIC THROUGH WHICH YOU CAN CATCH THE PARTICULAR FIELD VALUE FROM THE FIELD CATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 04:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333629#M169718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T04:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333630#M169719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the class class cl_gui_alv_grid to display the ALV grid, then you can get the selected rows index using the method get_selected_rows of the class cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 04:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333630#M169719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T04:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333631#M169720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vicky,&lt;/P&gt;&lt;P&gt; if you are using OO ALV then you can simply find the selected rows ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sample of the same..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM set_sel_rows .

 

  DATA lt_selected_rows TYPE lvc_t_roid .

  DATA ls_selected_row TYPE lvc_s_roid .

  CALL METHOD g_grid-&amp;gt;get_selected_rows

    IMPORTING

      et_row_no = lt_selected_rows.

 

  LOOP AT lt_selected_rows INTO ls_selected_row.
*select the required row from the displayed internal table 

  READ TABLE it_disp INDEX ls_selected_row-row_id.
* do the required things
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 04:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333631#M169720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T04:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333632#M169721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can easily do that if u use oo alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a method caled "GET_SLECTED_ROWS".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to do it in normal alv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the fieldcat should be of LVC type not  slis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the layout LVC_S_LaYO, u can see box_fieldname,box_tabname.&lt;/P&gt;&lt;P&gt;if those parameters and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use that value as 'X' and get the row values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Hymavathi Oruganti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 05:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333632#M169721</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-05-10T05:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333633#M169722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use e_row_id,e_row_no which are of type &amp;#147;LVC_S_ROID&amp;#148; which can be used to pass information abt row index,and &amp;#147;e_column_id&amp;#148; of type &amp;#147;LVC_S_COL&amp;#148; which returns the column fieldname at &amp;#147;e_column_id-fieldname&amp;#148;. Utilizing these parameters you know where the user clicked and trigger your action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use this fields while implementing methods for events (hotspot/double clik)&lt;/P&gt;&lt;P&gt;please check the following implementation of the event &amp;#147;hotspot_click&amp;#148;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM handle_hotspot_click USING i_row_id TYPE lvc_s_row
i_column_id TYPE lvc_s_col
is_row_no TYPE lvc_s_roid.
READ TABLE gt_list INDEX is_row_no-row_id .
IF sy-subrc = 0 AND i_column_id-fieldname = 'SEATSOCC' .
CALL SCREEN 200 . "Details about passenger-seat matching
ENDIF .
ENDFORM .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjit Thakur.&lt;/P&gt;&lt;P&gt;Please Mark The Helpful Answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 05:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333633#M169722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T05:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333634#M169723</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;Could u explain me in detail like where to use that type-pool. Can u forward me a sample code if u have one pleaseee..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks And Regards&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 12:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333634#M169723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T12:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333635#M169724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. TYPE-POOLS : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This we use when we have to &lt;/P&gt;&lt;P&gt;develop program for ALV report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 12:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333635#M169724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T12:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333636#M169725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u want to capture the value of  the entire row the u need to use the following user command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING R_UCOMM     LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;                               RS_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;RS_SELFIELD-TABINDEX will point the row which you have selected., using that you can read and do what ever you want..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDFORM.                    "USER_COMMAND&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 12:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333636#M169725</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2006-05-10T12:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333637#M169726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi VIcky,&lt;/P&gt;&lt;P&gt;check this sample..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_ALV_CHECK     message-id zz           .


TYPE-POOLS: SLIS.
DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
      IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
      L_LAYOUT type slis_layout_alv,
      x_events type slis_alv_event,
      it_events type SLIS_T_EVENT.

DATA: BEGIN OF ITAB OCCURS 0,
      VBELN LIKE VBAK-VBELN,
      POSNR LIKE VBAP-POSNR,
      CHK(1),
     END OF ITAB.

SELECT VBELN
       POSNR
       FROM VBAP
       UP TO 20 ROWS
       INTO TABLE ITAB.

X_FIELDCAT-FIELDNAME = 'CHK'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 1.
X_FIELDCAT-INPUT = 'X'.
X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-CHECKBOX = 'X'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.

X_FIELDCAT-FIELDNAME = 'VBELN'.
X_FIELDCAT-SELTEXT_L = 'VBELN'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 2.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.

X_FIELDCAT-FIELDNAME = 'POSNR'.
X_FIELDCAT-SELTEXT_L = 'POSNR'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 3.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_LAYOUT-window_titlebar = 'Popup window'.

  x_events-NAME = SLIS_EV_END_OF_PAGE.
  x_events-FORM = 'END_OF_PAGE'.
  APPEND x_events  TO iT_EVENTS.
  CLEAR x_events .
  x_events-NAME = SLIS_EV_TOP_OF_PAGE.
  x_events-FORM = 'TOP_OF_PAGE'.
  APPEND x_events  TO iT_EVENTS.
  CLEAR x_events .

    x_events-NAME = 'DATA_CHANGED'.
  x_events-FORM = 'DATA_CHANGED'.
  APPEND x_events  TO iT_EVENTS.
  CLEAR x_events .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    I_CALLBACK_PROGRAM       = SY-REPID
    IS_LAYOUT                = L_LAYOUT
    I_CALLBACK_PF_STATUS_SET = 'STATUS'
    I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
    IT_FIELDCAT              = IT_FIELDCAT
    it_events                = it_events
*    I_SCREEN_START_COLUMN    = 10
*    I_SCREEN_START_LINE      = 1
*    I_SCREEN_END_COLUMN      = 50
*    I_SCREEN_END_LINE        = 20
  TABLES
    T_OUTTAB                 = ITAB
  EXCEPTIONS
    PROGRAM_ERROR            = 1
    OTHERS                   = 2.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

FORM TOP_OF_PAGE.
* BREAK-POINT.
  WRITE: / 'TOP_OF_PAGE'.
ENDFORM.

FORM END_OF_PAGE.
* BREAK-POINT.
  WRITE: / 'END_OF_PAGE'.
ENDFORM.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  STATUS
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_EXTAB    text
*----------------------------------------------------------------------*
FORM STATUS USING P_EXTAB TYPE SLIS_T_EXTAB.
*- Pf status
  SET PF-STATUS 'STATUS'.
ENDFORM.                 " STATUS

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  USER_COMMAND
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;R_UCOMM      text
*      --&amp;gt;RS_SELFIELD  text
*----------------------------------------------------------------------*
FORM USER_COMMAND USING R_UCOMM     LIKE SY-UCOMM
                               RS_SELFIELD TYPE SLIS_SELFIELD.

  case r_ucomm.
    when 'BACK' or 'CANC' or 'EXIT'.
      leave to screen 0.
    when '&amp;amp;IC1'.
"this tabindex will also the same as itab row
     message i000 with 'clicked on row' rs_selfield-tabindex.
*      set parameter id 'AUN' field rs_selfield-value.
*      call transaction 'VA03' and skip first screen.
  endcase.
ENDFORM.                    "USER_COMMAND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 12:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-alv/m-p/1333637#M169726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T12:51:33Z</dc:date>
    </item>
  </channel>
</rss>

