<?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: Create internal table dynamically for IDoc fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-dynamically-for-idoc-fields/m-p/4558293#M1075991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since this doesn't seem to be possible, I just added another character at the end of the field when adding it to it_fieldcat to make it unique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2008 15:34:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-08T15:34:58Z</dc:date>
    <item>
      <title>Create internal table dynamically for IDoc fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-dynamically-for-idoc-fields/m-p/4558291#M1075989</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 create an internal table dynamically based on the segment field names that are returned in the table pt_fields when calling function 'IDOCTYPE_READ_COMPLETE'.  I see many posts suggesting classes such as 'cl_wrf_dynamic_table=&amp;gt;create_dynamic_table', but it does not work for me.  The problem I have with the classes is that it doesn't allow you to have the same column name more than once.  But in the scenario I am testing, I have some column names that are duplicated, and I cannot remove the duplicates.  Are there any functions or classes that I can use to create a dynamic internal table that will not check if a column name is used twice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Carrie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 21:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-dynamically-for-idoc-fields/m-p/4558291#M1075989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T21:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create internal table dynamically for IDoc fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-dynamically-for-idoc-fields/m-p/4558292#M1075990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carrie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first thought was that RTTI might be able to do this but it does not (see the dump below). And it is obvious that RTTI behave likes this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Error analysis
    An exception occurred which is explained in detail below.
    The exception, which is assigned to class 'CX_SY_STRUCT_COMP_NAME', was not
     caught and
    therefore caused a runtime error.
    The reason for the exception is:
    Multiple Specification of the Name 'CUSTOMER' as a Component Name (Component 7)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just think about any way  to define statically an itab or structure containing duplicated field names. You will always get a syntax error irrespective of whether you use a DDIC structure, a TYPE or a DATA variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no way to define such a structure statically why should it be different when defining dynamically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 21:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-dynamically-for-idoc-fields/m-p/4558292#M1075990</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-09-25T21:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create internal table dynamically for IDoc fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-dynamically-for-idoc-fields/m-p/4558293#M1075991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since this doesn't seem to be possible, I just added another character at the end of the field when adding it to it_fieldcat to make it unique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 15:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-dynamically-for-idoc-fields/m-p/4558293#M1075991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T15:34:58Z</dc:date>
    </item>
  </channel>
</rss>

