Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Find RFC source

Former Member
0 Likes
563

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

2 REPLIES 2
Read only

Lakshmant1
Active Contributor
0 Likes
448

Hi janesk,

Check FM RFC_GET_SYSTEM_INFO

Hope this helps

Thanks

Lakshman

Read only

Former Member
0 Likes
448

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.