P_StstclKeyFigValueActiveItem
P_StstclKeyFigValueActiveItem is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_StstclKeyFigureValueItem) and exposes 61 fields with key fields ControllingAreaForEdit, AccountingDocumentForEdit, AccountingDocumentItem. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StstclKeyFigureValueItem | _Item | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ControllingObjectEnhanced | _Object | $projection.ControllingObject = _Object.ControllingObject and $projection.ControllingAreaForEdit = _Object.ControllingArea |
| [1..1] | I_StatisticalKeyFigure | _StatisticalKeyFigure | $projection.StatisticalKeyFigure = _StatisticalKeyFigure.StatisticalKeyFigure and $projection.ControllingAreaForEdit = _StatisticalKeyFigure.ControllingArea |
| [1..1] | I_StatisticalKeyFigureValue | _ReversalStstclKeyFigureValue | $projection.ControllingAreaForEdit = _ReversalStstclKeyFigureValue.ControllingArea and $projection.AccountingDocumentForEdit = _ReversalStstclKeyFigureValue.ReversedReferenceDocument |
| [0..1] | I_REObjectByStatusObject | _RE | _Item.ControllingObject = _RE.REStatusObject |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSKFVALACTIT | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view |
Fields (61)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingAreaForEdit | ControllingArea | Controlling Area | |
| KEY | AccountingDocumentForEdit | AccountingDocument | Journal Entry | |
| KEY | AccountingDocumentItem | AccountingDocumentItem | Posting View Item | |
| StatisticalKeyFigureQuantity | StatisticalKeyFigureQuantity | |||
| StstcKeyFigQuantityUnit | StstcKeyFigQuantityUnit | Quantity Unit | ||
| DocumentItemText | DocumentItemText | Text | ||
| ControllingObject | ControllingObject | Object number | ||
| StatisticalKeyFigure | StatisticalKeyFigure | Statistical Key Figure | ||
| StstcKeyFigCategory | ||||
| ControllingBusTransacType | ControllingBusTransacType | CO Bus. Transaction | ||
| PersonnelNumber | PersonnelNumber | Personnel No. | ||
| PartnerFund | PartnerFund | Receiver Fund | ||
| PartnerFunctionalArea | PartnerFunctionalArea | Rec. Fntcl Area | ||
| PartnerGrant | PartnerGrant | Receiver Grant | ||
| PartnerBudgetPeriod | PartnerBudgetPeriod | Partner Budget Period | ||
| AccountAssignmentType | _Object | AccountAssignmentType | Sndr AcctAssgmt Type | |
| CostCenter | _Object | CostCenter | Cost Center | |
| CostCtrActivityType | _Object | CostCtrActivityType | Activity Type | |
| BusinessProcess | _Object | BusinessProcess | Business Process | |
| OrderID | _Object | OrderID | Order ID | |
| PartnerWBSElementExternalID | ||||
| WBSElement | ||||
| WBSDescription | ||||
| SalesDocument | _Object | SalesDocument | SD Document | |
| SalesDocumentItem | _Object | SalesDocumentItem | Sales Document Item | |
| ProjectNetwork | _Object | ProjectNetwork | Order | |
| NetworkActivity | _Object | NetworkActivity | Operation/Activity | |
| ServiceDocumentType | _Object | ServiceDocumentType | Transaction Type | |
| ServiceDocument | _Object | ServiceDocument | Transaction ID | |
| ServiceDocumentItem | _Object | ServiceDocumentItem | Service Document | |
| CostObject | _Object | CostObject | Cost Object | |
| FinancialManagementArea | ||||
| ReceiverRECompanyCode | _RE | CompanyCode | Receiver Company Code | |
| REPartnerBusinessEntity | _RE | REBusinessEntity | RE Business Entity | |
| RealEstatePartnerBuilding | _RE | RealEstateBuilding | Building | |
| RealEstatePartnerProperty | _RE | RealEstateProperty | Land | |
| REPartnerRentalObject | _RE | RERentalObject | ||
| RealEstatePartnerContract | _RE | RealEstateContract | Real Estate Contract | |
| REPartnerServiceChargeKey | _RE | REServiceChargeKey | ||
| REPartnerSettlementUnitID | _RE | RESettlementUnitID | ||
| PartnerSettlementReferenceDate | I_StstclKeyFigureValueItem | SettlementReferenceDate | Reference date | |
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| AccountingDocCreatedByUser | AccountingDocCreatedByUser | User which created overhead document | ||
| ControllingDocumentHeaderText | ControllingDocumentHeaderText | Doc.Header Text | ||
| int1asStatusCriticality | ||||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| AccountingDocumentCreationDate | AccountingDocumentCreationDate | Journal Entry Date | ||
| IsReversalDocument | IsReversalDocument | Reverse | ||
| IsReversed | IsReversed | Reversed? | ||
| ReversedReferenceDocument | ReversedReferenceDocument | Reversed Reference Document | ||
| ReversalReferenceDocument | ||||
| ExchangeRateDate | ExchangeRateDate | Translatn Date | ||
| ExchangeRateType | ExchangeRateType | Exch. Rate Type | ||
| ControllingAreaCurrency | ControllingAreaCurrency | Global Currency | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| _ReferenceDocumentTypeText | _ReferenceDocumentTypeText | |||
| _PartnerGrantText | _PartnerGrantText | |||
| _PartnerBudgetPeriodText | _PartnerBudgetPeriodText | |||
| _PartnerFunctionalAreaText | _PartnerFunctionalAreaText |
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_StstclKeyFigValueActiveItem.
-- 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: PSKFVALACTIT
CREATE VIEW P_StstclKeyFigValueActiveItem AS
SELECT
ControllingArea AS ControllingAreaForEdit,
AccountingDocument AS AccountingDocumentForEdit,
AccountingDocumentItem,
StatisticalKeyFigureQuantity,
StstcKeyFigQuantityUnit,
DocumentItemText,
ControllingObject,
StatisticalKeyFigure,
cast(_StatisticalKeyFigure.StstcKeyFigCategory as fis_ui_grtyp preserving type) AS StstcKeyFigCategory,
ControllingBusTransacType,
PersonnelNumber,
PartnerFund,
PartnerFunctionalArea,
PartnerGrant,
PartnerBudgetPeriod,
_Object.AccountAssignmentType AS AccountAssignmentType,
_Object.CostCenter AS CostCenter,
_Object.CostCtrActivityType AS CostCtrActivityType,
_Object.BusinessProcess AS BusinessProcess,
_Object.OrderID AS OrderID,
cast(_Object._WBSElementBasicData.WBSElementExternalID as fis_partner_wbsext_no_conv preserving type) AS PartnerWBSElementExternalID,
cast(_Object._WBSElementBasicData.WBSElementExternalID as fis_par_psp_pnr_ext) AS WBSElement,
_Object._WBSElementBasicData.WBSDescription AS WBSDescription,
_Object.SalesDocument AS SalesDocument,
_Object.SalesDocumentItem AS SalesDocumentItem,
_Object.ProjectNetwork AS ProjectNetwork,
_Object.NetworkActivity AS NetworkActivity,
_Object.ServiceDocumentType AS ServiceDocumentType,
_Object.ServiceDocument AS ServiceDocument,
_Object.ServiceDocumentItem AS ServiceDocumentItem,
_Object.CostObject AS CostObject,
_Object._CompanyCode.FinancialManagementArea AS FinancialManagementArea,
_RE.CompanyCode AS ReceiverRECompanyCode,
_RE.REBusinessEntity AS REPartnerBusinessEntity,
_RE.RealEstateBuilding AS RealEstatePartnerBuilding,
_RE.RealEstateProperty AS RealEstatePartnerProperty,
_RE.RERentalObject AS REPartnerRentalObject,
_RE.RealEstateContract AS RealEstatePartnerContract,
_RE.REServiceChargeKey AS REPartnerServiceChargeKey,
_RE.RESettlementUnitID AS REPartnerSettlementUnitID,
_Item.SettlementReferenceDate AS PartnerSettlementReferenceDate,
DocumentDate,
PostingDate,
AccountingDocCreatedByUser,
ControllingDocumentHeaderText,
cast( case IsReversed when '' then 3 else 1 end as abap.int1) as StatusCriticality AS int1asStatusCriticality,
FiscalPeriod,
FiscalYear,
AccountingDocumentCreationDate,
IsReversalDocument,
IsReversed,
ReversedReferenceDocument,
cast(_ReversalStstclKeyFigureValue.AccountingDocument as reversalreferencedocument) AS ReversalReferenceDocument,
ExchangeRateDate,
ExchangeRateType,
ControllingAreaCurrency,
ReferenceDocumentType
FROM I_StstclKeyFigureValueItem AS _Item
LEFT OUTER JOIN I_ControllingObjectEnhanced AS _Object ON ControllingObject = _Object.ControllingObject AND ControllingAreaForEdit = _Object.ControllingArea -- association [1..1]
LEFT OUTER JOIN I_StatisticalKeyFigure AS _StatisticalKeyFigure ON StatisticalKeyFigure = _StatisticalKeyFigure.StatisticalKeyFigure AND ControllingAreaForEdit = _StatisticalKeyFigure.ControllingArea -- association [1..1]
LEFT OUTER JOIN I_StatisticalKeyFigureValue AS _ReversalStstclKeyFigureValue ON ControllingAreaForEdit = _ReversalStstclKeyFigureValue.ControllingArea AND AccountingDocumentForEdit = _ReversalStstclKeyFigureValue.ReversedReferenceDocument -- association [1..1]
LEFT OUTER JOIN I_REObjectByStatusObject AS _RE ON _Item.ControllingObject = _RE.REStatusObject -- 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