SAP ENQUEUE_E_RKE_CORRECT Function Module for Request lock for object E_RKE_CORRECT









ENQUEUE_E_RKE_CORRECT is a standard enqueue e rke correct SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Request lock for object E_RKE_CORRECT processing and below is the pattern details for this FM, 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 enqueue e rke correct FM, simply by entering the name ENQUEUE_E_RKE_CORRECT into the relevant SAP transaction such as SE37 or SE38.

Function Group: /1BCDWBEN/KEN0001
Program Name: /1BCDWBEN/SAPLKEN0001
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ENQUEUE_E_RKE_CORRECT 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 'ENQUEUE_E_RKE_CORRECT'"Request lock for object E_RKE_CORRECT
EXPORTING
* MODE_RKE_CORRECT = 'E' "Lock mode for table RKE_CORRECT
* X_BP = ' ' "Fill argument 01 with initial value?
* X_CC = ' ' "Fill argument 02 with initial value?
* X_KOKRS = ' ' "Fill argument 03 with initial value?
* X_GJAHR = ' ' "Fill argument 04 with initial value?
* X_PERIO = ' ' "Fill argument 05 with initial value?
* X_VERSN = ' ' "Fill argument 06 with initial value?
* X_PLANWERTE = ' ' "Fill argument 07 with initial value?
* X_ISTWERTE = ' ' "Fill argument 08 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* BP = "01th enqueue argument
* _COLLECT = ' ' "Initially only collect lock
* CC = "02th enqueue argument
* KOKRS = "03th enqueue argument
* GJAHR = "04th enqueue argument
* PERIO = "05th enqueue argument
* VERSN = "06th enqueue argument
* PLANWERTE = "07th enqueue argument
* ISTWERTE = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_E_RKE_CORRECT

MODE_RKE_CORRECT - Lock mode for table RKE_CORRECT

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

X_BP - Fill argument 01 with initial value?

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

X_CC - Fill argument 02 with initial value?

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

X_KOKRS - Fill argument 03 with initial value?

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

X_GJAHR - Fill argument 04 with initial value?

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

X_PERIO - Fill argument 05 with initial value?

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

X_VERSN - Fill argument 06 with initial value?

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

X_PLANWERTE - Fill argument 07 with initial value?

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

X_ISTWERTE - Fill argument 08 with initial value?

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

_SCOPE -

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

_WAIT -

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

BP - 01th enqueue argument

Data type: RKE_CORRECT-BP
Optional: Yes
Call by Reference: No ( called with pass by value option)

_COLLECT - Initially only collect lock

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

CC - 02th enqueue argument

Data type: RKE_CORRECT-CC
Optional: Yes
Call by Reference: No ( called with pass by value option)

KOKRS - 03th enqueue argument

Data type: RKE_CORRECT-KOKRS
Optional: Yes
Call by Reference: No ( called with pass by value option)

GJAHR - 04th enqueue argument

Data type: RKE_CORRECT-GJAHR
Optional: Yes
Call by Reference: No ( called with pass by value option)

PERIO - 05th enqueue argument

Data type: RKE_CORRECT-PERIO
Optional: Yes
Call by Reference: No ( called with pass by value option)

VERSN - 06th enqueue argument

Data type: RKE_CORRECT-VERSN
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLANWERTE - 07th enqueue argument

Data type: RKE_CORRECT-PLANWERTE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ISTWERTE - 08th enqueue argument

Data type: RKE_CORRECT-ISTWERTE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

FOREIGN_LOCK - Object already locked

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

SYSTEM_FAILURE - Internal error from enqueue server

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

Copy and paste ABAP code example for ENQUEUE_E_RKE_CORRECT 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_foreign_lock  TYPE STRING, "   
lv_mode_rke_correct  TYPE ENQMODE, "   'E'
lv_x_bp  TYPE ENQMODE, "   SPACE
lv_x_cc  TYPE ENQMODE, "   SPACE
lv_x_kokrs  TYPE ENQMODE, "   SPACE
lv_x_gjahr  TYPE ENQMODE, "   SPACE
lv_x_perio  TYPE ENQMODE, "   SPACE
lv_x_versn  TYPE ENQMODE, "   SPACE
lv_x_planwerte  TYPE ENQMODE, "   SPACE
lv_x_istwerte  TYPE ENQMODE, "   SPACE
lv__scope  TYPE ENQMODE, "   '2'
lv__wait  TYPE ENQMODE, "   SPACE
lv_bp  TYPE RKE_CORRECT-BP, "   
lv_system_failure  TYPE RKE_CORRECT, "   
lv__collect  TYPE DDENQCOLL, "   ' '
lv_cc  TYPE RKE_CORRECT-CC, "   
lv_kokrs  TYPE RKE_CORRECT-KOKRS, "   
lv_gjahr  TYPE RKE_CORRECT-GJAHR, "   
lv_perio  TYPE RKE_CORRECT-PERIO, "   
lv_versn  TYPE RKE_CORRECT-VERSN, "   
lv_planwerte  TYPE RKE_CORRECT-PLANWERTE, "   
lv_istwerte  TYPE RKE_CORRECT-ISTWERTE. "   

  CALL FUNCTION 'ENQUEUE_E_RKE_CORRECT'  "Request lock for object E_RKE_CORRECT
    EXPORTING
         MODE_RKE_CORRECT = lv_mode_rke_correct
         X_BP = lv_x_bp
         X_CC = lv_x_cc
         X_KOKRS = lv_x_kokrs
         X_GJAHR = lv_x_gjahr
         X_PERIO = lv_x_perio
         X_VERSN = lv_x_versn
         X_PLANWERTE = lv_x_planwerte
         X_ISTWERTE = lv_x_istwerte
         _SCOPE = lv__scope
         _WAIT = lv__wait
         BP = lv_bp
         _COLLECT = lv__collect
         CC = lv_cc
         KOKRS = lv_kokrs
         GJAHR = lv_gjahr
         PERIO = lv_perio
         VERSN = lv_versn
         PLANWERTE = lv_planwerte
         ISTWERTE = lv_istwerte
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_E_RKE_CORRECT




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_RKE_CORRECT

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.

 
DATA(ld_mode_rke_correct) = 'E'.
 
DATA(ld_x_bp) = ' '.
 
DATA(ld_x_cc) = ' '.
 
DATA(ld_x_kokrs) = ' '.
 
DATA(ld_x_gjahr) = ' '.
 
DATA(ld_x_perio) = ' '.
 
DATA(ld_x_versn) = ' '.
 
DATA(ld_x_planwerte) = ' '.
 
DATA(ld_x_istwerte) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
"SELECT single BP FROM RKE_CORRECT INTO @DATA(ld_bp).
 
 
DATA(ld__collect) = ' '.
 
"SELECT single CC FROM RKE_CORRECT INTO @DATA(ld_cc).
 
"SELECT single KOKRS FROM RKE_CORRECT INTO @DATA(ld_kokrs).
 
"SELECT single GJAHR FROM RKE_CORRECT INTO @DATA(ld_gjahr).
 
"SELECT single PERIO FROM RKE_CORRECT INTO @DATA(ld_perio).
 
"SELECT single VERSN FROM RKE_CORRECT INTO @DATA(ld_versn).
 
"SELECT single PLANWERTE FROM RKE_CORRECT INTO @DATA(ld_planwerte).
 
"SELECT single ISTWERTE FROM RKE_CORRECT INTO @DATA(ld_istwerte).
 


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!