SAP ENQUEUE_E_PBC_REQ_IDX_2 Function Module for Request lock for object E_PBC_REQ_IDX_2









ENQUEUE_E_PBC_REQ_IDX_2 is a standard enqueue e pbc req idx 2 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_PBC_REQ_IDX_2 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 pbc req idx 2 FM, simply by entering the name ENQUEUE_E_PBC_REQ_IDX_2 into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_E_PBC_REQ_IDX_2 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_PBC_REQ_IDX_2'"Request lock for object E_PBC_REQ_IDX_2
EXPORTING
* MODE_HRFPM_FM_POS_INDEX = 'E' "Lock mode for table HRFPM_FM_POS_INDEX
* DUE_DATE = "09th enqueue argument
* X_AUFNR = ' ' "Fill argument 02 with initial value?
* X_POSNR = ' ' "Fill argument 03 with initial value?
* X_NPLNR = ' ' "Fill argument 04 with initial value?
* X_VORNR = ' ' "Fill argument 05 with initial value?
* X_ENC_TYPE = ' ' "Fill argument 06 with initial value?
* X_BELNR = ' ' "Fill argument 07 with initial value?
* X_FPM_POSNR = ' ' "Fill argument 08 with initial value?
* X_DUE_DATE = ' ' "Fill argument 09 with initial value?
* _SCOPE = '2' "
* MANDT = SY-MANDT "01th enqueue argument
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* AUFNR = "02th enqueue argument
* POSNR = "03th enqueue argument
* NPLNR = "04th enqueue argument
* VORNR = "05th enqueue argument
* ENC_TYPE = "06th enqueue argument
* BELNR = "07th enqueue argument
* FPM_POSNR = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_E_PBC_REQ_IDX_2

MODE_HRFPM_FM_POS_INDEX - Lock mode for table HRFPM_FM_POS_INDEX

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

DUE_DATE - 09th enqueue argument

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

X_AUFNR - Fill argument 02 with initial value?

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

X_POSNR - Fill argument 03 with initial value?

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

X_NPLNR - Fill argument 04 with initial value?

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

X_VORNR - Fill argument 05 with initial value?

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

X_ENC_TYPE - Fill argument 06 with initial value?

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

X_BELNR - Fill argument 07 with initial value?

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

X_FPM_POSNR - Fill argument 08 with initial value?

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

X_DUE_DATE - Fill argument 09 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)

MANDT - 01th enqueue argument

Data type: HRFPM_FM_POS_INDEX-MANDT
Default: SY-MANDT
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)

AUFNR - 02th enqueue argument

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

POSNR - 03th enqueue argument

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

NPLNR - 04th enqueue argument

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

VORNR - 05th enqueue argument

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

ENC_TYPE - 06th enqueue argument

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

BELNR - 07th enqueue argument

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

FPM_POSNR - 08th enqueue argument

