SAP Function Modules

ENQUEUE_E_OIUREP_ADJ_DTC SAP Function module - Request lock for object E_OIUREP_ADJ_DTC







ENQUEUE_E_OIUREP_ADJ_DTC is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ENQUEUE_E_OIUREP_ADJ_DTC into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: DWBEN/SAPLOEN0006
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ENQUEUE_E_OIUREP_ADJ_DTC - ENQUEUE E OIUREP ADJ DTC





CALL FUNCTION 'ENQUEUE_E_OIUREP_ADJ_DTC' "Request lock for object E_OIUREP_ADJ_DTC
* EXPORTING
*   mode_oiurep_adj_dtlc = 'E'  " enqmode       Lock mode for table OIUREP_ADJ_DTLC
*   mandt = SY-MANDT            " oiurep_adj_dtlc-mandt  01th enqueue argument
*   agency =                    " oiurep_adj_dtlc-agency  02th enqueue argument
*   rep_name =                  " oiurep_adj_dtlc-rep_name  03th enqueue argument
*   reg_number =                " oiurep_adj_dtlc-reg_number  04th enqueue argument
*   head_seqnr =                " oiurep_adj_dtlc-head_seqnr  05th enqueue argument
*   rec_type =                  " oiurep_adj_dtlc-rec_type  06th enqueue argument
*   line_nbr =                  " oiurep_adj_dtlc-line_nbr  07th enqueue argument
*   action_cd =                 " oiurep_adj_dtlc-action_cd  08th enqueue argument
*   ver_no =                    " oiurep_adj_dtlc-ver_no  09th enqueue argument
*   x_agency = SPACE            "               Fill argument 02 with initial value?
*   x_rep_name = SPACE          "               Fill argument 03 with initial value?
*   x_reg_number = SPACE        "               Fill argument 04 with initial value?
*   x_head_seqnr = SPACE        "               Fill argument 05 with initial value?
*   x_rec_type = SPACE          "               Fill argument 06 with initial value?
*   x_line_nbr = SPACE          "               Fill argument 07 with initial value?
*   x_action_cd = SPACE         "               Fill argument 08 with initial value?
*   x_ver_no = SPACE            "               Fill argument 09 with initial value?
*   _scope = '2'                "
*   _wait = SPACE               "
*   _collect = ' '              " ddenqcoll     Initially only collect lock
  EXCEPTIONS
    FOREIGN_LOCK = 1            "               Object already locked
    SYSTEM_FAILURE = 2          "               Internal error from enqueue server
    .  "  ENQUEUE_E_OIUREP_ADJ_DTC

ABAP code example for Function Module ENQUEUE_E_OIUREP_ADJ_DTC





The ABAP code below is a full code listing to execute function module ENQUEUE_E_OIUREP_ADJ_DTC including all data declarations. The code uses 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 original method of declaring data variables up front. 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).


DATA(ld_mode_oiurep_adj_dtlc) = 'Check type of data required'.

SELECT single MANDT
FROM OIUREP_ADJ_DTLC
INTO @DATA(ld_mandt).


SELECT single AGENCY
FROM OIUREP_ADJ_DTLC
INTO @DATA(ld_agency).


SELECT single REP_NAME
FROM OIUREP_ADJ_DTLC
INTO @DATA(ld_rep_name).


SELECT single REG_NUMBER
FROM OIUREP_ADJ_DTLC
INTO @DATA(ld_reg_number).


SELECT single HEAD_SEQNR
FROM OIUREP_ADJ_DTLC
INTO @DATA(ld_head_seqnr).


SELECT single REC_TYPE
FROM OIUREP_ADJ_DTLC
INTO @DATA(ld_rec_type).


SELECT single LINE_NBR
FROM OIUREP_ADJ_DTLC
INTO @DATA(ld_line_nbr).


SELECT single ACTION_CD
FROM OIUREP_ADJ_DTLC
INTO @DATA(ld_action_cd).


SELECT single VER_NO
FROM OIUREP_ADJ_DTLC
INTO @DATA(ld_ver_no).

