<?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: regarding two alv grid in a program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-two-alv-grid-in-a-program/m-p/6644568#M1443990</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;1. Build the first  first ALV and populate the docment number and date in this ALV using FM 'REUSE_ALV_GRID_DISPLAY'.&lt;/P&gt;&lt;P&gt;2. write the at user command  event on the first ALV and based on the selection of the sales order. populate the item details to the second internal table.&lt;/P&gt;&lt;P&gt;3. Pass this internal table second ALV grid using function module ''REUSE_ALV_GRID_DISPLAY'. call this FM in the USER_COMMAND event of the first ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 04:18:38 GMT</pubDate>
    <dc:creator>nirajgadre</dc:creator>
    <dc:date>2010-02-04T04:18:38Z</dc:date>
    <item>
      <title>regarding two alv grid in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-two-alv-grid-in-a-program/m-p/6644567#M1443989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to create a program. the program will take the sales document date as selection option. then it will show in ALV grid all the sales document number, and net price with in that document date. if i click on any document number, it will show the item detail of that document in a new ALV grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i get any sample code for that?? can anyone please help me??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 04:01:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-two-alv-grid-in-a-program/m-p/6644567#M1443989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T04:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: regarding two alv grid in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-two-alv-grid-in-a-program/m-p/6644568#M1443990</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;1. Build the first  first ALV and populate the docment number and date in this ALV using FM 'REUSE_ALV_GRID_DISPLAY'.&lt;/P&gt;&lt;P&gt;2. write the at user command  event on the first ALV and based on the selection of the sales order. populate the item details to the second internal table.&lt;/P&gt;&lt;P&gt;3. Pass this internal table second ALV grid using function module ''REUSE_ALV_GRID_DISPLAY'. call this FM in the USER_COMMAND event of the first ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 04:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-two-alv-grid-in-a-program/m-p/6644568#M1443990</guid>
      <dc:creator>nirajgadre</dc:creator>
      <dc:date>2010-02-04T04:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: regarding two alv grid in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-two-alv-grid-in-a-program/m-p/6644569#M1443991</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;for first off you have to make two field catalog ok..&lt;/P&gt;&lt;P&gt;then write the code for the first alv you want to display (ALV grid all the sales document number, and net price with in that document date.) Then the user command of this ALV you have to call the second one(item detail of that document in a new ALV grid.) ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING

      i_callback_program                = sy-repid
*   I_CALLBACK_PF_STATUS_SET          = 'SET_PF_STATUS'
*    I_CALLBACK_USER_COMMAND           = 'COMMAND'          " this is user command
* 
      is_layout                         = wa_layout
      it_fieldcat                       = it_field

 IMPORTING
*   E_EXIT_CAUSED_BY_CALLER           =
    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.
ENDFORM.                    " DISPLAY_ALV
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;command which you pass in the user command is a form so you have define it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  COMMAND
*&amp;amp;---------------------------------------------------------------------*
*       SUB-ROUTINE COMMAND IS USED TO HANDLE THE USER ACTION
*       AND EXECUTE THE APPROPIATE CODE
*----------------------------------------------------------------------*
*      --&amp;gt;UCOMM      used  to capture the function
*                    code of the user-defined push-buttons
*      --&amp;gt;SELFIELD   text
*----------------------------------------------------------------------*
FORM command USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.

*CLEAR WA_FINAL.
*  CASE ucomm.
*
*    WHEN '&amp;lt;usercommand&amp;gt;'.

Perform detail_item.  " here in this perform you can write  the code for second 
*  ENDCASE.

ENDFORM.                    "command
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 04:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-two-alv-grid-in-a-program/m-p/6644569#M1443991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T04:18:47Z</dc:date>
    </item>
  </channel>
</rss>

