<?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: Error while creating a dynamic internal table refers to custom field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050441#M1501906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I enter a custom added field name the code works for me, eg VBAK-ZREASON_CD..... but I  do get this error if I enter a field name which does not exist....maybe you have mis-spelt the field name, or not included the 'mara-' or maybe p_field is too short to hold the whole field name??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jul 2010 01:43:34 GMT</pubDate>
    <dc:creator>former_member186741</dc:creator>
    <dc:date>2010-07-26T01:43:34Z</dc:date>
    <item>
      <title>Error while creating a dynamic internal table refers to custom field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050436#M1501901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am getting the exception TYPE_NOT_FOUND when I try to create a dynamic internal table using:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gr_desc TYPE REF TO cl_abap_typedescr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; gr_desc = cl_abap_typedescr=&amp;gt;describe_by_name( p_field ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field p_field is a Z-field inside a DB table, (e.g. a user added field in MARA). The statement fails at that point and gives a runtime exception. Any suggestions to how I may solve this problem? Or any alternatives for the same? I guess we face this issue for all custom fields..has SAP released a note for this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jul 2010 16:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050436#M1501901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-24T16:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating a dynamic internal table refers to custom field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050437#M1501902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that's just the wrong method, you should use DESCRIBE_BY_&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
gr_desc = cl_abap_typedescr=&amp;gt;describe_by_data( p_field ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: DESCRIBE_BY_&lt;STRONG&gt;NAME&lt;/STRONG&gt; is to be used for referencing a DDIC type by its &lt;STRONG&gt;name&lt;/STRONG&gt;. Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
gr_desc = cl_abap_typedescr=&amp;gt;describe_by_name( 'MARA-ZZFIELD' ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jul 2010 20:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050437#M1501902</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-07-24T20:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating a dynamic internal table refers to custom field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050438#M1501903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying. &lt;/P&gt;&lt;P&gt;I'm passing the field name only in the method DESCRIBE_BY_NAME and it gives a dump for a custom field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jul 2010 02:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050438#M1501903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-25T02:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating a dynamic internal table refers to custom field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050439#M1501904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand why you have an error.&lt;/P&gt;&lt;P&gt;Did you check that your table is fully active (not partially), and did you check SAP notes?&lt;/P&gt;&lt;P&gt;How is defined your field?&lt;/P&gt;&lt;P&gt;If all is okay, then contact SAP support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jul 2010 21:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050439#M1501904</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-07-25T21:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating a dynamic internal table refers to custom field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050440#M1501905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set p_field to 'MARA-ZZFIELD' for example the method has a runtime error - however if I refer to the data element name then it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect this is by design.  Depending on what you are trying to retrieve you might be better using cl_abap_tabledescr to describe MARA and then retrieve the reference to the element that you're looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 00:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050440#M1501905</guid>
      <dc:creator>alex_cook</dc:creator>
      <dc:date>2010-07-26T00:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating a dynamic internal table refers to custom field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050441#M1501906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I enter a custom added field name the code works for me, eg VBAK-ZREASON_CD..... but I  do get this error if I enter a field name which does not exist....maybe you have mis-spelt the field name, or not included the 'mara-' or maybe p_field is too short to hold the whole field name??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 01:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050441#M1501906</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2010-07-26T01:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating a dynamic internal table refers to custom field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050442#M1501907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it was a problem with the name..Thanks everyone.. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 07:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-a-dynamic-internal-table-refers-to-custom-field/m-p/7050442#M1501907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-26T07:30:37Z</dc:date>
    </item>
  </channel>
</rss>

