I am trying to use the enqueue_ez_TABLENAME function to lock a record in a table. Does anybody know what all of the input and output parameters do? I can figure out that I send the key of the record to lock, but I am not sure what some of the other export and import parameters mean.
Here is the basis format:
CALL FUNCTION 'ENQUEUE_EZ_TABLE'
EXPORTING
MODE_TABLE = 'E'
MANDT = SY-MANDT
KEY1 = keyvalue1
KEY2 = keyvalue2
X_KEY1 = ' '
X_KEY2 = ' '
_SCOPE = '2'
_WAIT = ' '
_COLLECT = ' '
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.