SAP SLS_MISC_GET_RFC_INFO Function Module for GET RFC INFO
SLS_MISC_GET_RFC_INFO is a standard sls misc get rfc info SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for GET RFC INFO processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for sls misc get rfc info FM, simply by entering the name SLS_MISC_GET_RFC_INFO into the relevant SAP transaction such as SE37 or SE38.
Function Group: SLS0
Program Name: SAPLSLS0
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SLS_MISC_GET_RFC_INFO pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SLS_MISC_GET_RFC_INFO'"GET RFC INFO.
EXPORTING
DESTINATION = "Logical destination (specified in function call)
* AUTHORITY_CHECK = 'X' "Trace ?
IMPORTING
LOADBALANCING = "RFC via load distribution procedure (Load Balancing)
LANGUAGE = "Explicit language
CLIENT = "Explicit logon client
USER = "Explicit user ID
PASSWORD = "Explicit password
PASSWORDSCR = "Unencrypted password
DESCRIPTION = "Description of RFC connection
GWHOST = "Gateway host name
GWSERVICE = "Gateway service
TRFCBTCSUPPR = "TRFC: Do not schedule background jobs if conn. error occurs
TRFCBTCTRIES = "TRFC: Connection attempt up to task
SYSTEMID = "System ID
TRFCBTCDELAY = "TRFC: Time between repeat attempts
DESTLOCK = "Display type of destination (modifiable and not modifiable)
ARFC_ACTIVE = "Asynchronous RFC - load check active
ARFC_METHOD = "Asynchronous RFC - Procedures for load check
ARFC_CYCLE = "Asynchronous RFC - Analysis period for system load
SYSTEMNR = "Service used (TCP service, SAP System number)
SERVER = "Name of target host
GROUP = "Logon group for load distribution mode
TRACE = "Trace ?
TRUSTED_SYSTEM = "Trusted system (RFC single logon)
RFCLOGON_GUI = "Logon screen for RFC logon
RFCSNC = "RFC Secure Network Communication
EXCEPTIONS
AUTHORITY_NOT_AVAILABLE = 1 DESTINATION_NOT_EXIST = 2 INFORMATION_FAILURE = 3 INTERNAL_FAILURE = 4
IMPORTING Parameters details for SLS_MISC_GET_RFC_INFO
DESTINATION - Logical destination (specified in function call)
Data type: RFCDES-RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
AUTHORITY_CHECK - Trace ?
Data type: RFCDISPLAY-RFCTRACEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SLS_MISC_GET_RFC_INFO
LOADBALANCING - RFC via load distribution procedure (Load Balancing)
Data type: RFCDISPLAZ-RFCLBFLAGOptional: No
Call by Reference: No ( called with pass by value option)
LANGUAGE - Explicit language
Data type: RFCDISPLAY-RFCLANGOptional: No
Call by Reference: No ( called with pass by value option)
CLIENT - Explicit logon client
Data type: RFCDISPLAY-RFCCLIENTOptional: No
Call by Reference: No ( called with pass by value option)
USER - Explicit user ID
Data type: RFCDISPLAY-RFCUSEROptional: No
Call by Reference: No ( called with pass by value option)
PASSWORD - Explicit password
Data type: RFCDISPLAY-RFCAUTHOptional: No
Call by Reference: No ( called with pass by value option)
PASSWORDSCR - Unencrypted password
Data type: RFCDISPLAY-RFCPWSCROptional: No
Call by Reference: No ( called with pass by value option)
DESCRIPTION - Description of RFC connection
Data type: RFCDOC-RFCDOC1Optional: No
Call by Reference: No ( called with pass by value option)
GWHOST - Gateway host name
Data type: RFCDISPLAY-RFCGWHOSTOptional: No
Call by Reference: No ( called with pass by value option)
GWSERVICE - Gateway service
Data type: RFCDISPLAY-RFCGWSERVOptional: No
Call by Reference: No ( called with pass by value option)
TRFCBTCSUPPR - TRFC: Do not schedule background jobs if conn. error occurs
Data type: RFCDISPLAY-BTCSUPPROptional: No
Call by Reference: No ( called with pass by value option)
TRFCBTCTRIES - TRFC: Connection attempt up to task
Data type: RFCDISPLAY-BTCTRIESOptional: No
Call by Reference: No ( called with pass by value option)
SYSTEMID - System ID
Data type: RFCOPT-RFCSYSIDOptional: No
Call by Reference: No ( called with pass by value option)
TRFCBTCDELAY - TRFC: Time between repeat attempts
Data type: RFCDISPLAY-BTCDELAYOptional: No
Call by Reference: No ( called with pass by value option)
DESTLOCK - Display type of destination (modifiable and not modifiable)
Data type: RFCDISPLAY-RFCLOCKOptional: No
Call by Reference: No ( called with pass by value option)
ARFC_ACTIVE - Asynchronous RFC - load check active
Data type: RFCCHECK-ARFCACTIVEOptional: No
Call by Reference: No ( called with pass by value option)
ARFC_METHOD - Asynchronous RFC - Procedures for load check
Data type: RFCCHECK-ARFCMETHODOptional: No
Call by Reference: No ( called with pass by value option)
ARFC_CYCLE - Asynchronous RFC - Analysis period for system load
Data type: RFCCHECK-ARFCCYCLEOptional: No
Call by Reference: No ( called with pass by value option)
SYSTEMNR - Service used (TCP service, SAP System number)
Data type: RFCDISPLAY-RFCSERVICEOptional: No
Call by Reference: No ( called with pass by value option)
SERVER - Name of target host
Data type: RFCDISPLAY-RFCHOSTOptional: No
Call by Reference: No ( called with pass by value option)
GROUP - Logon group for load distribution mode
Data type: RFCDISPLAZ-RFCLOADOptional: No
Call by Reference: No ( called with pass by value option)
TRACE - Trace ?
Data type: RFCDISPLAY-RFCTRACEOptional: No
Call by Reference: No ( called with pass by value option)
TRUSTED_SYSTEM - Trusted system (RFC single logon)
Data type: RFCDISPLAY-RFCSLOGINOptional: No
Call by Reference: No ( called with pass by value option)
RFCLOGON_GUI - Logon screen for RFC logon
Data type: RFCDISPLAY-RFCLOGONOptional: No
Call by Reference: No ( called with pass by value option)
RFCSNC - RFC Secure Network Communication
Data type: RFCDISPLAY-RFCSNCOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
AUTHORITY_NOT_AVAILABLE -
Data type:Optional: No
Call by Reference: Yes
DESTINATION_NOT_EXIST -
Data type:Optional: No
Call by Reference: Yes
INFORMATION_FAILURE -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_FAILURE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SLS_MISC_GET_RFC_INFO Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_destination | TYPE RFCDES-RFCDEST, " | |||
| lv_loadbalancing | TYPE RFCDISPLAZ-RFCLBFLAG, " | |||
| lv_authority_not_available | TYPE RFCDISPLAZ, " | |||
| lv_language | TYPE RFCDISPLAY-RFCLANG, " | |||
| lv_client | TYPE RFCDISPLAY-RFCCLIENT, " | |||
| lv_user | TYPE RFCDISPLAY-RFCUSER, " | |||
| lv_password | TYPE RFCDISPLAY-RFCAUTH, " | |||
| lv_passwordscr | TYPE RFCDISPLAY-RFCPWSCR, " | |||
| lv_description | TYPE RFCDOC-RFCDOC1, " | |||
| lv_gwhost | TYPE RFCDISPLAY-RFCGWHOST, " | |||
| lv_gwservice | TYPE RFCDISPLAY-RFCGWSERV, " | |||
| lv_trfcbtcsuppr | TYPE RFCDISPLAY-BTCSUPPR, " | |||
| lv_trfcbtctries | TYPE RFCDISPLAY-BTCTRIES, " | |||
| lv_systemid | TYPE RFCOPT-RFCSYSID, " | |||
| lv_authority_check | TYPE RFCDISPLAY-RFCTRACE, " 'X' | |||
| lv_destination_not_exist | TYPE RFCDISPLAY, " | |||
| lv_trfcbtcdelay | TYPE RFCDISPLAY-BTCDELAY, " | |||
| lv_destlock | TYPE RFCDISPLAY-RFCLOCK, " | |||
| lv_arfc_active | TYPE RFCCHECK-ARFCACTIVE, " | |||
| lv_arfc_method | TYPE RFCCHECK-ARFCMETHOD, " | |||
| lv_arfc_cycle | TYPE RFCCHECK-ARFCCYCLE, " | |||
| lv_systemnr | TYPE RFCDISPLAY-RFCSERVICE, " | |||
| lv_information_failure | TYPE RFCDISPLAY, " | |||
| lv_server | TYPE RFCDISPLAY-RFCHOST, " | |||
| lv_internal_failure | TYPE RFCDISPLAY, " | |||
| lv_group | TYPE RFCDISPLAZ-RFCLOAD, " | |||
| lv_trace | TYPE RFCDISPLAY-RFCTRACE, " | |||
| lv_trusted_system | TYPE RFCDISPLAY-RFCSLOGIN, " | |||
| lv_rfclogon_gui | TYPE RFCDISPLAY-RFCLOGON, " | |||
| lv_rfcsnc | TYPE RFCDISPLAY-RFCSNC. " |
|   CALL FUNCTION 'SLS_MISC_GET_RFC_INFO' "GET RFC INFO |
| EXPORTING | ||
| DESTINATION | = lv_destination | |
| AUTHORITY_CHECK | = lv_authority_check | |
| IMPORTING | ||
| LOADBALANCING | = lv_loadbalancing | |
| LANGUAGE | = lv_language | |
| CLIENT | = lv_client | |
| USER | = lv_user | |
| PASSWORD | = lv_password | |
| PASSWORDSCR | = lv_passwordscr | |
| DESCRIPTION | = lv_description | |
| GWHOST | = lv_gwhost | |
| GWSERVICE | = lv_gwservice | |
| TRFCBTCSUPPR | = lv_trfcbtcsuppr | |
| TRFCBTCTRIES | = lv_trfcbtctries | |
| SYSTEMID | = lv_systemid | |
| TRFCBTCDELAY | = lv_trfcbtcdelay | |
| DESTLOCK | = lv_destlock | |
| ARFC_ACTIVE | = lv_arfc_active | |
| ARFC_METHOD | = lv_arfc_method | |
| ARFC_CYCLE | = lv_arfc_cycle | |
| SYSTEMNR | = lv_systemnr | |
| SERVER | = lv_server | |
| GROUP | = lv_group | |
| TRACE | = lv_trace | |
| TRUSTED_SYSTEM | = lv_trusted_system | |
| RFCLOGON_GUI | = lv_rfclogon_gui | |
| RFCSNC | = lv_rfcsnc | |
| EXCEPTIONS | ||
| AUTHORITY_NOT_AVAILABLE = 1 | ||
| DESTINATION_NOT_EXIST = 2 | ||
| INFORMATION_FAILURE = 3 | ||
| INTERNAL_FAILURE = 4 | ||
| . " SLS_MISC_GET_RFC_INFO | ||
ABAP code using 7.40 inline data declarations to call FM SLS_MISC_GET_RFC_INFO
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_destination). | ||||
| "SELECT single RFCLBFLAG FROM RFCDISPLAZ INTO @DATA(ld_loadbalancing). | ||||
| "SELECT single RFCLANG FROM RFCDISPLAY INTO @DATA(ld_language). | ||||
| "SELECT single RFCCLIENT FROM RFCDISPLAY INTO @DATA(ld_client). | ||||
| "SELECT single RFCUSER FROM RFCDISPLAY INTO @DATA(ld_user). | ||||
| "SELECT single RFCAUTH FROM RFCDISPLAY INTO @DATA(ld_password). | ||||
| "SELECT single RFCPWSCR FROM RFCDISPLAY INTO @DATA(ld_passwordscr). | ||||
| "SELECT single RFCDOC1 FROM RFCDOC INTO @DATA(ld_description). | ||||
| "SELECT single RFCGWHOST FROM RFCDISPLAY INTO @DATA(ld_gwhost). | ||||
| "SELECT single RFCGWSERV FROM RFCDISPLAY INTO @DATA(ld_gwservice). | ||||
| "SELECT single BTCSUPPR FROM RFCDISPLAY INTO @DATA(ld_trfcbtcsuppr). | ||||
| "SELECT single BTCTRIES FROM RFCDISPLAY INTO @DATA(ld_trfcbtctries). | ||||
| "SELECT single RFCSYSID FROM RFCOPT INTO @DATA(ld_systemid). | ||||
| "SELECT single RFCTRACE FROM RFCDISPLAY INTO @DATA(ld_authority_check). | ||||
| DATA(ld_authority_check) | = 'X'. | |||
| "SELECT single BTCDELAY FROM RFCDISPLAY INTO @DATA(ld_trfcbtcdelay). | ||||
| "SELECT single RFCLOCK FROM RFCDISPLAY INTO @DATA(ld_destlock). | ||||
| "SELECT single ARFCACTIVE FROM RFCCHECK INTO @DATA(ld_arfc_active). | ||||
| "SELECT single ARFCMETHOD FROM RFCCHECK INTO @DATA(ld_arfc_method). | ||||
| "SELECT single ARFCCYCLE FROM RFCCHECK INTO @DATA(ld_arfc_cycle). | ||||
| "SELECT single RFCSERVICE FROM RFCDISPLAY INTO @DATA(ld_systemnr). | ||||
| "SELECT single RFCHOST FROM RFCDISPLAY INTO @DATA(ld_server). | ||||
| "SELECT single RFCLOAD FROM RFCDISPLAZ INTO @DATA(ld_group). | ||||
| "SELECT single RFCTRACE FROM RFCDISPLAY INTO @DATA(ld_trace). | ||||
| "SELECT single RFCSLOGIN FROM RFCDISPLAY INTO @DATA(ld_trusted_system). | ||||
| "SELECT single RFCLOGON FROM RFCDISPLAY INTO @DATA(ld_rfclogon_gui). | ||||
| "SELECT single RFCSNC FROM RFCDISPLAY INTO @DATA(ld_rfcsnc). | ||||
Search for further information about these or an SAP related objects