SAP table MSCS (Customer stock with vendor - Total)

SAP table MSCS has 6 primary key fields being MANDT,MATNR,WERKS,SOBKZ,LIFNR,KUNNR.

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 T000 MANDT
MATNR Material Number CHAR 40 0 MARA MATNR
WERKS Plant CHAR 4 0 T001W WERKS_D
SOBKZ Special Stock Indicator CHAR 1 0 T148 SOBKZ
LIFNR Account Number of Supplier CHAR 10 0 LFA1 LIFNR
KUNNR Customer Number CHAR 10 0 KNA1 KUNNR
LFGJA Fiscal Year of Current Period NUMC 4 0 LFGJA
LFMON Current period (posting period) NUMC 2 0 LFMON
CSLAB Valuated Unrestricted-Use Stock QUAN 13 3 LABST
CSINS Stock in Quality Inspection QUAN 13 3 INSME
CSEIN Total Stock of All Restricted Batches QUAN 13 3 EINME
ERSDA Created On DATS 8 0 ERSDA
XOBEW Vendor Stock Valuation Indicator CHAR 1 0 XOBEW
CSRUE MxxxH rec. already exists for per. before last of Mxxx per. CHAR 1 0 SBRUE

MSCS foreign key relationships

Table Field Check Table Check Field
0 MSCS KUNNR KNA1 General Data in Customer Master MANDT
0 MSCS KUNNR KNA1 General Data in Customer Master KUNNR
1 MSCS LIFNR LFA1 Supplier Master (General Section) MANDT
1 MSCS LIFNR LFA1 Supplier Master (General Section) LIFNR
0 MSCS MANDT T000 Clients MANDT
1 MSCS MATNR MARA General Material Data MANDT
1 MSCS MATNR MARA General Material Data MATNR
0 MSCS SOBKZ T148 Special Stock Indicator MANDT
0 MSCS SOBKZ T148 Special Stock Indicator SOBKZ
1 MSCS WERKS T001W Plants/Branches MANDT
1 MSCS WERKS T001W Plants/Branches WERKS