‎2008 Apr 10 7:57 AM
Hi,
I wonder if there is any posibility to get hostname / ip addres / rfc name wich was called remote function...
For example, I call something like this from server named 'TEST_01':
CALL FUNCTION 'Z_TEST' DESTINATION 'PROD_01'
EXPORTING p_test = 1.
Then I need to get a name of a source server in TEST_01 function wich is running on PROD_01 machine.
Is it possible ?
thx
‎2008 Apr 10 8:46 AM
Hi janesk,
Check FM RFC_GET_SYSTEM_INFO
Hope this helps
Thanks
Lakshman
‎2008 Apr 10 8:53 AM
You can pass the Server Name as a Parameter of the function module 'Z_TEST' .
ie,
CALL FUNCTION 'Z_TEST' DESTINATION 'PROD_01'
EXPORTING
p_test = 1
server = sy-host.