C_PurContrDrftForMngPurReqn
Purchase Contract Draft For PR
C_PurContrDrftForMngPurReqn is a Consumption CDS View that provides data about "Purchase Contract Draft For PR" in SAP S/4HANA. It reads from 1 data source (I_PurContrDrftForMngPurReqn) and exposes 20 fields with key field PurchaseContractDraftUUID. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurContrDrftForMngPurReqn | I_PurContrDrftForMngPurReqn | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_PurContrItmDrftForMngPurReqn | _PurContrItmDrftForMngPurReqn | $projection.PurchaseContractDraftUUID = _PurContrItmDrftForMngPurReqn.PurchaseContractDraftUUID |
| [1..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [1..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [0..1] | C_MM_SupplierValueHelp | _SupplierValueHelp | $projection.Supplier = _SupplierValueHelp.Supplier and $projection.CompanyCode = _SupplierValueHelp.CompanyCode |
| [1..1] | I_Purchasecontracttype_Vh | _Purchasecontracttype_Vh | $projection.PurchasingDocumentType = _Purchasecontracttype_Vh.PurchasingDocumentType |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPCDRAFTFORPR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Purchase Contract Draft For PR | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseContractDraftUUID | PurchaseContractDraftUUID | Key | |
| PurchaseContract | PurchaseContract | Purchasing Doc. | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| PurchaseContractTargetAmount | PurchaseContractTargetAmount | Target Value | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingGroupName | _PurchasingGroup | PurchasingGroupName | Purchasing Grp. Name | |
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingOrganizationName | _PurchasingOrganization | PurchasingOrganizationName | Purch. Org. Name | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| Supplier | Supplier | Supplier | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| SerialNumber | ||||
| _SupplierValueHelp | _SupplierValueHelp | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _PurContrItmDrftForMngPurReqn | _PurContrItmDrftForMngPurReqn | |||
| _Purchasecontracttype_Vh | _Purchasecontracttype_Vh |
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_PurContrDrftForMngPurReqn.
-- 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: CPCDRAFTFORPR
CREATE VIEW C_PurContrDrftForMngPurReqn AS
SELECT
PurchaseContractDraftUUID,
PurchaseContract,
DocumentCurrency,
PurchaseContractTargetAmount,
PurchasingDocumentType,
PurchasingGroup,
_PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
PurchasingOrganization,
_PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
CompanyCode,
Supplier,
SupplyingSupplier,
ValidityEndDate,
ValidityStartDate,
cast ('' as abap.char( 10 )) AS SerialNumber
FROM I_PurContrDrftForMngPurReqn
LEFT OUTER JOIN C_PurContrItmDrftForMngPurReqn AS _PurContrItmDrftForMngPurReqn ON PurchaseContractDraftUUID = _PurContrItmDrftForMngPurReqn.PurchaseContractDraftUUID -- 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 C_MM_SupplierValueHelp AS _SupplierValueHelp ON Supplier = _SupplierValueHelp.Supplier AND CompanyCode = _SupplierValueHelp.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Purchasecontracttype_Vh AS _Purchasecontracttype_Vh ON PurchasingDocumentType = _Purchasecontracttype_Vh.PurchasingDocumentType -- 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