C_PurchaseReqnWorkItem
Edit and Approve Purchase Requisition
C_PurchaseReqnWorkItem is a Consumption CDS View that provides data about "Edit and Approve Purchase Requisition" in SAP S/4HANA. It reads from 1 data source (I_PurchaseReqnWorkItemTP) and exposes 28 fields with key fields WorkflowTaskInternalID, PurchaseRequisition. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseReqnWorkItemTP | I_PurchaseReqnWorkItemTP | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_WorkItemPurReqnHdrDetail | _WorkItemPurReqnHdrDetailTP | _WorkItemPurReqnHdrDetailTP.WorkflowTaskInternalID = $projection.WorkflowTaskInternalID and _WorkItemPurReqnHdrDetailTP.PurchaseRequisition = $projection.PurchaseRequisition |
| [1..1] | C_WorkItemPurReqnItemDetail | _WorkItemPurReqnItemDetailTP | _WorkItemPurReqnItemDetailTP.WorkflowTaskInternalID = $projection.WorkflowTaskInternalID and _WorkItemPurReqnItemDetailTP.PurchaseRequisition = $projection.PurchaseRequisition |
| [1..*] | C_WorkItemPurReqnHdrItemDetail | _WrkItmPurReqnHdrItemDetailTP | _WrkItmPurReqnHdrItemDetailTP.WorkflowTaskInternalID = $projection.WorkflowTaskInternalID and _WrkItmPurReqnHdrItemDetailTP.PurchaseRequisition = $projection.PurchaseRequisition |
| [1..1] | C_PurReqnItemDeliveryAddress | _PurReqnItemDeliveryAddress | _PurReqnItemDeliveryAddress.PurchaseRequisition = $projection.PurchaseRequisition and _PurReqnItemDeliveryAddress.PurchaseRequisitionItem = $projection.PurchaseRequisitionItem |
| [1..*] | C_PurReqnAcctAssignmentWrkItm | _PurReqnAcctAssgmtWrkItmTP | _PurReqnAcctAssgmtWrkItmTP.WorkflowTaskInternalID = $projection.WorkflowTaskInternalID and _PurReqnAcctAssgmtWrkItmTP.PurchaseRequisition = $projection.PurchaseRequisition |
| [0..*] | C_WrkItmPurRequisitionText | _WrkItmPurReqnPrTxtTP | _WrkItmPurReqnPrTxtTP.WorkflowTaskInternalID = $projection.WorkflowTaskInternalID and _WrkItmPurReqnPrTxtTP.PurchaseRequisition = $projection.PurchaseRequisition |
| [0..*] | C_WrkItmPurRequisitionHdrText | _WrkItmPurReqnHdrTxtTP | _WrkItmPurReqnHdrTxtTP.WorkflowTaskInternalID = $projection.WorkflowTaskInternalID and _WrkItmPurReqnHdrTxtTP.PurchaseRequisition = $projection.PurchaseRequisition |
Annotations (19)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPRWI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Edit and Approve Purchase Requisition | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.compositionRoot | true | view | |
| Search.searchable | true | view | |
| ObjectModel.updateEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.deleteEnabled | true | view | |
| UI.headerInfo.title.value | PurchaseRequisition | view | |
| UI.headerInfo.description.value | PurReqnDescription | view | |
| UI.headerInfo.typeImageUrl | /sap/bc/ui5_ui5/sap/mm_pr_compls1/images/purchaserequisitionitem.png | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkflowTaskInternalID | WorkflowTaskInternalID | Work Item ID | |
| KEY | PurchaseRequisition | PurchaseRequisition | Requisition | |
| PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | ||
| TechnicalWrkflwObjectType | TechnicalWrkflwObjectType | |||
| PurReqnDescription | _WorkItemPurReqnHdrDetailTP | PurReqnDescription | PurReqn Description | |
| PurReqnItmWrkflwApprvlIsActv | PurReqnItmWrkflwApprvlIsActv | |||
| PurReqnHdrWrkflwApprovalIsActv | PurReqnHdrWrkflwApprovalIsActv | |||
| PurReqnWrkflwIsChanged | PurReqnWrkflwIsChanged | |||
| PurReqnWrkflwIsRestartRqd | PurReqnWrkflwIsRestartRqd | |||
| IsEditable | ||||
| WorkflowScenarioDefinition | ||||
| PurReqnReworkIsAllowed | ||||
| AccountAssignmentIsAddable | AccountAssignmentIsAddable | |||
| WorkflowTaskRecipient | WorkflowTaskRecipient | |||
| NmbrOfPurReqnWrkItmAttachments | ||||
| NmbrOfPurReqnWorkItemNotes | ||||
| PurReqnIsLimitItemSupported | ||||
| PurReqnIsStandardItemSupported | ||||
| _TaskRecipient | _TaskRecipient | |||
| PurReqnApprovalIsNotAllowed | ||||
| PurchaseReqnItemUniqueID | _WorkItemPurReqnItemDetailTP | PurchaseReqnItemUniqueID | Purch. Doc. ID | |
| _WorkItemPurReqnHdrDetailTP | _WorkItemPurReqnHdrDetailTP | |||
| _WorkItemPurReqnItemDetailTP | _WorkItemPurReqnItemDetailTP | |||
| _WrkItmPurReqnHdrItemDetailTP | _WrkItmPurReqnHdrItemDetailTP | |||
| _PurReqnItemDeliveryAddress | _PurReqnItemDeliveryAddress | |||
| _PurReqnAcctAssgmtWrkItmTP | _PurReqnAcctAssgmtWrkItmTP | |||
| _WrkItmPurReqnPrTxtTP | _WrkItmPurReqnPrTxtTP | |||
| _WrkItmPurReqnHdrTxtTP | _WrkItmPurReqnHdrTxtTP |
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_PurchaseReqnWorkItem.
-- 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: CPRWI
CREATE VIEW C_PurchaseReqnWorkItem AS
SELECT
WorkflowTaskInternalID,
PurchaseRequisition,
PurchaseRequisitionItem,
TechnicalWrkflwObjectType,
_WorkItemPurReqnHdrDetailTP.PurReqnDescription AS PurReqnDescription,
PurReqnItmWrkflwApprvlIsActv,
PurReqnHdrWrkflwApprovalIsActv,
PurReqnWrkflwIsChanged,
PurReqnWrkflwIsRestartRqd,
cast ( ('') as boolean ) AS IsEditable,
cast ( '' as abap.char(10) ) AS WorkflowScenarioDefinition,
cast ( ('') as boolean ) AS PurReqnReworkIsAllowed,
AccountAssignmentIsAddable,
WorkflowTaskRecipient,
cast ( 0 as abap.int1 ) AS NmbrOfPurReqnWrkItmAttachments,
cast ( 0 as abap.int1 ) AS NmbrOfPurReqnWorkItemNotes,
cast ( ('') as boolean ) AS PurReqnIsLimitItemSupported,
cast ( ('') as boolean ) AS PurReqnIsStandardItemSupported,
cast ( ('') as boolean ) AS PurReqnApprovalIsNotAllowed,
_WorkItemPurReqnItemDetailTP.PurchaseReqnItemUniqueID AS PurchaseReqnItemUniqueID
FROM I_PurchaseReqnWorkItemTP
LEFT OUTER JOIN C_WorkItemPurReqnHdrDetail AS _WorkItemPurReqnHdrDetailTP ON _WorkItemPurReqnHdrDetailTP.WorkflowTaskInternalID = WorkflowTaskInternalID AND _WorkItemPurReqnHdrDetailTP.PurchaseRequisition = PurchaseRequisition -- association [1..1]
LEFT OUTER JOIN C_WorkItemPurReqnItemDetail AS _WorkItemPurReqnItemDetailTP ON _WorkItemPurReqnItemDetailTP.WorkflowTaskInternalID = WorkflowTaskInternalID AND _WorkItemPurReqnItemDetailTP.PurchaseRequisition = PurchaseRequisition -- association [1..1]
LEFT OUTER JOIN C_WorkItemPurReqnHdrItemDetail AS _WrkItmPurReqnHdrItemDetailTP ON _WrkItmPurReqnHdrItemDetailTP.WorkflowTaskInternalID = WorkflowTaskInternalID AND _WrkItmPurReqnHdrItemDetailTP.PurchaseRequisition = PurchaseRequisition -- association [1..*]
LEFT OUTER JOIN C_PurReqnItemDeliveryAddress AS _PurReqnItemDeliveryAddress ON _PurReqnItemDeliveryAddress.PurchaseRequisition = PurchaseRequisition AND _PurReqnItemDeliveryAddress.PurchaseRequisitionItem = PurchaseRequisitionItem -- association [1..1]
LEFT OUTER JOIN C_PurReqnAcctAssignmentWrkItm AS _PurReqnAcctAssgmtWrkItmTP ON _PurReqnAcctAssgmtWrkItmTP.WorkflowTaskInternalID = WorkflowTaskInternalID AND _PurReqnAcctAssgmtWrkItmTP.PurchaseRequisition = PurchaseRequisition -- association [1..*]
LEFT OUTER JOIN C_WrkItmPurRequisitionText AS _WrkItmPurReqnPrTxtTP ON _WrkItmPurReqnPrTxtTP.WorkflowTaskInternalID = WorkflowTaskInternalID AND _WrkItmPurReqnPrTxtTP.PurchaseRequisition = PurchaseRequisition -- association [0..*]
LEFT OUTER JOIN C_WrkItmPurRequisitionHdrText AS _WrkItmPurReqnHdrTxtTP ON _WrkItmPurReqnHdrTxtTP.WorkflowTaskInternalID = WorkflowTaskInternalID AND _WrkItmPurReqnHdrTxtTP.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