<?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: help with Structre in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-structre/m-p/3825996#M920044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this with an internal table with an internal table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
  begin of period_rec,
    amount      type i,
  end of period_rec.
  
data:
  begin of itab occurs 0,
    pernr          like pa0001-pernr,
    total          type i,
    period_tab like standard table of period_rec,
  end of itab occurs 0.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each itab you create,  use DO X TIMES for the number of periods there will be and append each one to the itab-period_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create another table that contains the periods and then the postion of the matching period can be used&lt;/P&gt;&lt;P&gt;to properly update the period_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been providing a similar solution in this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="873521"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2008 12:54:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-22T12:54:33Z</dc:date>
    <item>
      <title>help with Structre</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-structre/m-p/3825995#M920043</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;i need to build Fm That the user put how much month he wont to get data and i need to bring him data for every month and sum but the problem is that i don't now how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import 
pernr = 123
start_period  012007
end_period   042007

i need to export :

pernr   month1   mont2      month3    month4    sum 
123       2           5              7               10         24
456       2           3              4                 5         17
....

and if user put :

import 
pernr = 123
start_period  012007
end_period   022007

pernr     month1    mont2             sum 
123        2             5                    7
456        3            3                     6
.....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i now that in abap we don't have dynamic structure but maybe other suggestion how to bring it ?&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, 22 May 2008 12:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-structre/m-p/3825995#M920043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T12:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: help with Structre</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-structre/m-p/3825996#M920044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this with an internal table with an internal table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
  begin of period_rec,
    amount      type i,
  end of period_rec.
  
data:
  begin of itab occurs 0,
    pernr          like pa0001-pernr,
    total          type i,
    period_tab like standard table of period_rec,
  end of itab occurs 0.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each itab you create,  use DO X TIMES for the number of periods there will be and append each one to the itab-period_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create another table that contains the periods and then the postion of the matching period can be used&lt;/P&gt;&lt;P&gt;to properly update the period_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been providing a similar solution in this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="873521"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 12:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-structre/m-p/3825996#M920044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T12:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: help with Structre</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-structre/m-p/3825997#M920045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Paul Chapman    ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks but the problem is how to display the table&lt;/P&gt;&lt;P&gt;because all time the table can be change (period month)&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, 22 May 2008 12:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-structre/m-p/3825997#M920045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T12:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: help with Structre</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-structre/m-p/3825998#M920046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow that link to show how the table can be displayed.  Both you and the other poster have similiar requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 13:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-structre/m-p/3825998#M920046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T13:01:09Z</dc:date>
    </item>
  </channel>
</rss>

