<?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: Function module without exceptions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479184#M1556060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Uwe.. It worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2010 19:46:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-12T19:46:40Z</dc:date>
    <item>
      <title>Function module without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479175#M1556051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some function modules do not have exceptions  or return tables to capture  errors occurred during  processing,&lt;/P&gt;&lt;P&gt;instead they contain hard coded error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me some FM or any other way to  capture these  error messages in an internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;TC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 17:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479175#M1556051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T17:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function module without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479176#M1556052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think errors will be in SY table. So you can check SY-MSGTY, MSGNO, MSGV1, MSGV2, MSGV3 and MSGV4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 18:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479176#M1556052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T18:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function module without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479177#M1556053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your inputs  prvn, but it isnt helping. Most of the time the  SY  table contains msg as 'System check error. Start Transaction SICK!'    i.e. msgno = 00 in SY message class. its not storing  the hard coded error  inside  the  FM (with no exceptions).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 18:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479177#M1556053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T18:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function module without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479178#M1556054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I've seen one ro two SAP standard function modules with embedded error messages.  These were specialized function modules related to screen processing.  If you're talking about customer-created function modules, error messages should not be inserted...handle everything through exceptions and handle the non-zero return codes in the code that calls the FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 19:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479178#M1556054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T19:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function module without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479179#M1556055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Accepted.  But  then i have a requirement to  replace  CK23 transaction  with a custom function module. In this i am  using standard FMs like CK_F_CK23_COSTINGS_SELECT and CK_RFC_MARKING_RELEASING_CK24 etc.&lt;/P&gt;&lt;P&gt;In  both of the FMs  there  are no return tables or exceptions. And i need  to have  a  return table where appropriate messages  can  be  stored.  How  can  this be done?  please advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 20:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479179#M1556055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T20:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function module without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479180#M1556056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have my empathy.  Replacing a standard SAP transaction code with custom code is never a good idea, IMHO.  Is there no way that BADIs, exits, implicit enhancement points would allow the modifications required?   Creating a replacement version of a large piece of SAP standard code is a dead end street.  After upgrade, enhancement or support package, you may get to do it all over again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are message calls in those standard FMs, since you're cloning and whacking and hacking SAP code, why not just add copy those and add exception processing to the copies, too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 20:25:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479180#M1556056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T20:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function module without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479181#M1556057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya i could  have done that but again call transaction would  have  been a good idea than this one. correct?&lt;/P&gt;&lt;P&gt;But  again in BDCMSGCOLL table the messages are not being stored which are embeded in the SAP. And the requirement specifically asks for capturing actual reasons (S/E).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 21:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479181#M1556057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-11T21:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function module without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479182#M1556058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use CALL TRANSACTION, messages should be returned in BDCMSGCOLL. If not, find out why. Does it display a list of meesages at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting parameter p_user_param is itself a table. Is there anything there that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a where used list of these FMs to see if there are any other FMs that need to be used with them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 21:50:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479182#M1556058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-11T21:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function module without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479183#M1556059</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;Transaction CK23 does not exist on our ERP 6.0 systems yet the fm's you have mentioned are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fm CK_F_CK23_COSTINGS_SELECT does not raise any error message directly but collects them (e.g. routine ERROR_520, INFO_704 -&amp;gt; both routines call fm &lt;STRONG&gt;CM_F_MESSAGE&lt;/STRONG&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fm CK_RFC_MARKING_RELEASING_CK24 apparently returns error messages in TABLES parameter &lt;STRONG&gt;T_MSGPROT&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
* Tabelle der Messages aus diesem Kontext (Task) ermitteln...
  IF T_MSGPROT IS REQUESTED.
    CALL FUNCTION 'CM_F_MESSAGES_GET'
         EXPORTING
              APLID      = 'CKPF'
         TABLES
              E_MSGPROT  = T_MSGPROT
         EXCEPTIONS
              NOT_ACTIVE = 01.
  ENDIF.

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus,  I assume that all messages collected during transaction execution can be found in function group &lt;STRONG&gt;CMFE&lt;/STRONG&gt;.&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>Sun, 12 Dec 2010 14:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479183#M1556059</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2010-12-12T14:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function module without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479184#M1556060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Uwe.. It worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2010 19:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479184#M1556060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-12T19:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function module without exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479185#M1556061</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;I have to thank you, too, because now I have a little head start should I ever have to deal with CK23 related transactions in the future.&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>Mon, 13 Dec 2010 08:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-without-exceptions/m-p/7479185#M1556061</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2010-12-13T08:40:13Z</dc:date>
    </item>
  </channel>
</rss>

