P_StatKeyFigValueAssignment

DDL: P_STATKEYFIGVALUEASSIGNMENT SQL: PWUSKFVA Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_FinStatisticalKeyFigureItem I_FinStatisticalKeyFigureItem from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger
KEY CompanyCode CompanyCode
KEY StatisticalKeyFigure StatisticalKeyFigure
KEY FiscalYear FiscalYear
KEY FiscalPeriod FiscalPeriod
KEY StatisticalKeyFigureItem StatisticalKeyFigureItem
FiscalYearPeriod FiscalYearPeriod
FiscalYearVariant FiscalYearVariant
IsSpecialPeriod IsSpecialPeriod
StatisticalKeyFigureCategory StatisticalKeyFigureCategory
StatisticalKeyFigQtyUnit StatisticalKeyFigQtyUnit
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
PlanningCategory PlanningCategory
CostCenter CostCenter
ProfitCenter ProfitCenter
FunctionalArea FunctionalArea
BusinessArea BusinessArea
ControllingArea ControllingArea
Segment Segment
ControllingBusTransacType ControllingBusTransacType
AccountAssignmentType AccountAssignmentType
ControllingObject ControllingObject
ControllingObjectClass ControllingObjectClass
ControllingObjectType _ControllingObject ControllingObjectType
OrderID OrderID
OrderCategory OrderCategory
WBSElement WBSElement
Fund Fund
GrantID GrantID
BudgetPeriod BudgetPeriod
SalesOrder SalesOrder
SalesOrderItem SalesOrderItem
CostCtrActivityType CostCtrActivityType
ServiceDocumentType ServiceDocumentType
ServiceDocument ServiceDocument
ServiceDocumentItem ServiceDocumentItem
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
@AbapCatalog.sqlViewName: 'PWUSKFVA'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
  private: true,
  viewType: #CONSUMPTION
}
define view P_StatKeyFigValueAssignment
  as select from I_FinStatisticalKeyFigureItem
  association [1..1] to I_Ledger                 as _Ledger                 on  I_FinStatisticalKeyFigureItem.Ledger = _Ledger.Ledger
  association [0..1] to I_CostCenterActivityType as _CostCenterActivityType on  $projection.ControllingArea     =  _CostCenterActivityType.ControllingArea
                                                                            and $projection.CostCtrActivityType =  _CostCenterActivityType.CostCtrActivityType
                                                                            and $projection.ValidityStartDate   >= _CostCenterActivityType.ValidityStartDate
                                                                            and $projection.ValidityStartDate   <= _CostCenterActivityType.ValidityEndDate
  association [0..1] to I_ProfitCenter           as _ProfitCenter           on  $projection.ControllingArea   =  _ProfitCenter.ControllingArea
                                                                            and $projection.ProfitCenter      =  _ProfitCenter.ProfitCenter
                                                                            and $projection.ValidityStartDate >= _ProfitCenter.ValidityStartDate
                                                                            and $projection.ValidityStartDate <= _ProfitCenter.ValidityEndDate
  association [0..1] to I_CostCenter             as _CostCenter             on  $projection.ControllingArea   =  _CostCenter.ControllingArea
                                                                            and $projection.CostCenter        =  _CostCenter.CostCenter
                                                                            and $projection.ValidityStartDate >= _CostCenter.ValidityStartDate
                                                                            and $projection.ValidityStartDate <= _CostCenter.ValidityEndDate
{
      //I_FinStatisticalKeyFigureItem

  key Ledger,
  key CompanyCode,
  key StatisticalKeyFigure,
  key FiscalYear,
  key FiscalPeriod,
  key 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,
      OrderID,
      OrderCategory,
      WBSElement,
      Fund,
      GrantID,
      BudgetPeriod,
      SalesOrder,
      SalesOrderItem,
      CostCtrActivityType,
      ServiceDocumentType,
      ServiceDocument,
      ServiceDocumentItem,
      _FiscalPeriod.FiscalPeriodStartDate as ValidityStartDate,
      _FiscalPeriod.FiscalPeriodEndDate   as ValidityEndDate,
      /* Associations */
      //I_FinStatisticalKeyFigureItem

      _BudgetPeriod,
      _BusinessArea,
      _CompanyCode,
      _ControllingArea,
      _ControllingObject,
      _CostCenter,
      _CostCenterActivityType,
      _FiscalPeriod,
      _FiscalYear,
      _FiscalYearVariant,
      _FunctionalArea,
      _Ledger,
      _LedgerCompanyCodeVH,
      _Order,
      _PlanningCategory,
      _ProfitCenter,
      _SalesDocument,
      _SalesDocumentItem,
      _Segment,
      _StatisticalKeyFigure,
      _StatisticalKeyFigureCat,
      _UnitOfMeasure
}
where
  _Ledger.IsLeadingLedger = 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CONTROLLINGOBJECT",
"I_FINSTATISTICALKEYFIGUREITEM",
"I_FISCALYEARPERIOD",
"I_LEDGER"
],
"ASSOCIATED":
[
"I_BUDGETPERIOD",
"I_BUSINESSAREA",
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_CONTROLLINGOBJECT",
"I_COSTCENTER",
"I_COSTCENTERACTIVITYTYPE",
"I_FISCALYEAR",
"I_FISCALYEARPERIOD",
"I_FISCALYEARVARIANT",
"I_FUNCTIONALAREA",
"I_LEDGER",
"I_LEDGERCOCODE",
"I_ORDER",
"I_PLANNINGCATEGORY",
"I_PROFITCENTER",
"I_SALESDOCUMENT",
"I_SALESDOCUMENTITEM",
"I_SEGMENT",
"I_STATISTICALKEYFIGURE",
"I_STATISTICALKEYFIGURECAT",
"I_UNITOFMEASURE"
],
"BASE":
[
"I_FINSTATISTICALKEYFIGUREITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/