SAP ENQUEUE_E_OIU_VPPNM Function Module for Request lock for object E_OIU_VPPNM









ENQUEUE_E_OIU_VPPNM is a standard enqueue e oiu vppnm 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_OIU_VPPNM 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 oiu vppnm FM, simply by entering the name ENQUEUE_E_OIU_VPPNM into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_E_OIU_VPPNM 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_OIU_VPPNM'"Request lock for object E_OIU_VPPNM
EXPORTING
* MODE_OIU_RV_VPPNM = 'E' "Lock mode for table OIU_RV_VPPNM
* VNAME = "09th enqueue argument
* DOI_NO = "10th enqueue argument
* CT_NO = "11th enqueue argument
* PPA_RSN_CD = "12th enqueue argument
* X_DN_NO = ' ' "Fill argument 02 with initial value?
* X_PRD_DT = ' ' "Fill argument 03 with initial value?
* X_WL_NO = ' ' "Fill argument 04 with initial value?
* X_WC_NO = ' ' "Fill argument 05 with initial value?
* X_MP_NO = ' ' "Fill argument 06 with initial value?
* X_MAJPD_CD = ' ' "Fill argument 07 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_BUKRS = ' ' "Fill argument 08 with initial value?
* X_VNAME = ' ' "Fill argument 09 with initial value?
* X_DOI_NO = ' ' "Fill argument 10 with initial value?
* X_CT_NO = ' ' "Fill argument 11 with initial value?
* X_PPA_RSN_CD = ' ' "Fill argument 12 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* DN_NO = "02th enqueue argument
* PRD_DT = "03th enqueue argument
* WL_NO = "04th enqueue argument
* WC_NO = "05th enqueue argument
* MP_NO = "06th enqueue argument
* MAJPD_CD = "07th enqueue argument
* BUKRS = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_E_OIU_VPPNM

MODE_OIU_RV_VPPNM - Lock mode for table OIU_RV_VPPNM

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

VNAME - 09th enqueue argument

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

DOI_NO - 10th enqueue argument

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

CT_NO - 11th enqueue argument

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

PPA_RSN_CD - 12th enqueue argument

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

X_DN_NO - Fill argument 02 with initial value?

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

X_PRD_DT - Fill argument 03 with initial value?

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

X_WL_NO - Fill argument 04 with initial value?

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

X_WC_NO - Fill argument 05 with initial value?

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

X_MP_NO - Fill argument 06 with initial value?

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

X_MAJPD_CD - Fill argument 07 with initial value?

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

MANDT - 01th enqueue argument

Data type: OIU_RV_VPPNM-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_BUKRS - Fill argument 08 with initial value?

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

X_VNAME - Fill argument 09 with initial value?

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

X_DOI_NO - Fill argument 10 with initial value?

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

X_CT_NO - Fill argument 11 with initial value?

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

X_PPA_RSN_CD - Fill argument 12 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)

_COLLECT - Initially only collect lock

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

DN_NO - 02th enqueue argument

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

PRD_DT - 03th enqueue argument

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

WL_NO - 04th enqueue argument

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

WC_NO - 05th enqueue argument

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

MP_NO - 06th enqueue argument

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

MAJPD_CD - 07th enqueue argument

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

BUKRS - 08th enqueue argument

