P_WrkDistrPurReqn

DDL: P_WRKDISTRPURREQN SQL: PWRKPURREQN Type: view CONSUMPTION Package: ODATA_MM_PUR_WRKLOAD_REDIST

Purchase Requisition

P_WrkDistrPurReqn is a Consumption CDS View that provides data about "Purchase Requisition" in SAP S/4HANA. It reads from 1 data source (I_Purchaserequisitionitem) and exposes 11 fields with key fields PurchasingDocument, PurchasingDocumentItem. It has 2 associations to related views. Part of development package ODATA_MM_PUR_WRKLOAD_REDIST.

Data Sources (1)

SourceAliasJoin Type
I_Purchaserequisitionitem I_Purchaserequisitionitem from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_PurchasingObjectCategoryText _PurchasingObjectCategoryText $projection.PurchasingDocumentCategory = _PurchasingObjectCategoryText.PurchasingDocumentCategory and _PurchasingObjectCategoryText.Language = $session.system_language
[0..1] I_PurchasingDocumentTypeText _PurchasingDocumentTypeText $projection.PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory and $projection.PurchasingDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType and _PurchasingDocumentTypeText.Language = $session.system_language

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PWRKPURREQN view
AbapCatalog.compiler.compareFilter true view
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchaseRequisition Requisition
KEY PurchasingDocumentItem PurchaseRequisitionItem Requisn. item
PurchasingDocumentType PurchaseRequisitionType Order Type
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingGroupName _PurchasingGroup PurchasingGroupName Purchasing Grp. Name
CreationDate PurReqCreationDate Requisn Date
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName Purch. Org. Name
_PurchasingObjectCategoryText _PurchasingObjectCategoryText
_PurchasingDocumentTypeText _PurchasingDocumentTypeText

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_WrkDistrPurReqn.
-- 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: PWRKPURREQN

CREATE VIEW P_WrkDistrPurReqn AS
SELECT
  PurchaseRequisition AS PurchasingDocument,
  PurchaseRequisitionItem AS PurchasingDocumentItem,
  PurchaseRequisitionType AS PurchasingDocumentType,
  PurchasingDocumentCategory,
  PurchasingOrganization,
  PurchasingGroup,
  _PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
  PurReqCreationDate AS CreationDate,
  _PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName
FROM I_Purchaserequisitionitem
LEFT OUTER JOIN I_PurchasingObjectCategoryText AS _PurchasingObjectCategoryText ON PurchasingDocumentCategory = _PurchasingObjectCategoryText.PurchasingDocumentCategory AND _PurchasingObjectCategoryText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _PurchasingDocumentTypeText ON PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory AND PurchasingDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType AND _PurchasingDocumentTypeText.Language = $session.system_language  -- association [0..1]
;