SAP MSKA Table in S/4 HANA - Sales Order Stock









MSKA is a standard SAP Table which is used to store Sales Order Stock 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 MSKA 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_MSKA
DDL Object: NSDM_DDL_MSKA


MSKA data in SAP S/4 Hana is actually from NSDM_E_MSKA_DIFF

MSKA table is actually just a a DDL object CDS view which selects the data from NSDM_E_MSKA_DIFF 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_MSKA_DIFF used for fields of table MSKA

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 MSKA Table. Below is the CDS code that builds this table view

MSKA table structure field list

Also Below is the traditional view of MSKA 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) T000MANDT
MATNRMaterial NumberMATNRCHAR40(0) MARAMATN1MATNRMATS_MAT1MATNR
WERKSPlantWERKS_DCHAR4(0) MARCWERKSWRKH_T001W_CWERKS
LGORTStorage locationLGORT_DCHAR4(0) MARDLGORTLAG
CHARGBatch NumberCHARG_DCHAR10(0) MCHACHARGCHA
SOBKZSpecial Stock IndicatorSOBKZCHAR1(0) T148SOBKZ
VBELNSales and Distribution Document NumberVBELNCHAR10(0) ALPHAVBELNAUN
POSNRItem number of the SD documentPOSNRNUMC6(0) POSNR
LFGJAFiscal Year of Current PeriodLFGJANUMC4(0) GJAHRGJAHR
LFMONCurrent period (posting period)LFMONNUMC2(0) MONAT
KASPRPhysical Inventory Blocking IndicatorSPERRCHAR1(0) SPERR
KALABValuated Unrestricted-Use StockLABSTQUAN13(3) MENG13V
KAINSStock in Quality InspectionINSMEQUAN13(3) MENG13V
KASPEBlocked StockSPEMEQUAN13(3) MENG13V
KAVLAValuated unrestricted-use stock in previous periodVMLABQUAN13(3) MENG13V
KAVINStock in Quality Inspection in Previous PeriodVMINSQUAN13(3) MENG13V
KAVSPBlocked stock of previous periodVMSPEQUAN13(3) MENG13V
KAILLPhysical inventory indicator for whse stock in current yearKZILLCHAR3(0) INVKZ
KAILQPhys. inventory ind. f. stock in qual. insp. in current yearKZILQCHAR3(0) INVKZ
KAILSPhysical inventory indicator for blocked stockKZILSCHAR3(0) INVKZ
KAVLLPhysical inventory indicator for stock in previous yearKZVLLCHAR3(0) INVKZ
KAVLQPhys. inventory ind. f. stock in qual. insp. in prev. periodKZVLQCHAR3(0) INVKZ
KAVLSPhys. inventory indicator for blocked stock in prev. periodKZVLSCHAR3(0) INVKZ
KAFLLPhysical inventory indicator for stock in following yearKZFLLCHAR3(0) INVKZ
KAFLQPhysical inventory indicator, quality insp.stck, follow.yr.KZFLQCHAR3(0) INVKZ
KAFLSPhys. inventory ind. for blocked stock in following periodKZFLSCHAR3(0) INVKZ
KADLLDate of Last Posted CountDLINLDATS8(0) DATS
KAEINTotal Stock of All Restricted BatchesEINMEQUAN13(3) MENG13V
KAVEIRestricted-Use Stock in Previous PeriodVMEINQUAN13(3) MENG13V
ERSDACreated OnERSDADATS8(0) DATUM
KAJINFiscal year of current physical inventory indicatorGJINVNUMC4(0) GJAHRGJAHR
KARUEMxxxH rec. already exists for per. before last of Mxxx per.SBRUECHAR1(0) XFELD
SGT_SCATStock SegmentSGT_SCATCHAR40(0) SGT_SRCASGT_SSGT_CAT_FIELD_POPUPVALUE
FSH_SEASON_YEARSeason YearFSH_SAISJCHAR4(0) FSH_CJAHRWMSAISJ
FSH_SEASONSeasonFSH_SAISOCHAR10(0) RFM_SAISOSAISO
FSH_COLLECTIONFashion CollectionFSH_COLLECTIONCHAR10(0) Assigned to domainFSH_COLLECTION
FSH_THEMEFashion ThemeFSH_THEMECHAR10(0) FSH_THEME
FSH_SALLOC_QTYAllocated Stock QuantityFSH_SALLOC_QTYQUAN13(3) MENG13
/CWM/KALABValuated Unrestricted-Use StockLABSTQUAN13(3) MENG13V
/CWM/KAINSStock in Quality InspectionINSMEQUAN13(3) MENG13V
/CWM/KASPEBlocked StockSPEMEQUAN13(3) MENG13V
/CWM/KAEINTotal Stock of All Restricted BatchesEINMEQUAN13(3) MENG13V
/CWM/KAVLAValuated unrestricted-use stock in previous periodVMLABQUAN13(3) MENG13V
/CWM/KAVINStock in Quality Inspection in Previous PeriodVMINSQUAN13(3) MENG13V
/CWM/KAVSPBlocked stock of previous periodVMSPEQUAN13(3) MENG13V
/CWM/KAVEIRestricted-Use Stock in Previous PeriodVMEINQUAN13(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!