<?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: dynamically creating fields from values in internal table (crosstab) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-creating-fields-from-values-in-internal-table-crosstab/m-p/4907890#M1145862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many threads on [create dynamic internal table|https://www.sdn.sap.com/irj/scn/advancedsearch?query=create&lt;EM&gt;dynamic&lt;/EM&gt;internal+table&amp;amp;cat=sdn_all]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a first loop, count the number of fields to create, then create the field-catalog and then the internal table, and last fill the new internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2008 17:50:31 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2008-12-09T17:50:31Z</dc:date>
    <item>
      <title>dynamically creating fields from values in internal table (crosstab)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-creating-fields-from-values-in-internal-table-crosstab/m-p/4907889#M1145861</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 have the need to iterate over values in a given field of an internal table and create fields from each distinct value in another internal table.  The resulting table would then be displayed in ALV Grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a scenario to help make it clear:&lt;/P&gt;&lt;P&gt;original table:&lt;/P&gt;&lt;P&gt;pernr, wage type, amount&lt;/P&gt;&lt;P&gt;10000001, 1000, $100&lt;/P&gt;&lt;P&gt;10000001, 1001, $200&lt;/P&gt;&lt;P&gt;10000001, 1002, $300&lt;/P&gt;&lt;P&gt;10000002, 1000, $200&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;desired result:&lt;/P&gt;&lt;P&gt;pernr, wage type 1000 amount, wage type 1001 amount, wage type 1002 amount&lt;/P&gt;&lt;P&gt;10000001, $100, $200, $300&lt;/P&gt;&lt;P&gt;10000002, $200,,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of wage types needs to be determined at run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 17:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-creating-fields-from-values-in-internal-table-crosstab/m-p/4907889#M1145861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T17:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically creating fields from values in internal table (crosstab)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-creating-fields-from-values-in-internal-table-crosstab/m-p/4907890#M1145862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many threads on [create dynamic internal table|https://www.sdn.sap.com/irj/scn/advancedsearch?query=create&lt;EM&gt;dynamic&lt;/EM&gt;internal+table&amp;amp;cat=sdn_all]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a first loop, count the number of fields to create, then create the field-catalog and then the internal table, and last fill the new internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 17:50:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-creating-fields-from-values-in-internal-table-crosstab/m-p/4907890#M1145862</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-12-09T17:50:31Z</dc:date>
    </item>
  </channel>
</rss>

