<?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: Simple ALV display question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-alv-display-question/m-p/9077706#M1704066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Perry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand your query correctly you need to use the functionality of ALV grid of Layouts, right ? If so please check the standard SAP programs mentioned below they have the option of saving, creating and changing layouts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_09&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Saving Options for Layouts&lt;/P&gt;&lt;P&gt;BCALV_GRID_10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load a layout before list display&lt;/P&gt;&lt;P&gt;BCALV_GRID_11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Test for new layout function modules&lt;/P&gt;&lt;P&gt;BCALV_TEST_GRID_LAYOUT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program BCALV_TEST_GRID_LAYOUT&lt;/P&gt;&lt;P&gt;BCALV_TEST_GRID_REPREP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program BCALV_TEST_GRID_LAYOUT&lt;/P&gt;&lt;P&gt;BCALV_TEST_GRID_REPREP_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program BCALV_TEST_GRID_LAYOUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if you are using OOPS method of ALV display then you can use below FM&lt;/P&gt;&lt;P&gt;CL_GUI_ALV_GRID-&amp;gt;GET_FRONTEND_LAYOUT "Get current Layout from Frontend"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call method gr_alvgrid-&amp;gt;get_frontend_layout &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Importing &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Es_layout = ls_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Swanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2012 17:06:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-08T17:06:54Z</dc:date>
    <item>
      <title>Simple ALV display question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-alv-display-question/m-p/9077705#M1704065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a process which uses the ALV display with two different layouts. That layout data is then parsed through an xml function and the results stored as a flat file. The layout/column-ordering is thus critical to the structure of the xml. The first layout displays and stores correctly. The second layout displays correctly but stores the same as the first. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand why this is happening (the table used as the input data for the alv display doesnt change regardless of the layout, so passing that through the xml function always yields the same results when stored).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is, what is the table name or technique used to achieve the results I need (basically i need to be able to store/retrieve the results EXACTLY as they are displayed)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first post, so apologies in advance if my post wasn't clear. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 16:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-alv-display-question/m-p/9077705#M1704065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-08T16:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Simple ALV display question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-alv-display-question/m-p/9077706#M1704066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Perry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand your query correctly you need to use the functionality of ALV grid of Layouts, right ? If so please check the standard SAP programs mentioned below they have the option of saving, creating and changing layouts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_09&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Saving Options for Layouts&lt;/P&gt;&lt;P&gt;BCALV_GRID_10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load a layout before list display&lt;/P&gt;&lt;P&gt;BCALV_GRID_11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Test for new layout function modules&lt;/P&gt;&lt;P&gt;BCALV_TEST_GRID_LAYOUT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program BCALV_TEST_GRID_LAYOUT&lt;/P&gt;&lt;P&gt;BCALV_TEST_GRID_REPREP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program BCALV_TEST_GRID_LAYOUT&lt;/P&gt;&lt;P&gt;BCALV_TEST_GRID_REPREP_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program BCALV_TEST_GRID_LAYOUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if you are using OOPS method of ALV display then you can use below FM&lt;/P&gt;&lt;P&gt;CL_GUI_ALV_GRID-&amp;gt;GET_FRONTEND_LAYOUT "Get current Layout from Frontend"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call method gr_alvgrid-&amp;gt;get_frontend_layout &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Importing &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Es_layout = ls_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Swanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 17:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-alv-display-question/m-p/9077706#M1704066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-08T17:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Simple ALV display question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-alv-display-question/m-p/9077707#M1704067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That wasnt quite what I was asking (was looking at how to save the data displayed by a layout, exactly in the same format as the layout). I figured it out, but those were good programs, so the credit is yours (he was explicitely defining the xml structure so i could use an if statement based on the layout chosen),&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 17:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-alv-display-question/m-p/9077707#M1704067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-08T17:25:06Z</dc:date>
    </item>
  </channel>
</rss>

