<?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 change internal table structure dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970922#M1695694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think this will works&lt;/P&gt;&lt;P&gt;1)For custom field catalog use GET_FRONTEND_FIELDCATALOG&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2)loop with in it,check no_out field equal to 'X' or not,&lt;/P&gt;&lt;P&gt;3)Copy or create&amp;nbsp; to new field catalog ,&lt;/P&gt;&lt;P&gt;4)For generate dynamic table CL_ALV_TABLE_CREATE,&lt;/P&gt;&lt;P&gt;5)loop through output table and copy required fields to dynamic table appending to it,&lt;/P&gt;&lt;P&gt;6)Then gui_download like this&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'GUI_DOWNLOAD'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_file&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILETYPE&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DAT'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;tables&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_tab&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;it_mbew&amp;nbsp; " it is generic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Gourav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2012 08:39:04 GMT</pubDate>
    <dc:creator>gouravkumar64</dc:creator>
    <dc:date>2012-09-06T08:39:04Z</dc:date>
    <item>
      <title>how to change internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970921#M1695693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting all openitems using BAPI_AR_ACC_GETOPENITEMS into my final internal table final data i am uploading into AL11 (application server )&lt;/P&gt;&lt;P&gt;but they don't want all the field they want field according to layout setting they will maintain in T Code FBL5N field can be different every time.&lt;/P&gt;&lt;P&gt;How to change the structure of internal table based on layout setting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 07:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970921#M1695693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-06T07:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to change internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970922#M1695694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think this will works&lt;/P&gt;&lt;P&gt;1)For custom field catalog use GET_FRONTEND_FIELDCATALOG&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2)loop with in it,check no_out field equal to 'X' or not,&lt;/P&gt;&lt;P&gt;3)Copy or create&amp;nbsp; to new field catalog ,&lt;/P&gt;&lt;P&gt;4)For generate dynamic table CL_ALV_TABLE_CREATE,&lt;/P&gt;&lt;P&gt;5)loop through output table and copy required fields to dynamic table appending to it,&lt;/P&gt;&lt;P&gt;6)Then gui_download like this&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'GUI_DOWNLOAD'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_file&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILETYPE&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DAT'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;tables&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_tab&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;it_mbew&amp;nbsp; " it is generic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Gourav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 08:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970922#M1695694</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2012-09-06T08:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to change internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970923#M1695695</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 class CL_ABAP_ELEMDESCR, CL_ABAP_STRUCTDESCR and&lt;/P&gt;&lt;P&gt;CL_ABAP_TABLEDESCR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two are to generate the structure, the last one to create the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose it can find out many samples in SCN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 08:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970923#M1695695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-06T08:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to change internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970924#M1695696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks but its depend on the individual login they will set the layout in fbl5n ,according to layout setting my data will be upload into AL11 file. Example some time they will display only 3 field in fbl5n output some time they want 10 like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 09:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970924#M1695696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-06T09:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to change internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970925#M1695697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've understood that, the first problem is to know how you manage the download (It's not clear if you want to download the data into application server or to upload the data from application server).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because here you need to know the ALV layout to be used, and it's not clear the logic you want to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 09:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970925#M1695697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-06T09:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to change internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970926#M1695698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max i don't want to download the data into application server i created one program that program will upload the data into AL11 automatically&amp;nbsp; every day i am using open, dataset they will run into background mode. they can change the layout in fbl5n according to the current layout my program should upload only those field what ever they set into fbl5n layout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 10:08:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970926#M1695698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-06T10:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to change internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970927#M1695699</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;So who downloads the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 10:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970927#M1695699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-06T10:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to change internal table structure dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970928#M1695700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In standalon program you can not change the structure dynamically coz to upload the data into al11 you need to convert all field into char ask them to give field what they want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rohan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 06:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-internal-table-structure-dynamically/m-p/8970928#M1695700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-10T06:23:57Z</dc:date>
    </item>
  </channel>
</rss>

