Application Development 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: 

Determine the source server in RFC calls

0 Kudos
297

Hi All,

is there any posibillity to find out what is the source server of an RFC function call inside the FM and if it's an qRFC what is the queue name.

Thanks Thomas

1 ACCEPTED SOLUTION

Former Member
0 Kudos
120

Hi,

During RFC check Tcode : SM58 , SMQ1 and SMQ2.

Regards,

Aravind.

4 REPLIES 4

Former Member
0 Kudos
121

Hi,

During RFC check Tcode : SM58 , SMQ1 and SMQ2.

Regards,

Aravind.

0 Kudos
120

Hi Aravind,

thanks for your reply. It's my fault, but I mean inside a FM on ABAP level. Meanwhile I found a FM called 'TRFC_RECEIVER_INFO'. This module deliver some infos i need, but it works only for qRFC calls.

Thomas

0 Kudos
120

For the non-qRFC scenario you may want to try:


  CALL FUNCTION 'RFC_SYSTEM_INFO' DESTINATION 'BACK'
    IMPORTING
      rfcsi_export          = rfcsi_export
      rfc_login_complete    = rfc_login_complete
      dialog_user_type      = dialog_user_type
      current_resources     = current_resources
      maximal_resources     = maximal_resources
      recommended_delay     = recommended_delay
    EXCEPTIONS
      communication_failure = 1  MESSAGE dest_communication_message
      system_failure        = 2  MESSAGE dest_system_message.

The RFCSI_EXPORT parameter will give you a few details of the calling system (host, sysid, etc...).

0 Kudos
120

Cool, thanks a lot, you made my day...