加锁-SE11-锁对象-填入primary TABLE的NAME (表名) LOCK MODE -在LOCK PARAMETER中字段生产了字段,可以去掉不需要的,
加锁时:模式-FUNCTION-用*加刚才建立的锁对象的名称
用出现几个function 看描述就知道加锁和解锁的function了
*对地点加锁
CALL FUNCTION 'ENQUEUE_EZTLIS_WERKS'
EXPORTING
MODE_ZTLIS = 'E'
MANDT = SY-MANDT
PERID = SE_PERID
WERKS = SE_WERKS
X_PERID = ' '
X_WERKS = ' '
_SCOPE = '2'
_WAIT = ' '
_COLLECT = ' '
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3