SAP ECATT_READ_RFC_DEST Function Module for
ECATT_READ_RFC_DEST is a standard ecatt read rfc dest SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ecatt read rfc dest FM, simply by entering the name ECATT_READ_RFC_DEST into the relevant SAP transaction such as SE37 or SE38.
Function Group: SETRM
Program Name: SAPLSETRM
Main Program: SAPLSETRM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function ECATT_READ_RFC_DEST 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 'ECATT_READ_RFC_DEST'".
EXPORTING
DESTINATION_NAME = "Logical Destination (Specified in Function Call)
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
RFCCONVERT = "Conversion for Non-Compatible Codepage?
RFCCONVX = "Conversion Bytes (If RFCCONV = 'I') in Hex
RFCUNICODE = "
RFCBITMAP = "Bitmap for Variable Options in RFCOPT
RFCWAN = "'X' -> Slow RFC Connection (in WAN)
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 (HTTP SSL)
EXCEPTIONS
AUTHORITY_NOT_AVAILABLE = 1 DESTINATION_NOT_EXIST = 2 INFORMATION_FAILURE = 3 INTERNAL_FAILURE = 4
IMPORTING Parameters details for ECATT_READ_RFC_DEST
DESTINATION_NAME - Logical Destination (Specified in Function Call)
Data type: RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ECATT_READ_RFC_DEST
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)
RFCCONVERT - Conversion for Non-Compatible Codepage?
Data type: RFCDISPLAY-RFCCONVERTOptional: No
Call by Reference: No ( called with pass by value option)
RFCCONVX - Conversion Bytes (If RFCCONV = 'I') in Hex
Data type: RFCDISPLAY-RFCCONVXOptional: No
Call by Reference: No ( called with pass by value option)
RFCUNICODE -
Data type: RFCDISPLAY-RFCUNICODEOptional: No
Call by Reference: No ( called with pass by value option)
RFCBITMAP - Bitmap for Variable Options in RFCOPT
Data type: RFCDISPLAY-RFCBITMAPOptional: No
Call by Reference: No ( called with pass by value option)
RFCWAN - 'X' -> Slow RFC Connection (in WAN)
Data type: RFCDISPLAY-RFCWANOptional: 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 (HTTP SSL)
Data type: RFCDISPLAY-RFCSNCOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
AUTHORITY_NOT_AVAILABLE - You do not have this authorization.
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 - Internal Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ECATT_READ_RFC_DEST 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_loadbalancing | TYPE RFCDISPLAZ-RFCLBFLAG, " | |||
| lv_destination_name | TYPE RFCDEST, " | |||
| lv_authority_not_available | TYPE RFCDEST, " | |||
| 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_destination_not_exist | TYPE RFCOPT, " | |||
| 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_rfcconvert | TYPE RFCDISPLAY-RFCCONVERT, " | |||
| lv_rfcconvx | TYPE RFCDISPLAY-RFCCONVX, " | |||
| lv_rfcunicode | TYPE RFCDISPLAY-RFCUNICODE, " | |||
| lv_rfcbitmap | TYPE RFCDISPLAY-RFCBITMAP, " | |||
| lv_rfcwan | TYPE RFCDISPLAY-RFCWAN, " | |||
| 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 'ECATT_READ_RFC_DEST' " |
| EXPORTING | ||
| DESTINATION_NAME | = lv_destination_name | |
| 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 | |
| RFCCONVERT | = lv_rfcconvert | |
| RFCCONVX | = lv_rfcconvx | |
| RFCUNICODE | = lv_rfcunicode | |
| RFCBITMAP | = lv_rfcbitmap | |
| RFCWAN | = lv_rfcwan | |
| 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 | ||
| . " ECATT_READ_RFC_DEST | ||
ABAP code using 7.40 inline data declarations to call FM ECATT_READ_RFC_DEST
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 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 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 RFCCONVERT FROM RFCDISPLAY INTO @DATA(ld_rfcconvert). | ||||
| "SELECT single RFCCONVX FROM RFCDISPLAY INTO @DATA(ld_rfcconvx). | ||||
| "SELECT single RFCUNICODE FROM RFCDISPLAY INTO @DATA(ld_rfcunicode). | ||||
| "SELECT single RFCBITMAP FROM RFCDISPLAY INTO @DATA(ld_rfcbitmap). | ||||
| "SELECT single RFCWAN FROM RFCDISPLAY INTO @DATA(ld_rfcwan). | ||||
| "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