S038 SAP (All Key Figures for Batch Analysis) Table details

Dictionary Type: Table
Description: All Key Figures for Batch Analysis




ABAP Code to SELECT data from S038
Related tables to S038
Access table S038




Table field list including key, data, relationships and ABAP select examples

S038 is a standard SAP Table which is used to store All Key Figures for Batch Analysis data and is available within R/3 SAP systems depending on the version and release level.

The S038 table consists of various fields, each holding specific information or linking keys about All Key Figures for Batch Analysis data available in SAP. These include SSOUR (Statistic(s) origin), VRSIO (Version number in the information structure), SPMON (Period to analyze - month), SPTAG (Period to analyze - current date).. 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: A - Application table (master and transaction data)
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP S038 table 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
MANDTClient MANDTCLNT3Assigned to domainMANDT
SSOURStatistic(s) origin SSOURCHAR4SSOUR
VRSIOVersion number in the information structure VRSIOCHAR3Assigned to domainVRSIOMCV
SPMONPeriod to analyze - month SPMONNUMC6PERIMCPERIOD
SPTAGPeriod to analyze - current date SPTAGDATS8DATUM
SPWOCPeriod to analyze - week SPWOCNUMC6PERIMCPERIOD
SPBUPPeriod to analyze - posting period SPBUPNUMC6PERIMCPERIOD
MATNRMaterial Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1
WERKSPlant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
LGORTStorage Location LGORT_DCHAR4Assigned to domainLGORTLAG
CHARGBatch Number CHARG_DCHAR10Assigned to domainCHARGCHA
PERIVFiscal Year Variant PERIVCHAR2Assigned to domainPERIV
VWDATPointer to administrative data VWDATNUMC10VWDAT
BASMEBase Unit of Measure MEINSUNIT3Assigned to domainCUNITMEINS
HWAERCurrency Key WAERSCUKY5Assigned to domainWAERSFWS
CMZUBBValuated stock receipts quantity MZUBBQUAN15(3) MENGV15
CWZUBBValuated stock receipts value WZUBBCURR15(2) WERT15
CAZUBBNumber of times that valuated stock has been received AZUBBDEC9ANZAHL
CMAGBBQuantity of valuated stock issues MAGBBQUAN15(3) MENGV15
CWAGBBValue of valuated stock that has been issued WAGBBCURR15(2) WERT15
CAAGBBNumber of times valuated stock has been issued AAGBBDEC9ANZAHL
CMZUKBConsignment stock receipts quantity MZUKBQUAN15(3) MENGV15
CAZUKBNumber of times that consignment stock has been received AZUKBDEC9ANZAHL
CMAGKBQuantity of consignment stock that has been issued MAGKBQUAN15(3) MENGV15
CAAGKBNumber of times consignment stock has been issued AAGKBDEC9ANZAHL
CAMBWGNumber of material movements AMBWGDEC9ANZAHL
CMGVBRTotal usage quantity GVBRMQUAN15(3) MENGV15
CWGVBRTotal usage value WGVBRCURR15(2) WERT15
CAGVBRNumber of times that total usage has been updated AGVBRDEC9ANZAHL
CMUVBRUnplanned usage quantity UVBRMQUAN15(3) MENGV15
CWUVBRUnplanned usage value WUVBRCURR15(2) WERT15
CAUVBRNumber of times an unplanned usage has been recorded AUVBRDEC9ANZAHL
CASTORNumber of cancelation documents to date ASTORDEC9ANZAHL
CMBWBESTQuantity of valuated stock MBWBESTQUAN15(3) MENGV15
CWBWBESTValue of valuated stock WBWBESTCURR15(2) WERT15
CMKOBESTQuantity of consignment stock MKOBESTQUAN15(3) MENGV15

Key field Non-key field



How do I retrieve data from SAP table S038 using ABAP code

The following ABAP code Example will allow you to do a basic selection on S038 to SELECT all data from the table
DATA: WA_S038 TYPE S038.

SELECT SINGLE *
FROM S038
INTO CORRESPONDING FIELDS OF WA_S038
WHERE...

How to access SAP table S038

Within an ECC or HANA version of SAP you can also view further information about S038 and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


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!