Data type: OIU_RV_VPPNM-BUKRS
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_OIU_VPPNM 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_oiu_rv_vppnm  TYPE ENQMODE, "   'E'
lv_vname  TYPE OIU_RV_VPPNM-VNAME, "   
lv_doi_no  TYPE OIU_RV_VPPNM-DOI_NO, "   
lv_ct_no  TYPE OIU_RV_VPPNM-CT_NO, "   
lv_ppa_rsn_cd  TYPE OIU_RV_VPPNM-PPA_RSN_CD, "   
lv_x_dn_no  TYPE OIU_RV_VPPNM, "   SPACE
lv_x_prd_dt  TYPE OIU_RV_VPPNM, "   SPACE
lv_x_wl_no  TYPE OIU_RV_VPPNM, "   SPACE
lv_x_wc_no  TYPE OIU_RV_VPPNM, "   SPACE
lv_x_mp_no  TYPE OIU_RV_VPPNM, "   SPACE
lv_x_majpd_cd  TYPE OIU_RV_VPPNM, "   SPACE
lv_mandt  TYPE OIU_RV_VPPNM-MANDT, "   SY-MANDT
lv_system_failure  TYPE OIU_RV_VPPNM, "   
lv_x_bukrs  TYPE OIU_RV_VPPNM, "   SPACE
lv_x_vname  TYPE OIU_RV_VPPNM, "   SPACE
lv_x_doi_no  TYPE OIU_RV_VPPNM, "   SPACE
lv_x_ct_no  TYPE OIU_RV_VPPNM, "   SPACE
lv_x_ppa_rsn_cd  TYPE OIU_RV_VPPNM, "   SPACE
lv__scope  TYPE OIU_RV_VPPNM, "   '2'
lv__wait  TYPE OIU_RV_VPPNM, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_dn_no  TYPE OIU_RV_VPPNM-DN_NO, "   
lv_prd_dt  TYPE OIU_RV_VPPNM-PRD_DT, "   
lv_wl_no  TYPE OIU_RV_VPPNM-WL_NO, "   
lv_wc_no  TYPE OIU_RV_VPPNM-WC_NO, "   
lv_mp_no  TYPE OIU_RV_VPPNM-MP_NO, "   
lv_majpd_cd  TYPE OIU_RV_VPPNM-MAJPD_CD, "   
lv_bukrs  TYPE OIU_RV_VPPNM-BUKRS. "   

  CALL FUNCTION 'ENQUEUE_E_OIU_VPPNM'  "Request lock for object E_OIU_VPPNM
    EXPORTING
         MODE_OIU_RV_VPPNM = lv_mode_oiu_rv_vppnm
         VNAME = lv_vname
         DOI_NO = lv_doi_no
         CT_NO = lv_ct_no
         PPA_RSN_CD = lv_ppa_rsn_cd
         X_DN_NO = lv_x_dn_no
         X_PRD_DT = lv_x_prd_dt
         X_WL_NO = lv_x_wl_no
         X_WC_NO = lv_x_wc_no
         X_MP_NO = lv_x_mp_no
         X_MAJPD_CD = lv_x_majpd_cd
         MANDT = lv_mandt
         X_BUKRS = lv_x_bukrs
         X_VNAME = lv_x_vname
         X_DOI_NO = lv_x_doi_no
         X_CT_NO = lv_x_ct_no
         X_PPA_RSN_CD = lv_x_ppa_rsn_cd
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         DN_NO = lv_dn_no
         PRD_DT = lv_prd_dt
         WL_NO = lv_wl_no
         WC_NO = lv_wc_no
         MP_NO = lv_mp_no
         MAJPD_CD = lv_majpd_cd
         BUKRS = lv_bukrs
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_E_OIU_VPPNM




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_OIU_VPPNM

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_oiu_rv_vppnm) = 'E'.
 
"SELECT single VNAME FROM OIU_RV_VPPNM INTO @DATA(ld_vname).
 
"SELECT single DOI_NO FROM OIU_RV_VPPNM INTO @DATA(ld_doi_no).
 
"SELECT single CT_NO FROM OIU_RV_VPPNM INTO @DATA(ld_ct_no).
 
"SELECT single PPA_RSN_CD FROM OIU_RV_VPPNM INTO @DATA(ld_ppa_rsn_cd).
 
DATA(ld_x_dn_no) = ' '.
 
DATA(ld_x_prd_dt) = ' '.
 
DATA(ld_x_wl_no) = ' '.
 
DATA(ld_x_wc_no) = ' '.
 
DATA(ld_x_mp_no) = ' '.
 
DATA(ld_x_majpd_cd) = ' '.
 
"SELECT single MANDT FROM OIU_RV_VPPNM INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld_x_bukrs) = ' '.
 
DATA(ld_x_vname) = ' '.
 
DATA(ld_x_doi_no) = ' '.
 
DATA(ld_x_ct_no) = ' '.
 
DATA(ld_x_ppa_rsn_cd) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single DN_NO FROM OIU_RV_VPPNM INTO @DATA(ld_dn_no).
 
"SELECT single PRD_DT FROM OIU_RV_VPPNM INTO @DATA(ld_prd_dt).
 
"SELECT single WL_NO FROM OIU_RV_VPPNM INTO @DATA(ld_wl_no).
 
"SELECT single WC_NO FROM OIU_RV_VPPNM INTO @DATA(ld_wc_no).
 
"SELECT single MP_NO FROM OIU_RV_VPPNM INTO @DATA(ld_mp_no).
 
"SELECT single MAJPD_CD FROM OIU_RV_VPPNM INTO @DATA(ld_majpd_cd).
 
"SELECT single BUKRS FROM OIU_RV_VPPNM INTO @DATA(ld_bukrs).
 


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!