SAP RFC_READ_L_DESTINATION Function Module for
RFC_READ_L_DESTINATION is a standard rfc read l destination 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 rfc read l destination FM, simply by entering the name RFC_READ_L_DESTINATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRFC
Program Name: SAPLCRFC
Main Program: SAPLCRFC
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RFC_READ_L_DESTINATION 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 'RFC_READ_L_DESTINATION'".
EXPORTING
DESTINATION = "
* AUTHORITY_CHECK = 'X' "
* BYPASS_BUF = 'X' "
IMPORTING
REFERENCE = "
GWSERVICE = "
DESTLOCK = "
RFCCONVERT = "
RFCCONVX = "
RFCUNICODE = "
AUTHORITY = "
RFCWAN = "
SAME_USER = "
RFCBITMAP = "
QRFCVERS = "
TRACE = "
EXPORTTRACE = "
KEEPALIVETIMEOUTVAL = "
LANGUAGE = "
CLIENT = "
USER = "
PASSWORD = "
PASSWORDSCR = "
DESCRIPTION = "
GWHOST = "
EXCEPTIONS
AUTHORITY_NOT_AVAILABLE = 1 DESTINATION_NOT_EXIST = 2 INFORMATION_FAILURE = 3 INTERNAL_FAILURE = 4
IMPORTING Parameters details for RFC_READ_L_DESTINATION
DESTINATION -
Data type: RFCDES-RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
AUTHORITY_CHECK -
Data type: RFCDISPLAY-RFCTRACEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
BYPASS_BUF -
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RFC_READ_L_DESTINATION
REFERENCE -
Data type: RFCDISPLAY-RFCALIASOptional: No
Call by Reference: No ( called with pass by value option)
GWSERVICE -
Data type: RFCDISPLAY-RFCGWSERVOptional: No
Call by Reference: No ( called with pass by value option)
DESTLOCK -
Data type: RFCDISPLAY-RFCLOCKOptional: No
Call by Reference: No ( called with pass by value option)
RFCCONVERT -
Data type: RFCDISPLAY-RFCCONVERTOptional: No
Call by Reference: No ( called with pass by value option)
RFCCONVX -
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)
AUTHORITY -
Data type: DESTAUTHOptional: No
Call by Reference: No ( called with pass by value option)
RFCWAN -
Data type: RFCDISPLAY-RFCWANOptional: No
Call by Reference: No ( called with pass by value option)
SAME_USER -
Data type: RFCDISPLAY-RFCSAMEUSROptional: No
Call by Reference: No ( called with pass by value option)
RFCBITMAP -
Data type: RFCDISPLAY-RFCBITMAPOptional: No
Call by Reference: No ( called with pass by value option)
QRFCVERS -
Data type: QRFCCHAROptional: No
Call by Reference: No ( called with pass by value option)
TRACE -
Data type: RFCDISPLAY-RFCTRACEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTTRACE -
Data type: RFCDISPLAY-TRACEPROPAGATIONOptional: No
Call by Reference: No ( called with pass by value option)
KEEPALIVETIMEOUTVAL -
Data type: KEEP_TIMEOUT_VALOptional: No
Call by Reference: No ( called with pass by value option)
LANGUAGE -
Data type: RFCDISPLAY-RFCLANGOptional: No
Call by Reference: No ( called with pass by value option)
CLIENT -
Data type: RFCDISPLAY-RFCCLIENTOptional: No
Call by Reference: No ( called with pass by value option)
USER -
Data type: RFCDISPLAY-RFCUSEROptional: No
Call by Reference: No ( called with pass by value option)
PASSWORD -
Data type: RFCDISPLAY-RFCAUTHOptional: No
Call by Reference: No ( called with pass by value option)
PASSWORDSCR -
Data type: RFCDISPLAY-RFCPWSCROptional: No
Call by Reference: No ( called with pass by value option)
DESCRIPTION -
Data type: RFCDOC-RFCDOC1Optional: No
Call by Reference: No ( called with pass by value option)
GWHOST -
Data type: RFCDISPLAY-RFCGWHOSTOptional: 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: No ( called with pass by value option)
DESTINATION_NOT_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INFORMATION_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_FAILURE - Internal Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RFC_READ_L_DESTINATION 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_reference | TYPE RFCDISPLAY-RFCALIAS, " | |||
| lv_destination | TYPE RFCDES-RFCDEST, " | |||
| lv_authority_not_available | TYPE RFCDES, " | |||
| lv_gwservice | TYPE RFCDISPLAY-RFCGWSERV, " | |||
| lv_destlock | TYPE RFCDISPLAY-RFCLOCK, " | |||
| lv_rfcconvert | TYPE RFCDISPLAY-RFCCONVERT, " | |||
| lv_rfcconvx | TYPE RFCDISPLAY-RFCCONVX, " | |||
| lv_rfcunicode | TYPE RFCDISPLAY-RFCUNICODE, " | |||
| lv_authority | TYPE DESTAUTH, " | |||
| lv_rfcwan | TYPE RFCDISPLAY-RFCWAN, " | |||
| lv_same_user | TYPE RFCDISPLAY-RFCSAMEUSR, " | |||
| lv_rfcbitmap | TYPE RFCDISPLAY-RFCBITMAP, " | |||
| lv_qrfcvers | TYPE QRFCCHAR, " | |||
| lv_trace | TYPE RFCDISPLAY-RFCTRACE, " | |||
| lv_authority_check | TYPE RFCDISPLAY-RFCTRACE, " 'X' | |||
| lv_destination_not_exist | TYPE RFCDISPLAY, " | |||
| lv_exporttrace | TYPE RFCDISPLAY-TRACEPROPAGATION, " | |||
| lv_keepalivetimeoutval | TYPE KEEP_TIMEOUT_VAL, " | |||
| lv_language | TYPE RFCDISPLAY-RFCLANG, " | |||
| lv_bypass_buf | TYPE CHAR1, " 'X' | |||
| lv_information_failure | TYPE CHAR1, " | |||
| lv_client | TYPE RFCDISPLAY-RFCCLIENT, " | |||
| lv_internal_failure | TYPE RFCDISPLAY, " | |||
| 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. " |
|   CALL FUNCTION 'RFC_READ_L_DESTINATION' " |
| EXPORTING | ||
| DESTINATION | = lv_destination | |
| AUTHORITY_CHECK | = lv_authority_check | |
| BYPASS_BUF | = lv_bypass_buf | |
| IMPORTING | ||
| REFERENCE | = lv_reference | |
| GWSERVICE | = lv_gwservice | |
| DESTLOCK | = lv_destlock | |
| RFCCONVERT | = lv_rfcconvert | |
| RFCCONVX | = lv_rfcconvx | |
| RFCUNICODE | = lv_rfcunicode | |
| AUTHORITY | = lv_authority | |
| RFCWAN | = lv_rfcwan | |
| SAME_USER | = lv_same_user | |
| RFCBITMAP | = lv_rfcbitmap | |
| QRFCVERS | = lv_qrfcvers | |
| TRACE | = lv_trace | |
| EXPORTTRACE | = lv_exporttrace | |
| KEEPALIVETIMEOUTVAL | = lv_keepalivetimeoutval | |
| LANGUAGE | = lv_language | |
| CLIENT | = lv_client | |
| USER | = lv_user | |
| PASSWORD | = lv_password | |
| PASSWORDSCR | = lv_passwordscr | |
| DESCRIPTION | = lv_description | |
| GWHOST | = lv_gwhost | |
| EXCEPTIONS | ||
| AUTHORITY_NOT_AVAILABLE = 1 | ||
| DESTINATION_NOT_EXIST = 2 | ||
| INFORMATION_FAILURE = 3 | ||
| INTERNAL_FAILURE = 4 | ||
| . " RFC_READ_L_DESTINATION | ||
ABAP code using 7.40 inline data declarations to call FM RFC_READ_L_DESTINATION
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 RFCALIAS FROM RFCDISPLAY INTO @DATA(ld_reference). | ||||
| "SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_destination). | ||||
| "SELECT single RFCGWSERV FROM RFCDISPLAY INTO @DATA(ld_gwservice). | ||||
| "SELECT single RFCLOCK FROM RFCDISPLAY INTO @DATA(ld_destlock). | ||||
| "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 RFCWAN FROM RFCDISPLAY INTO @DATA(ld_rfcwan). | ||||
| "SELECT single RFCSAMEUSR FROM RFCDISPLAY INTO @DATA(ld_same_user). | ||||
| "SELECT single RFCBITMAP FROM RFCDISPLAY INTO @DATA(ld_rfcbitmap). | ||||
| "SELECT single RFCTRACE FROM RFCDISPLAY INTO @DATA(ld_trace). | ||||
| "SELECT single RFCTRACE FROM RFCDISPLAY INTO @DATA(ld_authority_check). | ||||
| DATA(ld_authority_check) | = 'X'. | |||
| "SELECT single TRACEPROPAGATION FROM RFCDISPLAY INTO @DATA(ld_exporttrace). | ||||
| "SELECT single RFCLANG FROM RFCDISPLAY INTO @DATA(ld_language). | ||||
| DATA(ld_bypass_buf) | = 'X'. | |||
| "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). | ||||
Search for further information about these or an SAP related objects