R_PPS_PurchaseOrder
PPS Purchase Order
R_PPS_PurchaseOrder is a Basic CDS View that provides data about "PPS Purchase Order" in SAP S/4HANA. It reads from 1 data source (I_PPS_PurchasingDocument) and exposes 102 fields with key field PurchaseOrder. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PPS_PurchasingDocument | I_PPS_PurchasingDocument | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | R_PPS_PurchaseOrderItem | _PurchaseOrderItem | $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder |
| [1..1] | I_PurchaseOrderDeletionCode | _PurchaseOrderDeletionCode | $projection.PurchaseOrderDeletionCode = _PurchaseOrderDeletionCode.PurchaseOrderDeletionCode |
| [0..1] | I_SupplierPurchasingOrg | _SupplierCurrency | _SupplierCurrency.Supplier = $projection.Supplier and _SupplierCurrency.PurchasingOrganization = $projection.PurchasingOrganization |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | PPS Purchase Order | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | PurchaseOrder | view | |
| ObjectModel.compositionRoot | true | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (102)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchasingDocument | Purchasing Document | |
| PurchaseOrderType | PurchasingDocumentType | RFQ Type | ||
| PurchaseOrderSubtype | PurchasingDocumentSubtype | Control | ||
| PurchasingDocumentProcessCode | PurchasingDocumentProcessCode | Process Indicator | ||
| PurchasingDocumentOrigin | PurchasingDocumentOrigin | Status | ||
| PurchasingDocumentIsAged | PurchasingDocumentIsAged | |||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| PurchaseOrderDate | PO Date | |||
| Language | Language | Report Text Language | ||
| PurchaseOrderDeletionCode | 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 | ||
| ActivePurchasingDocument | Active Purchase Doc | |||
| PurgDocChangeRequestStatus | PurgDocChangeRequestStatus | Change Request Stat. | ||
| PurchasingDocumentVersion | PurchasingDocumentVersion | Version | ||
| 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 | ||
| PurchaseContract | PurchaseContract | Purchasing Doc. | ||
| RequestForQuotation | RequestForQuotation | RFQ | ||
| QuotationSubmissionDate | QuotationSubmissionDate | Quotation Date | ||
| PurchasingCollectiveNumber | PurchasingCollectiveNumber | |||
| ItemNumberIntervalForSubItems | ItemNumberIntervalForSubItems | Subitem Interv. | ||
| 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 | ||
| RetentionType | RetentionType | |||
| PurgDocHdrInvcRtntnPct | PurgDocHdrInvcRtntnPct | |||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| IncotermsVersion | IncotermsVersion | Inco. Version | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| IncotermsSupChnLoc1AddlUUID | IncotermsSupChnLoc1AddlUUID | Location UUID | ||
| IncotermsSupChnLoc2AddlUUID | IncotermsSupChnLoc2AddlUUID | Location UUID | ||
| IncotermsSupChnDvtgLocAddlUUID | IncotermsSupChnDvtgLocAddlUUID | Location UUID | ||
| IsIntrastatReportingRelevant | IsIntrastatReportingRelevant | Intrastat rel. | ||
| IsIntrastatReportingExcluded | IsIntrastatReportingExcluded | exclude Intra | ||
| CorrespncExternalReference | CorrespncExternalReference | Your Reference | ||
| CorrespncInternalReference | CorrespncInternalReference | Our Reference | ||
| 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 | ||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | ||
| TaxReturnCountry | TaxReturnCountry | Reporting C/R | ||
| VATRegistrationCountry | VATRegistrationCountry | CtryRgnSlsTxNo. | ||
| PurgReasonForDocCancellation | PurgReasonForDocCancellation | Reas. for Canc. | ||
| PurgReleaseTimeTotalAmount | PurgReleaseTimeTotalAmount | |||
| PurgAggrgdProdCmplncSuplrSts | PurgAggrgdProdCmplncSuplrSts | Supplier Check Sts | ||
| PurgAggrgdProdMarketabilitySts | PurgAggrgdProdMarketabilitySts | Prod. Marktablty Sts | ||
| PurgAggrgdSftyDataSheetStatus | PurgAggrgdSftyDataSheetStatus | Sfty Data Sheet Sts | ||
| PurgProdCmplncTotDngrsGoodsSts | PurgProdCmplncTotDngrsGoodsSts | Dangerous Goods Sts | ||
| PurgDocDefaultShippingType | PurgDocDefaultShippingType | |||
| PPSFieldChangeIndicatorString | ||||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingDocumentName | PurchasingDocumentName | Purch. Doc. Name | ||
| PPSExtPubgSystApplObjectType | ||||
| _PurchaseOrderItem | _PurchaseOrderItem | |||
| _CompanyCode | _CompanyCode | |||
| _CreatedByUser | _CreatedByUser | |||
| _Supplier | _Supplier | |||
| _SupplyingSupplier | _SupplyingSupplier | |||
| _InvoicingParty | _InvoicingParty | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _SupplyingPlant | _SupplyingPlant | |||
| _PaymentTerms | _PaymentTerms | |||
| _Language | _Language | |||
| _PurchaseOrderDeletionCode | _PurchaseOrderDeletionCode | |||
| _PurchasingProcessingStatus | _PurchasingProcessingStatus | |||
| _SupplierCurrency | _SupplierCurrency | |||
| _PricingProcedure | _PricingProcedure | |||
| _PurchaseOrderHeaderExtension | _Extension |
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_PPS_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: PPSPURCHASEORDER
CREATE VIEW R_PPS_PurchaseOrder AS
SELECT
PurchasingDocument AS PurchaseOrder,
PurchasingDocumentType AS PurchaseOrderType,
PurchasingDocumentSubtype AS PurchaseOrderSubtype,
PurchasingDocumentProcessCode,
PurchasingDocumentOrigin,
PurchasingDocumentIsAged,
CreatedByUser,
CreationDate,
cast (PurchasingDocumentOrderDate as bedat preserving type) AS PurchaseOrderDate,
Language,
cast (PurchasingDocumentDeletionCode as mmpur_po_del_code preserving type) AS PurchaseOrderDeletionCode,
ReleaseIsNotCompleted,
PurchasingCompletenessStatus,
PurchasingProcessingStatus,
PurgReleaseSequenceStatus,
ReleaseCode,
PurchasingReleaseStrategy,
cast( ActivePurchasingDocument as pps_e_active_po_doc preserving type ) AS ActivePurchasingDocument,
PurgDocChangeRequestStatus,
PurchasingDocumentVersion,
CompanyCode,
PurchasingOrganization,
PurchasingGroup,
Supplier,
ManualSupplierAddressID,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
SupplyingSupplier,
SupplyingPlant,
InvoicingParty,
Customer,
PurchaseContract,
RequestForQuotation,
QuotationSubmissionDate,
PurchasingCollectiveNumber,
ItemNumberIntervalForSubItems,
SupplierQuotationExternalID,
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
DownPaymentType,
DownPaymentPercentageOfTotAmt,
DownPaymentAmount,
DownPaymentDueDate,
RetentionType,
PurgDocHdrInvcRtntnPct,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsVersion,
IncotermsLocation1,
IncotermsLocation2,
IncotermsSupChnLoc1AddlUUID,
IncotermsSupChnLoc2AddlUUID,
IncotermsSupChnDvtgLocAddlUUID,
IsIntrastatReportingRelevant,
IsIntrastatReportingExcluded,
CorrespncExternalReference,
CorrespncInternalReference,
PricingDocument,
PricingProcedure,
DocumentCurrency,
ValidityStartDate,
ValidityEndDate,
ExchangeRate,
ExchangeRateIsFixed,
LastChangeDateTime,
IsEndOfPurposeBlocked,
TaxReturnCountry,
VATRegistrationCountry,
PurgReasonForDocCancellation,
PurgReleaseTimeTotalAmount,
PurgAggrgdProdCmplncSuplrSts,
PurgAggrgdProdMarketabilitySts,
PurgAggrgdSftyDataSheetStatus,
PurgProdCmplncTotDngrsGoodsSts,
PurgDocDefaultShippingType,
cast( '' as abap.char( 510 ) ) AS PPSFieldChangeIndicatorString,
PurchasingDocumentCategory,
PurchasingDocumentName,
cast( 'PurchaseOrder' as sbo_node_type ) AS PPSExtPubgSystApplObjectType
FROM I_PPS_PurchasingDocument
LEFT OUTER JOIN R_PPS_PurchaseOrderItem AS _PurchaseOrderItem ON PurchaseOrder = _PurchaseOrderItem.PurchaseOrder -- association [0..*]
LEFT OUTER JOIN I_PurchaseOrderDeletionCode AS _PurchaseOrderDeletionCode ON PurchaseOrderDeletionCode = _PurchaseOrderDeletionCode.PurchaseOrderDeletionCode -- association [1..1]
LEFT OUTER JOIN I_SupplierPurchasingOrg AS _SupplierCurrency ON _SupplierCurrency.Supplier = Supplier AND _SupplierCurrency.PurchasingOrganization = PurchasingOrganization -- 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