<?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 Program Dumping in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283560#M1634057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have below simple code and I am not sure why it's &lt;STRONG&gt;dumping&lt;/STRONG&gt;, Could you please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : HANDLE  TYPE SYSUUID_X.&lt;/P&gt;&lt;P&gt;DATA : MESSAGE TYPE TABLE OF HUITEM_MESSAGES_T.&lt;/P&gt;&lt;P&gt;DATA : ITEMS   TYPE TABLE OF HUINV_COUNTING.&lt;/P&gt;&lt;P&gt;DATA:  ITEMS3  TYPE TABLE OF HUINV_COUNTING_T .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: wa_items type huinv_counting.&lt;/P&gt;&lt;P&gt;data: Wa_items3 type huinv_counting_t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HANDLE = '4E78896C228B738FE10000000ABA6A0E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_items-HANDLE = '4E78896C228B738FE10000000ABA6A0E'.&lt;/P&gt;&lt;P&gt;wa_items-ITEM_NR = '000004'.&lt;/P&gt;&lt;P&gt;wa_items-HUEXIST = 'X'.&lt;/P&gt;&lt;P&gt;wa_items-QUANTITY = '10'.&lt;/P&gt;&lt;P&gt;Insert wa_items into table wa_items3.&lt;/P&gt;&lt;P&gt;APPEND wa_items3 to ITEMS3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HUINV_DOCUMENT_COUNTING'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    IF_HANDLE              = HANDLE&lt;/P&gt;&lt;P&gt;    IT_COUNTED_ITEMS       = ITEMS3&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   ET_MESSAGES            = MESSAGE&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ERROR                  = 1&lt;/P&gt;&lt;P&gt;   OTHERS                 = 2      .&lt;/P&gt;&lt;P&gt;_____________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DUMP :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;    The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was&lt;/P&gt;&lt;P&gt;     not caught and&lt;/P&gt;&lt;P&gt;    therefore caused a runtime error.&lt;/P&gt;&lt;P&gt;    The reason for the exception is:&lt;/P&gt;&lt;P&gt;    It was tried to transfer the internal table "ITEMS3" to the formal parameter&lt;/P&gt;&lt;P&gt;    "IT_COUNTED_ITEMS". In doing so, a type conflict occurred between the formal-&lt;/P&gt;&lt;P&gt;     and the&lt;/P&gt;&lt;P&gt;    actual parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The conditions flagged below have been violated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ("X") The access types specified for the table are not compatible. The&lt;/P&gt;&lt;P&gt;    compatibility rules are defined by the following hierarchy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ANY_TABLE (INDEX_TABLE (STANDARD_TABLE, SORTED_TABLE), HASHED_TABLE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          A fixed access type is only compatible with its predecessors in&lt;/P&gt;&lt;P&gt;          the hierarchy (example: STANDARD_TABLE is compatible with&lt;/P&gt;&lt;P&gt;    INDEX_TABLE and ANY_TABLE, but is not compatible with HASHED_TABLE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ("X") The row types of the two tables are not compatible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ("X") The table keys of the two tables do not match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ("X") One of the two tables is defined with a unique key (UNIQUE); the&lt;/P&gt;&lt;P&gt;    other is defined with a non-unique key (NON-UNIQUE).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2011 02:39:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-22T02:39:54Z</dc:date>
    <item>
      <title>Program Dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283560#M1634057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have below simple code and I am not sure why it's &lt;STRONG&gt;dumping&lt;/STRONG&gt;, Could you please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : HANDLE  TYPE SYSUUID_X.&lt;/P&gt;&lt;P&gt;DATA : MESSAGE TYPE TABLE OF HUITEM_MESSAGES_T.&lt;/P&gt;&lt;P&gt;DATA : ITEMS   TYPE TABLE OF HUINV_COUNTING.&lt;/P&gt;&lt;P&gt;DATA:  ITEMS3  TYPE TABLE OF HUINV_COUNTING_T .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: wa_items type huinv_counting.&lt;/P&gt;&lt;P&gt;data: Wa_items3 type huinv_counting_t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HANDLE = '4E78896C228B738FE10000000ABA6A0E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_items-HANDLE = '4E78896C228B738FE10000000ABA6A0E'.&lt;/P&gt;&lt;P&gt;wa_items-ITEM_NR = '000004'.&lt;/P&gt;&lt;P&gt;wa_items-HUEXIST = 'X'.&lt;/P&gt;&lt;P&gt;wa_items-QUANTITY = '10'.&lt;/P&gt;&lt;P&gt;Insert wa_items into table wa_items3.&lt;/P&gt;&lt;P&gt;APPEND wa_items3 to ITEMS3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HUINV_DOCUMENT_COUNTING'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    IF_HANDLE              = HANDLE&lt;/P&gt;&lt;P&gt;    IT_COUNTED_ITEMS       = ITEMS3&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   ET_MESSAGES            = MESSAGE&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ERROR                  = 1&lt;/P&gt;&lt;P&gt;   OTHERS                 = 2      .&lt;/P&gt;&lt;P&gt;_____________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DUMP :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;    The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was&lt;/P&gt;&lt;P&gt;     not caught and&lt;/P&gt;&lt;P&gt;    therefore caused a runtime error.&lt;/P&gt;&lt;P&gt;    The reason for the exception is:&lt;/P&gt;&lt;P&gt;    It was tried to transfer the internal table "ITEMS3" to the formal parameter&lt;/P&gt;&lt;P&gt;    "IT_COUNTED_ITEMS". In doing so, a type conflict occurred between the formal-&lt;/P&gt;&lt;P&gt;     and the&lt;/P&gt;&lt;P&gt;    actual parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The conditions flagged below have been violated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ("X") The access types specified for the table are not compatible. The&lt;/P&gt;&lt;P&gt;    compatibility rules are defined by the following hierarchy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ANY_TABLE (INDEX_TABLE (STANDARD_TABLE, SORTED_TABLE), HASHED_TABLE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          A fixed access type is only compatible with its predecessors in&lt;/P&gt;&lt;P&gt;          the hierarchy (example: STANDARD_TABLE is compatible with&lt;/P&gt;&lt;P&gt;    INDEX_TABLE and ANY_TABLE, but is not compatible with HASHED_TABLE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ("X") The row types of the two tables are not compatible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ("X") The table keys of the two tables do not match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ("X") One of the two tables is defined with a unique key (UNIQUE); the&lt;/P&gt;&lt;P&gt;    other is defined with a non-unique key (NON-UNIQUE).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 02:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283560#M1634057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T02:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Program Dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283561#M1634058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sarath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to replace your internal table with workarea in this part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Your code:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HUINV_DOCUMENT_COUNTING'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;IF_HANDLE = HANDLE&lt;/P&gt;&lt;P&gt;IT_COUNTED_ITEMS = &lt;STRONG&gt;ITEMS3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ET_MESSAGES = MESSAGE&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERROR = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Proposed Code:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HUINV_DOCUMENT_COUNTING'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;IF_HANDLE = HANDLE&lt;/P&gt;&lt;P&gt;IT_COUNTED_ITEMS = &lt;STRONG&gt;wa_items3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ET_MESSAGES = MESSAGE&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERROR = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 02:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283561#M1634058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T02:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Program Dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283562#M1634059</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;DATA: ITEMS3 TYPE &lt;STRONG&gt;TABLE&lt;/STRONG&gt; OF HUINV_COUNTING_T .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA: ITEMS3 TYPE OF HUINV_COUNTING_T .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 02:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283562#M1634059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T02:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Program Dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283563#M1634060</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;The declarations of line type should be as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA : message TYPE huitem_messages_t.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA : items TYPE huinv_counting_t.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : handle TYPE sysuuid_x.
