A_PlannedOrder

DDL: A_PLANNEDORDER SQL: APLNDORD Type: view COMPOSITE Package: ODATA_PP_PLDORDER_API

Planned Order

A_PlannedOrder is a Composite CDS View that provides data about "Planned Order" in SAP S/4HANA. It reads from 1 data source (I_PlannedOrder) and exposes 60 fields with key field PlannedOrder. It has 3 associations to related views. It is exposed through 2 OData services (ASQL_F8621, ASQL_F8950). Part of development package ODATA_PP_PLDORDER_API.

Data Sources (1)

SourceAliasJoin Type
I_PlannedOrder I_PlannedOrder from

Associations (3)

CardinalityTargetAliasCondition
[0..*] A_PlannedOrderComponent _PlannedOrderComponent $projection.PlannedOrder = _PlannedOrderComponent.PlannedOrder
[0..*] A_PlannedOrderCapacity _PlannedOrderCapacity $projection.PlannedOrder = _PlannedOrderCapacity.PlannedOrder
[1..1] E_PlannedOrder _Extension $projection.PlannedOrder = _Extension.PlannedOrder

Annotations (17)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName APLNDORD view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Planned Order view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey PlannedOrder view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F8621 ASQL_F8621 C2 NOT_RELEASED
ASQL_F8950 ASQL_F8950 C2 NOT_RELEASED

Fields (60)

KeyFieldSource TableSource FieldDescription
KEY PlannedOrder PlannedOrder Planned Order
PlannedOrderType I_PlannedOrder PlannedOrderType
PlannedOrderProfile P_PlannedOrderProfileGet PlannedOrderProfile
Material Material Vehicle Model
MaterialName
ProductionPlant ProductionPlant Prod plnt
MRPPlant MRPPlant Plant
MRPArea MRPArea MRP Area
ProductionVersion ProductionVersion Version ID
MaterialProcurementCategory I_PlannedOrder MaterialProcurementCategory Procurement
MaterialProcurementType I_PlannedOrder MaterialProcurementType Spec. procuremt
StorageLocation StorageLocation StorageLocation
BaseUnit BaseUnit Unit of Measure
TotalQuantity PlannedTotalQtyInBaseUnit Total Quantity
PlndOrderPlannedScrapQty PlannedScrapQtyInBaseUnit Scrap Quantity
GoodsReceiptQty GoodsReceiptQtyInBaseUnit Received
IssuedQuantity QuantityWithdrawnInBaseUnit Withdrawal Qty
PlndOrderPlannedStartDate PlndOrderPlannedStartDate Order Start
PlndOrderPlannedStartTime PlndOrderPlannedStartTime Order Start Time
PlndOrderPlannedEndDate PlndOrderPlannedEndDate Order End Date
PlndOrderPlannedEndTime PlndOrderPlannedEndTime Order End Time
PlannedOrderOpeningDate PlannedOrderOpeningDate Opening Date
LastChangeDateTime LastChangeDateTime Timestamp
ProductionStartDate ProductionStartDate Production Start Date
ProductionEndDate ProductionEndDate Production End Date
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
Customer Customer Sold-to Party
WBSElementInternalID WBSElementInternalID WBS Internal ID
WBSElement
WBSDescription _WBSElement WBSDescription WBS Element Name
AccountAssignmentCategory I_PlannedOrder AccountAssignmentCategory Acct Assgmt Cat
Reservation Reservation Reservation
MRPController MRPController MRP Controller
ProductionSupervisor ProductionSupervisor Prodn Supervisor
PurchasingGroup _PurchasingDocument PurchasingGroup Purchasing Group
PurchasingOrganization PurchasingOrganization Purchasing Organization
FixedSupplier FixedSupplier Fixed Vendor
PurchasingDocument PurchasingDocument Purchasing Document
PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
QuotaArrangement QuotaArrangement Quota arr.
QuotaArrangementItem QuotaArrangementItem Quota arr. item
SupplierName _Supplier SupplierName Supplier Name
PlannedOrderIsFirm PlannedOrderIsFirm Firming Ind.
PlannedOrderIsConvertible PlannedOrderIsConvertible Special G/L Ind
PlannedOrderBOMIsFixed PlannedOrderBOMIsFixed Fixed Explosion
PlannedOrderCapacityIsDsptchd PlannedOrderCapacityIsDsptchd Cap. Dispatched
CapacityRequirement CapacityRequirement Id number
CapacityRequirementOrigin _CapacityRequirement CapacityRequirementOrigin
BillOfOperationsType _CapacityRequirement BillOfOperationsType Task List Type
BillOfOperationsGroup _CapacityRequirement BillOfOperationsGroup Group
BillOfOperations _CapacityRequirement BillOfOperations
LastScheduledDate _CapacityRequirement LastScheduledDate
ScheduledBasicEndDate _CapacityRequirement ScheduledBasicEndDate Sched. finish
ScheduledBasicEndTime _CapacityRequirement ScheduledBasicEndTime
ScheduledBasicStartDate _CapacityRequirement ScheduledBasicStartDate Sched. start
ScheduledBasicStartTime _CapacityRequirement ScheduledBasicStartTime
SchedulingType _CapacityRequirement SchedulingType
_PlannedOrderComponent _PlannedOrderComponent
_PlannedOrderCapacity _PlannedOrderCapacity

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 A_PlannedOrder.
-- 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: APLNDORD

