C_PurchaseReqnAssignedSoS

DDL: C_PURCHASEREQNASSIGNEDSOS SQL: CPURREQNASOS Type: view CONSUMPTION Package: ODATA_MM_PUR_REQ_MAINTAIN_PROF

Assigned Source of a Pur Requn Item

C_PurchaseReqnAssignedSoS is a Consumption CDS View that provides data about "Assigned Source of a Pur Requn Item" in SAP S/4HANA. It reads from 1 data source (T_PurchaseReqnItem) and exposes 11 fields with key fields PurchaseRequisitionItem, PurchaseRequisition. It has 1 association to related views. Part of development package ODATA_MM_PUR_REQ_MAINTAIN_PROF.

Data Sources (1)

SourceAliasJoin Type
T_PurchaseReqnItem T_PurchaseReqnItem from

Associations (1)

CardinalityTargetAliasCondition
[0..1] C_PurchaseReqnSourceType _PurchaseReqnSourceType _PurchaseReqnSourceType.DomainValue = $projection.PurchasingSourceType

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CPURREQNASOS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Assigned Source of a Pur Requn Item view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY PurchaseRequisitionItem PurchaseRequisitionItem Requisn. item
KEY PurchaseRequisition PurchaseRequisition Requisition
FixedSupplier FixedSupplier Fixed Supplier
SupplierName _Supplier SupplierName Supplier Name
Plant Plant Valuation Area
PlantName _Plant PlantName Plant Name
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
PurchaseRequisitionType PurchaseRequisitionType Order Type
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName Purch. Org. Name
_PurchaseReqnSourceType _PurchaseReqnSourceType

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_PurchaseReqnAssignedSoS.
-- 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: CPURREQNASOS

CREATE VIEW C_PurchaseReqnAssignedSoS AS
SELECT
  PurchaseRequisitionItem,
  PurchaseRequisition,
  FixedSupplier,
  _Supplier.SupplierName AS SupplierName,
  Plant,
  _Plant.PlantName AS PlantName,
  PurchasingOrganization,
  PurchasingGroup,
  PurchaseRequisitionType,
  _PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName
FROM T_PurchaseReqnItem
LEFT OUTER JOIN C_PurchaseReqnSourceType AS _PurchaseReqnSourceType ON _PurchaseReqnSourceType.DomainValue = PurchasingSourceType  -- association [0..1]
;