BASIS Function module RFC Used the same way in S/4HANA

ENQUEUE_READ Read Lock Entries from Lock Table

Reads the lock entries in the lock server by client, lock object (table name), lock argument and user (the counterpart of SM12). Mass update programs use it to detect in advance that a document or master record is locked by another user and to report it. You can use '*' as a wildcard in GARG; the result is returned in the ENQ table and the entry count in NUMBER.

Function group
SENT
Remote-enabled (RFC)
Yes
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
GCLIENTSEQG3-GCLIENTClient—
GNAMESEQG3-GNAMELocked table name—
GARGSEQG3-GARGLock argument—
GUNAMESEQG3-GUNAMEUser name—
LOCALSY-CTYPELocal locks only—
FASTSY-CTYPEFast read—
GARGNOWCSY-CTYPENo wildcards in argument—

Exporting parameters

ParameterTypeDescription
NUMBERSY-TABIXNumber of lock entries
SUBRCSY-SUBRCReturn code

Tables parameters

ParameterTypeDescriptionRequired
ENQSEQG3Lock entriesYes

Exceptions

  • COMMUNICATION_FAILURE — Communication failure
  • SYSTEM_FAILURE — System failure

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'ENQUEUE_READ'
  IMPORTING
    number = lv_number
    subrc = lv_subrc
  TABLES
    enq = lt_enq
  EXCEPTIONS
    communication_failure = 1
    system_failure = 2
    OTHERS = 3.

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report