CREATE VIEW A_PlannedOrder AS
SELECT
  PlannedOrder,
  I_PlannedOrder.PlannedOrderType AS PlannedOrderType,
  P_PlannedOrderProfileGet.PlannedOrderProfile AS PlannedOrderProfile,
  Material,
  _Material._Text[1: Language = 'E'].MaterialName AS MaterialName,
  ProductionPlant,
  MRPPlant,
  MRPArea,
  ProductionVersion,
  I_PlannedOrder.MaterialProcurementCategory AS MaterialProcurementCategory,
  I_PlannedOrder.MaterialProcurementType AS MaterialProcurementType,
  StorageLocation,
  BaseUnit,
  PlannedTotalQtyInBaseUnit AS TotalQuantity,
  PlannedScrapQtyInBaseUnit AS PlndOrderPlannedScrapQty,
  GoodsReceiptQtyInBaseUnit AS GoodsReceiptQty,
  QuantityWithdrawnInBaseUnit AS IssuedQuantity,
  PlndOrderPlannedStartDate,
  PlndOrderPlannedStartTime,
  PlndOrderPlannedEndDate,
  PlndOrderPlannedEndTime,
  PlannedOrderOpeningDate,
  LastChangeDateTime,
  ProductionStartDate,
  ProductionEndDate,
  SalesOrder,
  SalesOrderItem,
  Customer,
  WBSElementInternalID,
  cast( _WBSElement.WBSElement as rcpe_ps_posnr preserving type ) AS WBSElement,
  _WBSElement.WBSDescription AS WBSDescription,
  I_PlannedOrder.AccountAssignmentCategory AS AccountAssignmentCategory,
  Reservation,
  MRPController,
  ProductionSupervisor,
  _PurchasingDocument.PurchasingGroup AS PurchasingGroup,
  PurchasingOrganization,
  FixedSupplier,
  PurchasingDocument,
  PurchasingDocumentItem,
  QuotaArrangement,
  QuotaArrangementItem,
  _Supplier.SupplierName AS SupplierName,
  PlannedOrderIsFirm,
  PlannedOrderIsConvertible,
  PlannedOrderBOMIsFixed,
  PlannedOrderCapacityIsDsptchd,
  CapacityRequirement,
  _CapacityRequirement.CapacityRequirementOrigin AS CapacityRequirementOrigin,
  _CapacityRequirement.BillOfOperationsType AS BillOfOperationsType,
  _CapacityRequirement.BillOfOperationsGroup AS BillOfOperationsGroup,
  _CapacityRequirement.BillOfOperations AS BillOfOperations,
  _CapacityRequirement.LastScheduledDate AS LastScheduledDate,
  _CapacityRequirement.ScheduledBasicEndDate AS ScheduledBasicEndDate,
  _CapacityRequirement.ScheduledBasicEndTime AS ScheduledBasicEndTime,
  _CapacityRequirement.ScheduledBasicStartDate AS ScheduledBasicStartDate,
  _CapacityRequirement.ScheduledBasicStartTime AS ScheduledBasicStartTime,
  _CapacityRequirement.SchedulingType AS SchedulingType
FROM I_PlannedOrder
LEFT OUTER JOIN A_PlannedOrderComponent AS _PlannedOrderComponent ON PlannedOrder = _PlannedOrderComponent.PlannedOrder  -- association [0..*]
LEFT OUTER JOIN A_PlannedOrderCapacity AS _PlannedOrderCapacity ON PlannedOrder = _PlannedOrderCapacity.PlannedOrder  -- association [0..*]
LEFT OUTER JOIN E_PlannedOrder AS _Extension ON PlannedOrder = _Extension.PlannedOrder  -- association [1..1]
;