<?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: How to capture errors when a Function module is called as BACKGROUND TASK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289043#M154809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that is the flip side of calling a function as a background task. Whenever the task fails, the user will get an intimation in his Inbox.&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>Tue, 07 Mar 2006 10:57:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-07T10:57:09Z</dc:date>
    <item>
      <title>How to capture errors when a Function module is called as BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289042#M154808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to capture errors when a Function module is called as BACKGROUND TASK?.Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION ZRPM_DELETE_PROJECT_DATA_API.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(IV_EXTERNAL_ID) TYPE  RPM_TV_EXTID OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(IV_PROJECT_GUID) TYPE  RPM_TV_GUID OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(FLAG) TYPE  BOOLEAN OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(EV_RC) TYPE  I&lt;/P&gt;&lt;P&gt;*"     VALUE(EV_MSG) TYPE  STRING&lt;/P&gt;&lt;P&gt;*"     VALUE(ET_MSG) TYPE  RPM_TT_MESSAGES&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF flag = cl_rpm_co=&amp;gt;sc_true.&lt;/P&gt;&lt;P&gt;    Call function 'RPM_DELETE_PROJECT_DATA' IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        IV_EXTERNAL_ID  = IV_EXTERNAL_ID&lt;/P&gt;&lt;P&gt;        IV_PROJECT_GUID = IV_PROJECT_GUID&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        EV_RC           = EV_RC&lt;/P&gt;&lt;P&gt;        EV_MSG          = EV_RC&lt;/P&gt;&lt;P&gt;        ET_MSG          = ET_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'RPM_DELETE_PROJECT_DATA'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        IV_EXTERNAL_ID  = IV_EXTERNAL_ID&lt;/P&gt;&lt;P&gt;        IV_PROJECT_GUID = IV_PROJECT_GUID&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        EV_RC           = EV_RC&lt;/P&gt;&lt;P&gt;        EV_MSG          = EV_MSG&lt;/P&gt;&lt;P&gt;        ET_MSG          = ET_MSG.&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;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above code how to capture 'EV_RC' when FM is called as background task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 10:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289042#M154808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T10:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture errors when a Function module is called as BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289043#M154809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that is the flip side of calling a function as a background task. Whenever the task fails, the user will get an intimation in his Inbox.&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>Tue, 07 Mar 2006 10:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289043#M154809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T10:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture errors when a Function module is called as BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289044#M154810</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;Please have look in the below document. You need to some settings in the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappro.com/downloads/Settings&amp;amp;SystemAreas.pdf" target="test_blank"&gt;http://www.sappro.com/downloads/Settings&amp;amp;SystemAreas.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 11:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289044#M154810</guid>
      <dc:creator>venkata_ramisetti</dc:creator>
      <dc:date>2006-03-07T11:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture errors when a Function module is called as BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289045#M154811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prakash, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the link&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_erp2005/helpdata/en/41/7af4e0a79e11d1950f0000e82de14a/frameset.htm"&amp;gt;call function in update task&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 12:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289045#M154811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T12:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture errors when a Function module is called as BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289046#M154812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if it's valid for BACKGROUND TASK also, but you might try with exception ERROR_MESSAGE:&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;ERROR_MESSAGE: This exception instructs the system to ignore S messages, I messages, and W messages until return from the function module (although they still appear in the log during background processing). When an E message or an A message occurs, the called function module terminates, as if the exception ERROR_MESSAGE has been triggered. If an A message is handled using ERROR_MESSAGE, the ROLLBACK WORK statement is triggered implicitly.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 12:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289046#M154812</guid>
      <dc:creator>Peter_Inotai</dc:creator>
      <dc:date>2006-03-07T12:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture errors when a Function module is called as BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289047#M154813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION IN BACKGROUND TASK allows no IMPORTING parameters, so that your code will produce a syntax error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calling program can only handle errors of remote function calls (RFC) if these are either &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- synchronous RFC  (that is CALL FUNCTION ... DESTINATION ...) or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- asynchronous RFC (that is CALL FUNCTION STARTING NEW TASK ... DESTINATION ...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both synchronous and asynchronous RFC allow the capturing of errors by means of exceptions. But that is a different topic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 13:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-errors-when-a-function-module-is-called-as-background-task/m-p/1289047#M154813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T13:00:32Z</dc:date>
    </item>
  </channel>
</rss>

