SAP RFC_MODIFY_TCPIP_DESTINATION Function Module for
RFC_MODIFY_TCPIP_DESTINATION is a standard rfc modify tcpip 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 tcpip destination FM, simply by entering the name RFC_MODIFY_TCPIP_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_TCPIP_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_TCPIP_DESTINATION'".
EXPORTING
DESTINATION = "Destination for RFC use
* GWSERVICE = ' ' "Gateway service
* TRFCBTCSUPPR = ' ' "Background suppress for transactional RFC (TRFC)
* TRFCBTCTRIES = ' ' "Background repetitions for transactional RFC
* TRFCBTCDELAY = ' ' "Background delays for transactional RFC
* DESTCOPY = ' ' "Copy to new RFC destination
* DESTLOCK = ' ' "Display of destination not modifiable
* DEQUEUE_SYNCHRON = ' ' "
* RFCCONVERT = ' ' "
* RFCCONVX = '0023' "
* RFCUNICODE = '1' "
* ACTION = 'I' "Processing mode (see function module doc.)
* RFCBITMAP = '00000000' "Bitmap for Variable Options in RFCOPT
* RFCWAN = ' ' "'X' -> Slow RFC Connection (in WAN)
* SSO_TICKET = ' ' "
* AUTHORITY = ' ' "
* QRFCVERS = '0' "
* STARTTYPE = '0' "
* EXPORTTRACE = '2' "
* CPICTIMEOUTVALUE = '-2' "
* KEEPALIVETIMEOUTVAL = '-2' "
* SNC_PARAM = "
* AUTHORITY_CHECK = 'X' "SM59 AUTHORITY_CHECK active ?
* METHOD = 'A' "Communication method
* PROGRAM = ' ' "Program to be executed
* SERVER = ' ' "Server (application server)
* TRACE = ' ' "Trace functionality
* DESCRIPTION = ' ' "Description of destination
* GWHOST = ' ' "Gateway host
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_TCPIP_DESTINATION
DESTINATION - Destination for RFC use
Data type: RFCDISPLAY-RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
GWSERVICE - Gateway service
Data type: RFCDISPLAY-RFCGWSERVDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TRFCBTCSUPPR - Background suppress for transactional RFC (TRFC)
Data type: RFCDISPLAY-BTCSUPPRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TRFCBTCTRIES - Background repetitions for transactional RFC
Data type: RFCDISPLAY-BTCTRIESDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TRFCBTCDELAY - Background delays for transactional RFC
Data type: RFCDISPLAY-BTCDELAYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DESTCOPY - Copy to new RFC destination
Data type: RFCDISPLAY-RFCDESTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DESTLOCK - Display of destination not modifiable
Data type: RFCDISPLAY-RFCLOCKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DEQUEUE_SYNCHRON -
Data type: RFCDISPLAY-RFCNOWAITDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RFCCONVERT -
Data type: RFCDISPLAY-RFCCONVERTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RFCCONVX -
Data type: RFCRAW02Default: '0023'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RFCUNICODE -
Data type: RFCDISPLAY-RFCUNICODEDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTION - Processing mode (see function module doc.)
Data type: RFCDISPLAY-RFCTRACEDefault: 'I'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RFCBITMAP - Bitmap for Variable Options in RFCOPT
Data type: RFCRAW04Default: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RFCWAN - 'X' -> Slow RFC Connection (in WAN)
Data type: RFCDISPLAY-RFCWANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SSO_TICKET -
Data type: RFCDISPLAY-RFCTSYSOPTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUTHORITY -
Data type: DESTAUTHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
QRFCVERS -
Data type: QRFCCHARDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
STARTTYPE -
Data type: RFCDISPLAY-STARTTYPEDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTTRACE -
Data type: RFCDISPLAY-TRACEPROPAGATIONDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CPICTIMEOUTVALUE -
Data type: CPIC_TIMEOUT_VALDefault: '-2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEEPALIVETIMEOUTVAL -
Data type: KEEP_TIMEOUT_VALDefault: '-2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SNC_PARAM -
Data type: RFCSNCPARAOptional: Yes
Call by Reference: No ( called with pass by value option)
AUTHORITY_CHECK - SM59 AUTHORITY_CHECK active ?
Data type: RFCDISPLAY-RFCTRACEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
METHOD - Communication method
Data type: RFCDISPLAZ-RFCREGIDDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROGRAM - Program to be executed
Data type: RFCDISPLAY-RFCEXECDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SERVER - Server (application server)
Data type: RFCDISPLAY-RFCHOSTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TRACE - Trace functionality
Data type: RFCDISPLAY-RFCTRACEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DESCRIPTION - Description of destination
Data type: RFCDOC-RFCDOC1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
GWHOST - Gateway host
Data type: RFCDISPLAY-RFCGWHOSTDefault: 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_TCPIP_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_gwservice | TYPE RFCDISPLAY-RFCGWSERV, " SPACE | |||
| lv_trfcbtcsuppr | TYPE RFCDISPLAY-BTCSUPPR, " SPACE | |||
| lv_trfcbtctries | TYPE RFCDISPLAY-BTCTRIES, " SPACE | |||
| lv_trfcbtcdelay | TYPE RFCDISPLAY-BTCDELAY, " 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_action | TYPE RFCDISPLAY-RFCTRACE, " 'I' | |||
| lv_destination_already_exist | TYPE RFCDISPLAY, " | |||
| lv_rfcbitmap | TYPE RFCRAW04, " '00000000' | |||
| lv_rfcwan | TYPE RFCDISPLAY-RFCWAN, " SPACE | |||
| lv_sso_ticket | TYPE RFCDISPLAY-RFCTSYSOPT, " SPACE | |||
| lv_authority | TYPE DESTAUTH, " SPACE | |||
| lv_qrfcvers | TYPE QRFCCHAR, " '0' | |||
| lv_starttype | TYPE RFCDISPLAY-STARTTYPE, " '0' | |||
| lv_exporttrace | TYPE RFCDISPLAY-TRACEPROPAGATION, " '2' | |||
| lv_cpictimeoutvalue | TYPE CPIC_TIMEOUT_VAL, " '-2' | |||
| lv_keepalivetimeoutval | TYPE KEEP_TIMEOUT_VAL, " '-2' | |||
| lv_snc_param | TYPE RFCSNCPARA, " | |||
| lv_authority_check | TYPE RFCDISPLAY-RFCTRACE, " 'X' | |||
| lv_destination_not_exist | TYPE RFCDISPLAY, " | |||
| lv_method | TYPE RFCDISPLAZ-RFCREGID, " 'A' | |||
| lv_destination_enqueue_reject | TYPE RFCDISPLAZ, " | |||
| lv_program | TYPE RFCDISPLAY-RFCEXEC, " SPACE | |||
| lv_information_failure | TYPE RFCDISPLAY, " | |||
| lv_server | TYPE RFCDISPLAY-RFCHOST, " SPACE | |||
| lv_trfc_entry_invalid | TYPE RFCDISPLAY, " | |||
| lv_trace | TYPE RFCDISPLAY-RFCTRACE, " SPACE | |||
| lv_internal_failure | TYPE RFCDISPLAY, " | |||
| lv_description | TYPE RFCDOC-RFCDOC1, " SPACE | |||
| lv_destination_is_locked | TYPE RFCDOC, " | |||
| lv_gwhost | TYPE RFCDISPLAY-RFCGWHOST. " SPACE |
|   CALL FUNCTION 'RFC_MODIFY_TCPIP_DESTINATION' " |
| EXPORTING | ||
| DESTINATION | = lv_destination | |
| GWSERVICE | = lv_gwservice | |
| TRFCBTCSUPPR | = lv_trfcbtcsuppr | |
| TRFCBTCTRIES | = lv_trfcbtctries | |
| TRFCBTCDELAY | = lv_trfcbtcdelay | |
| DESTCOPY | = lv_destcopy | |
| DESTLOCK | = lv_destlock | |
| DEQUEUE_SYNCHRON | = lv_dequeue_synchron | |
| RFCCONVERT | = lv_rfcconvert | |
| RFCCONVX | = lv_rfcconvx | |
| RFCUNICODE | = lv_rfcunicode | |
| ACTION | = lv_action | |
| RFCBITMAP | = lv_rfcbitmap | |
| RFCWAN | = lv_rfcwan | |
| SSO_TICKET | = lv_sso_ticket | |
| AUTHORITY | = lv_authority | |
| QRFCVERS | = lv_qrfcvers | |
| STARTTYPE | = lv_starttype | |
| EXPORTTRACE | = lv_exporttrace | |
| CPICTIMEOUTVALUE | = lv_cpictimeoutvalue | |
| KEEPALIVETIMEOUTVAL | = lv_keepalivetimeoutval | |
| SNC_PARAM | = lv_snc_param | |
| AUTHORITY_CHECK | = lv_authority_check | |
| METHOD | = lv_method | |
| PROGRAM | = lv_program | |
| SERVER | = lv_server | |
| TRACE | = lv_trace | |
| DESCRIPTION | = lv_description | |
| GWHOST | = lv_gwhost | |
| 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_TCPIP_DESTINATION | ||
ABAP code using 7.40 inline data declarations to call FM RFC_MODIFY_TCPIP_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 RFCGWSERV FROM RFCDISPLAY INTO @DATA(ld_gwservice). | ||||
| DATA(ld_gwservice) | = ' '. | |||
| "SELECT single BTCSUPPR FROM RFCDISPLAY INTO @DATA(ld_trfcbtcsuppr). | ||||
| DATA(ld_trfcbtcsuppr) | = ' '. | |||
| "SELECT single BTCTRIES FROM RFCDISPLAY INTO @DATA(ld_trfcbtctries). | ||||
| DATA(ld_trfcbtctries) | = ' '. | |||
| "SELECT single BTCDELAY FROM RFCDISPLAY INTO @DATA(ld_trfcbtcdelay). | ||||
| DATA(ld_trfcbtcdelay) | = ' '. | |||
| "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'. | |||
| "SELECT single RFCTRACE FROM RFCDISPLAY INTO @DATA(ld_action). | ||||
| DATA(ld_action) | = 'I'. | |||
| DATA(ld_rfcbitmap) | = '00000000'. | |||
| "SELECT single RFCWAN FROM RFCDISPLAY INTO @DATA(ld_rfcwan). | ||||
| DATA(ld_rfcwan) | = ' '. | |||
| "SELECT single RFCTSYSOPT FROM RFCDISPLAY INTO @DATA(ld_sso_ticket). | ||||
| DATA(ld_sso_ticket) | = ' '. | |||
| DATA(ld_authority) | = ' '. | |||
| DATA(ld_qrfcvers) | = '0'. | |||
| "SELECT single STARTTYPE FROM RFCDISPLAY INTO @DATA(ld_starttype). | ||||
| DATA(ld_starttype) | = '0'. | |||
| "SELECT single TRACEPROPAGATION FROM RFCDISPLAY INTO @DATA(ld_exporttrace). | ||||
| DATA(ld_exporttrace) | = '2'. | |||
| DATA(ld_cpictimeoutvalue) | = '-2'. | |||
| DATA(ld_keepalivetimeoutval) | = '-2'. | |||
| "SELECT single RFCTRACE FROM RFCDISPLAY INTO @DATA(ld_authority_check). | ||||
| DATA(ld_authority_check) | = 'X'. | |||
| "SELECT single RFCREGID FROM RFCDISPLAZ INTO @DATA(ld_method). | ||||
| DATA(ld_method) | = 'A'. | |||
| "SELECT single RFCEXEC FROM RFCDISPLAY INTO @DATA(ld_program). | ||||
| DATA(ld_program) | = ' '. | |||
| "SELECT single RFCHOST FROM RFCDISPLAY INTO @DATA(ld_server). | ||||
| DATA(ld_server) | = ' '. | |||
| "SELECT single RFCTRACE FROM RFCDISPLAY INTO @DATA(ld_trace). | ||||
| DATA(ld_trace) | = ' '. | |||
| "SELECT single RFCDOC1 FROM RFCDOC INTO @DATA(ld_description). | ||||
| DATA(ld_description) | = ' '. | |||
| "SELECT single RFCGWHOST FROM RFCDISPLAY INTO @DATA(ld_gwhost). | ||||
| DATA(ld_gwhost) | = ' '. | |||
Search for further information about these or an SAP related objects