<?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 ALV GRID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017578#M412490</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 display two girds in the final out put&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one with po header details and another separate grid with item details how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2007 21:37:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-12T21:37:28Z</dc:date>
    <item>
      <title>ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017578#M412490</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 display two girds in the final out put&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one with po header details and another separate grid with item details how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 21:37:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017578#M412490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T21:37: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/2017579#M412491</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;You can use the OO ALV to create two grids..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the program BCALV_GRID_01 for a simple ALV Grid..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to create another container in the screen and add the other ALV Grid..&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>Mon, 12 Mar 2007 21:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017579#M412491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T21:40: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/2017580#M412492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it not possible to develop with normal alv grids rather than OO ALV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 21:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017580#M412492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T21:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017581#M412493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No you can only do it with OO ALV.&lt;/P&gt;&lt;P&gt;Since you require different screen area for different ALV and screen cannot be divided in normal programming routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 21:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017581#M412493</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-03-12T21:48: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/2017582#M412494</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;I believe it is not possible to do it using the FMs.&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>Mon, 12 Mar 2007 21:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017582#M412494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T21:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017583#M412495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each and every po number these grids should be displayed continuously like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; po number range 400015-400017 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the out put screen I should get, for each n every po number two girds one with header details and one with item details. So for each n every po number these two grids should be displayed continuously...  can u guide me how to do it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for your anticipation....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 22:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017583#M412495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T22:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017584#M412496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EPORT Y730_ALV5 .&lt;/P&gt;&lt;P&gt;*ALV BLOCK LIST&lt;/P&gt;&lt;P&gt;type-pools : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : vbak, ekko.&lt;/P&gt;&lt;P&gt;select-options : s_vkorg for vbak-vkorg,&lt;/P&gt;&lt;P&gt;                 s_ekorg for ekko-ekorg.&lt;/P&gt;&lt;P&gt;data : begin of it_vbak occurs 0,&lt;/P&gt;&lt;P&gt;       vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;       erdat like vbak-erdat,&lt;/P&gt;&lt;P&gt;       ernam like vbak-ernam,&lt;/P&gt;&lt;P&gt;       netwr like vbak-netwr,&lt;/P&gt;&lt;P&gt;       end of it_vbak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       begin of it_ekko occurs 0,&lt;/P&gt;&lt;P&gt;       ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;       aedat like ekko-aedat,&lt;/P&gt;&lt;P&gt;       ernam like ekko-ernam,&lt;/P&gt;&lt;P&gt;       end of it_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_fieldcat type slis_t_fieldcat_Alv,&lt;/P&gt;&lt;P&gt;       wa_fieldcat type slis_fieldcat_Alv,&lt;/P&gt;&lt;P&gt;       repid type sy-repid,&lt;/P&gt;&lt;P&gt;       it_layout type SLIS_LAYOUT_ALV,&lt;/P&gt;&lt;P&gt;       it_events type SLIS_T_EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;  move sy-repid to repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln erdat ernam netwr from vbak&lt;/P&gt;&lt;P&gt;    into table it_vbak&lt;/P&gt;&lt;P&gt;    where vkorg in s_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln aedat ernam from ekko&lt;/P&gt;&lt;P&gt;    into table it_ekko&lt;/P&gt;&lt;P&gt;    where ekorg in s_ekorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    I_CALLBACK_PROGRAM             = repid.&lt;/P&gt;&lt;P&gt;&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               = repid&lt;/P&gt;&lt;P&gt;   I_INTERNAL_TABNAME           = 'IT_VBAK'&lt;/P&gt;&lt;P&gt;   I_INCLNAME                   = repid&lt;/P&gt;&lt;P&gt; CHANGING&lt;/P&gt;&lt;P&gt;   CT_FIELDCAT                  = it_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    IS_LAYOUT                        = it_layout&lt;/P&gt;&lt;P&gt;    IT_FIELDCAT                      = it_fieldcat&lt;/P&gt;&lt;P&gt;    I_TABNAME                        = 'IT_VBAK'&lt;/P&gt;&lt;P&gt;    IT_EVENTS                        = it_events&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    T_OUTTAB                         = it_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear it_fieldcat.&lt;/P&gt;&lt;P&gt;&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               = repid&lt;/P&gt;&lt;P&gt;   I_INTERNAL_TABNAME           = 'IT_EKKO'&lt;/P&gt;&lt;P&gt;   I_INCLNAME                   = repid&lt;/P&gt;&lt;P&gt; CHANGING&lt;/P&gt;&lt;P&gt;   CT_FIELDCAT                  = it_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    IS_LAYOUT                        = it_layout&lt;/P&gt;&lt;P&gt;    IT_FIELDCAT                      = it_fieldcat&lt;/P&gt;&lt;P&gt;    I_TABNAME                        = 'IT_EKKO'&lt;/P&gt;&lt;P&gt;    IT_EVENTS                        = it_events&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    T_OUTTAB                         = it_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any more clarifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 22:09:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017584#M412496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T22:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017585#M412497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can only do it using ALV Grid OO approach and You cannot use FM approach for this requirement..Please Check the sample programs starting with BCALV_GRID* for the same..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 22:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017585#M412497</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2007-03-12T22:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017586#M412498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Check the code below.It has 2 alv grids on the same screen and a local class is used to handle the double click event in the first alv grid.When you double click on a row in the first ALV Grid,another ALV appears below with the detailed items.Name the two containers in your screen layout as &amp;lt;b&amp;gt;CONTAINER1&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;CONTAINER2&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;I have used tables &amp;lt;b&amp;gt;SPFLI for first grid&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;SFLIGHT for second grid&amp;lt;/b&amp;gt;.You can use the tables depending on your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSAMPLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*first container and grid&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;cont1 type ref to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;alv1 type ref to cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*second container and grid&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;cont2 type ref to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;alv2 type ref to cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*table displayed in first grid&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;itab_spfli type table of spfli,&lt;/P&gt;&lt;P&gt;wa_spfli like line of itab_spfli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*table displayed in second grid&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;itab_sflight type table of sflight,&lt;/P&gt;&lt;P&gt;wa_sflight like line of itab_sflight,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok_code type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*local class for handling the double click event of first grid&amp;lt;/b&amp;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;CLASS lcl_eh DEFINITION&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;class lcl_eh definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Public section.&lt;/P&gt;&lt;P&gt;Methods:DOUBLE_CLICK FOR EVENT DOUBLE_CLICK of cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;importing E_ROW E_COLUMN ES_ROW_NO .&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: lo_obj TYPE REF TO lcl_eh.&amp;lt;/b&amp;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;CLASS lcl_eh IMPLEMENTATION&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;class lcl_eh implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method double_click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab_spfli into wa_spfli INDEX e_row-index.&lt;/P&gt;&lt;P&gt;select * from sflight into table itab_sflight where carrid =&lt;/P&gt;&lt;P&gt;wa_spfli-carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*create second container and grid&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT CONT2&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CONTAINER_NAME = 'CONTAINER2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT ALV2&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_PARENT = cont2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD ALV2-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_STRUCTURE_NAME = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;IT_OUTTAB = itab_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*selection-screen parameter&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : carrid type spfli-carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from spfli into table itab_spfli where carrid = carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 100.&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; Module STATUS_0100 OUTPUT&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;P&gt;MODULE STATUS_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'GUI'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*create first container and grid&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT CONT1&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CONTAINER_NAME = 'CONTAINER1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT ALV1&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_PARENT = cont1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*set handler to handle the double click event&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;create object lo_obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set handler lo_obj-&amp;gt;double_click for alv1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD ALV1-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_STRUCTURE_NAME = 'SPFLI'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;IT_OUTTAB = itab_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " STATUS_0100 OUTPUT&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; Module USER_COMMAND_0100 INPUT&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;P&gt;MODULE USER_COMMAND_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case ok_code.&lt;/P&gt;&lt;P&gt;when 'BACK'.&lt;/P&gt;&lt;P&gt;leave to screen 0.&lt;/P&gt;&lt;P&gt;when 'EXIT'.&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " USER_COMMAND_0100 INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Beejal&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;**reward if this helps&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 04:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2017586#M412498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T04:21:20Z</dc:date>
    </item>
  </channel>
</rss>

