<?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: ALVS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809253#M347105</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;simply chk this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_ucomm.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_ucomm.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2006 11:37:52 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2006-12-05T11:37:52Z</dc:date>
    <item>
      <title>ALVS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809247#M347099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru,&lt;/P&gt;&lt;P&gt;What is functionmodules used in alvs?by clicking vendorno directly we get XK01 screen how is it possible by using alv?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 09:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809247#M347099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T09:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALVS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809248#M347100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REUSE_ALV_BLOCK_LIST_APPEND&lt;/P&gt;&lt;P&gt;REUSE_ALV_BLOCK_LIST_DATA_GET&lt;/P&gt;&lt;P&gt;REUSE_ALV_BLOCK_LIST_DATA_SET&lt;/P&gt;&lt;P&gt;REUSE_ALV_BLOCK_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;REUSE_ALV_BLOCK_LIST_HS_APPEND&lt;/P&gt;&lt;P&gt;REUSE_ALV_BLOCK_LIST_INIT&lt;/P&gt;&lt;P&gt;REUSE_ALV_BLOCK_LIST_REFRESH&lt;/P&gt;&lt;P&gt;REUSE_ALV_BLOCK_STATUS_GET&lt;/P&gt;&lt;P&gt;REUSE_ALV_CHECKBOX_SET&lt;/P&gt;&lt;P&gt;REUSE_ALV_COMMENTARY_WRITE&lt;/P&gt;&lt;P&gt;REUSE_ALV_FIELDCATALOG_MERGE&lt;/P&gt;&lt;P&gt;REUSE_ALV_HIERSEQ_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;REUSE_ALV_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;REUSE_ALV_POPUP_TO_SELECT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write a doble click event. if the user double click the vendor number call transaction XK01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write USER_COMMAND in REUSE_ALV_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;                       SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;READ TABLE IVBAP INDEX SELFIELD-TABINDEX.&lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;CASE UCOMM.&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;CASE SELFIELD-SEL_TAB_FIELD.&lt;/P&gt;&lt;P&gt; WHEN 'IVBAP-ENO'.&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'AUN' FIELD IVBAP-ENO.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'SE03' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt; WHEN 'IVBAP-NAME'.&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'MAT' FIELD IVBAP-NAME.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'SE07' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 09:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809248#M347100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T09:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALVS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809249#M347101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USE LIKE THAT....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.



case R_UCOMM
when '&amp;amp;IC1'.
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;kishan negi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 09:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809249#M347101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T09:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALVS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809250#M347102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The commonly used ALV functions used are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	REUSE_ALV_VARIANT_DEFAULT_GET&lt;/P&gt;&lt;P&gt;2.	REUSE_ALV_VARIANT_F4&lt;/P&gt;&lt;P&gt;3.	REUSE_ALV_VARIANT_EXISTENCE&lt;/P&gt;&lt;P&gt;4.	REUSE_ALV_EVENTS_GET&lt;/P&gt;&lt;P&gt;5.	REUSE_ALV_COMMENTARY_WRITE&lt;/P&gt;&lt;P&gt;6.             REUSE_ALV_FIELDCATALOG_MERGE&lt;/P&gt;&lt;P&gt;7.             REUSE_ALV_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;8.	REUSE_ALV_GRID_DISPLAY&lt;/P&gt;&lt;P&gt;9.	REUSE_ALV_POPUP_TO_SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of these most commonly used are REUSE_ALV_LIST_DISPLAY and REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_LIST_DISPLAY:  This is the function module which prints the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The important parameters are:&lt;/P&gt;&lt;P&gt;1. Export:&lt;/P&gt;&lt;P&gt;a. I_callback_program	 : report id&lt;/P&gt;&lt;P&gt;b. I_callback_pf_status_set	 : routine where a user can set his own pf status&lt;/P&gt;&lt;P&gt;			   or change the functionality of the existing pf 			   status.&lt;/P&gt;&lt;P&gt;c.  I_callback_user_command : routine where the function codes are&lt;/P&gt;&lt;P&gt;                                                   handled.&lt;/P&gt;&lt;P&gt;d. I_structure name	: name of the dictionary table&lt;/P&gt;&lt;P&gt;e. Is_Layout		: structure to set the layout of the report&lt;/P&gt;&lt;P&gt;f. It_fieldcat		: internal table with the list of all fields and their&lt;/P&gt;&lt;P&gt;                                                  attributes which are to be printed (this table can&lt;/P&gt;&lt;P&gt;                                                  be populated automatically by the function&lt;/P&gt;&lt;P&gt;                                                 module REUSE_ALV_FIELDCATALOG_MERGE)&lt;/P&gt;&lt;P&gt;g. It_events		: internal table with a list of all possible events of ALV and their corresponding routine names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Tables:&lt;/P&gt;&lt;P&gt;	a. t_outtab	: internal table with the data to be output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_GRID_DISPLAY: A new function in 4.6 version, to display the results in grid rather than as a list.&lt;/P&gt;&lt;P&gt;Parameters : same as reuse_alv_list_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_FIELDCATALOG_MERGE:  &lt;/P&gt;&lt;P&gt;This function module is used to populate a fieldcatalog which is essential to display the data in ALV. If the output data is from a single dictionary table and all the columns are selected, then we need not exclusively create the field catalog. Its enough to mention the table name as a parameter(I_structure_name) in the REUSE_ALV_LIST_DISPLAY. But in other cases we need to create it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_COMMENTARY_WRITE : This is used in the Top-of-page event to print the headings and other comments for the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at ABAP List Viewer in below link:&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://www.sap-basis-abap.com/sapabap01.htm"&amp;gt;ALV&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 09:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809250#M347102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T09:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALVS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809251#M347103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to take the help of USER_COMMAND event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with that it is simple to show the interactive report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;**-ALV list Display
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_CALLBACK_PROGRAM       = SY-REPID
   &amp;lt;b&amp;gt;   I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET'&amp;lt;/b&amp;gt;
    &amp;lt;b&amp;gt;  I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'&amp;lt;/b&amp;gt;
      IS_LAYOUT                = X_LAYOUT
      IT_FIELDCAT              = IT_FIELDCAT
      IT_EVENTS                = IT_EVENTS
    TABLES
      T_OUTTAB                 = IT_FINAL
    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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to pass these two forms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM PF_STATUS_SET USING    P_EXTAB TYPE SLIS_T_EXTAB.
  SET PF-STATUS 'STANDARD' EXCLUDING P_EXTAB.
