C_PurchaseOrderSolution

DDL: C_PURCHASEORDERSOLUTION SQL: CPURCHORDERSOL Type: view CONSUMPTION Package: ODATA_PP_MRP

Purchase Order Solution

C_PurchaseOrderSolution is a Consumption CDS View that provides data about "Purchase Order Solution" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrder) and exposes 17 fields with key field PurchaseOrder. It has 1 association to related views. Part of development package ODATA_PP_MRP.

Data Sources (1)

SourceAliasJoin Type
I_PurchaseOrder PurchaseOrder from

Associations (1)

CardinalityTargetAliasCondition
[0..*] C_PurchaseOrderItemSolution _PurchaseOrderItem _PurchaseOrderItem.PurchaseOrder = $projection.PurchaseOrder

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName CPURCHORDERSOL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Purchase Order Solution view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey PurchaseOrder view
VDM.viewType #CONSUMPTION view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderType PurchaseOrderType PO Type
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
CompanyCode CompanyCode Receiver Company Code
Supplier Supplier Supplier
SupplyingPlant SupplyingPlant Supplying Plant
IsTransportationOrder
IsIncomplete
_PurchaseOrderItem _PurchaseOrderItem
_PurchaseOrderType _PurchaseOrderType
_CompanyCode _CompanyCode
_Supplier _Supplier
_PurchasingOrganization _PurchasingOrganization
_PurchasingGroup _PurchasingGroup
_SupplyingPlant _SupplyingPlant
_PurchaseOrderCalcFields _PurchaseOrderCalcFields

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 C_PurchaseOrderSolution.
-- 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: CPURCHORDERSOL

CREATE VIEW C_PurchaseOrderSolution AS
SELECT
  PurchaseOrder,
  PurchaseOrderType,
  PurchasingOrganization,
  PurchasingGroup,
  CompanyCode,
  Supplier,
  SupplyingPlant,
  cast( '' as boole_d ) AS IsTransportationOrder,
  cast( '' as boole_d ) AS IsIncomplete
FROM I_PurchaseOrder AS PurchaseOrder
LEFT OUTER JOIN C_PurchaseOrderItemSolution AS _PurchaseOrderItem ON _PurchaseOrderItem.PurchaseOrder = PurchaseOrder  -- association [0..*]
;