SAP table MSTA (Material Master Status)

SAP table MSTA has 4 primary key fields being MANDT,MATNR,STATM,ZHLER.

If you're only analyzing data from a single SAP instance you may omit field MANT in your relationships as it will we the same across the entire dataset. On the other hand, if you're combining data from multiple SAP instances you need to take MANDT into account.

Field Description Data Type Length Decimals Checktable Data Element
MANDT Client CLNT 3 0 * MANDT
MATNR Material Number CHAR 40 0 MARA MATNR
STATM Maintenance Status of Material Master Record CHAR 1 0 T132 STATM
ZHLER Counter CHAR 5 0 DZHLER
ERSDA Created On DATS 8 0 ERSDA
ERNAM Name of Person Responsible for Creating the Object CHAR 12 0 ERNAM
LAEDA Date of Last Change DATS 8 0 LAEDA
AENAM Name of Person Who Changed Object CHAR 12 0 AENAM
WERKS Plant CHAR 4 0 MARC WERKS_D
LGORT Storage location CHAR 4 0 MARD LGORT_D
LGNUM Warehouse Number / Warehouse Complex CHAR 3 0 MLGN LGNUM
LGTYP Storage Type CHAR 3 0 MLGT LGTYP
VKORG Sales Organization CHAR 4 0 TVKO VKORG
VTWEG Distribution Channel CHAR 2 0 MVKE VTWEG
BWKEY Valuation area CHAR 4 0 T001K BWKEY
BWTAR Valuation Type CHAR 10 0 MBEW BWTAR_D

MSTA foreign key relationships

Table Field Check Table Check Field
0 MSTA BWTAR MBEW Material Valuation MANDT
0 MSTA BWTAR MBEW Material Valuation MATNR
0 MSTA BWTAR MBEW Material Valuation BWKEY
0 MSTA BWTAR MBEW Material Valuation BWTAR
1 MSTA LGNUM MLGN Material Data for Each Warehouse Number LGNUM
0 MSTA LGORT MARD Storage Location Data for Material MANDT
0 MSTA LGORT MARD Storage Location Data for Material MATNR
0 MSTA LGORT MARD Storage Location Data for Material WERKS
0 MSTA LGORT MARD Storage Location Data for Material LGORT
1 MSTA LGTYP MLGT Material Data for Each Storage Type LGNUM
0 MSTA MATNR MARA General Material Data MANDT
0 MSTA MATNR MARA General Material Data MATNR
1 MSTA STATM T132 Status definition MANDT
0 MSTA VKORG TVKO Organizational Unit: Sales Organizations MANDT
0 MSTA VKORG TVKO Organizational Unit: Sales Organizations VKORG
1 MSTA VTWEG MVKE Sales Data for Material VKORG
1 MSTA VTWEG MVKE Sales Data for Material VTWEG
0 MSTA WERKS MARC Plant Data for Material MANDT
0 MSTA WERKS MARC Plant Data for Material MATNR
0 MSTA WERKS MARC Plant Data for Material WERKS