<?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 OOPS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/3512419#M844888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/index.html" target="test_blank"&gt;http://www.saptechnical.com/index.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this for basic concepts of OOPS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tabstrip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Editable ALV&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tree&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General Tutorial for OOPS&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alvhome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alvhome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/what-is-alv-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/what-is-alv-programming.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap-function.htm" target="test_blank"&gt;http://www.sap-img.com/abap-function.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/mpioud/Abap_programs.html" target="test_blank"&gt;http://www.geocities.com/mpioud/Abap_programs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_basic.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_basic.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/ad20dca9-6182-4903-8d8f-96a66dc8590c/ALV.pdf" target="test_blank"&gt;http://esnips.com/doc/ad20dca9-6182-4903-8d8f-96a66dc8590c/ALV.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap-function.htm" target="test_blank"&gt;http://www.sap-img.com/abap-function.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classical ALV:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/mpioud/Abap_programs.html" target="test_blank"&gt;http://www.geocities.com/mpioud/Abap_programs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OOPS ALV:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907&lt;/A&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;sowjanya.b&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2008 05:21:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-07T05:21:44Z</dc:date>
    <item>
      <title>ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/3512418#M844887</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;Can anyone pls tell me WHY we use custom container in ALV using OOPS...&lt;/P&gt;&lt;P&gt;also Some information about the methods of class cl_gui_alv_grid &amp;amp; of cl_gui_docking_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 05:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/3512418#M844887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T05:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/3512419#M844888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/index.html" target="test_blank"&gt;http://www.saptechnical.com/index.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this for basic concepts of OOPS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tabstrip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Editable ALV&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tree&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General Tutorial for OOPS&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alvhome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alvhome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/what-is-alv-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/what-is-alv-programming.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap-function.htm" target="test_blank"&gt;http://www.sap-img.com/abap-function.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/mpioud/Abap_programs.html" target="test_blank"&gt;http://www.geocities.com/mpioud/Abap_programs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_basic.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_basic.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/ad20dca9-6182-4903-8d8f-96a66dc8590c/ALV.pdf" target="test_blank"&gt;http://esnips.com/doc/ad20dca9-6182-4903-8d8f-96a66dc8590c/ALV.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap-function.htm" target="test_blank"&gt;http://www.sap-img.com/abap-function.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classical ALV:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/mpioud/Abap_programs.html" target="test_blank"&gt;http://www.geocities.com/mpioud/Abap_programs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OOPS ALV:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907&lt;/A&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;sowjanya.b&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 05:21:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/3512419#M844888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T05:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/3512420#M844889</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;This section describes the easiest way to display a list with selected data in the ALV Grid Control. To do this, you must:&lt;/P&gt;&lt;P&gt;1.	Create an instance of the ALV Grid Control and integrate it into a screen. &lt;/P&gt;&lt;P&gt;2.	Select the data to be displayed and pass it together with a description of the fields to the instance.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;See also sample report BCALV_GRID_DEMO in development class SLIS .&lt;/P&gt;&lt;P&gt;Creating an ALV Grid Control&lt;/P&gt;&lt;P&gt;You instantiate an ALV Grid Control in the same way as other controls: &lt;/P&gt;&lt;P&gt;1.	Declare reference variables for the ALV Grid Control and the container. In addition, declare an internal table that you fill with selected data later on: &lt;/P&gt;&lt;P&gt;DATA: grid TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;      g_custom_container TYPE REF TO cl_gui_custom_container&lt;/P&gt;&lt;P&gt;      gt_sflight TYPE TABLE OF sflight.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In order to integrate a control into a screen, you can use four different  container controls (in this example, we use the custom container control).&lt;/P&gt;&lt;P&gt;2.	Create a standard screen and mark an area for the custom container control in the graphical Screen Painter (icon identified by letter 'C'). Assign name CCCONTAINER to this area. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Exercise 1: Reserving an Area for a Control of the Controls Tutorial explains how to mark an area in the alphanumerical Screen Painter version.&lt;/P&gt;&lt;P&gt;3.	In the PBO module of the screen, you must now instantiate the container control and the ALV Grid Control. By doing this, you create a link between the container control and the screen, using the container created in the Screen Painter. Using parameter parent , you define the container control as the parent of the ALV Grid Control:&lt;/P&gt;&lt;P&gt;IF g_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT g_custom_container&lt;/P&gt;&lt;P&gt;       EXPORTING &lt;/P&gt;&lt;P&gt;          CONTAINER_NAME = 'CCCONTAINER'.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT GRID1&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         I_PARENT = g_custom_container.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The IF query of reference variable g_custom_container ensures that the instances are only generated when the PBO is processed for the first time.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Normally, you must use method cl_gui_cfw=&amp;gt;flush to pass the methods called to the frontend. However, since the Control Framework performs an automatic flush at the end of the PBO module, this step is not required here.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;When you start the program, although the two instances (the container control and the ALV Grid Control) are generated, they are not visible.&lt;/P&gt;&lt;P&gt;Displaying a List in the ALV Grid Control&lt;/P&gt;&lt;P&gt;Once you have created the ALV Grid Control and integrated it into a screen using a container control, you must pass the data and its structure to the ALV Grid Control:&lt;/P&gt;&lt;P&gt;1.	Fill the internal table with data: &lt;/P&gt;&lt;P&gt;SELECT * FROM sflight INTO TABLE gt_sflight.&lt;/P&gt;&lt;P&gt;2.	Pass the output table and the structure data to the ALV Grid Control. Again, ensure to call this method only once after the ALV Grid Control is created:&lt;/P&gt;&lt;P&gt;CALL METHOD grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;             EXPORTING I_STRUCTURE_NAME = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;             CHANGING IT_OUTTAB = gt_sflight.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In this case, the structure data is provided through the Data Dictionary. The ALV Grid Control gets the field information from table SFLIGHT and displays all fiel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : g_dock TYPE REF TO cl_gui_docking_container,&lt;/P&gt;&lt;P&gt;g_split TYPE REF TO cl_gui_easy_splitter_container,&lt;/P&gt;&lt;P&gt;g_cont1 TYPE REF TO cl_gui_container,&lt;/P&gt;&lt;P&gt;g_cont2 TYPE REF TO cl_gui_container,&lt;/P&gt;&lt;P&gt;g_grid1 TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;g_grid2 TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_mara is an internal table of structure MARA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM mara INTO TABLE i_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_kna1 is an internal table of structure KNA1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM kna1 INTO TABLE i_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To create an Object of type Docking Container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_dock&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;side = cl_gui_docking_container=&amp;gt;dock_at_top&lt;/P&gt;&lt;P&gt;extension = 200 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Create an Object of Type Split Container. Here we can see that the Docking *Container Created above has been used as a parent .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_split&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;parent = g_dock&lt;/P&gt;&lt;P&gt;orientation = 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Easy Split container splits one Control into 2 manageable controls, each of them is used * to handle one GUI Container each&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_cont1 = g_split-&amp;gt;top_left_container.&lt;/P&gt;&lt;P&gt;g_cont2 = g_split-&amp;gt;bottom_right_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Create an Object of type Grid . Here we can see that the Left Split Container * Created above has been used as a parent .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_grid1&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_parent = g_cont1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Create an Object of type Grid . Here we can see that the Right Split Container * Created above has been used as a parent .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_grid2&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_parent = g_cont2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The method of Grid Control Object is used to display the Data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD g_grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = 'MARA'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = i_mara[] .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The method of Grid Control Object is used to display the Data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD g_grid2-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = 'KNA1'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = i_kna1[] .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u..&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 05:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/3512420#M844889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T05:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/3512421#M844890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai  &lt;STRONG&gt;Gaurav&lt;/STRONG&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;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Include ZALVS3&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;tables : zsflight.&lt;/P&gt;&lt;P&gt;data : container type ref to cl_gui_custom_container, " controls&lt;/P&gt;&lt;P&gt;grid type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_itab,&lt;/P&gt;&lt;P&gt;carrid type sflight-carrid,&lt;/P&gt;&lt;P&gt;connid type sflight-connid,&lt;/P&gt;&lt;P&gt;fldate type sflight-fldate,&lt;/P&gt;&lt;P&gt;price type zsflight-price,&lt;/P&gt;&lt;P&gt;seatsocc type sflight-seatsocc,&lt;/P&gt;&lt;P&gt;seatsmax type sflight-seatsmax,&lt;/P&gt;&lt;P&gt;end of ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab type table of zsflight,&lt;/P&gt;&lt;P&gt;wa type zsflight.&lt;/P&gt;&lt;P&gt;"{internal table for transfering the data in control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : fieldcatlog type lvc_t_fcat, " field catalog&lt;/P&gt;&lt;P&gt;wa_fieldcatlog like line of fieldcatlog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ok_code type sy-ucomm. "okcode handling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data gs_layout type lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :input1 type c, " INPUT FIELDS IN SCREEN 1001 '&lt;/P&gt;&lt;P&gt;input2 type n,&lt;/P&gt;&lt;P&gt;input9 type d,&lt;/P&gt;&lt;P&gt;input3 type c,&lt;/P&gt;&lt;P&gt;input4 type c,&lt;/P&gt;&lt;P&gt;input5 type c,&lt;/P&gt;&lt;P&gt;input6 type c,&lt;/P&gt;&lt;P&gt;input7 type c,&lt;/P&gt;&lt;P&gt;input8 type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: fname type rs38l_fnam. "FUNCTION FOR zALVS2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab2 type table of zsflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : container2 type ref to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;grid2 type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : fieldcatlog2 type lvc_t_fcat,&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2 like line of fieldcatlog2,&lt;/P&gt;&lt;P&gt;gs_layout2 type lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp; Report ZALVS----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zalvs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include zalvs3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from zsflight&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;call screen 1000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_1000 OUTPUT &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;module status_1000 output.&lt;/P&gt;&lt;P&gt;set pf-status 'SAP'.&lt;/P&gt;&lt;P&gt;endmodule. " STATUS_1000 OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module USER_COMMAND_1000 INPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;module user_command_1000 input.&lt;/P&gt;&lt;P&gt;ok_code = sy-ucomm.&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;when 'CANCEL'.&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt;when 'PUSH1'.&lt;/P&gt;&lt;P&gt;perform call_form1.&lt;/P&gt;&lt;P&gt;when 'PUSH2'.&lt;/P&gt;&lt;P&gt;call screen 1001.&lt;/P&gt;&lt;P&gt;when 'PUSH3'.&lt;/P&gt;&lt;P&gt;perform call_form3 tables itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " USER_COMMAND_1000 INPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module Create_Object OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module create_object output.&lt;/P&gt;&lt;P&gt;perform prepare_layout changing gs_layout.&lt;/P&gt;&lt;P&gt;if container is initial.&lt;/P&gt;&lt;P&gt;create object container&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parent = parent &lt;/P&gt;&lt;P&gt;container_name = 'CONT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;style = style &lt;/P&gt;&lt;P&gt;lifetime = lifetime_default &lt;/P&gt;&lt;P&gt;repid = repid &lt;/P&gt;&lt;P&gt;dynnr = dynnr &lt;/P&gt;&lt;P&gt;no_autodef_progid_dynnr = no_autodef_progid_dynnr &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;cntl_error = 1 &lt;/P&gt;&lt;P&gt;cntl_system_error = 2 &lt;/P&gt;&lt;P&gt;create_error = 3 &lt;/P&gt;&lt;P&gt;lifetime_error = 4 &lt;/P&gt;&lt;P&gt;lifetime_dynpro_dynpro_link = 5 &lt;/P&gt;&lt;P&gt;others = 6 &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object grid&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_shellstyle = 0 &lt;/P&gt;&lt;P&gt;i_lifetime = i_lifetime &lt;/P&gt;&lt;P&gt;i_parent = container&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_appl_events = space &lt;/P&gt;&lt;P&gt;i_parentdbg = i_parentdbg &lt;/P&gt;&lt;P&gt;i_applogparent = i_applogparent &lt;/P&gt;&lt;P&gt;i_graphicsparent = i_graphicsparent &lt;/P&gt;&lt;P&gt;i_name = i_name &lt;/P&gt;&lt;P&gt;i_fcat_complete = space &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;error_cntl_create = 1 &lt;/P&gt;&lt;P&gt;error_cntl_init = 2 &lt;/P&gt;&lt;P&gt;error_cntl_link = 3 &lt;/P&gt;&lt;P&gt;error_dp_create = 4 &lt;/P&gt;&lt;P&gt;others = 5 &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&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;endmodule. " Create_Object OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module Transfer_data OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&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;text----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------" /&gt;&lt;P&gt;* &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;module transfer_data output.&lt;/P&gt;&lt;P&gt;call method grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_buffer_active = i_buffer_active &lt;/P&gt;&lt;P&gt;i_bypassing_buffer = i_bypassing_buffer &lt;/P&gt;&lt;P&gt;i_consistency_check = i_consistency_check &lt;/P&gt;&lt;P&gt;i_structure_name = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is_variant = is_variant &lt;/P&gt;&lt;P&gt;i_save = i_save &lt;/P&gt;&lt;P&gt;i_default = 'x' &lt;/P&gt;&lt;P&gt;is_layout = gs_layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is_print = is_print &lt;/P&gt;&lt;P&gt;it_special_groups = it_special_groups &lt;/P&gt;&lt;P&gt;it_toolbar_excluding = it_toolbar_excluding &lt;/P&gt;&lt;P&gt;it_hyperlink = it_hyperlink &lt;/P&gt;&lt;P&gt;it_alv_graphics = it_alv_graphics &lt;/P&gt;&lt;P&gt;it_except_qinfo = it_except_qinfo &lt;/P&gt;&lt;P&gt;ir_salv_adapter = ir_salv_adapter &lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;it_outtab = itab[]&lt;/P&gt;&lt;P&gt;it_fieldcatalog = fieldcatlog[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_sort = it_sort &lt;/P&gt;&lt;P&gt;it_filter = it_filter &lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;too_many_lines = 3&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " Transfer_data OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module Fill_fieldcatlog OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;module fill_fieldcatlog output.&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog.&lt;/P&gt;&lt;P&gt;data i type i value 0.&lt;/P&gt;&lt;P&gt;i = i + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-fieldname = 'FLDATE'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-ref_table = 'ZSFLIGHT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-coltext = text(001). &lt;/P&gt;&lt;P&gt;wa_fieldcatlog-col_pos = i .&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog to fieldcatlog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog.&lt;/P&gt;&lt;P&gt;i = i + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-fieldname = 'CARRID'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-coltext = 'CARRID' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-col_pos = i.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog to fieldcatlog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog.&lt;/P&gt;&lt;P&gt;i = i + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-fieldname = 'CONNID'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-coltext = 'CONNID' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-col_pos = i.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog to fieldcatlog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i = i + 1.&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-fieldname = 'PRICE'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-ref_table = 'ZSFLIGHT'.&lt;/P&gt;&lt;P&gt;"wa_fieldcatlog-coltext = text(001).&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-col_pos = i.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog to fieldcatlog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i = i + 1.&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-fieldname = 'SEATSMAX'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-coltext = 'TOTAL CAPACITY' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-col_pos = i.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog to fieldcatlog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog.&lt;/P&gt;&lt;P&gt;i = i + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-fieldname = 'SEATSOCC'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-coltext = 'SEATS OCCUPIED' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-col_pos = i.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog to fieldcatlog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " Fill_fieldcatlog OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form prepare_layout&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;GS_LAYOUT text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;form prepare_layout changing gs_layout type lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_layout-stylefname = 'FIELD_STYLE'.&lt;/P&gt;&lt;P&gt;gs_layout-zebra = 'X'.&lt;/P&gt;&lt;P&gt;gs_layout-grid_title = 'FLIGHT'.&lt;/P&gt;&lt;P&gt;gs_layout-sel_mode = 'A'.&lt;/P&gt;&lt;P&gt;gs_layout-ctab_fname = 'COLORS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. "prepare_layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form call_form1&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;form call_form1.&lt;/P&gt;&lt;P&gt;call function '/1BCDWB/SF00000173'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX = ARCHIVE_INDEX &lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX_TAB = ARCHIVE_INDEX_TAB &lt;/P&gt;&lt;P&gt;ARCHIVE_PARAMETERS = ARCHIVE_PARAMETERS &lt;/P&gt;&lt;P&gt;CONTROL_PARAMETERS = CONTROL_PARAMETERS &lt;/P&gt;&lt;P&gt;MAIL_APPL_OBJ = MAIL_APPL_OBJ &lt;/P&gt;&lt;P&gt;MAIL_RECIPIENT = MAIL_RECIPIENT &lt;/P&gt;&lt;P&gt;MAIL_SENDER = MAIL_SENDER &lt;/P&gt;&lt;P&gt;OUTPUT_OPTIONS = OUTPUT_OPTIONS &lt;/P&gt;&lt;P&gt;USER_SETTINGS = 'X' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;DOCUMENT_OUTPUT_INFO = DOCUMENT_OUTPUT_INFO &lt;/P&gt;&lt;P&gt;JOB_OUTPUT_INFO = JOB_OUTPUT_INFO &lt;/P&gt;&lt;P&gt;JOB_OUTPUT_OPTIONS = JOB_OUTPUT_OPTIONS &lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;itab = itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;FORMATTING_ERROR = 1 &lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 2 &lt;/P&gt;&lt;P&gt;SEND_ERROR = 3 &lt;/P&gt;&lt;P&gt;USER_CANCELED = 4 &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. "call_form1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module STATUS_1001 OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;module status_1001 output.&lt;/P&gt;&lt;P&gt;set pf-status 'SAP2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET TITLEBAR 'xxx'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " STATUS_1001 OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module USER_COMMAND_1001 INPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;module user_command_1001 input.&lt;/P&gt;&lt;P&gt;ok_code = sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'BACK'.&lt;/P&gt;&lt;P&gt;leave to screen 1000.&lt;/P&gt;&lt;P&gt;when 'EXIT'.&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt;when 'CANCEL'.&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt;when 'CONTINUE'.&lt;/P&gt;&lt;P&gt;perform call_form2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " USER_COMMAND_1001 INPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form call_form2&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; p1 text &lt;/P&gt;&lt;P&gt;&amp;lt;-- p2 text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;form call_form2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;formname = 'ZALVS2'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VARIANT = ' ' &lt;/P&gt;&lt;P&gt;DIRECT_CALL = ' ' &lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;fm_name = fname&lt;/P&gt;&lt;P&gt;*EXCEPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO_FORM = 1 &lt;/P&gt;&lt;P&gt;NO_FUNCTION_MODULE = 2 &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function fname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX = ARCHIVE_INDEX &lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX_TAB = ARCHIVE_INDEX_TAB &lt;/P&gt;&lt;P&gt;ARCHIVE_PARAMETERS = ARCHIVE_PARAMETERS &lt;/P&gt;&lt;P&gt;CONTROL_PARAMETERS = CONTROL_PARAMETERS &lt;/P&gt;&lt;P&gt;MAIL_APPL_OBJ = MAIL_APPL_OBJ &lt;/P&gt;&lt;P&gt;MAIL_RECIPIENT = MAIL_RECIPIENT &lt;/P&gt;&lt;P&gt;MAIL_SENDER = MAIL_SENDER &lt;/P&gt;&lt;P&gt;OUTPUT_OPTIONS = OUTPUT_OPTIONS &lt;/P&gt;&lt;P&gt;USER_SETTINGS = 'X' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;DOCUMENT_OUTPUT_INFO = DOCUMENT_OUTPUT_INFO &lt;/P&gt;&lt;P&gt;JOB_OUTPUT_INFO = JOB_OUTPUT_INFO &lt;/P&gt;&lt;P&gt;JOB_OUTPUT_OPTIONS = JOB_OUTPUT_OPTIONS &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;FORMATTING_ERROR = 1 &lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 2 &lt;/P&gt;&lt;P&gt;SEND_ERROR = 3 &lt;/P&gt;&lt;P&gt;USER_CANCELED = 4 &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " call_form2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module STATUS_1002 OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;module status_1002 output.&lt;/P&gt;&lt;P&gt;set pf-status 'SAP3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET TITLEBAR 'xxx'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " STATUS_1002 OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module USER_COMMAND_1002 INPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;module user_command_1002 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok_code = sy-ucomm.&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 1000.&lt;/P&gt;&lt;P&gt;when 'EXIT'.&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt;when 'CANCEL'.&lt;/P&gt;&lt;P&gt;leave to screen 1000.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " USER_COMMAND_1002 INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form call_form3&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; p1 text &lt;/P&gt;&lt;P&gt;&amp;lt;-- p2 text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;form call_form3 tables itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"APPEND wa TO itab2.&lt;/P&gt;&lt;P&gt;" CALL SCREEN 1002.&lt;/P&gt;&lt;P&gt;perform prepare_layout changing gs_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;data j type i value 0.&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'FLDATE'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-ref_table = 'ZSFLIGHT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-coltext = text(001). &lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j .&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'CARRID'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-coltext = 'CARRID' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'CONNID'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-coltext = 'CONNID' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'PRICE'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-ref_table = 'ZSFLIGHT'.&lt;/P&gt;&lt;P&gt;"wa_fieldcatlog-coltext = text(001).&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'SEATSMAX'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-coltext = 'TOTAL CAPACITY' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'SEATSOCC'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-coltext = 'SEATS OCCUPIED' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_INTERFACE_CHECK = ' ' &lt;/P&gt;&lt;P&gt;I_BYPASSING_BUFFER = ' ' &lt;/P&gt;&lt;P&gt;I_BUFFER_ACTIVE = ' ' &lt;/P&gt;&lt;P&gt;I_CALLBACK_PROGRAM = ' ' &lt;/P&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET = ' ' &lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = ' ' &lt;/P&gt;&lt;P&gt;I_CALLBACK_TOP_OF_PAGE = ' ' &lt;/P&gt;&lt;P&gt;I_CALLBACK_HTML_TOP_OF_PAGE = ' ' &lt;/P&gt;&lt;P&gt;I_CALLBACK_HTML_END_OF_LIST = ' ' &lt;/P&gt;&lt;P&gt;i_structure_name = 'ZSFLIGHT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_BACKGROUND_ID = ' ' &lt;/P&gt;&lt;P&gt;i_grid_title = grid2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_GRID_SETTINGS = I_GRID_SETTINGS &lt;/P&gt;&lt;P&gt;is_layout = gs_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = fieldcatlog2[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_EXCLUDING = IT_EXCLUDING &lt;/P&gt;&lt;P&gt;IT_SPECIAL_GROUPS = IT_SPECIAL_GROUPS &lt;/P&gt;&lt;P&gt;IT_SORT = IT_SORT &lt;/P&gt;&lt;P&gt;IT_FILTER = IT_FILTER &lt;/P&gt;&lt;P&gt;IS_SEL_HIDE = IS_SEL_HIDE &lt;/P&gt;&lt;P&gt;I_DEFAULT = 'X' &lt;/P&gt;&lt;P&gt;I_SAVE = ' ' &lt;/P&gt;&lt;P&gt;IS_VARIANT = IS_VARIANT &lt;/P&gt;&lt;P&gt;IT_EVENTS = IT_EVENTS &lt;/P&gt;&lt;P&gt;IT_EVENT_EXIT = IT_EVENT_EXIT &lt;/P&gt;&lt;P&gt;IS_PRINT = IS_PRINT &lt;/P&gt;&lt;P&gt;IS_REPREP_ID = IS_REPREP_ID &lt;/P&gt;&lt;P&gt;I_SCREEN_START_COLUMN = 0 &lt;/P&gt;&lt;P&gt;I_SCREEN_START_LINE = 0 &lt;/P&gt;&lt;P&gt;I_SCREEN_END_COLUMN = 0 &lt;/P&gt;&lt;P&gt;I_SCREEN_END_LINE = 0 &lt;/P&gt;&lt;P&gt;I_HTML_HEIGHT_TOP = 0 &lt;/P&gt;&lt;P&gt;I_HTML_HEIGHT_END = 0 &lt;/P&gt;&lt;P&gt;IT_ALV_GRAPHICS = IT_ALV_GRAPHICS &lt;/P&gt;&lt;P&gt;IT_HYPERLINK = IT_HYPERLINK &lt;/P&gt;&lt;P&gt;IT_ADD_FIELDCAT = IT_ADD_FIELDCAT &lt;/P&gt;&lt;P&gt;IT_EXCEPT_QINFO = IT_EXCEPT_QINFO &lt;/P&gt;&lt;P&gt;IR_SALV_FULLSCREEN_ADAPTER = IR_SALV_FULLSCREEN_ADAPTER &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;E_EXIT_CAUSED_BY_CALLER = E_EXIT_CAUSED_BY_CALLER &lt;/P&gt;&lt;P&gt;ES_EXIT_CAUSED_BY_USER = ES_EXIT_CAUSED_BY_USER &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;.&lt;/P&gt;&lt;P&gt;refresh itab2[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " call_form3&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module FILLCATLOG OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;module fillcatlog output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;data j type i value 0.&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'FLDATE'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-ref_table = 'ZSFLIGHT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcatlog-coltext = text(001). &lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j .&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'CARRID'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-coltext = 'CARRID' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'CONNID'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-coltext = 'CONNID' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'PRICE'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-ref_table = 'ZSFLIGHT'.&lt;/P&gt;&lt;P&gt;"wa_fieldcatlog-coltext = text(001).&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'SEATSMAX'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-coltext = 'TOTAL CAPACITY' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_fieldcatlog2.&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-fieldname = 'SEATSOCC'.&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-coltext = 'SEATS OCCUPIED' .&lt;/P&gt;&lt;P&gt;wa_fieldcatlog2-col_pos = j.&lt;/P&gt;&lt;P&gt;append wa_fieldcatlog2 to fieldcatlog2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " FILLCATLOG OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 05:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/3512421#M844890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T05:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/3512422#M844891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link, hope this would help you to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://abapprogramming.blogspot.com/2007/10/alv-1.html" target="test_blank"&gt;http://abapprogramming.blogspot.com/2007/10/alv-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mruyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 05:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/3512422#M844891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T05:50:55Z</dc:date>
    </item>
  </channel>
</rss>

