SAP MSTBH Table in S/4 HANA - Stock in Transit - History









MSTBH is a standard SAP Table which is used to store Stock in Transit - History data and is available within SAP S/4 HANA systems and previous ECC R/3 systems. Below is the technical details and the field list relevant for an SAP S/4 HANA system, see here for details and fields available within the SAP R/3 version of the MSTBH table(ECC)

Delivery Class: A - Application table (master and transaction data)
Display/Maintenance via SM30: Display/Maintenance Allowed but with Restrictions
Enhancement category: Can be enhanced (character-type or numeric)
Dictionary Type: Transparent table
View reference: NSDM_V_MSTBH
DDL Object: NSDM_DDL_MSTBH


MSTBH data in SAP S/4 Hana is actually from NSDM_E_MSTBH_AGG

MSTBH table is actually just a a DDL object CDS view which selects the data from NSDM_E_MSTBH_AGG and presents it as if the table exists. Clever really as this means all ABAP code that performs a select on this table will actually work as if this isna traditional table in SAP.


NSDM_E_MSTBH_AGG used for fields of table MSTBH

The data and therefore the actual field list comes from the ddl cds view and are mapped from the source hana table to match the legacy ECC SAP MSTBH Table. Below is the CDS code that builds this table view

MSTBH table structure field list

Also Below is the traditional view of MSTBH field list that makes up the SAP database table structure as you would see it within SE11, including highlighted key fields, description, data type and other technical details of each field

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP SHLP Field
MANDTClientMANDTCLNT3(0) MANDT
MATNRMaterial NumberMATNRCHAR40(0) MATN1MATNRMATS_MAT1MATNR
WERKSPlantWERKS_DCHAR4(0) WERKSWRKH_T001W_CWERKS
CHARGBatch NumberCHARG_DCHAR10(0) CHARGCHA
SOBKZSpecial Stock IndicatorSOBKZCHAR1(0) SOBKZ
BWTARValuation TypeBWTAR_DCHAR10(0) BWTARBWT
LFGJAFiscal Year of Current PeriodLFGJANUMC4(0) GJAHRGJAHR
LFMONCurrent period (posting period)LFMONNUMC2(0) MONAT
CWESBValuated Goods Receipt Blocked StockBWESBQUAN13(3) MENG13V
/CWM/CWESBValuated Goods Receipt Blocked StockBWESBQUAN13(3) MENG13V




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!