ENDFORM.                    "PF_STATUS_SET


FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE
                                                         SLIS_SELFIELD.
 case UCOMM.
 when '&amp;amp;IC1'.  "this is for double click.
 "do some thing..
  ENDCASE.
ENDFORM.                    "USER_COMMAND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the sample code also..&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.


DATA: BEGIN OF ITAB OCCURS 0,
      VBELN LIKE VBAK-VBELN,
      POSNR LIKE VBAP-POSNR,
     END OF ITAB.

SELECT VBELN
       POSNR
       FROM VBAP
       UP TO 20 ROWS
       INTO TABLE ITAB.



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.


CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    I_CALLBACK_PROGRAM       = SY-REPID
    IS_LAYOUT                = L_LAYOUT
&amp;lt;b&amp;gt;    I_CALLBACK_PF_STATUS_SET = 'STATUS'
    I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'&amp;lt;/b&amp;gt;
    IT_FIELDCAT              = IT_FIELDCAT
  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.

*&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
&amp;lt;b&amp;gt;  SET PF-STATUS 'STATUS'.&amp;lt;/b&amp;gt;
ENDFORM.                 " STATUS

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  USER_COMMAND
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;R_UCOMM      text
*      --&amp;gt;RS_SELFIELD  text
*----------------------------------------------------------------------*
&amp;lt;b&amp;gt;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'.
       if rs_selfield-fieldname = 'VBELN'.
*      message i000 with 'clicked on row' rs_Selfield-tabindex.
      set parameter id 'AUN' field rs_selfield-value.
      call transaction 'VA03' and skip first screen.
      endif.
  endcase.
ENDFORM.                    "USER_COMMAND&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need set the PF-status and the User-command. and enable F2 key that is for double clicking, set the Function code '&amp;amp;IC1' for f2 key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it will work.&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;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 11:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809251#M347103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T11:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALVS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809252#M347104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi surendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In alv we cannot use AT LINE Selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For alv, there is a special syntax, so that when we double-click on alv,&lt;/P&gt;&lt;P&gt;   our FORM / routine is called and there we display another alv,&lt;/P&gt;&lt;P&gt;  OR use CALL TRANSACTION to show another tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. just copy paste to get a taste of interactive alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;&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 : ITAB LIKE T001 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : alvfc TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA : STAB LIKE T001 OCCURS 0 WITH HEADER LINE.&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; 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;CALL FUNCTION 'REUSE_ALV_GRID_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;  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;HR originaltext="----" /&gt;&lt;P&gt; IMPORTANT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE ITAB INDEX WHATROW-TABINDEX.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  CLEAR STAB.&lt;/P&gt;&lt;P&gt;  SELECT * FROM T001&lt;/P&gt;&lt;P&gt;  INTO TABLE STAB&lt;/P&gt;&lt;P&gt;  WHERE BUKRS = ITAB-BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ALVFC.&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     = 'STAB'&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;&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;      it_fieldcat        = alvfc&lt;/P&gt;&lt;P&gt;      i_callback_program = sy-repid "&amp;lt;-------Important&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab           = Stab&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;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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 11:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809252#M347104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T11:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: ALVS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809253#M347105</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;simply chk this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_ucomm.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_ucomm.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 11:37:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alvs/m-p/1809253#M347105</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-05T11:37:52Z</dc:date>
    </item>
  </channel>
</rss>

