C_PurOrderDraftForMngPurReqn
PO Draft For Purchase Requisition
C_PurOrderDraftForMngPurReqn is a Consumption CDS View that provides data about "PO Draft For Purchase Requisition" in SAP S/4HANA. It reads from 2 data sources (I_PurchasingDocumentTypeText, I_PurOrderDraftForMngPurReqn) and exposes 23 fields with key field PurchaseOrderDraftUUID. It has 5 associations to related views. Part of development package ODATA_MM_PUR_PR_PROCESS.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchasingDocumentTypeText | _PurchasingDocumentTypeText | left_outer |
| I_PurOrderDraftForMngPurReqn | _PurOrderDraftForMngPurReqn | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_PurOrderItmDrftForMngPurReqn | _PurOrderItmDrftForMngPurReqn | $projection.PurchaseOrderDraftUUID = _PurOrderItmDrftForMngPurReqn.PurchaseOrderDraftUUID |
| [1..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [1..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [1..1] | C_PurchaseOrderTypeValueHelp | _PurchaseOrderTypeValueHelp | $projection.PurchaseOrderType = _PurchaseOrderTypeValueHelp.PurchaseOrderType |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPODRAFTFORPR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | PO Draft For Purchase Requisition | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrderDraftUUID | PurchaseOrderDraftUUID | Draft Document ID | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| PurchaseOrderNetPriceAmount | PurchaseOrderNetPriceAmount | |||
| PurchasingDocument | PurchasingDocument | Purchasing Document | ||
| PurchasingDocumentTypeName | I_PurchasingDocumentTypeText | PurchasingDocumentTypeName | Description | |
| PurchaseOrderType | PurchaseOrderType | PO Type | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingGroupName | _PurchasingGroup | PurchasingGroupName | Purchasing Grp. Name | |
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingOrganizationName | _PurchasingOrganization | PurchasingOrganizationName | Purch. Org. Name | |
| Supplier | Supplier | Supplier | ||
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| SupplierAccount | SupplierAccount | Supplier | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| SerialNumber | ||||
| _PurOrderItmDrftForMngPurReqn | _PurOrderItmDrftForMngPurReqn | |||
| _PurchaseOrderTypeValueHelp | _PurchaseOrderTypeValueHelp |
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_PurOrderDraftForMngPurReqn.
-- 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: CPODRAFTFORPR
CREATE VIEW C_PurOrderDraftForMngPurReqn AS
SELECT
PurchaseOrderDraftUUID,
CompanyCode,
CreatedByUser,
CreationDate,
DocumentCurrency,
IncotermsClassification,
IncotermsTransferLocation,
PaymentTerms,
PurchaseOrderNetPriceAmount,
PurchasingDocument,
_PurchasingDocumentTypeText.PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
PurchaseOrderType,
PurchasingGroup,
_PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
PurchasingOrganization,
_PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
Supplier,
_Supplier.SupplierName AS SupplierName,
SupplierAccount,
SupplyingSupplier,
cast ('' as abap.char( 10 )) AS SerialNumber
FROM I_PurOrderDraftForMngPurReqn AS _PurOrderDraftForMngPurReqn
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _PurchasingDocumentTypeText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_PurOrderItmDrftForMngPurReqn AS _PurOrderItmDrftForMngPurReqn ON PurchaseOrderDraftUUID = _PurOrderItmDrftForMngPurReqn.PurchaseOrderDraftUUID -- association [1..*]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [1..1]
LEFT OUTER JOIN C_PurchaseOrderTypeValueHelp AS _PurchaseOrderTypeValueHelp ON PurchaseOrderType = _PurchaseOrderTypeValueHelp.PurchaseOrderType -- association [1..1]
;
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