P_StatKeyFigValueAssignment
P_StatKeyFigValueAssignment is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_FinStatisticalKeyFigureItem) and exposes 75 fields with key fields Ledger, CompanyCode, StatisticalKeyFigure, FiscalYear, FiscalPeriod. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_FinStatisticalKeyFigureItem | I_FinStatisticalKeyFigureItem | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Ledger | _Ledger | I_FinStatisticalKeyFigureItem.Ledger = _Ledger.Ledger |
| [0..1] | I_CostCenterActivityType | _CostCenterActivityType | $projection.ControllingArea = _CostCenterActivityType.ControllingArea and $projection.CostCtrActivityType = _CostCenterActivityType.CostCtrActivityType and $projection.ValidityStartDate >= _CostCenterActivityType.ValidityStartDate and $projection.ValidityStartDate <= _CostCenterActivityType.ValidityEndDate |
| [0..1] | I_ProfitCenter | _ProfitCenter | $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.ValidityStartDate >= _ProfitCenter.ValidityStartDate and $projection.ValidityStartDate <= _ProfitCenter.ValidityEndDate |
| [0..1] | I_CostCenter | _CostCenter | $projection.ControllingArea = _CostCenter.ControllingArea and $projection.CostCenter = _CostCenter.CostCenter and $projection.ValidityStartDate >= _CostCenter.ValidityStartDate and $projection.ValidityStartDate <= _CostCenter.ValidityEndDate |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PWUSKFVA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (75)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Ledger | Ledger | Ledger | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | StatisticalKeyFigure | StatisticalKeyFigure | Statistical Key Figure | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | FiscalPeriod | FiscalPeriod | Tax period | |
| KEY | StatisticalKeyFigureItem | StatisticalKeyFigureItem | Statistical Key Figure Item | |
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| IsSpecialPeriod | IsSpecialPeriod | |||
| StatisticalKeyFigureCategory | StatisticalKeyFigureCategory | Stat. Key Fig. Cat. | ||
| StatisticalKeyFigQtyUnit | StatisticalKeyFigQtyUnit | Unit/Area | ||
| StatisticalKeyFigureQuantity | StatisticalKeyFigureQuantity | |||
| StatisticalKeyFigFixedQty | StatisticalKeyFigFixedQty | |||
| StatisticalKeyFigSumQty | StatisticalKeyFigSumQty | |||
| StatisticalKeyFigureActlQty | StatisticalKeyFigureActlQty | |||
| StatisticalKeyFigurePlanQty | StatisticalKeyFigurePlanQty | |||
| StatisticalKeyFigActlFixedQty | StatisticalKeyFigActlFixedQty | |||
| StatisticalKeyFigPlanFixedQty | StatisticalKeyFigPlanFixedQty | |||
| StatisticalKeyFigActlSumQty | StatisticalKeyFigActlSumQty | |||
| StatisticalKeyFigPlanSumQty | StatisticalKeyFigPlanSumQty | |||
| IntmdStatisticalKeyFigFixedQty | IntmdStatisticalKeyFigFixedQty | |||
| IntmdStatisticalKeyFigSumQty | IntmdStatisticalKeyFigSumQty | |||
| StstclKeyFigIntmdActlFixedQty | StstclKeyFigIntmdActlFixedQty | |||
| StstclKeyFigIntmdPlanFixedQty | StstclKeyFigIntmdPlanFixedQty | |||
| StstclKeyFigIntmdActlSumQty | StstclKeyFigIntmdActlSumQty | |||
| StstclKeyFigIntmdPlanSumQty | StstclKeyFigIntmdPlanSumQty | |||
| GLRecordType | GLRecordType | Record Type | ||
| PlanningCategory | PlanningCategory | Plan Category | ||
| CostCenter | CostCenter | Cost Center | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| Segment | Segment | Segment number | ||
| ControllingBusTransacType | ControllingBusTransacType | CO Bus. Transaction | ||
| AccountAssignmentType | AccountAssignmentType | Sndr AcctAssgmt Type | ||
| ControllingObject | ControllingObject | Object number | ||
| ControllingObjectClass | ControllingObjectClass | Object Class | ||
| ControllingObjectType | _ControllingObject | ControllingObjectType | Object Type | |
| OrderID | OrderID | Order ID | ||
| OrderCategory | OrderCategory | Order Category | ||
| WBSElement | WBSElement | WBS Internal ID | ||
| Fund | Fund | Sender Fund | ||
| GrantID | GrantID | Sender Grant | ||
| BudgetPeriod | BudgetPeriod | Budget Period | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| CostCtrActivityType | CostCtrActivityType | Activity Type | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| ServiceDocument | ServiceDocument | Transaction ID | ||
| ServiceDocumentItem | ServiceDocumentItem | Service Document | ||
| ValidityStartDate | _FiscalPeriod | FiscalPeriodStartDate | ||
| ValidityEndDate | _FiscalPeriod | FiscalPeriodEndDate | ||
| _BudgetPeriod | _BudgetPeriod | |||
| _BusinessArea | _BusinessArea | |||
| _CompanyCode | _CompanyCode | |||
| _ControllingArea | _ControllingArea | |||
| _ControllingObject | _ControllingObject | |||
| _CostCenter | _CostCenter | |||
| _CostCenterActivityType | _CostCenterActivityType | |||
| _FiscalPeriod | _FiscalPeriod | |||
| _FiscalYear | _FiscalYear | |||
| _FiscalYearVariant | _FiscalYearVariant | |||
| _FunctionalArea | _FunctionalArea | |||
| _Ledger | _Ledger | |||
| _LedgerCompanyCodeVH | _LedgerCompanyCodeVH | |||
| _Order | _Order | |||
| _PlanningCategory | _PlanningCategory | |||
| _ProfitCenter | _ProfitCenter | |||
| _SalesDocument | _SalesDocument | |||
| _SalesDocumentItem | _SalesDocumentItem | |||
| _Segment | _Segment | |||
| _StatisticalKeyFigure | _StatisticalKeyFigure | |||
| _StatisticalKeyFigureCat | _StatisticalKeyFigureCat | |||
| _UnitOfMeasure | _UnitOfMeasure |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_StatKeyFigValueAssignment.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PWUSKFVA
CREATE VIEW P_StatKeyFigValueAssignment AS
SELECT
Ledger,
CompanyCode,
StatisticalKeyFigure,
FiscalYear,
FiscalPeriod,
StatisticalKeyFigureItem,
FiscalYearPeriod,
FiscalYearVariant,
IsSpecialPeriod,
StatisticalKeyFigureCategory,
StatisticalKeyFigQtyUnit,
StatisticalKeyFigureQuantity,
StatisticalKeyFigFixedQty,
StatisticalKeyFigSumQty,
StatisticalKeyFigureActlQty,
StatisticalKeyFigurePlanQty,
StatisticalKeyFigActlFixedQty,
StatisticalKeyFigPlanFixedQty,
StatisticalKeyFigActlSumQty,
StatisticalKeyFigPlanSumQty,
IntmdStatisticalKeyFigFixedQty,
IntmdStatisticalKeyFigSumQty,
StstclKeyFigIntmdActlFixedQty,
StstclKeyFigIntmdPlanFixedQty,
StstclKeyFigIntmdActlSumQty,
StstclKeyFigIntmdPlanSumQty,
GLRecordType,
PlanningCategory,
CostCenter,
ProfitCenter,
FunctionalArea,
BusinessArea,
ControllingArea,
Segment,
ControllingBusTransacType,
AccountAssignmentType,
ControllingObject,
ControllingObjectClass,
_ControllingObject.ControllingObjectType AS ControllingObjectType,
OrderID,
OrderCategory,
WBSElement,
Fund,
GrantID,
BudgetPeriod,
SalesOrder,
SalesOrderItem,
CostCtrActivityType,
ServiceDocumentType,
ServiceDocument,
ServiceDocumentItem,
_FiscalPeriod.FiscalPeriodStartDate AS ValidityStartDate,
_FiscalPeriod.FiscalPeriodEndDate AS ValidityEndDate
FROM I_FinStatisticalKeyFigureItem
LEFT OUTER JOIN I_Ledger AS _Ledger ON I_FinStatisticalKeyFigureItem.Ledger = _Ledger.Ledger -- association [1..1]
LEFT OUTER JOIN I_CostCenterActivityType AS _CostCenterActivityType ON ControllingArea = _CostCenterActivityType.ControllingArea AND CostCtrActivityType = _CostCenterActivityType.CostCtrActivityType AND ValidityStartDate >= _CostCenterActivityType.ValidityStartDate AND ValidityStartDate <= _CostCenterActivityType.ValidityEndDate -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter AND ValidityStartDate >= _ProfitCenter.ValidityStartDate AND ValidityStartDate <= _ProfitCenter.ValidityEndDate -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON ControllingArea = _CostCenter.ControllingArea AND CostCenter = _CostCenter.CostCenter AND ValidityStartDate >= _CostCenter.ValidityStartDate AND ValidityStartDate <= _CostCenter.ValidityEndDate -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA