P_SubcontrgCkptHier

DDL: P_SUBCONTRGCKPTHIER Type: view_entity COMPOSITE Package: ODATA_MM_PUR_SUBCONTRG_COCKPIT

Subcontracting Document Hierarchy Node

P_SubcontrgCkptHier is a Composite CDS View that provides data about "Subcontracting Document Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (P_SubcontractingHierNodeBase) and exposes 58 fields with key fields Material, Plant, Supplier, Reservation, ReservationItem. It has 1 association to related views. Part of development package ODATA_MM_PUR_SUBCONTRG_COCKPIT.

Data Sources (1)

SourceAliasJoin Type
P_SubcontractingHierNodeBase P_SubcontractingHierNodeBase from

Parameters (2)

NameTypeDefault
P_ReqdDelivDteRngeFrmDte vdm_shippingdate
P_ReqdDelivDteRngeToDte vdm_shippingdate

Associations (1)

CardinalityTargetAliasCondition
[1..1] P_SubcontrgCkptHier _Parent $projection.ParentNode = _Parent.SuplrMatlPlnt and $projection.Plant = _Parent.Plant and $projection.Supplier = _Parent.Supplier and $projection.Material = _Parent.Material

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
Analytics.internalName #LOCAL view
Analytics.technicalName PSUBCONHIER view
ObjectModel.dataCategory #HIERARCHY view
VDM.private true view
ObjectModel.representativeKey Material view

Fields (58)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY Supplier Supplier Supplier
KEY Reservation Reservation Reservation
KEY ReservationItem ReservationItem Reservation Item
RequirementType RequirementType RequirementType
SuplrMatlPlnt SuplrMatlPlnt
MasterDataNode MasterDataNode
ParentNode ParentNode Parent Node
HierarchyNodeLevel HierarchyNodeLevel Hierarchy Node Level
HierarchyDrillState HierarchyDrillState Drill State
PurchasingDocument PurchasingDocument Purchasing Document
PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
FormattedPurchaseOrderItem FormattedPurchaseOrderItem
RequestedDeliveryDate RequestedDeliveryDate Requested Delivery Date
numc2endasShippingStatus
Assembly Assembly Pegged Reqmt
ScheduleLineDeliveryDate ScheduleLineDeliveryDate Delivery Date
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingOrganization PurchasingOrganization Purchasing Organization
Batch Batch Lot No.
SupplyingPlant SupplyingPlant Supplying Plant
MaterialGroup MaterialGroup Product Group
StorageLocation StorageLocation StorageLocation
StillToBeDeliveredQuantity StillToBeDeliveredQuantity
PurchaseOrderQuantityUnit PurchaseOrderQuantityUnit Order Unit
StockBalanceQuantityUnit StockBalanceQuantityUnit
StockUnit StockUnit
MaterialComponentName MaterialComponentName
PlantName PlantName Plant Name
SupplierName SupplierName Supplier Name
AssemblyName AssemblyName
MaterialGroupName MaterialGroupName prod Grp Desc.
StorageLocationName StorageLocationName Storage Loc. Name
SupplyingPlantName SupplyingPlantName Plant Name
ShippingStatusText
PurchasingGroupName PurchasingGroupName Purchasing Grp. Name
PurchasingOrganizationName PurchasingOrganizationName Purch. Org. Name
ShippingCondition ShippingCondition Shipping Conditions
DeliveryType DeliveryType intern./extern.
LoadingGroup LoadingGroup Loading Group
ProposedShippingPoint ProposedShippingPoint
NumberOfItems NumberOfItems
PurchasingDocumentType PurchasingDocumentType RFQ Type
PurchasingDocumentTypeName PurchasingDocumentTypeName Description
GoodsMovementType GoodsMovementType Movement Type
RequiredQuantity RequiredQuantity Requirement qty
SpecialStockIdfgWBSElement SpecialStockIdfgWBSElement WBS Internal ID
InventorySpecialStockType InventorySpecialStockType Special Stock Type
CompanyCode CompanyCode Receiver Company Code
AuthorizationGroup AuthorizationGroup AuthorizGroup
SupplierAccountGroup SupplierAccountGroup Account group
_SupplierCompanyByPlant _SupplierCompanyByPlant
_Parent _Parent
_Plant _Plant
_Supplier _Supplier
_ProposedShipgPointsPerPlnt _ProposedShipgPointsPerPlnt
_Material _Material

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_SubcontrgCkptHier.
-- 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_ReqdDelivDteRngeFrmDte : vdm_shippingdate, P_ReqdDelivDteRngeToDte : vdm_shippingdate

CREATE VIEW P_SubcontrgCkptHier AS
SELECT
  Material,
  Plant,
  Supplier,
  Reservation,
  ReservationItem,
  RequirementType,
  SuplrMatlPlnt,
  MasterDataNode,
  ParentNode,
  HierarchyNodeLevel,
  HierarchyDrillState,
  PurchasingDocument,
  PurchasingDocumentItem,
  FormattedPurchaseOrderItem,
  RequestedDeliveryDate,
  Assembly,
  ScheduleLineDeliveryDate,
  PurchasingGroup,
  PurchasingOrganization,
  Batch,
  SupplyingPlant,
  MaterialGroup,
  StorageLocation,
  StillToBeDeliveredQuantity,
  PurchaseOrderQuantityUnit,
  StockBalanceQuantityUnit,
  StockUnit,
  MaterialComponentName,
  PlantName,
  SupplierName,
  AssemblyName,
  MaterialGroupName,
  StorageLocationName,
  SupplyingPlantName,
  _ShippingStatusVH._Text[1: Language = $session.system_language].DomainText AS ShippingStatusText,
  PurchasingGroupName,
  PurchasingOrganizationName,
  ShippingCondition,
  DeliveryType,
  LoadingGroup,
  ProposedShippingPoint,
  NumberOfItems,
  PurchasingDocumentType,
  PurchasingDocumentTypeName,
  GoodsMovementType,
  RequiredQuantity,
  SpecialStockIdfgWBSElement,
  InventorySpecialStockType,
  CompanyCode,
  AuthorizationGroup,
  SupplierAccountGroup
FROM P_SubcontractingHierNodeBase
LEFT OUTER JOIN P_SubcontrgCkptHier AS _Parent ON ParentNode = _Parent.SuplrMatlPlnt AND Plant = _Parent.Plant AND Supplier = _Parent.Supplier AND Material = _Parent.Material  -- association [1..1]
;