SAP ENH_RFC Function Module for









ENH_RFC is a standard enh rfc 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 enh rfc FM, simply by entering the name ENH_RFC into the relevant SAP transaction such as SE37 or SE38.

Function Group: SEEF_BASE
Program Name: SAPLSEEF_BASE
Main Program: SAPLSEEF_BASE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ENH_RFC 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 'ENH_RFC'"
EXPORTING
ENHNAME = "

IMPORTING
ENHHEADER_ACTIVE = "
ENHOBJ_INACTIVE = "
ENHOBJCONTRACT_INACTIVE = "
ENHTAB_INACTIVE = "
DEVCLASS = "
ORIGLANG = "
MODIFLANG = "
CORRNUM = "
ENHDEPENDENT_ACTIVE = "
ENHLOG_ACTIVE = "
ENHOBJ_ACTIVE = "
ENHOBJCONTRACT_ACTIVE = "
ENHTAB_ACTIVE = "
ENHHEADER_INACTIVE = "
ENHDEPENDENT_INACTIVE = "
ENHLOG_INACTIVE = "

EXCEPTIONS
IS_LOCKED = 1 PERMISSION_DENIED = 2 INTERNAL_ERROR = 3
.



IMPORTING Parameters details for ENH_RFC

ENHNAME -

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

EXPORTING Parameters details for ENH_RFC

ENHHEADER_ACTIVE -

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

ENHOBJ_INACTIVE -

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

ENHOBJCONTRACT_INACTIVE -

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

ENHTAB_INACTIVE -

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

DEVCLASS -

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

ORIGLANG -

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

MODIFLANG -

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

CORRNUM -

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

ENHDEPENDENT_ACTIVE -

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

ENHLOG_ACTIVE -

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

ENHOBJ_ACTIVE -

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

ENHOBJCONTRACT_ACTIVE -

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

ENHTAB_ACTIVE -

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

ENHHEADER_INACTIVE -

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

ENHDEPENDENT_INACTIVE -

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

ENHLOG_INACTIVE -

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

EXCEPTIONS details

IS_LOCKED -

Data type:
Optional: No
Call by Reference: Yes

PERMISSION_DENIED -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ENH_RFC 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_enhname  TYPE ENHNAME, "   
lv_is_locked  TYPE ENHNAME, "   
lv_enhheader_active  TYPE ENHHEADER, "   
lv_enhobj_inactive  TYPE ENHOBJ_IT, "   
lv_enhobjcontract_inactive  TYPE ENHOBJCONTRACT_IT, "   
lv_enhtab_inactive  TYPE ENHTAB_IT, "   
lv_devclass  TYPE DEVCLASS, "   
lv_origlang  TYPE SPRAS, "   
lv_modiflang  TYPE SPRAS, "   
lv_corrnum  TYPE TRKORR, "   
lv_permission_denied  TYPE TRKORR, "   
lv_enhdependent_active  TYPE ENHDEPENDENT_IT, "   
lv_enhlog_active  TYPE ENHLOG_IT, "   
lv_internal_error  TYPE ENHLOG_IT, "   
lv_enhobj_active  TYPE ENHOBJ_IT, "   
lv_enhobjcontract_active  TYPE ENHOBJCONTRACT_IT, "   
lv_enhtab_active  TYPE ENHTAB_IT, "   
lv_enhheader_inactive  TYPE ENHHEADER, "   
lv_enhdependent_inactive  TYPE ENHDEPENDENT_IT, "   
lv_enhlog_inactive  TYPE ENHLOG_IT. "   

  CALL FUNCTION 'ENH_RFC'  "
    EXPORTING
         ENHNAME = lv_enhname
    IMPORTING
         ENHHEADER_ACTIVE = lv_enhheader_active
         ENHOBJ_INACTIVE = lv_enhobj_inactive
         ENHOBJCONTRACT_INACTIVE = lv_enhobjcontract_inactive
         ENHTAB_INACTIVE = lv_enhtab_inactive
         DEVCLASS = lv_devclass
         ORIGLANG = lv_origlang
         MODIFLANG = lv_modiflang
         CORRNUM = lv_corrnum
         ENHDEPENDENT_ACTIVE = lv_enhdependent_active
         ENHLOG_ACTIVE = lv_enhlog_active
         ENHOBJ_ACTIVE = lv_enhobj_active
         ENHOBJCONTRACT_ACTIVE = lv_enhobjcontract_active
         ENHTAB_ACTIVE = lv_enhtab_active
         ENHHEADER_INACTIVE = lv_enhheader_inactive
         ENHDEPENDENT_INACTIVE = lv_enhdependent_inactive
         ENHLOG_INACTIVE = lv_enhlog_inactive
    EXCEPTIONS
        IS_LOCKED = 1
        PERMISSION_DENIED = 2
        INTERNAL_ERROR = 3
. " ENH_RFC




ABAP code using 7.40 inline data declarations to call FM ENH_RFC

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!