<?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 read layout in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-layout-in-background/m-p/6932256#M1485929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a report, which has "Layout" and "Export file path" fields on selection screen. I need to export the report to CSV file in the format of dynamical layout while executing on background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case:&lt;/P&gt;&lt;P&gt;1. How do I read the structure of layout before ALV dispaly.&lt;/P&gt;&lt;P&gt;2. How do I chang the internal table dynamically according to layout structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 May 2010 08:10:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-03T08:10:29Z</dc:date>
    <item>
      <title>read layout in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-layout-in-background/m-p/6932256#M1485929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a report, which has "Layout" and "Export file path" fields on selection screen. I need to export the report to CSV file in the format of dynamical layout while executing on background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case:&lt;/P&gt;&lt;P&gt;1. How do I read the structure of layout before ALV dispaly.&lt;/P&gt;&lt;P&gt;2. How do I chang the internal table dynamically according to layout structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 08:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-layout-in-background/m-p/6932256#M1485929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-03T08:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: read layout in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-layout-in-background/m-p/6932257#M1485930</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 use Function Module  'REUSE_ALV_VARIANT_DEFAULT_GET' to get the variant name.&lt;/P&gt;&lt;P&gt;Please check the code -- &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CONSTANTS:
  lc_a TYPE char1 VALUE 'A'.
  MOVE sy-repid TO fs_variant-report.
  CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    EXPORTING
      i_save        = lc_a
    CHANGING
      cs_variant    = fs_variant
    EXCEPTIONS
      wrong_input   = 1
      not_found     = 2
      program_error = 3
      OTHERS        = 4.
  IF sy-subrc IS INITIAL.
    p_varian = fs_variant-variant.
  ELSE.
    p_varian = space.
  ENDIF.                               " IF sy-subrc IS INITIAL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 08:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-layout-in-background/m-p/6932257#M1485930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-03T08:22:18Z</dc:date>
    </item>
  </channel>
</rss>

