SAP RFC_MODIFY_L_DESTINATION Function Module for









RFC_MODIFY_L_DESTINATION is a standard rfc modify 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 modify l destination FM, simply by entering the name RFC_MODIFY_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_MODIFY_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_MODIFY_L_DESTINATION'"
EXPORTING
DESTINATION = "Destination for RFC use
* PASSWORDSCR = 'X' "Passwort encryption active
* DESCRIPTION = ' ' "Description of destination
* DESTCOPY = ' ' "Copy to new RFC destination
* DESTLOCK = ' ' "Display of destination not modifiable
* DEQUEUE_SYNCHRON = ' ' "
* RFCCONVERT = ' ' "
* RFCCONVX = '0023' "
* RFCUNICODE = '1' "
* AUTHORITY = ' ' "
* SAME_USER = ' ' "
* ACTION = 'I' "Processing mode (see function module doc.)
* RFCWAN = ' ' "
* RFCBITMAP = '00000000' "
* QRFCVERS = '0' "
* EXPORTTRACE = '2' "
* KEEPALIVETIMEOUTVAL = '-2' "
* AUTHORITY_CHECK = 'X' "SM59 AUTHORITY_CHECK active ?
* REFERENCE = ' ' "Reference entry
* TRACE = ' ' "Trace functionality
* LANGUAGE = ' ' "Language for maintaining logon data
* CLIENT = ' ' "Client for maintenance of logon data
* USER = ' ' "User for maintaining logon data
* PASSWORD = ' ' "Password for maintaining logon data

EXCEPTIONS
AUTHORITY_NOT_AVAILABLE = 1 DESTINATION_ALREADY_EXIST = 2 DESTINATION_NOT_EXIST = 3 DESTINATION_ENQUEUE_REJECT = 4 INFORMATION_FAILURE = 5 TRFC_ENTRY_INVALID = 6 INTERNAL_FAILURE = 7 DESTINATION_IS_LOCKED = 8
.



IMPORTING Parameters details for RFC_MODIFY_L_DESTINATION

DESTINATION - Destination for RFC use

Data type: RFCDISPLAY-RFCDEST
Optional: No
Call by Reference: No ( called with pass by value option)

PASSWORDSCR - Passwort encryption active

Data type: RFCDISPLAY-RFCPWSCR
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DESCRIPTION - Description of destination

Data type: RFCDOC-RFCDOC1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DESTCOPY - Copy to new RFC destination

Data type: RFCDISPLAY-RFCDEST
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DESTLOCK - Display of destination not modifiable

Data type: RFCDISPLAY-RFCLOCK
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEQUEUE_SYNCHRON -

Data type: RFCDISPLAY-RFCNOWAIT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RFCCONVERT -

Data type: RFCDISPLAY-RFCCONVERT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RFCCONVX -

Data type: RFCRAW02
Default: '0023'
Optional: Yes
Call by Reference: No ( called with pass by value option)

RFCUNICODE -

Data type: RFCDISPLAY-RFCUNICODE
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUTHORITY -

Data type: DESTAUTH
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAME_USER -

Data type: RFCDISPLAY-RFCSAMEUSR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACTION - Processing mode (see function module doc.)

Data type: RFCDISPLAY-RFCTRACE
Default: 'I'
Optional: Yes
Call by Reference: No ( called with pass by value option)

RFCWAN -

Data type: RFCDISPLAY-RFCWAN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RFCBITMAP -

Data type: RFCRAW04
Default: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

QRFCVERS -

Data type: QRFCCHAR
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTTRACE -

Data type: RFCDISPLAY-TRACEPROPAGATION
Default: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)

KEEPALIVETIMEOUTVAL -

Data type: KEEP_TIMEOUT_VAL
Default: '-2'
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUTHORITY_CHECK - SM59 AUTHORITY_CHECK active ?

Data type: RFCDISPLAY-RFCTRACE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

REFERENCE - Reference entry

Data type: RFCDISPLAY-RFCALIAS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRACE - Trace functionality

Data type: RFCDISPLAY-RFCTRACE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGUAGE - Language for maintaining logon data

Data type: RFCDISPLAY-RFCLANG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENT - Client for maintenance of logon data

