<?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_DATA_UNKNOWN_TYPE runtime error :  CREATE_DATA used but created with CREATE OBJECT instead in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-unknown-type-runtime-error-create-data-used-but-created-with/m-p/12773943#M2023255</link>
    <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;Thanks a lot again for your quick and continuous help.&lt;/P&gt;&lt;P&gt;FYI, C_EXTENSION2	Changing	Type	BAPIPAREX_TAB_AC is declared. And, it leads to him only ACCOUNTPAYABLE field was called. &lt;/P&gt;&lt;P&gt;I will look otherwise will add the TRY CATCH to avoid the dump.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 02:24:08 GMT</pubDate>
    <dc:creator>sankar1781</dc:creator>
    <dc:date>2023-07-18T02:24:08Z</dc:date>
    <item>
      <title>CREATE_DATA_UNKNOWN_TYPE runtime error :  CREATE_DATA used but created with CREATE OBJECT instead</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-unknown-type-runtime-error-create-data-used-but-created-with/m-p/12773941#M2023253</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;Apologize if I am not followed other help threads to resolve my issue.&lt;/P&gt;
  &lt;P&gt;The issue is happening from a customized program where the data is moving from Open text to SAP (method logic is provided for your reference) and below is the Error analysis.&lt;/P&gt;
  &lt;P&gt;Error analysis&lt;/P&gt;
  &lt;P&gt; An exception has occurred in class "CX_SY_CREATE_DATA_ERROR". This exception&lt;/P&gt;
  &lt;P&gt; was not caught&lt;/P&gt;
  &lt;P&gt; in procedure "IF_EX_ACC_DOCUMENT~CHANGE" "(METHOD)" or propagated by a RAISING&lt;/P&gt;
  &lt;P&gt; clause.&lt;/P&gt;
  &lt;P&gt; Since the caller of the procedure could not have anticipated this&lt;/P&gt;
  &lt;P&gt; exception, the current program was terminated.&lt;/P&gt;
  &lt;P&gt; The reason for the exception occurring was:&lt;/P&gt;
  &lt;P&gt; The reason for the exception is:&lt;/P&gt;
  &lt;P&gt; The type specified dynamically in CREATE DATA ("ACCOUNTPAYABLE") is not a&lt;/P&gt;
  &lt;P&gt; valid data&lt;/P&gt;
  &lt;P&gt; type.&lt;/P&gt;The above error was raised from the below highlighted area as '====&amp;gt;'. Only part of the code is shared here.
  &lt;P&gt;METHOD if_ex_acc_document~change .&lt;BR /&gt;&lt;BR /&gt; DATA: wa_extension TYPE bapiparex,&lt;BR /&gt; ext_value(960) TYPE c,&lt;BR /&gt; wa_accit TYPE accit,&lt;BR /&gt; l_ref TYPE REF TO data.&lt;BR /&gt;&lt;BR /&gt; FIELD-SYMBOLS: &amp;lt;l_struc&amp;gt; TYPE any,&lt;BR /&gt; &amp;lt;l_field&amp;gt; TYPE any.&lt;BR /&gt;&lt;BR /&gt; SORT c_extension BY structure.&lt;BR /&gt;&lt;BR /&gt; LOOP AT c_extension INTO wa_extension.&lt;BR /&gt; AT NEW structure.&lt;BR /&gt;===&amp;gt; CREATE DATA l_ref TYPE (wa_extension-structure).&lt;BR /&gt; ASSIGN l_ref-&amp;gt;* TO &amp;lt;l_struc&amp;gt;.&lt;BR /&gt; ENDAT.&lt;/P&gt;
  &lt;P&gt; ENDLOOP.&lt;/P&gt;
  &lt;P&gt;Other help threads are related to standard and no direct or manual solution was provided other than applying or referring a SAP Note. &lt;/P&gt;
  &lt;P&gt;So, I need your help how to correct this error? &lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 19:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-unknown-type-runtime-error-create-data-used-but-created-with/m-p/12773941#M2023253</guid>
      <dc:creator>sankar1781</dc:creator>
      <dc:date>2023-07-17T19:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_DATA_UNKNOWN_TYPE runtime error :  CREATE_DATA used but created with CREATE OBJECT instead</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-unknown-type-runtime-error-create-data-used-but-created-with/m-p/12773942#M2023254</link>
      <description>&lt;P&gt;I have no idea why C_EXTENSION contains an invalid DDIC structure (obviously CREATE DATA fails because "ACCOUNTPAYABLE" is not a DDIC type).&lt;/P&gt;&lt;P&gt;You can fix your custom programs to pass an existing DDIC type instead of ACCOUNTPAYABLE.&lt;/P&gt;&lt;P&gt;Or you can skip CREATE DATA ... and rest of code without doing a short dump.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;try.
    CREATE DATA l_ref TYPE (wa_extension-structure).
  catch CX_SY_CREATE_DATA_ERROR.
    CONTINUE.
endtry.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jul 2023 20:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-unknown-type-runtime-error-create-data-used-but-created-with/m-p/12773942#M2023254</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-07-17T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_DATA_UNKNOWN_TYPE runtime error :  CREATE_DATA used but created with CREATE OBJECT instead</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-unknown-type-runtime-error-create-data-used-but-created-with/m-p/12773943#M2023255</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;Thanks a lot again for your quick and continuous help.&lt;/P&gt;&lt;P&gt;FYI, C_EXTENSION2	Changing	Type	BAPIPAREX_TAB_AC is declared. And, it leads to him only ACCOUNTPAYABLE field was called. &lt;/P&gt;&lt;P&gt;I will look otherwise will add the TRY CATCH to avoid the dump.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 02:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-unknown-type-runtime-error-create-data-used-but-created-with/m-p/12773943#M2023255</guid>
      <dc:creator>sankar1781</dc:creator>
      <dc:date>2023-07-18T02:24:08Z</dc:date>
    </item>
  </channel>
</rss>

