<?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: BAPI_HU_DELETE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-hu-delete/m-p/12116087#M1973908</link>
    <description>&lt;P&gt;Hi, I checked the return table from BAPI and it doesn't have any type E messge.&lt;/P&gt;&lt;P&gt;If I run for single HU, it is working but not for multiple.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2019 12:28:00 GMT</pubDate>
    <dc:creator>kiran_k8</dc:creator>
    <dc:date>2019-09-13T12:28:00Z</dc:date>
    <item>
      <title>BAPI_HU_DELETE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-hu-delete/m-p/12116085#M1973906</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;FORM bapi USING pv_exidv.
  CALL FUNCTION 'BAPI_HU_DELETE'
    EXPORTING
      hukey    = pv_exidv
      ifpacked = 'X'
    TABLES
      return   = it_return.
  IF sy-subrc = 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait = 'X'.
    wa_final-comments = 'Deleted Successfully'.
  ELSE.
    wa_final-comments = 'BAPI Failed'.
  ENDIF.
ENDFORM.                    " BAPI


&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I am calling the above mentioned FMs in a LOOP. Suprisingly both the FMs return sy-subrc as zero but failing to update the table (vekp-status) when we are running this for multiple HUs.If we run for a single HU it is working but not for multiple.Kindly let me know where I am going wrong.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 12:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-hu-delete/m-p/12116085#M1973906</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2019-09-13T12:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_HU_DELETE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-hu-delete/m-p/12116086#M1973907</link>
      <description>&lt;P&gt;Evaluation of SY-SUBRC is only meaningful if you call the function module with exception handling (with option &lt;B&gt;EXCEPTIONS&lt;/B&gt;).&lt;/P&gt;&lt;P&gt;As a convention BAPI's do not raise exceptions. Instead the content of parameter RETURN can be used to determine whether the call was successful (by checking if any messages with type error are returned).&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 12:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-hu-delete/m-p/12116086#M1973907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-13T12:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_HU_DELETE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-hu-delete/m-p/12116087#M1973908</link>
      <description>&lt;P&gt;Hi, I checked the return table from BAPI and it doesn't have any type E messge.&lt;/P&gt;&lt;P&gt;If I run for single HU, it is working but not for multiple.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 12:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-hu-delete/m-p/12116087#M1973908</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2019-09-13T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_HU_DELETE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-hu-delete/m-p/12116088#M1973909</link>
      <description>&lt;P&gt;Refreshing the IT_RETURN table from the BAPI, for every iteration solved the issue.Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 12:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-hu-delete/m-p/12116088#M1973909</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2019-09-13T12:58:45Z</dc:date>
    </item>
  </channel>
</rss>