Data type: RFCDISPLAY-RFCCLIENT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

USER - User for maintaining logon data

Data type: RFCDISPLAY-RFCUSER
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PASSWORD - Password for maintaining logon data

Data type: RFCDISPLAY-RFCAUTH
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

AUTHORITY_NOT_AVAILABLE - No authorization exists

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DESTINATION_ALREADY_EXIST - Destination already exists

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DESTINATION_NOT_EXIST - Destination does not exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DESTINATION_ENQUEUE_REJECT - Destination is locked by another user

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INFORMATION_FAILURE - Parameter (information) not correctly maintained

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TRFC_ENTRY_INVALID - Inconsistent parameter maintenance for TRFC options

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)

DESTINATION_IS_LOCKED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RFC_MODIFY_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_destination  TYPE RFCDISPLAY-RFCDEST, "   
lv_authority_not_available  TYPE RFCDISPLAY, "   
lv_passwordscr  TYPE RFCDISPLAY-RFCPWSCR, "   'X'
lv_description  TYPE RFCDOC-RFCDOC1, "   SPACE
lv_destcopy  TYPE RFCDISPLAY-RFCDEST, "   SPACE
lv_destlock  TYPE RFCDISPLAY-RFCLOCK, "   SPACE
lv_dequeue_synchron  TYPE RFCDISPLAY-RFCNOWAIT, "   SPACE
lv_rfcconvert  TYPE RFCDISPLAY-RFCCONVERT, "   SPACE
lv_rfcconvx  TYPE RFCRAW02, "   '0023'
lv_rfcunicode  TYPE RFCDISPLAY-RFCUNICODE, "   '1'
lv_authority  TYPE DESTAUTH, "   SPACE
lv_same_user  TYPE RFCDISPLAY-RFCSAMEUSR, "   SPACE
lv_action  TYPE RFCDISPLAY-RFCTRACE, "   'I'
lv_destination_already_exist  TYPE RFCDISPLAY, "   
lv_rfcwan  TYPE RFCDISPLAY-RFCWAN, "   SPACE
lv_rfcbitmap  TYPE RFCRAW04, "   '00000000'
lv_qrfcvers  TYPE QRFCCHAR, "   '0'
lv_exporttrace  TYPE RFCDISPLAY-TRACEPROPAGATION, "   '2'
lv_keepalivetimeoutval  TYPE KEEP_TIMEOUT_VAL, "   '-2'
lv_authority_check  TYPE RFCDISPLAY-RFCTRACE, "   'X'
lv_destination_not_exist  TYPE RFCDISPLAY, "   
lv_reference  TYPE RFCDISPLAY-RFCALIAS, "   SPACE
lv_destination_enqueue_reject  TYPE RFCDISPLAY, "   
lv_trace  TYPE RFCDISPLAY-RFCTRACE, "   SPACE
lv_information_failure  TYPE RFCDISPLAY, "   
lv_language  TYPE RFCDISPLAY-RFCLANG, "   SPACE
lv_trfc_entry_invalid  TYPE RFCDISPLAY, "   
lv_client  TYPE RFCDISPLAY-RFCCLIENT, "   SPACE
lv_internal_failure  TYPE RFCDISPLAY, "   
lv_user  TYPE RFCDISPLAY-RFCUSER, "   SPACE
lv_destination_is_locked  TYPE RFCDISPLAY, "   
lv_password  TYPE RFCDISPLAY-RFCAUTH. "   SPACE

  CALL FUNCTION 'RFC_MODIFY_L_DESTINATION'  "
    EXPORTING
         DESTINATION = lv_destination
         PASSWORDSCR = lv_passwordscr
         DESCRIPTION = lv_description
         DESTCOPY = lv_destcopy
         DESTLOCK = lv_destlock
         DEQUEUE_SYNCHRON = lv_dequeue_synchron
         RFCCONVERT = lv_rfcconvert
         RFCCONVX = lv_rfcconvx
         RFCUNICODE = lv_rfcunicode
         AUTHORITY = lv_authority
         SAME_USER = lv_same_user
         ACTION = lv_action
         RFCWAN = lv_rfcwan
         RFCBITMAP = lv_rfcbitmap
         QRFCVERS = lv_qrfcvers
         EXPORTTRACE = lv_exporttrace
         KEEPALIVETIMEOUTVAL = lv_keepalivetimeoutval
         AUTHORITY_CHECK = lv_authority_check
         REFERENCE = lv_reference
         TRACE = lv_trace
         LANGUAGE = lv_language
         CLIENT = lv_client
         USER = lv_user
         PASSWORD = lv_password
    EXCEPTIONS
        AUTHORITY_NOT_AVAILABLE = 1
        DESTINATION_ALREADY_EXIST = 2
        DESTINATION_NOT_EXIST = 3
        DESTINATION_ENQUEUE_REJECT = 4
        INFORMATION_FAILURE = 5
        TRFC_ENTRY_INVALID = 6
        INTERNAL_FAILURE = 7
        DESTINATION_IS_LOCKED = 8
