<?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: ABAP dump CATCH_ILLEGAL_STATE while importing data from an internal table to multiple structures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-catch-illegal-state-while-importing-data-from-an-internal-table/m-p/690479#M31036</link>
    <description>&lt;P&gt;Hi Ashis, &lt;/P&gt;&lt;P&gt;How did you resolve this issue, currently I'm facing similar kind of issue on production system. We are reading text from STXL cluster table.&lt;/P&gt;&lt;P&gt;Any pointer would be helpful. &lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Tulasi&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 01:19:33 GMT</pubDate>
    <dc:creator>Tulasi</dc:creator>
    <dc:date>2020-05-14T01:19:33Z</dc:date>
    <item>
      <title>ABAP dump CATCH_ILLEGAL_STATE while importing data from an internal table to multiple structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-catch-illegal-state-while-importing-data-from-an-internal-table/m-p/690476#M31033</link>
      <description>&lt;P&gt;Code is working in development and quality system as exception "cx_sy_import_mismatch_error" is occurring there and that has been handled by catching the exception. But issue is coming in Production system with runtime error "CATCH_ILLEGAL_STATE' and no exception is being raised.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;ST22 Runtime Error:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Category: Internal kernel error &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Runtime Errors: CATCH_ILLEGAL_STATE &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Application Component: Not assigned&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Before importing the data, internal table is getting filled properly and checked in debug mode. Internal table lt_vbdata has filed VBDATA which is of data type LRAW with length 30000&lt;/P&gt;
  &lt;P&gt;Please help to fix the issue&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;APPEND ls_vbdata TO lt_vbdata.
TRY .
    IMPORT
        iv_code          TO lv_code
        iv_coll          TO lv_coll
        is_lime_head     TO ls_lime_head
        is_hu_maint      TO ls_hu_maint
        it_guid_hu       TO lt_guid_hu
        it_quan          TO lt_quan
        it_litem         TO lt_litem
        it_lhuitm        TO lt_lhuitm
        it_ordim_c       TO lt_ordim_c
        it_ordim_cs      TO lt_ordim_cs
        it_ordim_canc    TO lt_ordim_canc
        it_ordim_h       TO lt_ordim_h
        it_ordim_hs      TO lt_ordim_hs
        it_ref           TO lt_ref
        it_huhdr         TO lt_huhdr
        it_phm           TO lt_phm
        it_huident       TO lt_huident
        it_qdocid_qdocno TO lt_qdocid_qdocno
        it_hu_diff2      TO lt_hu_diff2
      FROM INTERNAL TABLE lt_vbdata.
    CATCH
      cx_sy_import_mismatch_error .
  ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Oct 2018 07:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-catch-illegal-state-while-importing-data-from-an-internal-table/m-p/690476#M31033</guid>
      <dc:creator>ashissap1</dc:creator>
      <dc:date>2018-10-17T07:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP dump CATCH_ILLEGAL_STATE while importing data from an internal table to multiple structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-catch-illegal-state-while-importing-data-from-an-internal-table/m-p/690477#M31034</link>
      <description>&lt;P&gt;Does you internal table lt_vbdata comply to the syntax and semantics of the IMPORT statement ? &lt;/P&gt;&lt;P&gt;Check this: &lt;A href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abapimport_medium.htm#!ABAP_ALTERNATIVE_2@2@" target="_blank"&gt;IMPORT ... FROM INTERNAL TABLE itab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The first column of itab must have the data type s or i and the second column must have the type x. The only table category allowed for itabare standard tables without secondary table keys. The internal table must contain a data cluster created using the INTERNAL TABLE addition of the EXPORT statement; otherwise, a runtime error occurs. Note that the internal table in particular cannot be empty.&lt;/P&gt;&lt;P&gt; Non-compliance of lt_vbdata could be reason for the dump.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 20:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-catch-illegal-state-while-importing-data-from-an-internal-table/m-p/690477#M31034</guid>
      <dc:creator>former_member208149</dc:creator>
      <dc:date>2018-10-17T20:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP dump CATCH_ILLEGAL_STATE while importing data from an internal table to multiple structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-catch-illegal-state-while-importing-data-from-an-internal-table/m-p/690478#M31035</link>
      <description>&lt;P&gt;Thanks Sapeksh for your response.&lt;/P&gt;&lt;P&gt;The issue was coming because of data absence. Internal table lt_vbdata was not getting properly filled. More than 30000 characters data (means multiple rows in internal table lt_vbdata) was required to fill all the structures with import statement. Previously, only one row of lt_vbdata was used to fill the structures, that caused the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 09:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-catch-illegal-state-while-importing-data-from-an-internal-table/m-p/690478#M31035</guid>
      <dc:creator>ashissap1</dc:creator>
      <dc:date>2018-10-18T09:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP dump CATCH_ILLEGAL_STATE while importing data from an internal table to multiple structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-catch-illegal-state-while-importing-data-from-an-internal-table/m-p/690479#M31036</link>
      <description>&lt;P&gt;Hi Ashis, &lt;/P&gt;&lt;P&gt;How did you resolve this issue, currently I'm facing similar kind of issue on production system. We are reading text from STXL cluster table.&lt;/P&gt;&lt;P&gt;Any pointer would be helpful. &lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Tulasi&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 01:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-dump-catch-illegal-state-while-importing-data-from-an-internal-table/m-p/690479#M31036</guid>
      <dc:creator>Tulasi</dc:creator>
      <dc:date>2020-05-14T01:19:33Z</dc:date>
    </item>
  </channel>
</rss>