DATA(ld_x_agency) = 'some text here'.
DATA(ld_x_rep_name) = 'some text here'.
DATA(ld_x_reg_number) = 'some text here'.
DATA(ld_x_head_seqnr) = 'some text here'.
DATA(ld_x_rec_type) = 'some text here'.
DATA(ld_x_line_nbr) = 'some text here'.
DATA(ld_x_action_cd) = 'some text here'.
DATA(ld_x_ver_no) = 'some text here'.
DATA(ld__scope) = 'some text here'.
DATA(ld__wait) = 'some text here'.
DATA(ld__collect) = 'Check type of data required'. . CALL FUNCTION 'ENQUEUE_E_OIUREP_ADJ_DTC' * EXPORTING * mode_oiurep_adj_dtlc = ld_mode_oiurep_adj_dtlc * mandt = ld_mandt * agency = ld_agency * rep_name = ld_rep_name * reg_number = ld_reg_number * head_seqnr = ld_head_seqnr * rec_type = ld_rec_type * line_nbr = ld_line_nbr * action_cd = ld_action_cd * ver_no = ld_ver_no * x_agency = ld_x_agency * x_rep_name = ld_x_rep_name * x_reg_number = ld_x_reg_number * x_head_seqnr = ld_x_head_seqnr * x_rec_type = ld_x_rec_type * x_line_nbr = ld_x_line_nbr * x_action_cd = ld_x_action_cd * x_ver_no = ld_x_ver_no * _scope = ld__scope * _wait = ld__wait * _collect = ld__collect EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 . " ENQUEUE_E_OIUREP_ADJ_DTC
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_mode_oiurep_adj_dtlc  TYPE ENQMODE ,
ld_mandt  TYPE OIUREP_ADJ_DTLC-MANDT ,
ld_agency  TYPE OIUREP_ADJ_DTLC-AGENCY ,
ld_rep_name  TYPE OIUREP_ADJ_DTLC-REP_NAME ,
ld_reg_number  TYPE OIUREP_ADJ_DTLC-REG_NUMBER ,
ld_head_seqnr  TYPE OIUREP_ADJ_DTLC-HEAD_SEQNR ,
ld_rec_type  TYPE OIUREP_ADJ_DTLC-REC_TYPE ,
ld_line_nbr  TYPE OIUREP_ADJ_DTLC-LINE_NBR ,
ld_action_cd  TYPE OIUREP_ADJ_DTLC-ACTION_CD ,
ld_ver_no  TYPE OIUREP_ADJ_DTLC-VER_NO ,
ld_x_agency  TYPE STRING ,
ld_x_rep_name  TYPE STRING ,
ld_x_reg_number  TYPE STRING ,
ld_x_head_seqnr  TYPE STRING ,
ld_x_rec_type  TYPE STRING ,
ld_x_line_nbr  TYPE STRING ,
ld_x_action_cd  TYPE STRING ,
ld_x_ver_no  TYPE STRING ,
ld__scope  TYPE STRING ,
ld__wait  TYPE STRING ,
ld__collect  TYPE DDENQCOLL .

ld_mode_oiurep_adj_dtlc = 'Check type of data required'.

SELECT single MANDT
FROM OIUREP_ADJ_DTLC
INTO ld_mandt.


SELECT single AGENCY
FROM OIUREP_ADJ_DTLC
INTO ld_agency.


SELECT single REP_NAME
FROM OIUREP_ADJ_DTLC
INTO ld_rep_name.


SELECT single REG_NUMBER
FROM OIUREP_ADJ_DTLC
INTO ld_reg_number.


SELECT single HEAD_SEQNR
FROM OIUREP_ADJ_DTLC
INTO ld_head_seqnr.


SELECT single REC_TYPE
FROM OIUREP_ADJ_DTLC
INTO ld_rec_type.


SELECT single LINE_NBR
FROM OIUREP_ADJ_DTLC
INTO ld_line_nbr.


SELECT single ACTION_CD
FROM OIUREP_ADJ_DTLC
INTO ld_action_cd.


SELECT single VER_NO
FROM OIUREP_ADJ_DTLC
INTO ld_ver_no.

ld_x_agency = 'some text here'.
ld_x_rep_name = 'some text here'.
ld_x_reg_number = 'some text here'.
ld_x_head_seqnr = 'some text here'.
ld_x_rec_type = 'some text here'.
ld_x_line_nbr = 'some text here'.
ld_x_action_cd = 'some text here'.
ld_x_ver_no = 'some text here'.
ld__scope = 'some text here'.
ld__wait = 'some text here'.
ld__collect = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ENQUEUE_E_OIUREP_ADJ_DTC or its description.