<?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 error message from FM exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356028#M520563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;I am having a function module BDC_OPEN_GROUP.&lt;/P&gt;&lt;P&gt;In this we are having 11 exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to catch these exceptions and display an error message if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Promise to reward points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 09:42:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-04T09:42:50Z</dc:date>
    <item>
      <title>error message from FM exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356028#M520563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;I am having a function module BDC_OPEN_GROUP.&lt;/P&gt;&lt;P&gt;In this we are having 11 exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to catch these exceptions and display an error message if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Promise to reward points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 09:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356028#M520563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T09:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: error message from FM exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356029#M520564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the statement  Raise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just like this&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt; Raise &amp;lt;exception name&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&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, 04 Jun 2007 09:45:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356029#M520564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T09:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: error message from FM exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356030#M520565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;    You can use   Catch .. End Catch syntax .&lt;/P&gt;&lt;P&gt;   Please look in that .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 09:48:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356030#M520565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T09:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: error message from FM exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356031#M520566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         In the driver program u want to catch the exception right?&lt;/P&gt;&lt;P&gt;use like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the given solution is not suitable means tell me your problem clearly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 09:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356031#M520566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T09:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: error message from FM exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356032#M520567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;   message message-id wiht ' all the variables of the exception can be put here',&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 09:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356032#M520567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T09:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: error message from FM exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356033#M520568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the calling program you code should look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING " --&amp;gt;&amp;gt; If required&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CLIENT                    = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEST                      = FILLER8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GROUP                     = FILLER12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HOLDDATE                  = FILLER8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KEEP                      = FILLER1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER                      = FILLER12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RECORD                    = FILLER1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROG                      = SY-CPROG&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING "-- &amp;gt;&amp;gt; If required&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  QID                       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS  &lt;/P&gt;&lt;P&gt;   CLIENT_INVALID            = 1&lt;/P&gt;&lt;P&gt;   DESTINATION_INVALID       = 2&lt;/P&gt;&lt;P&gt;   GROUP_INVALID             = 3&lt;/P&gt;&lt;P&gt;   GROUP_IS_LOCKED           = 4&lt;/P&gt;&lt;P&gt;   HOLDDATE_INVALID          = 5&lt;/P&gt;&lt;P&gt;   INTERNAL_ERROR            = 6&lt;/P&gt;&lt;P&gt;   QUEUE_ERROR               = 7&lt;/P&gt;&lt;P&gt;   RUNNING                   = 8&lt;/P&gt;&lt;P&gt;   SYSTEM_LOCK_ERROR         = 9&lt;/P&gt;&lt;P&gt;   USER_INVALID              = 10&lt;/P&gt;&lt;P&gt;   OTHERS                    = 11&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will definitely work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Renuka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356033#M520568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T10:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: error message from FM exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356034#M520569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan,&lt;/P&gt;&lt;P&gt;If you've noticed, each of the 11 exceptions have a number assosciated with it. The significance of this number is, when a particular exception occur, the SY-SUBRC would take the number corresponding to that particular exception. Thus, you just to check for these numbers and handle the exceptions accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anil Madhavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-from-fm-exception/m-p/2356034#M520569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T10:59:56Z</dc:date>
    </item>
  </channel>
</rss>

