<?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: Handelling exceptions of function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handelling-exceptions-of-function-module/m-p/5855089#M1320401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check standard function modules for error handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2009 06:28:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-22T06:28:02Z</dc:date>
    <item>
      <title>Handelling exceptions of function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handelling-exceptions-of-function-module/m-p/5855088#M1320400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working in scripts.&lt;/P&gt;&lt;P&gt;I want to read HEADER TEXT of delivery, by using the function module READ_TEXT.&lt;/P&gt;&lt;P&gt;But in this case I want to handle the exception.&lt;/P&gt;&lt;P&gt;ie. if driver program doesn't find any ID for function module, it should not give the error.&lt;/P&gt;&lt;P&gt;now it is giving error as 'delivery 0080011752 id 0001 not found'.&lt;/P&gt;&lt;P&gt;Can anybody tell me "how to handle this exception?"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handelling-exceptions-of-function-module/m-p/5855088#M1320400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T06:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Handelling exceptions of function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handelling-exceptions-of-function-module/m-p/5855089#M1320401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check standard function modules for error handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handelling-exceptions-of-function-module/m-p/5855089#M1320401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T06:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Handelling exceptions of function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handelling-exceptions-of-function-module/m-p/5855090#M1320402</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;Once you have read the data using FM,then check for sub-rc. If sub-rc is not equal to zero then skip the error and write the code you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Handle the data in sub rc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 08:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handelling-exceptions-of-function-module/m-p/5855090#M1320402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T08:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Handelling exceptions of function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handelling-exceptions-of-function-module/m-p/5855091#M1320403</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;This is not best practice to do&lt;/P&gt;&lt;P&gt; but i had face same problem and solve this problem by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just comment exeption and message part like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'READ_TEXT'
  EXPORTING
*   CLIENT                        = SY-MANDT
    id                            =
    language                      =
    name                          =
    object                        =
*   ARCHIVE_HANDLE                = 0
*   LOCAL_CAT                     = ' '
* IMPORTING
*   HEADER                        =
  tables
    lines                         =
* EXCEPTIONS
*   ID                            = 1
*   LANGUAGE                      = 2
*   NAME                          = 3
*   NOT_FOUND                     = 4
*   OBJECT                        = 5
*   REFERENCE_CHECK               = 6
*   WRONG_ACCESS_TO_ARCHIVE       = 7
*   OTHERS                        = 8
          .
*IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alpesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 08:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handelling-exceptions-of-function-module/m-p/5855091#M1320403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T08:21:11Z</dc:date>
    </item>
  </channel>
</rss>

