Using datatype/element for destination in SAP ABAP

You can use RFCDEST to specify the destination for Remote Function Call connections in SAP ABAP.

The RFCDEST statement specifies the destination value for a Remote Function Call connection and gateway information. This statement is essential for establishing connections to remote SAP systems.

Supported Job Types

This statement is optional for the following job types ?

  • SAP Batch Input Session
  • SAP Business Warehouse InfoPackage
  • SAP Business Warehouse Process Chain
  • SAP Data Archiving
  • SAP Event Monitor
  • SAP Job Copy
  • SAP Process Monitor
  • SAP R/3

Basic Data

The following table and field information is relevant for RFCDEST ?

  • Table: RFCDES ? Destination table for Remote Function Call
  • Field: RFCDEST ? Logical Destination (Specified in Function Call)
  • Position: 1

Syntax

The basic syntax to use RFCDEST is ?

RFCDEST destination

Parameter Details

destination ? You need to specify the destination for the RFC connection and gateway information for an SAP R/3 system. This destination is the destination that is specified in the connection properties file during installation.

Limits: Up to 20 valid SAP characters and case-sensitive.

Example

Here's how to use RFCDEST in a function call ?

CALL FUNCTION 'REMOTE_FUNCTION_MODULE'
  DESTINATION 'PROD_SYSTEM'
  EXPORTING
    input_param = 'value'
  IMPORTING
    output_param = result.

Conclusion

RFCDEST is a crucial statement for establishing Remote Function Call connections in SAP ABAP, allowing communication between different SAP systems through specified destinations.

Updated on: 2026-03-13T18:24:50+05:30

273 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements