SAP Function SELECT_LOCK_TO - Lock transfer order header

Parameter Reference Type Length Default Optional Text
I_1CONF 0 X First step confirmation indicator
I_DELIVERY LTAK-VBELN C 10 X Sales and Distribution Document Number
I_TANUM LTAK-TANUM N 10 Transfer order number field
I_UPROF LRF_WKQU-QUEUE C 10 X Queue field
I_WHS_ID T313F-LGNUM C 3 Warehouse number / warehouse complex

Parameter Reference Type Length Text
O_IND_1CONF 0 First step confirmation indicator

Parameter Reference Type Length Default Optional Text
I_ACTVTY T333-ABILD C 1 X Picking / putaway

Parameter Reference Length Optional Text
T_HEADERS LTAK 295 TO header
T_ITEMS LTAP 890 TO items

Exception Text
DLVR_IS_LOCKED
EMPTY_HEADER_TABLE
INTERNAL_ERROR
MATERIAL_ERROR
NOTHING_TO_CONFIRM
NOTHING_TO_CONFIRM_IN_DELV
NO_AUTHORITY
NO_SHIP_DOC
PSCH_IS_LOCKED
RSRV_LOCK
TO_CONF
TO_CONFIRMED_BY_NONRF
TO_DOESNT_EXIST
TO_IS_LOCKED
TO_PROBLEM
TR_IS_LOCKED
WRONG_MVTYP
WRONG_TO_FOR_QUEUE
WRONG_WHS_ID

Functionality
This function locks all the transfer order headers that have beenselected by previous functions.