P_ActlCostgRunRsltEnhcdWthTxt

DDL: P_ACTLCOSTGRUNRSLTENHCDWTHTXT Type: view_entity COMPOSITE Package: FCML4H_DISPLAY

Actual Costing Run Results (Enhanced)

P_ActlCostgRunRsltEnhcdWthTxt is a Composite CDS View that provides data about "Actual Costing Run Results (Enhanced)" in SAP S/4HANA. It reads from 1 data source (P_ActualCostingRunResultEnhcd) and exposes 29 fields with key fields CostEstimate, CurrencyRole, Ledger, MaterialLedgerCategory, ProcessCategory. It has 5 associations to related views. Part of development package FCML4H_DISPLAY.

Data Sources (1)

SourceAliasJoin Type
P_ActualCostingRunResultEnhcd P_ActualCostingRunResultEnhcd from

Parameters (3)

NameTypeDefault
P_CostingRunType ckml_run_type
P_FiscalPeriod fins_fiscalperiod
P_FiscalYear fis_gjahr_no_conv

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_InventorySpecialStockTypeT _InvtrySpclStkTypeTxt $projection.InventorySpecialStockType = _InvtrySpclStkTypeTxt.InventorySpecialStockType and _InvtrySpclStkTypeTxt.Language = $session.system_language
[0..1] I_MaterialLedgerCategoryTxt _MatlLdgrCatTxt $projection.MaterialLedgerCategory = _MatlLdgrCatTxt.MaterialLedgerCategory and _MatlLdgrCatTxt.Language = $session.system_language
[0..1] P_MLProcessCategoryText _MatlLdgrProcCatTxt $projection.ProcessCategory = _MatlLdgrProcCatTxt.ProcessCategory and _MatlLdgrProcCatTxt.Language = $session.system_language
[0..1] R_MatlLedgerValnCrcyRole _LdgrValnCrcyRole $projection.CurrencyRole = _LdgrValnCrcyRole.CurrencyRole and $projection.Ledger = _LdgrValnCrcyRole.Ledger and $projection.CompanyCode = _LdgrValnCrcyRole.CompanyCode
[0..1] I_GlAccountTextInCompanycode _GLText $projection.CompanyCode = _GLText.CompanyCode and $projection.GLAccount = _GLText.GLAccount and _GLText.Language = $session.system_language

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate CostEstimate Cost EstimateNo
KEY CurrencyRole CurrencyRole Curr./Val. Type
KEY Ledger Ledger Ledger
KEY MaterialLedgerCategory
KEY ProcessCategory
KEY MatlLdgrDocIsCostingRelevant MatlLdgrDocIsCostingRelevant
KEY ProcurementAlternative ProcurementAlternative
KEY ProductionProcess ProductionProcess
KEY MovementType MovementType
KEY GLAccount GLAccount General Ledger
PriceDeterminationControl PriceDeterminationControl Price Determ.
ValuationArea ValuationArea Valuation Area
Material Material Vehicle Model
InventoryValuationType InventoryValuationType Valuation Type
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
InventorySpecialStockType InventorySpecialStockType Special Stock Type
WBSElementExternalID WBSElementExternalID WBS Element External ID
Supplier Supplier Supplier
ValuationQuantityUnit ValuationQuantityUnit
Currency Currency Valuation Crcy
InventorySpecialStockTypeName _InvtrySpclStkTypeTxt InventorySpecialStockTypeName
MaterialLedgerCategoryText
ProcessCategoryName
GoodsMovementTypeName GoodsMovementTypeName
GLAccountName _GLText GLAccountName Short Text
CompanyCode CompanyCode Receiver Company Code
ControllingArea ControllingArea Controlling Area
ControllingValuationType _LdgrValnCrcyRole AccountingValuationView

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_ActlCostgRunRsltEnhcdWthTxt.
-- 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.
-- Parameters: P_CostingRunType : ckml_run_type, P_FiscalPeriod : fins_fiscalperiod, P_FiscalYear : fis_gjahr_no_conv

CREATE VIEW P_ActlCostgRunRsltEnhcdWthTxt AS
SELECT
  CostEstimate,
  CurrencyRole,
  Ledger,
  cast( MaterialLedgerCategory as fml_material_ledger_category preserving type ) AS MaterialLedgerCategory,
  cast( ProcessCategory as fml_process_category preserving type ) AS ProcessCategory,
  MatlLdgrDocIsCostingRelevant,
  ProcurementAlternative,
  ProductionProcess,
  MovementType,
  GLAccount,
  PriceDeterminationControl,
  ValuationArea,
  Material,
  InventoryValuationType,
  SalesOrder,
  SalesOrderItem,
  InventorySpecialStockType,
  WBSElementExternalID,
  Supplier,
  ValuationQuantityUnit,
  Currency,
  _InvtrySpclStkTypeTxt.InventorySpecialStockTypeName AS InventorySpecialStockTypeName,
  cast( _MatlLdgrCatTxt .MaterialLedgerCategoryText as fml_matl_ledger_category_text preserving type ) AS MaterialLedgerCategoryText,
  cast( _MatlLdgrProcCatTxt .ProcessCategoryName as fml_process_category_text preserving type ) AS ProcessCategoryName,
  GoodsMovementTypeName,
  _GLText.GLAccountName AS GLAccountName,
  CompanyCode,
  ControllingArea,
  _LdgrValnCrcyRole.AccountingValuationView AS ControllingValuationType
FROM P_ActualCostingRunResultEnhcd
LEFT OUTER JOIN I_InventorySpecialStockTypeT AS _InvtrySpclStkTypeTxt ON InventorySpecialStockType = _InvtrySpclStkTypeTxt.InventorySpecialStockType AND _InvtrySpclStkTypeTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MaterialLedgerCategoryTxt AS _MatlLdgrCatTxt ON MaterialLedgerCategory = _MatlLdgrCatTxt.MaterialLedgerCategory AND _MatlLdgrCatTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN P_MLProcessCategoryText AS _MatlLdgrProcCatTxt ON ProcessCategory = _MatlLdgrProcCatTxt.ProcessCategory AND _MatlLdgrProcCatTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN R_MatlLedgerValnCrcyRole AS _LdgrValnCrcyRole ON CurrencyRole = _LdgrValnCrcyRole.CurrencyRole AND Ledger = _LdgrValnCrcyRole.Ledger AND CompanyCode = _LdgrValnCrcyRole.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_GlAccountTextInCompanycode AS _GLText ON CompanyCode = _GLText.CompanyCode AND GLAccount = _GLText.GLAccount AND _GLText.Language = $session.system_language  -- association [0..1]
;