C_PurchaseReqnHeader
Purchase Reqn Consumption Header View
C_PurchaseReqnHeader is a Consumption CDS View that provides data about "Purchase Reqn Consumption Header View" in SAP S/4HANA. It reads from 1 data source (T_PurchaseReqn) and exposes 43 fields with key field PurchaseRequisition. It has 5 associations to related views. Part of development package ODATA_MM_PUR_REQ_MAINTAIN_PROF.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| T_PurchaseReqn | Document | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_PurchaseReqnItem | _PurchaseReqnItem | _PurchaseReqnItem.PurchaseRequisition = $projection.PurchaseRequisition |
| [0..*] | C_PurchaseReqnCommitment | _PurchaseReqnCommitment | _PurchaseReqnCommitment.PurchaseRequisition = $projection.PurchaseRequisition |
| [0..1] | R_PurchaseReqnRwrkComments | _PurchaseReqnRwrkComments | _PurchaseReqnRwrkComments.PurchaseRequisition = '' and _PurchaseReqnRwrkComments.PurchaseRequisition <> '' |
| [1..*] | C_PurchaseReqnItemHierTP | _PurchaseReqnHierItem | _PurchaseReqnHierItem.PurchaseRequisition = $projection.PurchaseRequisition |
| [0..*] | C_PurchaseReqnHeaderNotes | _PurchaseReqnHeaderNotes | _PurchaseReqnHeaderNotes.PurchaseRequisition = $projection.PurchaseRequisition |
Annotations (22)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPURREQN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Purchase Reqn Consumption Header View | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.deleteEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.updateEnabled | true | view | |
| UI.headerInfo.typeName | Purchase Requisition | view | |
| UI.headerInfo.typeNamePlural | Purchase Requisitions | view | |
| UI.headerInfo.title.value | PurchaseRequisitionForEdit | view | |
| UI.headerInfo.description.value | PurReqnDescription | view | |
| UI.headerInfo.typeImageUrl | /sap/bc/ui5_ui5/sap/mm_ppr_maints1/images/PurchaseReqn.jpg | view | |
| Search.searchable | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Consumption.semanticObject | PurchaseRequisition | view |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseRequisition | T_PurchaseReqn | PurchaseRequisition | Purchase Requisition Number |
| PurchaseRequisitionForEdit | T_PurchaseReqn | PurchaseRequisitionForEdit | Purch.Reqn. | |
| PurchaseRequisitionType | T_PurchaseReqn | PurchaseRequisitionType | Order Type | |
| PurchasingDocumentTypeName | ||||
| PurReqnDescription | T_PurchaseReqn | PurReqnDescription | Purchase Requisition Description | |
| PurReqnDisplayDescription | Purchase Requisition Description | |||
| SourceDetermination | T_PurchaseReqn | SourceDetermination | Determ. Source | |
| NumberOfItems | Number of Items | |||
| PurchasingDocumentSubtype | T_PurchaseReqn | PurchasingDocumentSubtype | Control | |
| LastChangeDateTime | T_PurchaseReqn | LastChangeDateTime | Timestamp | |
| PurReqnHasAdvncdUsrInterface | Is Purchase Requisition Advanced | |||
| TotalNetAmount | Total Value | |||
| Currency | Currency | |||
| PurReqnLifeCycleStatus | Status | |||
| PurchaseConfStatusCriticality | Status Criticality | |||
| PurReqnLifeCycleStatusName | Status | |||
| PurReqnIsItemCrtnSupported | ||||
| PurReqnIsLimitItemSupported | ||||
| PurReqnIsStandardItemSupported | ||||
| PurReqnOrigin | Origin | |||
| PurReqnOriginDesc | Origin | |||
| WorkflowScenarioDefinition | ||||
| IsPurReqnOvrlRel | ||||
| PurReqnHasCommitmentItem | ||||
| PurReqnPriceIsHidden | ||||
| PurReqnIsApplicableForRework | ||||
| PurReqnApproverCommentText | _PurchaseReqnRwrkComments | PurReqnApproverCommentText | ||
| PurReqnReworkCommentText | T_PurchaseReqn | PurReqnReworkCommentText | Note Text | |
| PurReqnHdrCurrencySourceDesc | Header Source Currency Description | |||
| PurchasingItemHasHierarchy | ||||
| PurgDocItemHasHierForEdit | PurgDocItemHasHierForEdit | Checkbox | ||
| SrvcProcmtItmHierIsEnbld | ||||
| MaterialGroup | ||||
| MRPController | ||||
| PurchasingGroup | ||||
| GLAccount | ||||
| CostCenter | ||||
| CreatedByUser | ||||
| ModelProductSpecification | MPS ID | |||
| _PurchaseReqnItem | _PurchaseReqnItem | |||
| _PurchaseReqnHierItem | _PurchaseReqnHierItem | |||
| _PurchaseReqnHeaderNotes | _PurchaseReqnHeaderNotes | |||
| _PurchaseReqnCommitment | _PurchaseReqnCommitment |
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_PurchaseReqnHeader.
-- 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: CPURREQN
CREATE VIEW C_PurchaseReqnHeader AS
SELECT
Document.PurchaseRequisition AS PurchaseRequisition,
Document.PurchaseRequisitionForEdit AS PurchaseRequisitionForEdit,
Document.PurchaseRequisitionType AS PurchaseRequisitionType,
cast('' as abap.char( 20 )) AS PurchasingDocumentTypeName,
Document.PurReqnDescription AS PurReqnDescription,
cast('' as abap.char( 40 )) AS PurReqnDisplayDescription,
Document.SourceDetermination AS SourceDetermination,
cast(0 as abap.int8 ) AS NumberOfItems,
Document.PurchasingDocumentSubtype AS PurchasingDocumentSubtype,
Document.LastChangeDateTime AS LastChangeDateTime,
cast('' as boolean) AS PurReqnHasAdvncdUsrInterface,
cast ( ('00') as abap.curr(15,2) ) AS TotalNetAmount,
cast ( ('') as abap.cuky( 5 ) ) AS Currency,
cast( '' as abap.char( 2 ) ) AS PurReqnLifeCycleStatus,
cast( '' as abap.char( 2 ) ) AS PurchaseConfStatusCriticality,
cast( '' as abap.char( 60 ) ) AS PurReqnLifeCycleStatusName,
cast( '' as xfeld ) AS PurReqnIsItemCrtnSupported,
cast( '' as xfeld ) AS PurReqnIsLimitItemSupported,
cast( '' as xfeld ) AS PurReqnIsStandardItemSupported,
cast ( '' as estkz preserving type ) AS PurReqnOrigin,
cast ( '' as abap.char( 60 ) ) AS PurReqnOriginDesc,
cast ( '' as abap.char(10) ) AS WorkflowScenarioDefinition,
cast( '' as xfeld ) AS IsPurReqnOvrlRel,
cast( '' as xfeld ) AS PurReqnHasCommitmentItem,
cast( '' as xfeld ) AS PurReqnPriceIsHidden,
cast( '' as mmpur_req_d_pr_rework_ind ) AS PurReqnIsApplicableForRework,
_PurchaseReqnRwrkComments.PurReqnApproverCommentText AS PurReqnApproverCommentText,
Document.PurReqnReworkCommentText AS PurReqnReworkCommentText,
cast ( '' as abap.char( 60 ) ) AS PurReqnHdrCurrencySourceDesc,
cast( '' as mmpur_item_hier_exists ) AS PurchasingItemHasHierarchy,
PurgDocItemHasHierForEdit,
cast ('' as boolean) AS SrvcProcmtItmHierIsEnbld,
cast( ' ' as matkl preserving type ) AS MaterialGroup,
cast( ' ' as dispo preserving type ) AS MRPController,
cast( ' ' as ekgrp preserving type ) AS PurchasingGroup,
cast( ' ' as saknr preserving type ) AS GLAccount,
cast( ' ' as kostl preserving type ) AS CostCenter,
cast( ' ' as ernam preserving type ) AS CreatedByUser,
cast( ' ' as mmpur_mps_id ) AS ModelProductSpecification
FROM T_PurchaseReqn AS Document
LEFT OUTER JOIN C_PurchaseReqnItem AS _PurchaseReqnItem ON _PurchaseReqnItem.PurchaseRequisition = PurchaseRequisition -- association [1..*]
LEFT OUTER JOIN C_PurchaseReqnCommitment AS _PurchaseReqnCommitment ON _PurchaseReqnCommitment.PurchaseRequisition = PurchaseRequisition -- association [0..*]
LEFT OUTER JOIN R_PurchaseReqnRwrkComments AS _PurchaseReqnRwrkComments ON _PurchaseReqnRwrkComments.PurchaseRequisition = '' AND _PurchaseReqnRwrkComments.PurchaseRequisition <> '' -- association [0..1]
LEFT OUTER JOIN C_PurchaseReqnItemHierTP AS _PurchaseReqnHierItem ON _PurchaseReqnHierItem.PurchaseRequisition = PurchaseRequisition -- association [1..*]
LEFT OUTER JOIN C_PurchaseReqnHeaderNotes AS _PurchaseReqnHeaderNotes ON _PurchaseReqnHeaderNotes.PurchaseRequisition = PurchaseRequisition -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA