<?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: EPC Error in Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/epc-error-in-function-module/m-p/3550695#M854280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalyan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module call, you have not included the exceptions, and you are not handling those exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function module has the following exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFNR_BLOCKED&lt;/P&gt;&lt;P&gt;STATUS_BLOCKED&lt;/P&gt;&lt;P&gt;STATUS_ACTIV&lt;/P&gt;&lt;P&gt;STATUS_TO_CREATED&lt;/P&gt;&lt;P&gt;STATUS_RELEASED&lt;/P&gt;&lt;P&gt;REFNR_DOES_NOT_EXIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that means if sy-subrc = 1. the reason is Reference number is blocked and like that you need to handle them in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error says that only. Hope this is helpful to you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2008 08:50:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-19T08:50:58Z</dc:date>
    <item>
      <title>EPC Error in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/epc-error-in-function-module/m-p/3550694#M854279</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;I have the following code .............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'L_REF_DELETE_DOC'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_lgnum = p_y_wa_t311_lgnum&lt;/P&gt;&lt;P&gt;      i_refnr = p_y_wa_t311_refnr&lt;/P&gt;&lt;P&gt;      i_rbtyp = p_y_k_rbtyp&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_rbnum = p_y_li_rbnum[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ y_k_zero.&lt;/P&gt;&lt;P&gt;*Success message for all TRs deleted at group level&lt;/P&gt;&lt;P&gt;    MESSAGE s028(ydev) WITH p_y_wa_t311_refnr.&lt;/P&gt;&lt;P&gt;    CLEAR y_gwa_rbnum.&lt;/P&gt;&lt;P&gt;    LOOP AT p_y_li_rbnum INTO y_gwa_rbnum.&lt;/P&gt;&lt;P&gt;*Success message for all TR deleted at TR level&lt;/P&gt;&lt;P&gt;      MESSAGE s029(ydev) WITH y_gwa_rbnum-rbnum.&lt;/P&gt;&lt;P&gt;      CLEAR y_gwa_rbnum.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am doing an EPC check , am getting the following error : &lt;/P&gt;&lt;P&gt;No EXCEPTION to set SY_SUBRC Declared for CALL FUNCTION 'L_REF_DELETE_DOC'&lt;/P&gt;&lt;P&gt;Thus the value of SY-SUBRC is always 0&lt;/P&gt;&lt;P&gt;(The message can be hidden with "#EC *).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how to correct the same . I dont want to hide the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 08:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/epc-error-in-function-module/m-p/3550694#M854279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T08:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: EPC Error in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/epc-error-in-function-module/m-p/3550695#M854280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalyan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module call, you have not included the exceptions, and you are not handling those exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function module has the following exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFNR_BLOCKED&lt;/P&gt;&lt;P&gt;STATUS_BLOCKED&lt;/P&gt;&lt;P&gt;STATUS_ACTIV&lt;/P&gt;&lt;P&gt;STATUS_TO_CREATED&lt;/P&gt;&lt;P&gt;STATUS_RELEASED&lt;/P&gt;&lt;P&gt;REFNR_DOES_NOT_EXIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that means if sy-subrc = 1. the reason is Reference number is blocked and like that you need to handle them in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error says that only. Hope this is helpful to you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 08:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/epc-error-in-function-module/m-p/3550695#M854280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T08:50:58Z</dc:date>
    </item>
  </channel>
</rss>

