I_PurchaseOrder
Purchase Order
I_PurchaseOrder is a Basic CDS View that provides data about "Purchase Order" in SAP S/4HANA. It reads from 1 data source (R_PurchasingDocument) and exposes 81 fields with key field PurchaseOrder. It has 3 associations to related views. It is exposed through 1 OData service (ASQL_F2593). Part of development package VDM_MM_PUR_PO.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_PurchasingDocument | R_PurchasingDocument | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PurchasingDocumentType | _PurchaseOrderType | _PurchaseOrderType.PurchasingDocumentCategory = 'F' and _PurchaseOrderType.PurchasingDocumentType = $projection.PurchaseOrderType |
| [0..*] | I_PurchaseOrderItem | _PurchaseOrderItem | $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder |
| [1..1] | I_PurchaseOrderCalcFields | _PurchaseOrderCalcFields | $projection.PurchaseOrder = _PurchaseOrderCalcFields.PurchaseOrder |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Purchase Order | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IMMPURCHASEORDER | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.semanticKey | PurchaseOrder | view | |
| ObjectModel.representativeKey | PurchaseOrder | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2593 | ASQL_F2593 | C2 | NOT_RELEASED |
Fields (81)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | Purchasing Document | ||
| PurchaseOrderType | RFQ Type | |||
| PurchaseOrderSubtype | PurchasingDocumentSubtype | Control | ||
| PurchasingDocumentOrigin | PurchasingDocumentOrigin | Status | ||
| PurchasingDocumentIsAged | PurchasingDocumentIsAged | Document aged | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| PurchaseOrderDate | PO Date | |||
| Language | Language | Report Text Language | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| ReleaseIsNotCompleted | ReleaseIsNotCompleted | Subj.to Release | ||
| PurchasingCompletenessStatus | PurchasingCompletenessStatus | Incomplete | ||
| PurchasingProcessingStatus | PurchasingProcessingStatus | Proc. State | ||
| PurgReleaseSequenceStatus | PurgReleaseSequenceStatus | Release State | ||
| ReleaseCode | ReleaseCode | Release ind. | ||
| PurchasingReleaseStrategy | PurchasingReleaseStrategy | Rel. Strategy | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| Supplier | Supplier | Supplier | ||
| ManualSupplierAddressID | ManualSupplierAddressID | Address Number | ||
| SupplierAddressID | SupplierAddressID | Address Number | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Salesperson | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Telephone | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| SupplyingPlant | SupplyingPlant | Supplying Plant | ||
| InvoicingParty | InvoicingParty | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| CorrespncExternalReference | CorrespncExternalReference | Your Reference | ||
| CorrespncInternalReference | CorrespncInternalReference | Our Reference | ||
| PurchaseContract | PurchaseContract | Purchasing Doc. | ||
| RequestForQuotation | RequestForQuotation | RFQ | ||
| 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 | ||
| PurchasingDocumentCondition | 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 | ||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | ||
| TaxReturnCountry | TaxReturnCountry | Reporting C/R | ||
| VATRegistrationCountry | VATRegistrationCountry | CtryRgnSlsTxNo. | ||
| PurgReasonForDocCancellation | PurgReasonForDocCancellation | Reas. for Canc. | ||
| PurgReleaseTimeTotalAmount | PurgReleaseTimeTotalAmount | Tot. val. rel. | ||
| _PurchaseOrderItem | _PurchaseOrderItem | |||
| _PurchaseOrderType | _PurchaseOrderType | |||
| _CompanyCode | _CompanyCode | |||
| _CreatedByUser | _CreatedByUser | |||
| _Supplier | _Supplier | |||
| _SupplyingSupplier | _SupplyingSupplier | |||
| _InvoicingParty | _InvoicingParty | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _SupplyingPlant | _SupplyingPlant | |||
| _PaymentTerms | _PaymentTerms | |||
| _SupplierAddress | _SupplierAddress | |||
| _SupplierAddress_2 | _SupplierAddress_2 | |||
| _Language | _Language | |||
| _PurchaseOrderCalcFields | _PurchaseOrderCalcFields |
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 I_PurchaseOrder.
-- 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: IMMPURCHASEORDER
CREATE VIEW I_PurchaseOrder AS
SELECT
cast (PurchasingDocument as vdm_purchaseorder preserving type) AS PurchaseOrder,
cast (PurchasingDocumentType as mm_purchaseordertype preserving type ) AS PurchaseOrderType,
PurchasingDocumentSubtype AS PurchaseOrderSubtype,
PurchasingDocumentOrigin,
PurchasingDocumentIsAged,
CreatedByUser,
CreationDate,
cast (PurchasingDocumentOrderDate as bedat preserving type) AS PurchaseOrderDate,
Language,
PurchasingDocumentDeletionCode,
ReleaseIsNotCompleted,
PurchasingCompletenessStatus,
PurchasingProcessingStatus,
PurgReleaseSequenceStatus,
ReleaseCode,
PurchasingReleaseStrategy,
CompanyCode,
PurchasingOrganization,
PurchasingGroup,
Supplier,
ManualSupplierAddressID,
SupplierAddressID,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
SupplyingSupplier,
SupplyingPlant,
InvoicingParty,
Customer,
CorrespncExternalReference,
CorrespncInternalReference,
PurchaseContract,
RequestForQuotation,
SupplierQuotationExternalID,
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
DownPaymentType,
DownPaymentPercentageOfTotAmt,
DownPaymentAmount,
DownPaymentDueDate,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsVersion,
IncotermsLocation1,
IncotermsLocation2,
IsIntrastatReportingRelevant,
IsIntrastatReportingExcluded,
PricingDocument AS PurchasingDocumentCondition,
PricingProcedure,
DocumentCurrency,
ValidityStartDate,
ValidityEndDate,
ExchangeRate,
ExchangeRateIsFixed,
LastChangeDateTime,
IsEndOfPurposeBlocked,
TaxReturnCountry,
VATRegistrationCountry,
PurgReasonForDocCancellation,
PurgReleaseTimeTotalAmount
FROM R_PurchasingDocument
LEFT OUTER JOIN I_PurchasingDocumentType AS _PurchaseOrderType ON _PurchaseOrderType.PurchasingDocumentCategory = 'F' AND _PurchaseOrderType.PurchasingDocumentType = PurchaseOrderType -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrderItem AS _PurchaseOrderItem ON PurchaseOrder = _PurchaseOrderItem.PurchaseOrder -- association [0..*]
LEFT OUTER JOIN I_PurchaseOrderCalcFields AS _PurchaseOrderCalcFields ON PurchaseOrder = _PurchaseOrderCalcFields.PurchaseOrder -- association [1..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