SPCOM SAP (Interface to forecasting) Structure details

Dictionary Type: Structure
Description: Interface to forecasting




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




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

SPCOM is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Interface to forecasting" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_SPCOM TYPE SPCOM.

The SPCOM table consists of various fields, each holding specific information or linking keys about Interface to forecasting data available in SAP. These include MODAW (Model), MODAV (Model selection procedure), KZPAR (Indicator for parameter optimization), OPGRA (Optimization level).. 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:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP SPCOM structure 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
PRMODForecast model SPRMODCHAR1SPRMOD
MODAWModel SMODAWCHAR1SMODAW
MODAVModel selection procedure SMODAVCHAR1SMODAV
KZPARIndicator for parameter optimization SKZPARCHAR1XFELD
OPGRAOptimization level SSOPGRACHAR1SSOPGRA
KZINIInitialization indicator SKZINICHAR1SKZINI
ALPHABasic value smoothing using alpha factor SALPHADEC3(2) SGLATT
BETA1Trend value smoothing using the beta factor SBETA1DEC3(2) SGLATT
GAMMASeasonal index smoothing using gamma factor SGAMMADEC3(2) SGLATT
DELTAMAD (mean absolute deviation) smoothing using delta factor SDELTADEC3(2) SGLATT
EPSILEpsilon factor SEPSILDEC3(2) SGLATT
SIGGRTracking limit SSIGGRDEC5(3) SSIGGR
PERANNumber of historical values SPERANDEC3SPERAN
PERINNumber of periods for initialization SPERINDEC3SPERAN
PEREXNumber of periods for ex-post forecasting SPEREXDEC3SPERAN
PERIONumber of periods per seasonal cycle SPERIODEC3SPERAN
ANZPRNumber of forecast periods SANZPRDEC3SPERAN
FIMONFixed periods SFIMONDEC3SPERAN
LGRADService level SLGRADDEC3(1) DEC2_1
GWERTBasic value SGWERTQUAN13(3) SMENGV13
VMGWEBasic value of previous period SVMGWEQUAN13(3) SMENGV13
GWER1Basic value of the 2nd order SGWER2QUAN13(3) SMENGV13
VMGW1Base value of the second order in previous period SVMGW2QUAN13(3) SMENGV13
GWER2Basic value of the 2nd order SGWER2QUAN13(3) SMENGV13
VMGW2Base value of the second order in previous period SVMGW2QUAN13(3) SMENGV13
TWERTTrend value STWERTQUAN13(3) SMENGV13
VMTWETrend value of previous period SVMTWEQUAN13(3) SMENGV13
PRMADMean absolute deviation (MAD) SPRMADDEC13(3) SMENG13
VMMADMean absolute devaition of previous period SVMMADDEC13(3) SMENG13
FSUMMError total SFSUMMQUAN13(3) SMENGV13
VMFSUError total for the previous period SVMFSUQUAN13(3) SMENGV13
AUSNAException message bar SAUSNACHAR30TEXT30
PROABForecast flow control SPROABCHAR10CHAR10
KZOKOIndicator: suppress places after decimal point SKZOKOCHAR1XFELD
GEWGRWeighting group SGEWGRCHAR2SGEWGR
THKOFTheil coefficient STHKOFDEC5(2) DEC3_2
NULLVZero distribution SNULLVCHAR1XFELD

Key field Non-key field



How do I retrieve data from SAP structure SPCOM using ABAP code?

As SPCOM is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on SPCOM as there is no data to select.

How to access SAP table SPCOM

Within an ECC or HANA version of SAP you can also view further information about SPCOM 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!