R_PurOrdExternalReference
PO External References
R_PurOrdExternalReference is a Basic CDS View that provides data about "PO External References" in SAP S/4HANA. It reads from 2 data sources (I_ExternalRefForPurgDoc, R_PurchaseOrder) and exposes 9 fields with key fields PurchaseOrder, LinkType, PurgExtRefSequenceNumber. Part of development package VDM_MM_PUR_PO.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ExternalRefForPurgDoc | ExtRef | from |
| R_PurchaseOrder | PO | inner |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | PO External References | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #BASIC | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | R_PurchaseOrder | PurchaseOrder | Purchasing Document |
| KEY | LinkType | I_ExternalRefForPurgDoc | LinkType | Link Types for Doc. |
| KEY | PurgExtRefSequenceNumber | I_ExternalRefForPurgDoc | SequenceNumber | Sort sequence |
| PurgDocExternalReference | I_ExternalRefForPurgDoc | PurgDocExternalReference | Ext. Reference ID | |
| PurgDocExternalSystem | I_ExternalRefForPurgDoc | PurgDocExternalSystem | Ext. Ref. System | |
| PurgDocExtReferenceNodeType | I_ExternalRefForPurgDoc | PurgDocExtReferenceNodeType | Ext. Doc. Type | |
| PurchaseOrderType | R_PurchaseOrder | PurchaseOrderType | PO Type | |
| PurchasingOrganization | R_PurchaseOrder | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | R_PurchaseOrder | PurchasingGroup | Purchasing Group |
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 R_PurOrdExternalReference.
-- 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.
CREATE VIEW R_PurOrdExternalReference AS
SELECT
PO.PurchaseOrder AS PurchaseOrder,
ExtRef.LinkType AS LinkType,
ExtRef.SequenceNumber AS PurgExtRefSequenceNumber,
ExtRef.PurgDocExternalReference AS PurgDocExternalReference,
ExtRef.PurgDocExternalSystem AS PurgDocExternalSystem,
ExtRef.PurgDocExtReferenceNodeType AS PurgDocExtReferenceNodeType,
PO.PurchaseOrderType AS PurchaseOrderType,
PO.PurchasingOrganization AS PurchasingOrganization,
PO.PurchasingGroup AS PurchasingGroup
FROM I_ExternalRefForPurgDoc AS ExtRef
INNER JOIN R_PurchaseOrder AS PO ON /* join condition not captured in parsed metadata */
;
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