*DATA : message TYPE huitem_messages_t.*
DATA : items TYPE huinv_counting_t.

DATA: wa_items TYPE huinv_counting.

handle = '4E78896C228B738FE10000000ABA6A0E'.

wa_items-handle = '4E78896C228B738FE10000000ABA6A0E'.
wa_items-item_nr = '000004'.
wa_items-huexist = 'X'.
wa_items-quantity = '10'.
*APPEND wa_items TO items.*
*APPEND wa_items3 to ITEMS3.

CALL FUNCTION 'HUINV_DOCUMENT_COUNTING'
  EXPORTING
    if_handle        = handle
    it_counted_items = items
  IMPORTING
    et_messages      = message
  EXCEPTIONS
    error            = 1
    OTHERS           = 2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 02:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283563#M1634060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T02:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Program Dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283564#M1634061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sarath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check that fm executing directly from se37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 04:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283564#M1634061</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-09-22T04:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Program Dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283565#M1634062</link>
      <description>&lt;P&gt;i know this is an old thread, but just in case someone is reviewing. the answer above is wrong. it doesn't work. use the former members answer below the suggested correct answer. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: items TYPE huinv_counting_t.
should be used for the it_counted_items. this will work without issue. &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Dec 2019 22:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-dumping/m-p/8283565#M1634062</guid>
      <dc:creator>former_member657206</dc:creator>
      <dc:date>2019-12-05T22:57:16Z</dc:date>
    </item>
  </channel>
</rss>

