P_SubcontractingHierNodeBase

DDL: P_SUBCONTRACTINGHIERNODEBASE Type: view_entity COMPOSITE Package: ODATA_MM_PUR_SUBCONTRG_COCKPIT

Subcontracting Document Hierarchy Node

P_SubcontractingHierNodeBase is a Composite CDS View that provides data about "Subcontracting Document Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (P_SubcontractingHierarchyNode) and exposes 65 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_SubcontractingHierarchyNode P_SubcontractingHierarchyNode from

Parameters (2)

NameTypeDefault
P_ReqdDelivDteRngeFrmDte vdm_shippingdate
P_ReqdDelivDteRngeToDte vdm_shippingdate

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_ProcmtShippingStatus _ShippingStatusVH $projection.ShippingStatus = _ShippingStatusVH.DeliveryStatus

Annotations (7)

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
VDM.private true view

Fields (65)

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
ScheduleLine ScheduleLine Schedule Line
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
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
_ShippingStatusVH _ShippingStatusVH
PurchasingGroupName PurchasingGroupName Purchasing Grp. Name
PurchasingOrganizationName PurchasingOrganizationName Purch. Org. Name
ShippingCondition ShippingCondition Shipping Conditions
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
SalesOrganization SalesOrganization Sales Organization
Division Division Internal Division ID
Customer Customer Sold-to Party
DebitCreditCode DebitCreditCode Single-Character Flag
DeliveryType DeliveryType intern./extern.
LoadingGroup LoadingGroup Loading Group
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
WBSDescription WBSDescription WBS Element Name
InventorySpecialStockTypeName InventorySpecialStockTypeName
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
CompanyCode CompanyCode Receiver Company Code
AuthorizationGroup AuthorizationGroup AuthorizGroup
SupplierAccountGroup SupplierAccountGroup Account group
_SupplierCompanyByPlant _SupplierCompanyByPlant
_Supplier _Supplier
_ProposedShipgPointsPerPlnt _ProposedShipgPointsPerPlnt
_Plant _Plant
_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_SubcontractingHierNodeBase.
-- 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_SubcontractingHierNodeBase AS
SELECT
  Material,
  Plant,
  Supplier,
  Reservation,
  ReservationItem,
  RequirementType,
  SuplrMatlPlnt,
  ScheduleLine,
  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,
  PurchasingGroupName,
  PurchasingOrganizationName,
  ShippingCondition,
  DistributionChannel,
  SalesOrganization,
  Division,
  Customer,
  DebitCreditCode,
  DeliveryType,
  LoadingGroup,
  NumberOfItems,
  PurchasingDocumentType,
  PurchasingDocumentTypeName,
  GoodsMovementType,
  RequiredQuantity,
  SpecialStockIdfgWBSElement,
  InventorySpecialStockType,
  WBSDescription,
  InventorySpecialStockTypeName,
  SalesOrder,
  SalesOrderItem,
  CompanyCode,
  AuthorizationGroup,
  SupplierAccountGroup
FROM P_SubcontractingHierarchyNode
LEFT OUTER JOIN I_ProcmtShippingStatus AS _ShippingStatusVH ON ShippingStatus = _ShippingStatusVH.DeliveryStatus  -- association [0..1]
;