LOCK SAP Method Lock Vendor
Below is documentation, parameters and attributes of ABAP Method LOCK within SAP class VMD_EI_API. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name VMD_EI_API into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method LOCK can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method LOCK
.| Name | Type | Data Type | Description | Default Value |
| IV_COLLECT | Importing | TYPE DDENQCOLL | Indicator Whether Locks Should Only Be Collected First | |
| IV_LIFNR | Importing | TYPE LIFNR | Vendor Number | |
| IV_MANDT | Importing | TYPE MANDT | 01. Enqueue Argument | |
| IV_MODE_LFA1 | Importing | TYPE ENQMODE | Lock Mode | |
| IV_SCOPE | Importing | TYPE DDENQSCOPE | Control Lock Behavior When Calling the Update Task | |
| IV_WAIT | Importing | TYPE DDENQWAIT | Indicator Whether Lock Attempt Is to Be Repeated | |
| IV_X_LIFNR | Importing | TYPE LIFNR | Fill Argument 02 with Initial Value? | |
| ES_ERROR | Exporting | TYPE CVIS_MESSAGE | Error Indicator and System Messages |
Exceptions of Method LOCK
This method does not have any exceptionsExample ABAP coding
DATA: lv_ES_ERROR TYPE CVIS_MESSAGE,
lv_IV_COLLECT TYPE DDENQCOLL,
lv_IV_LIFNR TYPE LIFNR,
lv_IV_MANDT TYPE MANDT,
lv_IV_MODE_LFA1 TYPE ENQMODE,
lv_IV_SCOPE TYPE DDENQSCOPE,
lv_IV_WAIT TYPE DDENQWAIT,
lv_IV_X_LIFNR TYPE LIFNR,
lv_other TYPE c.
CALL METHOD VMD_EI_API=>LOCK(
EXPORTING
IV_COLLECT = lv_IV_COLLECT
IV_LIFNR = lv_IV_LIFNR
IV_MANDT = lv_IV_MANDT
IV_MODE_LFA1 = lv_IV_MODE_LFA1
IV_SCOPE = lv_IV_SCOPE
IV_WAIT = lv_IV_WAIT
IV_X_LIFNR = lv_IV_X_LIFNR
IMPORTING
ES_ERROR = lv_ES_ERROR ).
Links to Related Class(s)
VMD_EI_A...Full list of available SAP object classes
Search for further information about these or an SAP related objects