C_PurReqnFllwOnDocDraftHeader
C-View for Header of Follow-on Document
C_PurReqnFllwOnDocDraftHeader is a Consumption CDS View that provides data about "C-View for Header of Follow-on Document" in SAP S/4HANA. It reads from 1 data source (I_PurReqnFllwOnDocDraftHeader) and exposes 25 fields with key field PurReqnFllwOnDocDrftHdrUUID. It has 9 associations to related views. It is exposed through 1 OData service (ASQL_F3486). Part of development package ODATA_MM_PUR_EXT_PR.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurReqnFllwOnDocDraftHeader | I_PurReqnFllwOnDocDraftHeader | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_PurReqnFllwOnDocDraftItem | _PurReqnFllwOnDocDraftItem | I_PurReqnFllwOnDocDraftHeader.PurReqnFllwOnDocDrftHdrUUID = _PurReqnFllwOnDocDraftItem.PurReqnFllwOnDocDrftHdrUUID |
| [1..1] | C_ProcmtHubPurgGroupVH | _ProcmtHubPurgGroupVH | I_PurReqnFllwOnDocDraftHeader.ProcmtHubPurchasingGroup = _ProcmtHubPurgGroupVH.ProcmtHubPurchasingGroup and I_PurReqnFllwOnDocDraftHeader.ProcurementHubSourceSystem = _ProcmtHubPurgGroupVH.ProcurementHubSourceSystem |
| [1..1] | C_ProcmtHubSupplierVH | _ProcmtHubSupplierVH | I_PurReqnFllwOnDocDraftHeader.ProcurementHubSourceSystem = _ProcmtHubSupplierVH.ProcurementHubSourceSystem and I_PurReqnFllwOnDocDraftHeader.ProcmtHubFixedSupplier = _ProcmtHubSupplierVH.ProcmtHubFixedSupplier and I_PurReqnFllwOnDocDraftHeader.ProcmtHubPurchasingOrg = _ProcmtHubSupplierVH.ProcmtHubPurchasingOrg and I_PurReqnFllwOnDocDraftHeader.ProcmtHubCompanyCode = _ProcmtHubSupplierVH.ProcmtHubCompanyCode |
| [1..1] | C_ProcmtHubPurgOrgVH | _ProcmtHubPurgOrgVH | I_PurReqnFllwOnDocDraftHeader.ProcurementHubSourceSystem = _ProcmtHubPurgOrgVH.ProcurementHubSourceSystem and I_PurReqnFllwOnDocDraftHeader.ProcmtHubPurchasingOrg = _ProcmtHubPurgOrgVH.ProcmtHubPurchasingOrg |
| [1..1] | C_ProcmtHubCompanyCodeVH | _ProcmtHubCompanyCodeVH | I_PurReqnFllwOnDocDraftHeader.ProcurementHubSourceSystem = _ProcmtHubCompanyCodeVH.ProcurementHubSourceSystem and I_PurReqnFllwOnDocDraftHeader.ProcmtHubPurchasingOrg = _ProcmtHubCompanyCodeVH.ProcmtHubCompanyCode |
| [1..1] | I_BackendSourceSystem | _BackendSourceSystem | I_PurReqnFllwOnDocDraftHeader.ProcurementHubSourceSystem = _BackendSourceSystem.ProcurementHubSourceSystem |
| [0..1] | C_ProcmtHubIncotermsClsfctnVH | _ProcmtHubIncotermsClsfctnVH | _ProcmtHubIncotermsClsfctnVH.IncotermsClassification = $projection.ProcmtHubIncotermsClassfctn and _ProcmtHubIncotermsClsfctnVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem |
| [0..1] | C_ProcmtHubPurOrdDocTypeVH | _ProcmtHubDocumentTypeVH | _ProcmtHubDocumentTypeVH.ExtSourceSystem = $projection.ProcurementHubSourceSystem and _ProcmtHubDocumentTypeVH.PurchasingDocumentType = $projection.ProcmtHubPurDocumentType |
| [0..1] | C_ProcurementHubPaymentTermsVH | _ProcurementHubPaymentTermsVH | _ProcurementHubPaymentTermsVH.PaymentTerms = $projection.ProcmtHubPaymentTerms and _ProcurementHubPaymentTermsVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPURREQNFLLWH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | C-View for Header of Follow-on Document | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.updateEnabled | true | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F3486 | ASQL_F3486 | C2 | NOT_RELEASED |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurReqnFllwOnDocDrftHdrUUID | PurReqnFllwOnDocDrftHdrUUID | Key | |
| ProcurementHubSourceSystem | ProcurementHubSourceSystem | Connected System ID | ||
| ProcurementHubSourceSystemName | _BackendSourceSystem | ProcurementHubSourceSystemName | Connected Sys Name | |
| ProcmtHubFixedSupplier | ProcmtHubFixedSupplier | Supplier | ||
| ProcmtHubSupplierName | _ProcmtHubSupplierVH | ProcmtHubSupplierName | ||
| ProcmtHubCompanyCode | ProcmtHubCompanyCode | Company Code | ||
| ProcmtHubCompanyCodeName | _ProcmtHubCompanyCodeVH | ProcmtHubCompanyCodeName | ||
| ProcmtHubPurchasingGroup | ProcmtHubPurchasingGroup | Purch. Group | ||
| PurchasingGroupName | _ProcmtHubPurgGroupVH | PurchasingGroupName | Purchasing Grp. Name | |
| ProcmtHubPurchasingOrg | ProcmtHubPurchasingOrg | Purchasing Org. | ||
| ProcmtHubPurgOrgName | _ProcmtHubPurgOrgVH | ProcmtHubPurgOrgName | ||
| CreatedByUser | CreatedByUser | User Name | ||
| ProcmtHubPurDocumentType | ProcmtHubPurDocumentType | Document Type | ||
| ProcmtHubDocumentCurrency | ProcmtHubDocumentCurrency | Currency Key | ||
| ProcmtHubPaymentTerms | ProcmtHubPaymentTerms | Pyt Terms | ||
| ProcmtHubIncotermsClassfctn | ProcmtHubIncotermsClassfctn | Incoterms | ||
| ProcmtHubIncotermsLocation1 | ProcmtHubIncotermsLocation1 | Inco. Location1 | ||
| SuplrIsDsbldForPurReqnGrouping | ||||
| _PurReqnFllwOnDocDraftItem | _PurReqnFllwOnDocDraftItem | |||
| _ProcmtHubIncotermsClsfctnVH | _ProcmtHubIncotermsClsfctnVH | |||
| _ProcmtHubDocumentTypeVH | _ProcmtHubDocumentTypeVH | |||
| _ProcurementHubPaymentTermsVH | _ProcurementHubPaymentTermsVH | |||
| _ProcmtHubSupplierVH | _ProcmtHubSupplierVH | |||
| _ProcmtHubPurgOrgVH | _ProcmtHubPurgOrgVH | |||
| _ProcmtHubCompanyCodeVH | _ProcmtHubCompanyCodeVH |
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_PurReqnFllwOnDocDraftHeader.
-- 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: CPURREQNFLLWH
CREATE VIEW C_PurReqnFllwOnDocDraftHeader AS
SELECT
PurReqnFllwOnDocDrftHdrUUID,
ProcurementHubSourceSystem,
_BackendSourceSystem.ProcurementHubSourceSystemName AS ProcurementHubSourceSystemName,
ProcmtHubFixedSupplier,
_ProcmtHubSupplierVH.ProcmtHubSupplierName AS ProcmtHubSupplierName,
ProcmtHubCompanyCode,
_ProcmtHubCompanyCodeVH.ProcmtHubCompanyCodeName AS ProcmtHubCompanyCodeName,
ProcmtHubPurchasingGroup,
_ProcmtHubPurgGroupVH.PurchasingGroupName AS PurchasingGroupName,
ProcmtHubPurchasingOrg,
_ProcmtHubPurgOrgVH.ProcmtHubPurgOrgName AS ProcmtHubPurgOrgName,
CreatedByUser,
ProcmtHubPurDocumentType,
ProcmtHubDocumentCurrency,
ProcmtHubPaymentTerms,
ProcmtHubIncotermsClassfctn,
ProcmtHubIncotermsLocation1,
cast ('' as boole_d ) AS SuplrIsDsbldForPurReqnGrouping
FROM I_PurReqnFllwOnDocDraftHeader
LEFT OUTER JOIN C_PurReqnFllwOnDocDraftItem AS _PurReqnFllwOnDocDraftItem ON I_PurReqnFllwOnDocDraftHeader.PurReqnFllwOnDocDrftHdrUUID = _PurReqnFllwOnDocDraftItem.PurReqnFllwOnDocDrftHdrUUID -- association [1..*]
LEFT OUTER JOIN C_ProcmtHubPurgGroupVH AS _ProcmtHubPurgGroupVH ON I_PurReqnFllwOnDocDraftHeader.ProcmtHubPurchasingGroup = _ProcmtHubPurgGroupVH.ProcmtHubPurchasingGroup AND I_PurReqnFllwOnDocDraftHeader.ProcurementHubSourceSystem = _ProcmtHubPurgGroupVH.ProcurementHubSourceSystem -- association [1..1]
LEFT OUTER JOIN C_ProcmtHubSupplierVH AS _ProcmtHubSupplierVH ON I_PurReqnFllwOnDocDraftHeader.ProcurementHubSourceSystem = _ProcmtHubSupplierVH.ProcurementHubSourceSystem AND I_PurReqnFllwOnDocDraftHeader.ProcmtHubFixedSupplier = _ProcmtHubSupplierVH.ProcmtHubFixedSupplier AND I_PurReqnFllwOnDocDraftHeader.ProcmtHubPurchasingOrg = _ProcmtHubSupplierVH.ProcmtHubPurchasingOrg AND I_PurReqnFllwOnDocDraftHeader.ProcmtHubCompanyCode = _ProcmtHubSupplierVH.ProcmtHubCompanyCode -- association [1..1]
LEFT OUTER JOIN C_ProcmtHubPurgOrgVH AS _ProcmtHubPurgOrgVH ON I_PurReqnFllwOnDocDraftHeader.ProcurementHubSourceSystem = _ProcmtHubPurgOrgVH.ProcurementHubSourceSystem AND I_PurReqnFllwOnDocDraftHeader.ProcmtHubPurchasingOrg = _ProcmtHubPurgOrgVH.ProcmtHubPurchasingOrg -- association [1..1]
LEFT OUTER JOIN C_ProcmtHubCompanyCodeVH AS _ProcmtHubCompanyCodeVH ON I_PurReqnFllwOnDocDraftHeader.ProcurementHubSourceSystem = _ProcmtHubCompanyCodeVH.ProcurementHubSourceSystem AND I_PurReqnFllwOnDocDraftHeader.ProcmtHubPurchasingOrg = _ProcmtHubCompanyCodeVH.ProcmtHubCompanyCode -- association [1..1]
LEFT OUTER JOIN I_BackendSourceSystem AS _BackendSourceSystem ON I_PurReqnFllwOnDocDraftHeader.ProcurementHubSourceSystem = _BackendSourceSystem.ProcurementHubSourceSystem -- association [1..1]
LEFT OUTER JOIN C_ProcmtHubIncotermsClsfctnVH AS _ProcmtHubIncotermsClsfctnVH ON _ProcmtHubIncotermsClsfctnVH.IncotermsClassification = ProcmtHubIncotermsClassfctn AND _ProcmtHubIncotermsClsfctnVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubPurOrdDocTypeVH AS _ProcmtHubDocumentTypeVH ON _ProcmtHubDocumentTypeVH.ExtSourceSystem = ProcurementHubSourceSystem AND _ProcmtHubDocumentTypeVH.PurchasingDocumentType = ProcmtHubPurDocumentType -- association [0..1]
LEFT OUTER JOIN C_ProcurementHubPaymentTermsVH AS _ProcurementHubPaymentTermsVH ON _ProcurementHubPaymentTermsVH.PaymentTerms = ProcmtHubPaymentTerms AND _ProcurementHubPaymentTermsVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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