<?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 Need help regarding the dynamic data and fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-the-dynamic-data-and-fields/m-p/7515163#M1560040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me code regarding the dynamic fields and tables. Here is my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. A custome table is maintained with the set of infotypes.&lt;/P&gt;&lt;P&gt;2. After 'GET PERNR' statement in the report, i need to get the data of the infotypes maintained in that table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;table&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_ithrlogctl INTO wa_ithrlogctl.&lt;/P&gt;&lt;P&gt;    p_table = wa_ithrlogctl-infotype.&lt;/P&gt;&lt;P&gt;    CREATE DATA r_tab TYPE TABLE OF (p_table).&lt;/P&gt;&lt;P&gt;     ASSIGN r_tab-&amp;gt;* to &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;    concatenate 'P' p_table into p_table.&lt;/P&gt;&lt;P&gt;    MOVE P0000[] to &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code, i had hardcoded P0000[] , please suggest me how i can replace it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Radha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Nov 2010 16:44:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-29T16:44:33Z</dc:date>
    <item>
      <title>Need help regarding the dynamic data and fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-the-dynamic-data-and-fields/m-p/7515163#M1560040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me code regarding the dynamic fields and tables. Here is my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. A custome table is maintained with the set of infotypes.&lt;/P&gt;&lt;P&gt;2. After 'GET PERNR' statement in the report, i need to get the data of the infotypes maintained in that table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;table&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_ithrlogctl INTO wa_ithrlogctl.&lt;/P&gt;&lt;P&gt;    p_table = wa_ithrlogctl-infotype.&lt;/P&gt;&lt;P&gt;    CREATE DATA r_tab TYPE TABLE OF (p_table).&lt;/P&gt;&lt;P&gt;     ASSIGN r_tab-&amp;gt;* to &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;    concatenate 'P' p_table into p_table.&lt;/P&gt;&lt;P&gt;    MOVE P0000[] to &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code, i had hardcoded P0000[] , please suggest me how i can replace it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Radha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 16:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-the-dynamic-data-and-fields/m-p/7515163#M1560040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-29T16:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help regarding the dynamic data and fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-the-dynamic-data-and-fields/m-p/7515164#M1560041</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 field-symbols:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;TABLE_FROM&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;table&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_ithrlogctl INTO wa_ithrlogctl.&lt;/P&gt;&lt;P&gt;p_table = wa_ithrlogctl-infotype.&lt;/P&gt;&lt;P&gt;CREATE DATA r_tab TYPE TABLE OF (p_table).&lt;/P&gt;&lt;P&gt;ASSIGN r_tab-&amp;gt;* to &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;concatenate 'P' p_table into p_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_TABLE = 'P0000[]'.&lt;/P&gt;&lt;P&gt;ASSIGN (V_TABLE) TO  &amp;lt;TABLE_FROM&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;table&amp;gt; = &amp;lt;TABLE_FROM&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you need only a rule in order to fill correclty V_TABLE (i.e I don't I can get the name of internal table), and probably I don't know if you need to create an internal table dynamically, perhaps a field-symbol is enough&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 16:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-the-dynamic-data-and-fields/m-p/7515164#M1560041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-29T16:52:49Z</dc:date>
    </item>
  </channel>
</rss>

