<?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: Detect RFC call in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586716#M591972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know what you mean...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try this out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When called inside SAP the system fields sy-cprog should be filled with the report name, otherwise it should be empty or have same default value for outcomming calls. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it out, I am not sure if this helps, but let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcelo Moreira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 10:53:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T10:53:53Z</dc:date>
    <item>
      <title>Detect RFC call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586715#M591971</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 developed one RFC function module. It can be called within an ABAP program or by an external program with RFC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I detect if the function module is running in RFC mode ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586715#M591971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Detect RFC call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586716#M591972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know what you mean...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try this out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When called inside SAP the system fields sy-cprog should be filled with the report name, otherwise it should be empty or have same default value for outcomming calls. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it out, I am not sure if this helps, but let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcelo Moreira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586716#M591972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T10:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Detect RFC call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586717#M591973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could always just add an extra paramater to its interface (of type flag) that you set if it is called from the external program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to record what data is passed to the FM from your external program investigate the use of FBGENDAT which will capture the data passed to your FM and store it in the test data directory for the FM in SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:57:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586717#M591973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T10:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Detect RFC call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586718#M591974</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;type in the FM name in se37&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enter into the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to attribute tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Remote FM  attribute is checked then  the function module is running in RFC mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 11:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586718#M591974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T11:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Detect RFC call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586719#M591975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That just means the fm is RFC enabled.  I imagine that if the original poster has managed to call his FM from an external program he's already figured this out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 11:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586719#M591975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T11:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Detect RFC call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586720#M591976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gareth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out how to use FBGENDAT, can you give more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586720#M591976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Detect RFC call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586721#M591977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going from memory so apologies if this isn't completely accurate!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, all you need to do is add a line of code to the start of your FM like so (example from standard BAPI):-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* generate data record
fbgenmac 'BAPI_SALESORDER_CREATEFROMDAT2'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also need to set a parameter against your user profile so go System-&amp;gt;User Profile-&amp;gt;Own Data and add a parameter called "FBGENDAT" and give it a value of X I think.  (Of course, you may need to do this against the RFC user that your external program is using to access SAP.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can actually activate or deactivate the recording using program FBGENDAT which is relatively self explanatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I "think" that is all - let me know if it doesn't all work and I'll try to remember the rest!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586721#M591977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Detect RFC call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586722#M591978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems clear to me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks  a lot, I should give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/detect-rfc-call/m-p/2586722#M591978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:55:16Z</dc:date>
    </item>
  </channel>
</rss>

