P_DMVCNodeAttribute

DDL: P_DMVCNODEATTRIBUTE SQL: PDMVCNODEATTR Type: view COMPOSITE Package: ODATA_ML_MATLVCA_DISP

DMVC: Node Attribute

P_DMVCNodeAttribute is a Composite CDS View that provides data about "DMVC: Node Attribute" in SAP S/4HANA. It reads from 1 data source (P_DMVCMaterialActivityNode) and exposes 32 fields with key fields CostEstimate, DMVCNodeType. It has 3 associations to related views. Part of development package ODATA_ML_MATLVCA_DISP.

Data Sources (1)

SourceAliasJoin Type
P_DMVCMaterialActivityNode P_DMVCMaterialActivityNode from

Parameters (4)

NameTypeDefault
P_DateFrom calendardate
P_DateTo calendardate
P_CurrencyType curtp
P_Ledger rldnr

Associations (3)

CardinalityTargetAliasCondition
[0..1] P_MLProcessCategoryText _ProcessCategoryText _ProcessCategoryText.ProcessCategory = _Node.DMVCNodeType and _ProcessCategoryText.Language = $session.system_language
[0..1] I_MatlProcurementTypeText _ProcurementTypeText _ProcurementTypeText.MaterialProcurementType = _Node.MaterialProcurementType and _ProcurementTypeText.Language = $session.system_language
[0..1] I_UnitOfMeasure _UoM $projection.ValuationQuantityUnitInternal = _UoM.UnitOfMeasure

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PDMVCNODEATTR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate CostEstimate Cost EstimateNo
KEY DMVCNodeType DMVCNodeType
NodeNameendasNodeName
ProcessCategory ProcessCategory
Shape Shape
Plant Plant Valuation Area
ValuationArea ValuationArea Valuation Area
InventoryValuationType InventoryValuationType Valuation Type
CompanyCode CompanyCode Receiver Company Code
MaterialDescription MaterialName Material Description
MaterialProcurementType MaterialProcurementType Spec. procuremt
MaterialProcurementTypeName _ProcurementTypeText MaterialProcurementTypeName
MaterialType MaterialType Material Type
MaterialTypeName MaterialTypeName Mat.Type Desc.
MaterialValuationClass MaterialValuationClass Valuation Class
ShownConsumptionQty
ValuationQuantityUnitInternal _Node ValuationQuantityUnit
ValuationQuantityUnit _UoM UnitOfMeasure_E
ShownConsumptionValue
Currency Currency Valuation Crcy
LedgerValuationCurrencyRole LedgerValuationCurrencyRole
ProfitCenter
ProfitCenterMD ProfitCenterMD
SalesDocument SalesDocument SD Document
SalesDocumentItem SalesDocumentItem Sales Document Item
WBSElement WBSElement WBS Internal ID
Supplier Supplier Supplier
SourceLedger SourceLedger Source Ledger
SourceCompanyCode SourceCompanyCode
AccountingDocument
LedgerGLLineItem
Timestamp

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_DMVCNodeAttribute.
-- 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: PDMVCNODEATTR
-- Parameters: P_DateFrom : calendardate, P_DateTo : calendardate, P_CurrencyType : curtp, P_Ledger : rldnr

CREATE VIEW P_DMVCNodeAttribute AS
SELECT
  CostEstimate,
  DMVCNodeType,
  case when _Node.NodeName is null or _Node.NodeName = '' then _ProcessCategoryText.ProcessCategoryName else _Node.NodeName end as NodeName AS NodeNameendasNodeName,
  ProcessCategory,
  Shape,
  Plant,
  ValuationArea,
  InventoryValuationType,
  CompanyCode,
  MaterialName AS MaterialDescription,
  MaterialProcurementType,
  _ProcurementTypeText.MaterialProcurementTypeName AS MaterialProcurementTypeName,
  MaterialType,
  MaterialTypeName,
  MaterialValuationClass,
  cast( MaterialConsumptionQty as fml_dmvc_shown_cons_qty) AS ShownConsumptionQty,
  _Node.ValuationQuantityUnit AS ValuationQuantityUnitInternal,
  _UoM.UnitOfMeasure_E AS ValuationQuantityUnit,
  cast( MaterialConsumptionValue as fml_dmvc_shown_cons_value) AS ShownConsumptionValue,
  Currency,
  LedgerValuationCurrencyRole,
  max(ProfitCenter) AS ProfitCenter,
  ProfitCenterMD,
  SalesDocument,
  SalesDocumentItem,
  WBSElement,
  Supplier,
  SourceLedger,
  SourceCompanyCode,
  max( all AccountingDocument) AS AccountingDocument,
  max( all LedgerGLLineItem) AS LedgerGLLineItem,
  max(Timestamp) AS Timestamp
FROM P_DMVCMaterialActivityNode
LEFT OUTER JOIN P_MLProcessCategoryText AS _ProcessCategoryText ON _ProcessCategoryText.ProcessCategory = _Node.DMVCNodeType AND _ProcessCategoryText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MatlProcurementTypeText AS _ProcurementTypeText ON _ProcurementTypeText.MaterialProcurementType = _Node.MaterialProcurementType AND _ProcurementTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UoM ON ValuationQuantityUnitInternal = _UoM.UnitOfMeasure  -- association [0..1]
;