C_PurchaseOrderDEX
Data Extraction for Purchase Order
C_PurchaseOrderDEX is a Consumption CDS View (Fact) that provides data about "Data Extraction for Purchase Order" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrderAPI01) and exposes 68 fields with key field PurchaseOrder. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseOrderAPI01 | I_PurchaseOrderAPI01 | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_PurchaseOrderItemDEX | _PurchaseOrderItem | $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder |
| [0..1] | E_PurchasingDocument | _HeaderExtension | $projection.PurchaseOrder = _HeaderExtension.PurchasingDocument |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Data Extraction for Purchase Order | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_FACT | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| Analytics.dataCategory | #FACT | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.technicalName | CMMPURORDDEX | view | |
| ObjectModel.sapObjectNodeType.name | PurchaseOrder | view | |
| ObjectModel.compositionRoot | true | view |
Fields (68)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| PurchaseOrderType | PurchaseOrderType | PO Type | ||
| PurchaseOrderSubtype | PurchaseOrderSubtype | Control | ||
| PurchasingDocumentOrigin | PurchasingDocumentOrigin | Status | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| Language | Language | Report Text Language | ||
| CorrespncExternalReference | CorrespncExternalReference | Your Reference | ||
| CorrespncInternalReference | CorrespncInternalReference | Our Reference | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| ReleaseIsNotCompleted | ReleaseIsNotCompleted | Subj.to Release | ||
| PurchasingCompletenessStatus | PurchasingCompletenessStatus | Incomplete | ||
| PurchasingProcessingStatus | PurchasingProcessingStatus | Proc. State | ||
| PurgReleaseSequenceStatus | PurgReleaseSequenceStatus | Release State | ||
| ReleaseCode | ReleaseCode | Release ind. | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| Supplier | Supplier | Supplier | ||
| ManualSupplierAddressID | ManualSupplierAddressID | Address Number | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Salesperson | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Telephone | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| SupplyingPlant | SupplyingPlant | Supplying Plant | ||
| InvoicingParty | InvoicingParty | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| SupplierQuotationExternalID | SupplierQuotationExternalID | Quotation | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| NetPaymentDays | NetPaymentDays | Net Pmt Terms Period | ||
| CashDiscount1Percent | CashDiscount1Percent | Disc. Percent 1 | ||
| CashDiscount2Percent | CashDiscount2Percent | Disc. Percent 2 | ||
| DownPaymentType | DownPaymentType | Down Payment | ||
| DownPaymentPercentageOfTotAmt | DownPaymentPercentageOfTotAmt | Down Payment % | ||
| DownPaymentAmount | DownPaymentAmount | Downpayment | ||
| DownPaymentDueDate | DownPaymentDueDate | Due Date for DP | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| IncotermsVersion | IncotermsVersion | Inco. Version | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| IsIntrastatReportingRelevant | IsIntrastatReportingRelevant | Intrastat rel. | ||
| IsIntrastatReportingExcluded | IsIntrastatReportingExcluded | exclude Intra | ||
| PricingDocument | PricingDocument | Document Condition | ||
| PricingProcedure | PricingProcedure | Procedure | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| ExchangeRateIsFixed | ExchangeRateIsFixed | Fixed Exch.Rate | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| TaxReturnCountry | TaxReturnCountry | Reporting C/R | ||
| VATRegistrationCountry | VATRegistrationCountry | CtryRgnSlsTxNo. | ||
| PurgReasonForDocCancellation | PurgReasonForDocCancellation | Reas. for Canc. | ||
| PurgReleaseTimeTotalAmount | PurgReleaseTimeTotalAmount | |||
| _PurchaseOrderItem | _PurchaseOrderItem | |||
| _CompanyCode | _CompanyCode | |||
| _PurchaseOrderType | _PurchaseOrderType | |||
| _Supplier | _Supplier | |||
| _SupplyingSupplier | _SupplyingSupplier | |||
| _InvoicingParty | _InvoicingParty | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _SupplyingPlant | _SupplyingPlant | |||
| _Language | _Language |
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_PurchaseOrderDEX.
-- 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 C_PurchaseOrderDEX AS
SELECT
PurchaseOrder,
PurchaseOrderType,
PurchaseOrderSubtype,
PurchasingDocumentOrigin,
CreatedByUser,
CreationDate,
PurchaseOrderDate,
Language,
CorrespncExternalReference,
CorrespncInternalReference,
PurchasingDocumentDeletionCode,
ReleaseIsNotCompleted,
PurchasingCompletenessStatus,
PurchasingProcessingStatus,
PurgReleaseSequenceStatus,
ReleaseCode,
CompanyCode,
PurchasingOrganization,
PurchasingGroup,
Supplier,
ManualSupplierAddressID,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
SupplyingSupplier,
SupplyingPlant,
InvoicingParty,
Customer,
SupplierQuotationExternalID,
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
DownPaymentType,
DownPaymentPercentageOfTotAmt,
DownPaymentAmount,
DownPaymentDueDate,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsVersion,
IncotermsLocation1,
IncotermsLocation2,
IsIntrastatReportingRelevant,
IsIntrastatReportingExcluded,
PricingDocument,
PricingProcedure,
DocumentCurrency,
ValidityStartDate,
ValidityEndDate,
ExchangeRate,
ExchangeRateIsFixed,
LastChangeDateTime,
TaxReturnCountry,
VATRegistrationCountry,
PurgReasonForDocCancellation,
PurgReleaseTimeTotalAmount
FROM I_PurchaseOrderAPI01
LEFT OUTER JOIN C_PurchaseOrderItemDEX AS _PurchaseOrderItem ON PurchaseOrder = _PurchaseOrderItem.PurchaseOrder -- association [0..*]
LEFT OUTER JOIN E_PurchasingDocument AS _HeaderExtension ON PurchaseOrder = _HeaderExtension.PurchasingDocument -- association [0..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