SAP Function Modules

DEQUEUE_ECNVHCM_NRANGE SAP Function module - Release lock on object ECNVHCM_NRANGE







DEQUEUE_ECNVHCM_NRANGE 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 DEQUEUE_ECNVHCM_NRANGE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: DWBEN/SAPLCEN0014
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM DEQUEUE_ECNVHCM_NRANGE - DEQUEUE ECNVHCM NRANGE





CALL FUNCTION 'DEQUEUE_ECNVHCM_NRANGE' "Release lock on object ECNVHCM_NRANGE
* EXPORTING
*   mode_cnvhcm_nrange = 'E'    " enqmode       Lock mode for table CNVHCM_NRANGE
*   mandt = SY-MANDT            " cnvhcm_nrange-mandt  01th enqueue argument
*   packid =                    " cnvhcm_nrange-packid  02th enqueue argument
*   nrobj =                     " cnvhcm_nrange-nrobj  03th enqueue argument
*   nrsobj =                    " cnvhcm_nrange-nrsobj  04th enqueue argument
*   nrnr =                      " cnvhcm_nrange-nrnr  05th enqueue argument
*   nrfrom =                    " cnvhcm_nrange-nrfrom  06th enqueue argument
*   npernr =                    " cnvhcm_nrange-npernr  07th enqueue argument
*   x_packid = SPACE            " ddenqxpar     Fill argument 02 with initial value?
*   x_nrobj = SPACE             " ddenqxpar     Fill argument 03 with initial value?
*   x_nrsobj = SPACE            " ddenqxpar     Fill argument 04 with initial value?
*   x_nrnr = SPACE              " ddenqxpar     Fill argument 05 with initial value?
*   x_nrfrom = SPACE            " ddenqxpar     Fill argument 06 with initial value?
*   x_npernr = SPACE            " ddenqxpar     Fill argument 07 with initial value?
*   _scope = '3'                " ddenqscope
*   _synchron = SPACE           " ddenqsync     Synchonous unlock
*   _collect = ' '              " ddenqcoll     Initially only collect lock
    .  "  DEQUEUE_ECNVHCM_NRANGE

ABAP code example for Function Module DEQUEUE_ECNVHCM_NRANGE





The ABAP code below is a full code listing to execute function module DEQUEUE_ECNVHCM_NRANGE 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_cnvhcm_nrange) = 'Check type of data required'.

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


SELECT single PACKID
FROM CNVHCM_NRANGE
INTO @DATA(ld_packid).


SELECT single NROBJ
FROM CNVHCM_NRANGE
INTO @DATA(ld_nrobj).


SELECT single NRSOBJ
FROM CNVHCM_NRANGE
INTO @DATA(ld_nrsobj).


SELECT single NRNR
FROM CNVHCM_NRANGE
INTO @DATA(ld_nrnr).


SELECT single NRFROM
FROM CNVHCM_NRANGE
INTO @DATA(ld_nrfrom).


SELECT single NPERNR
FROM CNVHCM_NRANGE
INTO @DATA(ld_npernr).

DATA(ld_x_packid) = 'Check type of data required'.
DATA(ld_x_nrobj) = 'Check type of data required'.
DATA(ld_x_nrsobj) = 'Check type of data required'.
DATA(ld_x_nrnr) = 'Check type of data required'.
DATA(ld_x_nrfrom) = 'Check type of data required'.
DATA(ld_x_npernr) = 'Check type of data required'.
DATA(ld__scope) = 'Check type of data required'.
DATA(ld__synchron) = 'some text here'.
DATA(ld__collect) = 'some text here'. . CALL FUNCTION 'DEQUEUE_ECNVHCM_NRANGE' * EXPORTING * mode_cnvhcm_nrange = ld_mode_cnvhcm_nrange * mandt = ld_mandt * packid = ld_packid * nrobj = ld_nrobj * nrsobj = ld_nrsobj * nrnr = ld_nrnr * nrfrom = ld_nrfrom * npernr = ld_npernr * x_packid = ld_x_packid * x_nrobj = ld_x_nrobj * x_nrsobj = ld_x_nrsobj * x_nrnr = ld_x_nrnr * x_nrfrom = ld_x_nrfrom * x_npernr = ld_x_npernr * _scope = ld__scope * _synchron = ld__synchron * _collect = ld__collect . " DEQUEUE_ECNVHCM_NRANGE
IF SY-SUBRC EQ 0. "All OK 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_cnvhcm_nrange  TYPE ENQMODE ,
ld_mandt  TYPE CNVHCM_NRANGE-MANDT ,
ld_packid  TYPE CNVHCM_NRANGE-PACKID ,
ld_nrobj  TYPE CNVHCM_NRANGE-NROBJ ,
ld_nrsobj  TYPE CNVHCM_NRANGE-NRSOBJ ,
ld_nrnr  TYPE CNVHCM_NRANGE-NRNR ,
ld_nrfrom  TYPE CNVHCM_NRANGE-NRFROM ,
ld_npernr  TYPE CNVHCM_NRANGE-NPERNR ,
ld_x_packid  TYPE DDENQXPAR ,
ld_x_nrobj  TYPE DDENQXPAR ,
ld_x_nrsobj  TYPE DDENQXPAR ,
ld_x_nrnr  TYPE DDENQXPAR ,
ld_x_nrfrom  TYPE DDENQXPAR ,
ld_x_npernr  TYPE DDENQXPAR ,
ld__scope  TYPE DDENQSCOPE ,
ld__synchron  TYPE DDENQSYNC ,
ld__collect  TYPE DDENQCOLL .

ld_mode_cnvhcm_nrange = 'some text here'.

SELECT single MANDT
FROM CNVHCM_NRANGE
INTO ld_mandt.


SELECT single PACKID
FROM CNVHCM_NRANGE
INTO ld_packid.


SELECT single NROBJ
FROM CNVHCM_NRANGE
INTO ld_nrobj.


SELECT single NRSOBJ
FROM CNVHCM_NRANGE
INTO ld_nrsobj.


SELECT single NRNR
FROM CNVHCM_NRANGE
INTO ld_nrnr.


SELECT single NRFROM
FROM CNVHCM_NRANGE
INTO ld_nrfrom.


SELECT single NPERNR
FROM CNVHCM_NRANGE
INTO ld_npernr.

ld_x_packid = 'some text here'.
ld_x_nrobj = 'some text here'.
ld_x_nrsobj = 'some text here'.
ld_x_nrnr = 'some text here'.
ld_x_nrfrom = 'some text here'.
ld_x_npernr = 'some text here'.
ld__scope = 'some text here'.
ld__synchron = 'some text here'.
ld__collect = 'some text here'.

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 DEQUEUE_ECNVHCM_NRANGE or its description.