BAPI_MLGN SAP (Warehouse Number Data) Structure details
Description: Warehouse Number Data
Structure field list including key, data, relationships and ABAP select examples
BAPI_MLGN is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Warehouse Number Data" Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_BAPI_MLGN TYPE BAPI_MLGN.
The BAPI_MLGN table consists of various fields, each holding specific information or linking keys about Warehouse Number Data data available in SAP. These include DEL_FLAG (Deletion flag for all material data of a warehouse number), STGESECTOR (Storage Section Indicators), PLACEMENT (Storage type indicator for stock placement), WITHDRAWAL (Storage type indicator for stock removal).. 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:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced
SAP BAPI_MLGN structure 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 |
WHSE_NO | Warehouse Number / Warehouse Complex | LGNUM | CHAR | 3 | Assigned to domain | LGNUM | LGN | ||
DEL_FLAG | Deletion flag for all material data of a warehouse number | LVOLN | CHAR | 1 | XFELD | ||||
STGESECTOR | Storage Section Indicators | LVS_LGBKZ | CHAR | 3 | Assigned to domain | LVS_LGBKZ | |||
PLACEMENT | Storage type indicator for stock placement | MLGN_LTKZE | CHAR | 3 | Assigned to domain | LVS_LGTKZ | |||
WITHDRAWAL | Storage type indicator for stock removal | MLGN_LTKZA | CHAR | 3 | Assigned to domain | LVS_LGTKZ | |||
L_EQUIP_1 | Loading equipment quantity 1 | LVS_LHMNG1 | QUAN | 13(3) | MENG13 | ||||
L_EQUIP_2 | Loading equipment quantity 2 | LVS_LHMNG2 | QUAN | 13(3) | MENG13 | ||||
L_EQUIP_3 | Loading equipment quantity 3 | LVS_LHMNG3 | QUAN | 13(3) | MENG13 | ||||
LEQ_UNIT_1 | Unit of measure for loading equipment quantity 1 | LHMEH1 | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
LEQ_UNIT_1_ISO | Unit of measure for loading equipment quantity 1 in ISO code | LHMEH1_ISO | CHAR | 3 | Assigned to domain | ISOCD_UNIT | |||
LEQ_UNIT_2 | Unit of measure for loading equipment quantity 2 | LHMEH2 | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
LEQ_UNIT_2_ISO | Unit of measure for loading equipment quantity 2 in ISO code | LHMEH2_ISO | CHAR | 3 | Assigned to domain | ISOCD_UNIT | |||
LEQ_UNIT_3 | Unit of measure for loading equipment quantity 3 | LHMEH3 | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
LEQ_UNIT_3_ISO | Unit of measure for loading equipment quantity 3 in ISO code | LHMEH3_ISO | CHAR | 3 | Assigned to domain | ISOCD_UNIT | |||
UNITTYPE_1 | 1st storage unit type | LVS_LETYP1 | CHAR | 3 | Assigned to domain | LVS_LETYP | |||
UNITTYPE_2 | 2nd storage unit type | LVS_LETYP2 | CHAR | 3 | Assigned to domain | LVS_LETYP | |||
UNITTYPE_3 | 3rd storage unit type | LVS_LETYP3 | CHAR | 3 | Assigned to domain | LVS_LETYP | |||
WM_UNIT | Warehouse Management Unit of Measure | LVS_LVSME | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
WM_UNIT_ISO | WM unit in ISO code | LVS_LVSME_ISO | CHAR | 3 | Assigned to domain | ISOCD_UNIT | |||
ADD_TO_STK | Indicator: Allow addition to existing stock | MLGN_KZZUL | CHAR | 1 | XFELD | ||||
BLOCK_STGE | Bulk storage indicator | LVS_BLOCK2 | CHAR | 2 | Assigned to domain | LVS_BLOCK2 | |||
MSG_TO_IM | Indicator: Message to inventory management | KZMBF | CHAR | 1 | XFELD | ||||
SPEC_MVMT | Special movement indicator for warehouse management | LVS_BSSKZ | CHAR | 1 | Assigned to domain | LVS_BSSKZ | |||
CAPY_USAGE | Capacity usage | MLGN_MKAPV | DEC | 11(3) | DEC8_3 | ||||
PROCURE_UN | Unit of measure for capacity consumption | MLGN_BEZME | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
PROCURE_UN_ISO | Unit of measure for capacity consumption in ISO code | MLGN_BEZME_ISO | CHAR | 3 | Assigned to domain | ISOCD_UNIT | |||
STGE_TYPE | Picking storage type for rough-cut and detailed planning | MLGN_PLKPT | CHAR | 3 | Assigned to domain | LGTYP | LGT | ||
REF_UNIT | Default for unit of measure from material master record | MLGN_VOMEM | CHAR | 1 | LVS_VOME | ||||
2STEP_PICK | Material relevance for 2-step picking | MLGN_L2SKR | CHAR | 1 | LVS_2SKREL |
Key field | Non-key field |
How do I retrieve data from SAP structure BAPI_MLGN using ABAP code?
As BAPI_MLGN is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on BAPI_MLGN as there is no data to select.How to access SAP table BAPI_MLGN
Within an ECC or HANA version of SAP you can also view further information about BAPI_MLGN and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects