<?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: Remote call function and destination in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605928#M1277519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume it is the field T000-LOGSYS. As you can see in table T000, this is linked to the client, not to the system. Now you would need to know which &lt;EM&gt;client&lt;/EM&gt; called you...not sure how this could work without altering the parameter interface, sorry.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 08:38:20 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2009-05-18T08:38:20Z</dc:date>
    <item>
      <title>Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605916#M1277507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all @SAPforums,&lt;/P&gt;&lt;P&gt;I used to call remotely a custom function, in a report, from many backends:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION ZFOO destination mydest&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where mydest is a string containing the name of an RFC destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: is there a way, on the destination machine, to get the name/id of the "caller" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question arises from this task: I have to use the caller ID in a WHERE clause of a SELECT statement I have to write in ZFOO. I can - of course - pass the caller ID by adding a new parameter to the function, but this would make necessary a change on the CALL FUNCTION in every backend (quite expensive task, in terms of time). So if it's possible, from the callee, to get the name of the caller, I could just modify the function leaving the calls in every backend as they are.&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 14:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605916#M1277507</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2009-05-15T14:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605917#M1277508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not possible, I think.  You'll have to use a parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on May 15, 2009 5:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 15:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605917#M1277508</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-05-15T15:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605918#M1277509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure, any system variable helps in this regard? &lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 15:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605918#M1277509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T15:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605919#M1277510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all and thanks for your help,&lt;/P&gt;&lt;P&gt;I already tried, as SAP ABAPer told, to check for any syst variable but without success.... I can't find any /visible and clear/ value that can give me the way to rebuild the callee ID. &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 15:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605919#M1277510</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2009-05-15T15:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605920#M1277511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matteo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not quite sure, but if you use inside your called rfc the sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'RFC_SYSTEM_INFO' destination 'BACK' &lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should get the info. But i can't test it here, bcause there's only one dev-system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 15:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605920#M1277511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T15:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605921#M1277512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Wolfgang,&lt;/P&gt;&lt;P&gt;sorry for the stupid question... what does "destination" stands for? &lt;/P&gt;&lt;P&gt;Thanks for the help &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 15:44:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605921#M1277512</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2009-05-15T15:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605922#M1277513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matteo, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you call your custom function  CALL FUNCTION ZFOO destination mydest ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the called function - in your case inside ZFOO - the destination 'BACK' points to the caller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RFC_SYSTEM_INFO function should give you the information about the caller in the structure RFCSI_EXPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 16:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605922#M1277513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T16:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605923#M1277514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hello Wolfgang,&lt;/P&gt;&lt;P&gt;&amp;gt; sorry for the stupid question... what does "destination" stands for? &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks for the help &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they are two types of RFC calling is ther..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION "function0module-name' DESTINATION "DEST"  &lt;/P&gt;&lt;P&gt;--that means you are picking data from another r/3 sytem using detination from 'DEST'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION "function0module-name' IN BACKGROUND TASK DESTINATION "DEST"  &lt;/P&gt;&lt;P&gt;--that means you are sending data to another r/3 sytem or any other sytem XI or and EDI&lt;/P&gt;&lt;P&gt;using detination from 'DEST'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 1 and 2..&lt;/P&gt;&lt;P&gt;--go to t-code SM59 and see the DEST what type of connection is and what system it is connected..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 16:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605923#M1277514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T16:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605924#M1277515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;mine one was a "semantic" question, I was wondering about the meaning of that call Wolgang suggested me. Anyway, seems his solution to be useful; cannot test it right now, I'll check asap and eventually close the thread. Thanks to you all &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 16:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605924#M1277515</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2009-05-15T16:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605925#M1277516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Wolfgang,&lt;/P&gt;&lt;P&gt;please forgive me if I'm wrong... the problem in that call  is that I should know who 'BACK' is... Am I wrong?&lt;/P&gt;&lt;P&gt;And that's the clue, since the ZFOO function can be called remotely by a wide range of backends, so that the identification of the 'caller' should be done dynamically.&lt;/P&gt;&lt;P&gt;Also; I've got some syntactical problem.... the call function in ZFOO should be: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call 'RFC_SYSTEM_INFO' destination 'mycallerdestination??'  importing  rfcsi_export= info&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this seems good I'm not that confident this is what I was looking for; my task is to "know" who the caller is, so 'mycallerdestination' isn't a priori known.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any hint you will give me &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 08:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605925#M1277516</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2009-05-18T08:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605926#M1277517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your destination is 'BACK' and nothing else. This is dynamically calling the destination where the initial call came from, so just what you want here. Good idea by Wolfgang.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. works only for synchronous RFC&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/80/09680289c751429ab3b07ad2a61c10/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/80/09680289c751429ab3b07ad2a61c10/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 08:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605926#M1277517</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-05-18T08:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605927#M1277518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes mate, gotcha! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; The idea from Wolfgang was brilliant... there's another clue related to this task, I hope some can give me a good hint, think it's a matter of some std table....&lt;/P&gt;&lt;P&gt;Briefly:&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'RFC_SYSTEM_INFO' destination 'BACK'
   IMPORTING
     rfcsi_export = info.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here I can read that info-RFCSYSID contains a 3-letter identifier of the 'caller' system (say, 'ABC'). What I should retrieve is the logical system's name, which is a bit different as it &lt;STRONG&gt;should&lt;/STRONG&gt; be in the following form:&lt;/P&gt;&lt;P&gt;ABCCLNT100 &lt;/P&gt;&lt;P&gt;as a sort of concatenation between the ID, clnt and the mandt for the system. I said &lt;STRONG&gt;SHOULD&lt;/STRONG&gt;, because this is not a fixed role... but I guess that these info should be stored somewhere in a table. &lt;/P&gt;&lt;P&gt;Is there any known table which could contain the relation systemID - logical system?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 08:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605927#M1277518</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2009-05-18T08:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605928#M1277519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume it is the field T000-LOGSYS. As you can see in table T000, this is linked to the client, not to the system. Now you would need to know which &lt;EM&gt;client&lt;/EM&gt; called you...not sure how this could work without altering the parameter interface, sorry.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 08:38:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605928#M1277519</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-05-18T08:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605929#M1277520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Thomas, thanks for your help,&lt;/P&gt;&lt;P&gt;as I supposed, I was partially wrong describing the actual value of the logsys field in BBP_PDHGP (on the SRM machine, on which ZFOO runs): the logsys value is tipically something like UB01ABC100, where: &lt;/P&gt;&lt;P&gt;UB01 is a company code&lt;/P&gt;&lt;P&gt;ABC is the sys ID&lt;/P&gt;&lt;P&gt;100 represents the mandt.&lt;/P&gt;&lt;P&gt;I guess if there's a table containing these infos, but in case it doesn't exist... is there a way to try a SELECT on a remote table (say, execute a SELECT statement in SRM applied to a backend table)? This could be a solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: the system field I'm looking for is the one in HRV5500OT table, field "BACKEND". Dunno anyway how to bind a logical sys ID (3 digits) to this LOGSYS value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matteo Montalto on May 18, 2009 11:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 09:02:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605929#M1277520</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2009-05-18T09:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remote call function and destination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605930#M1277521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; is there a way to try a SELECT on a remote table (say, execute a SELECT statement in SRM applied to a backend table)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module RFC_READ_TABLE. Good luck &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 09:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-call-function-and-destination/m-p/5605930#M1277521</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-05-18T09:49:15Z</dc:date>
    </item>
  </channel>
</rss>

