<?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: Calling external function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320683#M1919072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Would not it be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;better to create a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;webservice&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and consume&lt;/SPAN&gt; &lt;SPAN class="alt-edited hps"&gt;the values that you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;want&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;You will need&lt;/SPAN&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;Created&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;service;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;A&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;PI o&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;r&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;connection created&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;directly&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in SAP (Tcode SM59) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN class="hps"&gt;ABAP&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;developer&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;process the data&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Warm regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Raphael Pacheco.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 22:02:05 GMT</pubDate>
    <dc:creator>raphael_almeida</dc:creator>
    <dc:date>2015-10-16T22:02:05Z</dc:date>
    <item>
      <title>Calling external function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320682#M1919071</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;Lets assume that our partner has a C or Java lib. &lt;/P&gt;&lt;P&gt;From this lib we have to call a function that takes a string and gives back a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;make a runnable program (in C or Java),&lt;/LI&gt;&lt;LI&gt;call the function in it,&lt;/LI&gt;&lt;LI&gt;copy the program to the server,&lt;/LI&gt;&lt;LI&gt;RFC that program in ABAP.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any better solution for that performance wise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 12:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320682#M1919071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-16T12:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calling external function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320683#M1919072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Would not it be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;better to create a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;webservice&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and consume&lt;/SPAN&gt; &lt;SPAN class="alt-edited hps"&gt;the values that you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;want&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;You will need&lt;/SPAN&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;Created&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;service;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;A&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;PI o&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;r&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;connection created&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;directly&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in SAP (Tcode SM59) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN class="hps"&gt;ABAP&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;developer&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;process the data&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Warm regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Raphael Pacheco.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 22:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320683#M1919072</guid>
      <dc:creator>raphael_almeida</dc:creator>
      <dc:date>2015-10-16T22:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling external function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320684#M1919073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RFC will generally be better performing than a web service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2015 07:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320684#M1919073</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2015-10-17T07:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calling external function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320685#M1919074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;To call a RFC from external system - you need a SAP connector.&amp;nbsp; For example Java based application, you need JCO connector, through which you can call the RFC from your external program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, &lt;/P&gt;&lt;P&gt;Write a ODATA service and consume it from your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2015 07:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320685#M1919074</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2015-10-17T07:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calling external function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320686#M1919075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the answers!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Raphael&lt;/STRONG&gt;: the webservice seems like a big hassle since the client does not have dedicated webserver.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Venkat&lt;/STRONG&gt;: if I create a server program and set it in SM59 then I do not need any connector at all. Am I right?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Matthew&lt;/STRONG&gt;: I assume you had done stuff like that (since you commented on the performance...). Could you affirm me, that the whole process could be achieved like that:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Write a server program in C using the &lt;SPAN style="color: #333333; font-family: Arial, Helvetica, 'Microsoft YaHei', Meiryo, 'Malgun Gothic', sans-serif; font-size: 13px;"&gt;sapnwrfc.h lib as in this &lt;A href="https://help.sap.com/saphelp_nwpi71/helpdata/en/45/b4ee529d6f731de10000000a1553f6/content.htm"&gt;example&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-family: Arial, Helvetica, 'Microsoft YaHei', Meiryo, 'Malgun Gothic', sans-serif; font-size: 13px;"&gt;copy the program to the server&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-family: Arial, Helvetica, 'Microsoft YaHei', Meiryo, 'Malgun Gothic', sans-serif; font-size: 13px;"&gt;register the destination in SM59&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-family: Arial, Helvetica, 'Microsoft YaHei', Meiryo, 'Malgun Gothic', sans-serif; font-size: 13px;"&gt;write a function module in ABAP that will act as a client and RFC the server program with input parameters and receives the server's answer as output parameters&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is really a matter of performance, so if you could advice something better than pls. do!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 09:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320686#M1919075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-19T09:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calling external function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320687#M1919076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use a web service, then there are additional layers and data conversions that you don't go through if you use direct RFC. It seems evident then, that RFC will be faster. CPIC is an alternative to RFC, but don't know much about. I seem to recall that RFC relies on CPIC, so CPIC is likely to be the absolute fastest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may find that a web service's performance is "good enough", however. So you need to balance the relative complexity of RFC (bespoke, SAP only interface) with the simplicity of a web service (global standard). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 09:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-external-function/m-p/11320687#M1919076</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2015-10-19T09:55:23Z</dc:date>
    </item>
  </channel>
</rss>

