<?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: Asynchronous function module - why RFC ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324166#M1637510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno, what about calling the module in update task? did it work for you? Regards, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2011 11:30:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-02T11:30:43Z</dc:date>
    <item>
      <title>Asynchronous function module - why RFC ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324157#M1637501</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 am using CALL FUNCTION ... STARTING NEW TASK ... DESTINATION 'NONE' to start an asynchronous process.&lt;/P&gt;&lt;P&gt;For this to work, the called function module must be unfortunately RFC enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I do not want that anybody external can call this. Can I find out, if I was called from "outside"? Otherwise I create a potential security hole?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 13:24:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324157#M1637501</guid>
      <dc:creator>former_member182148</dc:creator>
      <dc:date>2011-11-30T13:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function module - why RFC ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324158#M1637502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use FM [RFC_GET_ATTRIBUTES|http://www.sdn.sap.com/irj/scn/advancedsearch?query=rfc_get_attributes] or [RFC_WITHIN_SAME_SYSTEM|http://www.sdn.sap.com/irj/scn/advancedsearch?query=rfc_within_same_system] at the beginning of your FM execution, exception NO_RFC_COMMUNICATION will be raised if not called via RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 13:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324158#M1637502</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-11-30T13:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function module - why RFC ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324159#M1637503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But when using above construct STARTING NEW TASK, then it is RFC-communication, will the exception still occur? It sounds to me as if Bruno wants to allow aRFC within the same box (for parallel processing?) but is afraid of the same function being called from outside SAP.&lt;/P&gt;&lt;P&gt;A sound security concept is the cure for many problems.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 13:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324159#M1637503</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-11-30T13:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function module - why RFC ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324160#M1637504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno, what is your requirement? If you want to trigger the function module in order to execute it in a separate work process in the same client, you could call the module in update task. You have to define the function module as &lt;EM&gt;update module&lt;/EM&gt; under attributes in SE37. No RFC involved in update calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 13:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324160#M1637504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-30T13:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function module - why RFC ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324161#M1637505</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;the requirement is that some other code calls my code and passes objects IDs that should be processed in the background (some kind of complex calculations).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not do this synchronous, since the calling code should not be slowed down by my logic and the result of the calculation is not needed in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check if the IN UPDATE TASK would be more appropriate, the help confuses me currently a little.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RFC_WITHIN_SAME_SYSTEM might also work, since it could return Y or N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 14:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324161#M1637505</guid>
      <dc:creator>former_member182148</dc:creator>
      <dc:date>2011-11-30T14:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function module - why RFC ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324162#M1637506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again, then update function seems a good choice. Have a look at ABAP keyword documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;The function module is not executed immediately, but is scheduled for execution in a special work process... The actual execution is triggered by the statement COMMIT WORK&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 14:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324162#M1637506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-30T14:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function module - why RFC ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324163#M1637507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;A sound security concept is the cure for many problems.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In this special case it is much easier said than done...  ;-(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STARTING NEW TASK automatically uses DESTINATION 'NONE' even if you do not code the destination extention, therefore the FM must be RFC-enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM RFC_WITHIN_SAME_SYSTEM checks that the caller is within the same SID, which is what the internal destination NONE is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use security for this you must consider that internal destinations do not check object S_RFC by default. But real external callers will encounter the check. This means that to use authorizations based security you must have all your users (everything from end users to the RFC connections users into this system) as having explicit and restircted RFC authorizations which also do not include the function group which this FM belongs to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally the field is 40 char long (as are the object names) but the authority-check statement truncates the function group name at the 15th character as it can only deal with 16 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An finally, anyone who does not know the object is very likely to pop a * value into it when it turns up, and it will ...  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case I also think that FM RFC_WITHIN_SAME_SYSTEM is the more reliable solution. After all, SAP also use it for exactly this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 14:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324163#M1637507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-30T14:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function module - why RFC ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324164#M1637508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Time to perform a simple test&lt;/P&gt;&lt;P&gt;- when called by actual RFC -&amp;gt; no exception&lt;/P&gt;&lt;P&gt;- when STARTING NEW TASK DESTINATION 'NONE' -&amp;gt; none or SYSTEM_CALL_NOT_SUPPORTED (depending on WAIT management...)&lt;/P&gt;&lt;P&gt;- when direct call -&amp;gt; NO_RFC_COMMUNICATION&lt;/P&gt;&lt;P&gt;You could check returned values like IP address, but I agree, better use RFC_WITHIN_SAME_SYSTEM. (Easier and SAPer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 14:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324164#M1637508</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-11-30T14:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function module - why RFC ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324165#M1637509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found out that STARTING NEW TASK creates a new session and fails if there are already 6 open... not perfect also &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Now looking into IN BACKGROUND TASK.. too many options here, but noone fits perfectly &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 15:54:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324165#M1637509</guid>
      <dc:creator>former_member182148</dc:creator>
      <dc:date>2011-11-30T15:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function module - why RFC ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324166#M1637510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno, what about calling the module in update task? did it work for you? Regards, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 11:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324166#M1637510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T11:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function module - why RFC ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324167#M1637511</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 changed my mind and will implement the process as a background job (scheduled or triggered by an event).&lt;/P&gt;&lt;P&gt;There came up additional concerns, when running out of processes that information may be lost and it is safer in this way (storing the initial info in a table and processing it separtely later). This will also solve some potential authorization issues, because we can use a special service user with appropriate authorizations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the input, I gave some points for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 12:17:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function-module-why-rfc/m-p/8324167#M1637511</guid>
      <dc:creator>former_member182148</dc:creator>
      <dc:date>2011-12-02T12:17:53Z</dc:date>
    </item>
  </channel>
</rss>

