C_StatKeyFigValueAssignment

DDL: C_STATKEYFIGVALUEASSIGNMENT SQL: CWUSKFVA Type: view CONSUMPTION

Value Assignments

C_StatKeyFigValueAssignment is a Consumption CDS View that provides data about "Value Assignments" in SAP S/4HANA. It reads from 1 data source (P_StatKeyFigValueAssignment) and exposes 44 fields with key fields StatKeyFigWhereUsedObjType, Ledger, CompanyCode, StatisticalKeyFigure, FiscalYear. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_StatKeyFigValueAssignment P_StatKeyFigValueAssignment from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_AccountAssignmentType _AccountAssignmentType $projection.AccountAssignmentType = _AccountAssignmentType.AccountAssignmentType
[0..1] I_GLRecordType _GLRecordType $projection.GLRecordType = _GLRecordType.GLRecordType
[0..1] I_WBSElement _WBSElement $projection.WBSElement = _WBSElement.WBSElement
[0..1] I_PlanningCategoryText _PlanningCategoryText $projection.PlanningCategory = _PlanningCategoryText.PlanningCategory and _PlanningCategoryText.Language = $session.system_language

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CWUSKFVA view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Value Assignments view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY StatKeyFigWhereUsedObjType
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
AccountAssignmentType AccountAssignmentType Sndr AcctAssgmt Type
AccountAssignmentTypeDesc
GLRecordType GLRecordType Record Type
GLRecordTypeName
PlanningCategory
_PlanningCategoryText _PlanningCategoryText
StatisticalKeyFigureQuantity StatisticalKeyFigureQuantity
StatisticalKeyFigQtyUnit StatisticalKeyFigQtyUnit
CostCenter
CostCenterName
CompanyCodeName _CompanyCode CompanyCodeName Company Name
StatisticalKeyFigureName
ControllingArea ControllingArea Controlling Area
ControllingAreaName _ControllingArea ControllingAreaName Long Text
ProfitCenter
ProfitCenterName
FunctionalArea FunctionalArea Sendr Fctl Area
FunctionalAreaName
BusinessArea
BusinessAreaName
Segment
SegmentName
OrderID OrderID Order ID
OrderDescription _Order OrderDescription
SalesOrder SalesOrder SD Document
WBSElement WBSElement WBS Internal ID
WBSDescription _WBSElement WBSDescription WBS Element Name
CostCtrActivityType CostCtrActivityType Activity Type
CostCtrActivityTypeName
CostCtrActyTypeValdtyStartDate _CostCenterActivityType ValidityStartDate Validity Start Date
CostCtrActyTypeValdtyEndDate _CostCenterActivityType ValidityEndDate ValidTo
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
ControllingBusTransacType ControllingBusTransacType CO Bus. Transaction
_SalesDocument _SalesDocument
_Order _Order
_WBSElement _WBSElement

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 C_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: CWUSKFVA

CREATE VIEW C_StatKeyFigValueAssignment AS
SELECT
  cast ('6VA' as statkeyfigwhereusedobjtypevh) AS StatKeyFigWhereUsedObjType,
  Ledger,
  CompanyCode,
  StatisticalKeyFigure,
  FiscalYear,
  FiscalPeriod,
  StatisticalKeyFigureItem,
  AccountAssignmentType,
  _AccountAssignmentType._Text[1: Language = $session.system_language ].AccountAssignmentTypeDesc AS AccountAssignmentTypeDesc,
  GLRecordType,
  _GLRecordType._Text[1: Language = $session.system_language ].GLRecordTypeName AS GLRecordTypeName,
  cast( coalesce( PlanningCategory, '' ) as fcom_category ) AS PlanningCategory,
  StatisticalKeyFigureQuantity,
  StatisticalKeyFigQtyUnit,
  cast( coalesce( CostCenter, '' ) as fis_kostl ) AS CostCenter,
  _CostCenter._Text[1: Language = $session.system_language ].CostCenterName AS CostCenterName,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  _StatisticalKeyFigure._Text[1: Language = $session.system_language ].StatisticalKeyFigureName AS StatisticalKeyFigureName,
  ControllingArea,
  _ControllingArea.ControllingAreaName AS ControllingAreaName,
  cast( coalesce( ProfitCenter, '' ) as fis_prctr ) AS ProfitCenter,
  _ProfitCenter._Text[1: Language = $session.system_language ].ProfitCenterName AS ProfitCenterName,
  FunctionalArea,
  _FunctionalArea._Text[1: Language = $session.system_language ].FunctionalAreaName AS FunctionalAreaName,
  cast( coalesce( BusinessArea, '' ) as fis_rbusa ) AS BusinessArea,
  _BusinessArea._Text[1: Language = $session.system_language ].BusinessAreaName AS BusinessAreaName,
  cast( coalesce( Segment, '' ) as fb_segment ) AS Segment,
  _Segment._Text[1: Language = $session.system_language ].SegmentName AS SegmentName,
  OrderID,
  _Order.OrderDescription AS OrderDescription,
  SalesOrder,
  WBSElement,
  _WBSElement.WBSDescription AS WBSDescription,
  CostCtrActivityType,
  _CostCenterActivityType._Text[1: Language = $session.system_language ].CostCtrActivityTypeName AS CostCtrActivityTypeName,
  _CostCenterActivityType.ValidityStartDate AS CostCtrActyTypeValdtyStartDate,
  _CostCenterActivityType.ValidityEndDate AS CostCtrActyTypeValdtyEndDate,
  ValidityStartDate,
  ValidityEndDate,
  ControllingBusTransacType
FROM P_StatKeyFigValueAssignment
LEFT OUTER JOIN I_AccountAssignmentType AS _AccountAssignmentType ON AccountAssignmentType = _AccountAssignmentType.AccountAssignmentType  -- association [0..1]
LEFT OUTER JOIN I_GLRecordType AS _GLRecordType ON GLRecordType = _GLRecordType.GLRecordType  -- association [0..1]
LEFT OUTER JOIN I_WBSElement AS _WBSElement ON WBSElement = _WBSElement.WBSElement  -- association [0..1]
LEFT OUTER JOIN I_PlanningCategoryText AS _PlanningCategoryText ON PlanningCategory = _PlanningCategoryText.PlanningCategory AND _PlanningCategoryText.Language = $session.system_language  -- association [0..1]
;