<?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 Grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779613#M336076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the below code I am having problems with errors. It givinf=g me an error because i am using a form end form in another form endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANy suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FORM 4210_list .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM f9200_get_fieldcat1.&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;      i_callback_user_command = 'DISPLAY_DETAIL'&lt;/P&gt;&lt;P&gt;      i_grid_title            = 'Company Code - 5400'&lt;/P&gt;&lt;P&gt;      it_fieldcat             = i_fieldcat1&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                = it_output1&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;  PERFORM f9200_get_fieldcat2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  display_detail&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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;      text&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;     --&amp;gt;UCOMM      text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;SELFIELD   text&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;&amp;lt;b&amp;gt;FORM display_detail USING ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;selfield TYPE slis_selfield.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ucomm = '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE it_output1 INDEX selfield-tabindex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT it_output WHERE hkont = it_output1-hkont.&lt;/P&gt;&lt;P&gt;        MOVE it_output TO it_output2.&lt;/P&gt;&lt;P&gt;        APPEND it_output2.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&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;          i_grid_title       = 'Company Code - 5400'&lt;/P&gt;&lt;P&gt;          it_fieldcat        = i_fieldcat2&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          t_outtab           = it_output2&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;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENDFORM.                    "display_detail&lt;/P&gt;&lt;P&gt;ENDFORM.                    " 4210_list&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Dec 2006 20:35:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-06T20:35:45Z</dc:date>
    <item>
      <title>ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779601#M336064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a ALV grid display report, and its working fine.&lt;/P&gt;&lt;P&gt;However I need to modify it to an Intreactive report in ALV Grid format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what are the additions that go into this program and what would be the function modules i need to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 16:44:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779601#M336064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T16:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779602#M336065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a example&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/an-interactive-alv-report.htm" target="test_blank"&gt;http://www.sap-img.com/abap/an-interactive-alv-report.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bottom line&lt;/P&gt;&lt;P&gt;1. You need to add &amp;amp; register the events you want to handle&lt;/P&gt;&lt;P&gt;2. You need to handle when the events are fired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 16:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779602#M336065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T16:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779603#M336066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ravi,&lt;/P&gt;&lt;P&gt;I had the program before that u have specified and have some questions releated ti it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - I see a form statement without a perform ( form user_command).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u explain in brief about  FM - REUSE_ALV_EVENTS_GET, REUSE_ALV_COMMENTARY_WRITE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 17:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779603#M336066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T17:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779604#M336067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You don't see a PERFORM for USER_COMMAND because what will happen is the RESUE* function module will dynamically call the perform depending on the subroutine name that you are passing as the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. EVENT_GET function will get all the events pertaining to the events of the ALV report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. COMMENTARY_WRITE - If you want to write a header of the ALV report you will have to use this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 17:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779604#M336067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T17:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779605#M336068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 17:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779605#M336068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T17:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779606#M336069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Hotspot. So when I click the required field where does the data gets stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg - in my primary list when i click the customer number, i need to display results based on customer number on the second screen, So where is the customer number store.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 17:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779606#M336069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T17:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779607#M336070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shejal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggets you to &amp;lt;b&amp;gt;search in SDN with key - HOTSPOT.&amp;lt;/b&amp;gt; Will get many post on the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help and give an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this Helps.&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Manish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 17:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779607#M336070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T17:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779608#M336071</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 example fo interactive ALV..Initially the sales orders will be displayed..There will be a hotspot for the sales order number..If you press it , the sales order line items will be displayed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The hotspot related code is marked in bold..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&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;        bstnk TYPE vbak-bstnk,&lt;/P&gt;&lt;P&gt;        erdat TYPE vbak-erdat,&lt;/P&gt;&lt;P&gt;        kunnr TYPE vbak-kunnr,&lt;/P&gt;&lt;P&gt;      END OF itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab2 OCCURS 0,&lt;/P&gt;&lt;P&gt;        vbeln  TYPE vbeln,&lt;/P&gt;&lt;P&gt;        matnr  TYPE vbap-matnr,&lt;/P&gt;&lt;P&gt;        netpr  TYPE vbap-netpr,&lt;/P&gt;&lt;P&gt;        kwmeng TYPE vbap-kwmeng,&lt;/P&gt;&lt;P&gt;      END OF itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_fieldcatalog1 TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA: t_fieldcatalog2 TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA: v_repid         TYPE syrepid.&lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the fieldcatalog1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM get_fieldcat1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the fieldcatalog2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM get_fieldcat2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln bstnk erdat kunnr UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;       INTO TABLE itab1&lt;/P&gt;&lt;P&gt;       FROM vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT itab1[] IS INITIAL.&lt;/P&gt;&lt;P&gt;  SELECT vbeln matnr netpr kwmeng UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;         INTO TABLE itab2&lt;/P&gt;&lt;P&gt;         FROM vbap&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN itab1&lt;/P&gt;&lt;P&gt;         WHERE vbeln = itab1-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;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;          i_callback_user_command = 'DISPLAY_DETAIL'&lt;/P&gt;&lt;P&gt;          it_fieldcat             = t_fieldcatalog1&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          t_outtab                = itab1.&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 display_detail                                           *&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  UCOMM                                                         *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  SELFIELD                                                      *&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 display_detail USING ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                        selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: itab2_temp LIKE itab2 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt; IF ucomm = '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE itab1 INDEX selfield-tabindex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT itab2 WHERE vbeln = itab1-vbeln.&lt;/P&gt;&lt;P&gt;        MOVE itab2 TO itab2_temp.&lt;/P&gt;&lt;P&gt;        APPEND itab2_temp.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&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;                i_callback_program = v_repid&lt;/P&gt;&lt;P&gt;                it_fieldcat        = t_fieldcatalog2&lt;/P&gt;&lt;P&gt;           TABLES&lt;/P&gt;&lt;P&gt;                t_outtab           = itab2_temp.&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;  ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&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 GET_FIELDCAT1                                            *&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 get_fieldcat1.&lt;/P&gt;&lt;P&gt;&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;&amp;lt;b&amp;gt;  s_fieldcatalog-hotspot   = 'X'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  APPEND s_fieldcatalog TO t_fieldcatalog1.&lt;/P&gt;&lt;P&gt;  CLEAR s_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 = 'BSTNK'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-tabname   = 'ITAB1'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-rollname  = 'BSTNK'.&lt;/P&gt;&lt;P&gt;  APPEND s_fieldcatalog TO t_fieldcatalog1.&lt;/P&gt;&lt;P&gt;  CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-col_pos = '3'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-fieldname = 'ERDAT'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-tabname   = 'ITAB1'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-rollname  = 'ERDAT'.&lt;/P&gt;&lt;P&gt;  APPEND s_fieldcatalog TO t_fieldcatalog1.&lt;/P&gt;&lt;P&gt;  CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-col_pos = '4'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-fieldname = 'KUNNR'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-tabname   = 'ITAB1'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-rollname  = 'KUNNR'.&lt;/P&gt;&lt;P&gt;  APPEND s_fieldcatalog TO t_fieldcatalog1.&lt;/P&gt;&lt;P&gt;  CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&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 GET_FIELDCAT2                                            *&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 get_fieldcat2.&lt;/P&gt;&lt;P&gt;&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   = 'ITAB2'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-rollname  = 'VBELN'.&lt;/P&gt;&lt;P&gt;  APPEND s_fieldcatalog TO t_fieldcatalog2.&lt;/P&gt;&lt;P&gt;  CLEAR s_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 = 'MATNR'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-tabname   = 'ITAB2'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-rollname  = 'MATNR'.&lt;/P&gt;&lt;P&gt;  APPEND s_fieldcatalog TO t_fieldcatalog2.&lt;/P&gt;&lt;P&gt;  CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&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   = 'ITAB2'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-rollname  = 'NETPR'.&lt;/P&gt;&lt;P&gt;  APPEND s_fieldcatalog TO t_fieldcatalog2.&lt;/P&gt;&lt;P&gt;  CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-col_pos = '4'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-fieldname = 'KWMENG'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-tabname   = 'ITAB2'.&lt;/P&gt;&lt;P&gt;  s_fieldcatalog-rollname  = 'KWMENG'.&lt;/P&gt;&lt;P&gt;  APPEND s_fieldcatalog TO t_fieldcatalog2.&lt;/P&gt;&lt;P&gt;  CLEAR s_fieldcatalog.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&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>Wed, 06 Dec 2006 17:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779608#M336071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T17:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779609#M336072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at the program and it looks like I will get it done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 18:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779609#M336072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T18:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779610#M336073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code why are you passing &lt;/P&gt;&lt;P&gt;i_callback_user_command = 'DISPLAY_DETAIL'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the FM - CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY the first time and no passing it the second time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 19:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779610#M336073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T19:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779611#M336074</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;Since I am using HOTSPOT in my first ALV (REUSE_ALV_GRID_DISPLAY)..I need to handle when the user presses the hotspot..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DISPLAY_DETAIL is the subroutine will be invoked when the user presses the hotspot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the ALV to know the subroutine name we are passing it in the parameter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;i_callback_user_command = 'DISPLAY_DETAIL'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as for the second ALV, I don't have any HOTSPOT...That is the reason I am not passing this parameter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear..&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>Wed, 06 Dec 2006 19:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779611#M336074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T19:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779612#M336075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Naren, Its very clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 20:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779612#M336075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T20:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779613#M336076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the below code I am having problems with errors. It givinf=g me an error because i am using a form end form in another form endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANy suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FORM 4210_list .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM f9200_get_fieldcat1.&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;      i_callback_user_command = 'DISPLAY_DETAIL'&lt;/P&gt;&lt;P&gt;      i_grid_title            = 'Company Code - 5400'&lt;/P&gt;&lt;P&gt;      it_fieldcat             = i_fieldcat1&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                = it_output1&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;  PERFORM f9200_get_fieldcat2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  display_detail&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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;      text&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;     --&amp;gt;UCOMM      text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;SELFIELD   text&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;&amp;lt;b&amp;gt;FORM display_detail USING ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;selfield TYPE slis_selfield.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ucomm = '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE it_output1 INDEX selfield-tabindex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT it_output WHERE hkont = it_output1-hkont.&lt;/P&gt;&lt;P&gt;        MOVE it_output TO it_output2.&lt;/P&gt;&lt;P&gt;        APPEND it_output2.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&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;          i_grid_title       = 'Company Code - 5400'&lt;/P&gt;&lt;P&gt;          it_fieldcat        = i_fieldcat2&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          t_outtab           = it_output2&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;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENDFORM.                    "display_detail&lt;/P&gt;&lt;P&gt;ENDFORM.                    " 4210_list&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 20:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779613#M336076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T20:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779614#M336077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 20:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779614#M336077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T20:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779615#M336078</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;&lt;/P&gt;&lt;P&gt;Good..Please close the thread if the issue is solved..&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>Wed, 06 Dec 2006 20:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779615#M336078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T20:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779616#M336079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Naren for all the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally its done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 21:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779616#M336079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T21:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779617#M336080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muttu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen ur code here and tried to slove my problem. Your code here looks very simple but when I tried to implement it on my program it doesnt work. I am trying to display a message when user clicks on the hotspot column. It would be really helpful if u could tell me what is worng with my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: slis.&lt;/P&gt;&lt;P&gt;tables kna1.&lt;/P&gt;&lt;P&gt;types: begin of tp_data,&lt;/P&gt;&lt;P&gt;        ktokd like kna1-ktokd,&lt;/P&gt;&lt;P&gt;        kunnr like kna1-kunnr,&lt;/P&gt;&lt;P&gt;        name1 like kna1-name1,&lt;/P&gt;&lt;P&gt;        name2 like kna1-name2,&lt;/P&gt;&lt;P&gt;        ort01 like kna1-ort01,&lt;/P&gt;&lt;P&gt;       end of tp_data,&lt;/P&gt;&lt;P&gt;       tp_tbl_data type standard table of tp_data. "data type defination&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Report data to be shown.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: it_data type standard table of tp_data.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV required data objects.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: t_fieldcat type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;      t_event type slis_t_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh: t_fieldcat, t_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*code to get user input&lt;/P&gt;&lt;P&gt;Selection-screen begin of block Enter_data with frame title text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS p_ktokd like KNA1-ktokd OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_kunnr FOR KNA1-kunnr.&lt;/P&gt;&lt;P&gt;Selection-screen end of block Enter_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*get data into the internal table it_data&lt;/P&gt;&lt;P&gt;PERFORM get_data USING it_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*prepare the field catalog&lt;/P&gt;&lt;P&gt;PERFORM prepare_fieldcat using:&lt;/P&gt;&lt;P&gt;1 'KTOKD' 'KNA1' t_fieldcat,&lt;/P&gt;&lt;P&gt;2 'KUNNR' 'KNA1' t_fieldcat,&lt;/P&gt;&lt;P&gt;3 'NAME1' 'KNA1' t_fieldcat,&lt;/P&gt;&lt;P&gt;4 'NAME2' 'KNA1' t_fieldcat,&lt;/P&gt;&lt;P&gt;5 'ORT01' 'KNA1' t_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Displays the ALV grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM display_alv USING t_fieldcat it_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*deleting the internal table it_data from memory&lt;/P&gt;&lt;P&gt;free it_data.&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;P&gt;*definations of sub-routines called in the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*function to get the data from the database table KNA1 to internal table it_data&lt;/P&gt;&lt;P&gt;form get_data USING t_data type tp_tbl_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ktokd kunnr name1 name2 ort01&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE t_data&lt;/P&gt;&lt;P&gt;        FROM kna1&lt;/P&gt;&lt;P&gt;        WHERE ktokd = p_ktokd&lt;/P&gt;&lt;P&gt;        and kunnr in s_kunnr.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*function to set the field catalog&lt;/P&gt;&lt;P&gt;FORM prepare_fieldcat USING t_colpos t_fieldname t_ref_tabname t_fieldcat type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data tmp_fcat type slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;clear tmp_fcat.&lt;/P&gt;&lt;P&gt;tmp_fcat-col_pos = t_colpos.&lt;/P&gt;&lt;P&gt;tmp_fcat-ref_fieldname = tmp_fcat-fieldname = t_fieldname.&lt;/P&gt;&lt;P&gt;tmp_fcat-ref_tabname = t_ref_tabname.&lt;/P&gt;&lt;P&gt;if t_fieldname = 'KTOKD'.&lt;/P&gt;&lt;P&gt;  tmp_fcat-hotspot = 'X'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  tmp_fcat-hotspot = ' '.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append tmp_fcat to t_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*function to display the alvgrid on the screen&lt;/P&gt;&lt;P&gt;form display_alv using t_fc type slis_t_fieldcat_alv&lt;/P&gt;&lt;P&gt;                       it_d type tp_tbl_data.&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              = t_fc&lt;/P&gt;&lt;P&gt;      i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_outtab                 = it_d[]&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;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form USER_COMMAND using ucomm like sy-ucomm selfield type slis_selfield.&lt;/P&gt;&lt;P&gt;  data msg type string.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; if ucomm = '&amp;amp;IC1'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CONCATENATE 'you pressed on ' selfield-value into msg.&lt;/P&gt;&lt;P&gt;    MESSAGE msg type 'S'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pushpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 21:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779617#M336080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T21:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779618#M336081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pushpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open a new thread, because it is already closed.. so most of the people willnot check the closed threads.. so open a new thread and post u r quesiton there....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 21:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1779618#M336081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T21:28:54Z</dc:date>
    </item>
  </channel>
</rss>