Data type: HRFPM_FM_POS_INDEX-FPM_POSNR
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_PBC_REQ_IDX_2 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_hrfpm_fm_pos_index  TYPE ENQMODE, "   'E'
lv_due_date  TYPE HRFPM_FM_POS_INDEX-DUE_DATE, "   
lv_x_aufnr  TYPE HRFPM_FM_POS_INDEX, "   SPACE
lv_x_posnr  TYPE HRFPM_FM_POS_INDEX, "   SPACE
lv_x_nplnr  TYPE HRFPM_FM_POS_INDEX, "   SPACE
lv_x_vornr  TYPE HRFPM_FM_POS_INDEX, "   SPACE
lv_x_enc_type  TYPE HRFPM_FM_POS_INDEX, "   SPACE
lv_x_belnr  TYPE HRFPM_FM_POS_INDEX, "   SPACE
lv_x_fpm_posnr  TYPE HRFPM_FM_POS_INDEX, "   SPACE
lv_x_due_date  TYPE HRFPM_FM_POS_INDEX, "   SPACE
lv__scope  TYPE HRFPM_FM_POS_INDEX, "   '2'
lv_mandt  TYPE HRFPM_FM_POS_INDEX-MANDT, "   SY-MANDT
lv_system_failure  TYPE HRFPM_FM_POS_INDEX, "   
lv__wait  TYPE HRFPM_FM_POS_INDEX, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_aufnr  TYPE HRFPM_FM_POS_INDEX-AUFNR, "   
lv_posnr  TYPE HRFPM_FM_POS_INDEX-POSNR, "   
lv_nplnr  TYPE HRFPM_FM_POS_INDEX-NPLNR, "   
lv_vornr  TYPE HRFPM_FM_POS_INDEX-VORNR, "   
lv_enc_type  TYPE HRFPM_FM_POS_INDEX-ENC_TYPE, "   
lv_belnr  TYPE HRFPM_FM_POS_INDEX-BELNR, "   
lv_fpm_posnr  TYPE HRFPM_FM_POS_INDEX-FPM_POSNR. "   

  CALL FUNCTION 'ENQUEUE_E_PBC_REQ_IDX_2'  "Request lock for object E_PBC_REQ_IDX_2
    EXPORTING
         MODE_HRFPM_FM_POS_INDEX = lv_mode_hrfpm_fm_pos_index
         DUE_DATE = lv_due_date
         X_AUFNR = lv_x_aufnr
         X_POSNR = lv_x_posnr
         X_NPLNR = lv_x_nplnr
         X_VORNR = lv_x_vornr
         X_ENC_TYPE = lv_x_enc_type
         X_BELNR = lv_x_belnr
         X_FPM_POSNR = lv_x_fpm_posnr
         X_DUE_DATE = lv_x_due_date
         _SCOPE = lv__scope
         MANDT = lv_mandt
         _WAIT = lv__wait
         _COLLECT = lv__collect
         AUFNR = lv_aufnr
         POSNR = lv_posnr
         NPLNR = lv_nplnr
         VORNR = lv_vornr
         ENC_TYPE = lv_enc_type
         BELNR = lv_belnr
         FPM_POSNR = lv_fpm_posnr
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_E_PBC_REQ_IDX_2




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_PBC_REQ_IDX_2

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_hrfpm_fm_pos_index) = 'E'.
 
"SELECT single DUE_DATE FROM HRFPM_FM_POS_INDEX INTO @DATA(ld_due_date).
 
DATA(ld_x_aufnr) = ' '.
 
DATA(ld_x_posnr) = ' '.
 
DATA(ld_x_nplnr) = ' '.
 
DATA(ld_x_vornr) = ' '.
 
DATA(ld_x_enc_type) = ' '.
 
DATA(ld_x_belnr) = ' '.
 
DATA(ld_x_fpm_posnr) = ' '.
 
DATA(ld_x_due_date) = ' '.
 
DATA(ld__scope) = '2'.
 
"SELECT single MANDT FROM HRFPM_FM_POS_INDEX INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single AUFNR FROM HRFPM_FM_POS_INDEX INTO @DATA(ld_aufnr).
 
"SELECT single POSNR FROM HRFPM_FM_POS_INDEX INTO @DATA(ld_posnr).
 
"SELECT single NPLNR FROM HRFPM_FM_POS_INDEX INTO @DATA(ld_nplnr).
 
"SELECT single VORNR FROM HRFPM_FM_POS_INDEX INTO @DATA(ld_vornr).
 
"SELECT single ENC_TYPE FROM HRFPM_FM_POS_INDEX INTO @DATA(ld_enc_type).
 
"SELECT single BELNR FROM HRFPM_FM_POS_INDEX INTO @DATA(ld_belnr).
 
"SELECT single FPM_POSNR FROM HRFPM_FM_POS_INDEX INTO @DATA(ld_fpm_posnr).
 


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!