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 directly

The 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

.

NameTypeData TypeDescriptionDefault Value
IV_COLLECTImportingTYPE
DDENQCOLL
Indicator Whether Locks Should Only Be Collected First
IV_LIFNRImportingTYPE
LIFNR
Vendor Number
IV_MANDTImportingTYPE
MANDT
01. Enqueue Argument
IV_MODE_LFA1ImportingTYPE
ENQMODE
Lock Mode
IV_SCOPEImportingTYPE
DDENQSCOPE
Control Lock Behavior When Calling the Update Task
IV_WAITImportingTYPE
DDENQWAIT
Indicator Whether Lock Attempt Is to Be Repeated
IV_X_LIFNRImportingTYPE
LIFNR
Fill Argument 02 with Initial Value?
ES_ERRORExportingTYPE
CVIS_MESSAGE
Error Indicator and System Messages



Exceptions of Method LOCK

This method does not have any exceptions

Example 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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!