LEIN SAP (Storage unit header records) Table details

Dictionary Type: Table
Description: Storage unit header records




ABAP Code to SELECT data from LEIN
Related tables to LEIN
Access table LEIN




Table field list including key, data, relationships and ABAP select examples

LEIN is a standard SAP Table which is used to store Storage unit header records data and is available within R/3 SAP systems depending on the version and release level.

The LEIN table consists of various fields, each holding specific information or linking keys about Storage unit header records data available in SAP. These include LENUM (Storage Unit Number), LGNUM (Warehouse Number / Warehouse Complex), LETYP (Storage Unit Type), LGTYP (Storage Type).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

Delivery Class: A - Application table (master and transaction data)
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)


SAP LEIN table fields - Full list of fields found in SAP data dictionary

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
MANDTClient MANDTCLNT3T000MANDT
LENUMStorage Unit Number LENUMCHAR20LENUMLENUMLEN
LGNUMWarehouse Number / Warehouse Complex LGNUMCHAR3T300LGNUMLGN
LETYPStorage Unit Type LVS_LETYPCHAR3T307LVS_LETYP
LGTYPStorage Type LGTYPCHAR3T301LGTYPLGTH_T301
LGPLAStorage Bin LGPLACHAR10Assigned to domainLGPLALGPLAG1
SKZUABlocking Indicator: For Stock Removals (User) LEIN_SKZUACHAR1XFELD
SKZUEBlocking indicator: for putaways (user) LEIN_SKZUECHAR1XFELD
SPGRUBlocking reason LVS_SPGRUCHAR1T330LVS_SPGRU
STATUStatus of Storage Unit LEIN_STATUCHAR1LEIN_STATU
ANZQUNumber of quants on storage unit LEIN_ANZQUDEC7LVS_ANZQU
BDATUDate of last movement LEIN_BDATUDATS8DATUM
BZEITTime of last movement LEIN_BZEITTIMS6UZEIT
BTANRTransfer order number of last stock transfer LEIN_BTANRNUMC10TANUM
BTAPSItem in transfer order of last stock transfer LEIN_BTAPSNUMC4TAPOS
MGEWIWeight of materials on storage unit LEIN_MGEWIDEC11(3) DEC8_3
GEWEIWeight Unit GEWEIUNIT3T006CUNITMEINS
PLPOSPosition in storage bin LVS_PLPOSCHAR2LVS_PLPOS
AOFTANumber of open transfer order items on storage unit LEIN_AOFTADEC5LVS_ANZPS
REFNRGroup LVS_REFNRCHAR10T311ALPHALVS_REFNRREFNRH_LVS_REFNR
UVTYPStor.type to which rem.goods are posted after compl.st.rem. LEIN_UVTYPCHAR3T301LGTYP
UVPLAStor.bin to which rem.goods are posted after compl.stck rem. LEIN_UVPLACHAR10Assigned to domainLGPLA
KKAPVCapacity usage of storage unit type LVS_KKAPVDEC11(3) DEC8_3
OKAPVOld capacity usage of storage unit LEIN_OKAPVDEC11(3) DEC8_3
NPLEIDest.stor.bin changeable during confirmation LVS_NPLEICHAR1LVS_NPLEI
UVPOSPosition in transfer bin LEIN_UVPOSCHAR2LVS_PLPOS
UVQNRQuant LVS_LQNUMNUMC10LVS_LQNUMLQN
WETYPStorage type where GR posting takes place LEIN_WETYPCHAR3Assigned to domainLGTYP
WEPLAStorage bin where GR posting takes place LEIN_WEPLACHAR10Assigned to domainLGPLA
WESTAGoods Movement Status for Storage Bin LEIN_WESTACHAR1LEIN_WESTA
WEAQUNumber of quants with missing GR posting LEIN_WEAQUDEC7LEIN_WEAQU
VBELNDelivery VBELN_VLCHAR10Assigned to domainALPHAVBELNVL

Key field Non-key field



How do I retrieve data from SAP table LEIN using ABAP code

The following ABAP code Example will allow you to do a basic selection on LEIN to SELECT all data from the table
DATA: WA_LEIN TYPE LEIN.

SELECT SINGLE *
FROM LEIN
INTO CORRESPONDING FIELDS OF WA_LEIN
WHERE...

How to access SAP table LEIN

Within an ECC or HANA version of SAP you can also view further information about LEIN and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


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!