<?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: SAP functions without exceptions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-functions-without-exceptions/m-p/4464216#M1057783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Instead of,&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'PM_PARTNER_DELETE_PARVW'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;objnr = ls_equi-objnr&lt;/P&gt;&lt;P&gt;parvw = ls_ihpa-parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use as&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'PM_PARTNER_DELETE_PARVW'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;objnr = ls_equi-objnr&lt;/P&gt;&lt;P&gt;parvw = ls_ihpa-parvw&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;others = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will avoid the message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2008 20:18:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-16T20:18:34Z</dc:date>
    <item>
      <title>SAP functions without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-functions-without-exceptions/m-p/4464213#M1057780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I check sy-subrc&lt;/P&gt;&lt;P&gt;on a SAP function which has no exceptions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.  function "PM_PARTNER_DELETE_PARVW".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to check the sy-subrc after calling this function,&lt;/P&gt;&lt;P&gt;I will get following error on the code inspector:&lt;/P&gt;&lt;P&gt;No EXCEPTION to set SY_SUBRC Declared for CALL FUNCTION 'PM_PARTNER_DELETE_PARVW'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Ibrahim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 14:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-functions-without-exceptions/m-p/4464213#M1057780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T14:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAP functions without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-functions-without-exceptions/m-p/4464214#M1057781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ibrahim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this fm I assume you have to use at least two more fm's:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PM_PARTNER_UPDATE
BAPI_TRANSACTION_COMMIT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eventually you can evaluate the RETURN message of the BAPI to see if the DB update worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 15:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-functions-without-exceptions/m-p/4464214#M1057781</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-09-16T15:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP functions without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-functions-without-exceptions/m-p/4464215#M1057782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code looks like following lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*The internal table contains all relevant partners&lt;/P&gt;&lt;P&gt;      LOOP AT lt_ihpa_comp&lt;/P&gt;&lt;P&gt;         INTO ls_ihpa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'PM_PARTNER_DELETE_PARVW'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            objnr         = ls_equi-objnr&lt;/P&gt;&lt;P&gt;            parvw         = ls_ihpa-parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*my problem is here&lt;/P&gt;&lt;P&gt;        IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          CONTINUE.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*this function calls also the partner update function&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'PM_PARTNER_CALL_VB'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          objnr            = ls_equi-objnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ibrahim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 17:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-functions-without-exceptions/m-p/4464215#M1057782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T17:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAP functions without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-functions-without-exceptions/m-p/4464216#M1057783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Instead of,&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'PM_PARTNER_DELETE_PARVW'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;objnr = ls_equi-objnr&lt;/P&gt;&lt;P&gt;parvw = ls_ihpa-parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use as&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'PM_PARTNER_DELETE_PARVW'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;objnr = ls_equi-objnr&lt;/P&gt;&lt;P&gt;parvw = ls_ihpa-parvw&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;others = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will avoid the message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 20:18:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-functions-without-exceptions/m-p/4464216#M1057783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T20:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAP functions without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-functions-without-exceptions/m-p/4464217#M1057784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;others = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will avoid the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;True, but there's no point in it (at least until some exceptions are added to the function later in time).&lt;/P&gt;&lt;P&gt;If certain function has no exceptions defined, there's no point to code conditions over SY-SUBRC value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 21:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-functions-without-exceptions/m-p/4464217#M1057784</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2008-09-16T21:19:02Z</dc:date>
    </item>
  </channel>
</rss>

