<?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: How to code ALV list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584979#M263733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the following examples,they may help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_01 This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_02 This report illustrates how to set chosen cells of an ALV Grid Control editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_03 In this example the user may change values of fields SEATSOCC (occupied seats) and/or PLANETYPE. &lt;/P&gt;&lt;P&gt;The report checks the input value(s) semantically and provides protocol messages in case of error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_04 This report illustrates how to add and remove lines to a table using the ALV Grid Control and how to &lt;/P&gt;&lt;P&gt;implement the saving of the new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_05 This example shows how to use checkboxes within an ALV Grid Control. You learn:&lt;/P&gt;&lt;P&gt;(1) how to define a column for editable checkboxes for an attribute of your list&lt;/P&gt;&lt;P&gt;(2) how to evaluate the checked checkboxes&lt;/P&gt;&lt;P&gt;(3) how to switch between editable and non-editable checkboxes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_06 This example shows how to define a dropdown listbox for all cells of one column in an editable ALV &lt;/P&gt;&lt;P&gt;Grid Control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_07 This example shows how to define dropdown listboxes for particular cells of your output table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_08 This report implements an ALV Grid Control with an application specific F4 help. The following aspects &lt;/P&gt;&lt;P&gt;are dealt with:&lt;/P&gt;&lt;P&gt;(1) how to replace the standard f4 help&lt;/P&gt;&lt;P&gt;(2) how to pass the selected value to the ALV Grid Control&lt;/P&gt;&lt;P&gt;(3) how to build an f4 help, whose value range depend on a value of another cell. BCALV_GRID_01&lt;/P&gt;&lt;P&gt;BCALV_GRID_02(Example for moving from one list to the other	)&lt;/P&gt;&lt;P&gt;BCALV_GRID_03&lt;/P&gt;&lt;P&gt;BCALV_GRID_04&lt;/P&gt;&lt;P&gt;BCALV_GRID_05&lt;/P&gt;&lt;P&gt;BCALV_GRID_06&lt;/P&gt;&lt;P&gt;BCALV_GRID_07&lt;/P&gt;&lt;P&gt;BCALV_GRID_08&lt;/P&gt;&lt;P&gt;BCALV_GRID_09&lt;/P&gt;&lt;P&gt;BCALV_GRID_10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2006 04:06:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-05T04:06:53Z</dc:date>
    <item>
      <title>How to code ALV list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584976#M263730</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;Any example program in SAP system to code ALV list using OO sytle?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 03:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584976#M263730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T03:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to code ALV list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584977#M263731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Justin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Refer to this weblog which gives good details to get started.&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/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/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 03:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584977#M263731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T03:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to code ALV list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584978#M263732</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 standard programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BCALV_EDIT_05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this thread also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2469718"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 03:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584978#M263732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T03:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to code ALV list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584979#M263733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the following examples,they may help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_01 This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_02 This report illustrates how to set chosen cells of an ALV Grid Control editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_03 In this example the user may change values of fields SEATSOCC (occupied seats) and/or PLANETYPE. &lt;/P&gt;&lt;P&gt;The report checks the input value(s) semantically and provides protocol messages in case of error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_04 This report illustrates how to add and remove lines to a table using the ALV Grid Control and how to &lt;/P&gt;&lt;P&gt;implement the saving of the new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_05 This example shows how to use checkboxes within an ALV Grid Control. You learn:&lt;/P&gt;&lt;P&gt;(1) how to define a column for editable checkboxes for an attribute of your list&lt;/P&gt;&lt;P&gt;(2) how to evaluate the checked checkboxes&lt;/P&gt;&lt;P&gt;(3) how to switch between editable and non-editable checkboxes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_06 This example shows how to define a dropdown listbox for all cells of one column in an editable ALV &lt;/P&gt;&lt;P&gt;Grid Control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_07 This example shows how to define dropdown listboxes for particular cells of your output table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_08 This report implements an ALV Grid Control with an application specific F4 help. The following aspects &lt;/P&gt;&lt;P&gt;are dealt with:&lt;/P&gt;&lt;P&gt;(1) how to replace the standard f4 help&lt;/P&gt;&lt;P&gt;(2) how to pass the selected value to the ALV Grid Control&lt;/P&gt;&lt;P&gt;(3) how to build an f4 help, whose value range depend on a value of another cell. BCALV_GRID_01&lt;/P&gt;&lt;P&gt;BCALV_GRID_02(Example for moving from one list to the other	)&lt;/P&gt;&lt;P&gt;BCALV_GRID_03&lt;/P&gt;&lt;P&gt;BCALV_GRID_04&lt;/P&gt;&lt;P&gt;BCALV_GRID_05&lt;/P&gt;&lt;P&gt;BCALV_GRID_06&lt;/P&gt;&lt;P&gt;BCALV_GRID_07&lt;/P&gt;&lt;P&gt;BCALV_GRID_08&lt;/P&gt;&lt;P&gt;BCALV_GRID_09&lt;/P&gt;&lt;P&gt;BCALV_GRID_10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 04:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584979#M263733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T04:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to code ALV list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584980#M263734</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;&lt;/P&gt;&lt;P&gt;What I needed is ALV list, not ALV grid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly provide me coding which is related to ALV..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, for the ALV using FM to call out, we can use REUSE_ALV_LIST_DISPLAY or REUSE_ALV_GRID_DISPLAY....so in OO ALV, how we can call out ALV LIST?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 04:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584980#M263734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T04:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to code ALV list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584981#M263735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Create a Control (for Custom and Split Containers only)&lt;/P&gt;&lt;P&gt;2. Instantiate a Container Object (in case of Custom and Split Containers, specify the control which is created by us in Screen painter)                             CREATE OBJECT &amp;lt;Container Object&amp;gt;&lt;/P&gt;&lt;P&gt;3. Instantiate an Object of the kind of report that has to be displayed (List, Grid or Tree).                                                                                CREATE OBJECT &amp;lt;List/Grid/Tree&amp;gt;. Here we need to specify the Parent Container as the &amp;lt;Container object&amp;gt; so that it sits in that container.&lt;/P&gt;&lt;P&gt;4.	Call appropriate methods to display the report on the screen.                          CALL METHOD &amp;lt;List/Grid/Tree&amp;gt;-&amp;gt;&amp;lt;Method Name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&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;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha Deshmukh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Plz mark useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 04:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584981#M263735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T04:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to code ALV list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584982#M263736</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;The OO method is not used to print the LIST DISPLAY. If you go into the FM REUSE_ALV_LIST_DISPLAY you will not find any OO mehtods. It calls on another FM K_KKB_LIST_DISPLAY to generate and display the list. The OO method will always give you a Grid display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that Helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 05:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-alv-list/m-p/1584982#M263736</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2006-10-05T05:00:49Z</dc:date>
    </item>
  </channel>
</rss>