. " RFC_MODIFY_L_DESTINATION




ABAP code using 7.40 inline data declarations to call FM RFC_MODIFY_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 RFCDEST FROM RFCDISPLAY INTO @DATA(ld_destination).
 
 
"SELECT single RFCPWSCR FROM RFCDISPLAY INTO @DATA(ld_passwordscr).
DATA(ld_passwordscr) = 'X'.
 
"SELECT single RFCDOC1 FROM RFCDOC INTO @DATA(ld_description).
DATA(ld_description) = ' '.
 
"SELECT single RFCDEST FROM RFCDISPLAY INTO @DATA(ld_destcopy).
DATA(ld_destcopy) = ' '.
 
"SELECT single RFCLOCK FROM RFCDISPLAY INTO @DATA(ld_destlock).
DATA(ld_destlock) = ' '.
 
"SELECT single RFCNOWAIT FROM RFCDISPLAY INTO @DATA(ld_dequeue_synchron).
DATA(ld_dequeue_synchron) = ' '.
 
"SELECT single RFCCONVERT FROM RFCDISPLAY INTO @DATA(ld_rfcconvert).
DATA(ld_rfcconvert) = ' '.
 
DATA(ld_rfcconvx) = '0023'.
 
"SELECT single RFCUNICODE FROM RFCDISPLAY INTO @DATA(ld_rfcunicode).
DATA(ld_rfcunicode) = '1'.
 
DATA(ld_authority) = ' '.
 
"SELECT single RFCSAMEUSR FROM RFCDISPLAY INTO @DATA(ld_same_user).
DATA(ld_same_user) = ' '.
 
"SELECT single RFCTRACE FROM RFCDISPLAY INTO @DATA(ld_action).
DATA(ld_action) = 'I'.
 
 
"SELECT single RFCWAN FROM RFCDISPLAY INTO @DATA(ld_rfcwan).
DATA(ld_rfcwan) = ' '.
 
DATA(ld_rfcbitmap) = '00000000'.
 
DATA(ld_qrfcvers) = '0'.
 
"SELECT single TRACEPROPAGATION FROM RFCDISPLAY INTO @DATA(ld_exporttrace).
DATA(ld_exporttrace) = '2'.
 
DATA(ld_keepalivetimeoutval) = '-2'.
 
"SELECT single RFCTRACE FROM RFCDISPLAY INTO @DATA(ld_authority_check).
DATA(ld_authority_check) = 'X'.
 
 
"SELECT single RFCALIAS FROM RFCDISPLAY INTO @DATA(ld_reference).
DATA(ld_reference) = ' '.
 
 
"SELECT single RFCTRACE FROM RFCDISPLAY INTO @DATA(ld_trace).
DATA(ld_trace) = ' '.
 
 
"SELECT single RFCLANG FROM RFCDISPLAY INTO @DATA(ld_language).
DATA(ld_language) = ' '.
 
 
"SELECT single RFCCLIENT FROM RFCDISPLAY INTO @DATA(ld_client).
DATA(ld_client) = ' '.
 
 
"SELECT single RFCUSER FROM RFCDISPLAY INTO @DATA(ld_user).
DATA(ld_user) = ' '.
 
 
"SELECT single RFCAUTH FROM RFCDISPLAY INTO @DATA(ld_password).
DATA(ld_password) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!