R_PPS_PurchaseOrder

DDL: R_PPS_PURCHASEORDER SQL: PPSPURCHASEORDER Type: view BASIC

PPS Purchase Order Internal View

R_PPS_PurchaseOrder is a Basic CDS View that provides data about "PPS Purchase Order Internal View" in SAP S/4HANA. It reads from 1 data source (R_PurchasingDocument) and exposes 98 fields with key field PurchaseOrder. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_PurchasingDocument R_PurchasingDocument from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_PurchaseOrderType _PurchaseOrderType _PurchaseOrderType.PurchaseOrderType = $projection.PurchaseOrderType
[0..*] R_PurchaseOrderItem _PurchaseOrderItem $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder
[0..*] R_PurchaseOrderSupplierAddress _SupplierAddress $projection.PurchaseOrder = _SupplierAddress.PurchaseOrder
[1..1] I_PurchaseOrderCalcFields _PurchaseOrderCalcFields $projection.PurchaseOrder = _PurchaseOrderCalcFields.PurchaseOrder
[1..1] I_PurchaseOrderDeletionCode _PurchaseOrderDeletionCode $projection.PurchaseOrderDeletionCode = _PurchaseOrderDeletionCode.PurchaseOrderDeletionCode

Annotations (13)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label PPS Purchase Order Internal View view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName PPSPURCHASEORDER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey PurchaseOrder view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (98)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder Purchasing Document
PurchaseOrderType PurchasingDocumentType RFQ Type
PurchaseOrderSubtype PurchasingDocumentSubtype Control
PurchasingDocumentProcessCode PurchasingDocumentProcessCode Process Indicator
PurchasingDocumentOrigin PurchasingDocumentOrigin Status
PurchasingDocumentIsAged PurchasingDocumentIsAged Document aged
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 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
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
PurchaseContract PurchaseContract Purchasing Doc.
RequestForQuotation RequestForQuotation RFQ
QuotationSubmissionDate QuotationSubmissionDate Quotation Date
PurchasingCollectiveNumber PurchasingCollectiveNumber Collective No.
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
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 Tot. val. rel.
PurgAggrgdProdCmplncSuplrSts PurgAggrgdProdCmplncSuplrSts Supplier Check Sts
PurgAggrgdProdMarketabilitySts PurgAggrgdProdMarketabilitySts Prod. Marktablty Sts
PurgAggrgdSftyDataSheetStatus PurgAggrgdSftyDataSheetStatus Sfty Data Sheet Sts
PurgProdCmplncTotDngrsGoodsSts PurgProdCmplncTotDngrsGoodsSts Dangerous Goods Sts
PurgDocDefaultShippingType PurgDocDefaultShippingType Shp.type: stage
PPSFieldChangeIndicatorString
_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
_Language _Language
_PurchaseOrderDeletionCode _PurchaseOrderDeletionCode
_PurchaseOrderCalcFields _PurchaseOrderCalcFields
_PurchasingProcessingStatus _PurchasingProcessingStatus

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
  cast (PurchasingDocument as vdm_purchaseorder preserving type) 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,
  ActivePurchasingDocument,
  PurgDocChangeRequestStatus,
  PurchasingDocumentVersion,
  CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  Supplier,
  ManualSupplierAddressID,
  SupplierAddressID,
  SupplierRespSalesPersonName,
  SupplierPhoneNumber,
  SupplyingSupplier,
  SupplyingPlant,
  InvoicingParty,
  Customer,
  PurchaseContract,
  RequestForQuotation,
  QuotationSubmissionDate,
  PurchasingCollectiveNumber,
  ItemNumberIntervalForSubItems,
  SupplierQuotationExternalID,
  PaymentTerms,
  CashDiscount1Days,
  CashDiscount2Days,
  NetPaymentDays,
  CashDiscount1Percent,
  CashDiscount2Percent,
  DownPaymentType,
  DownPaymentPercentageOfTotAmt,
  DownPaymentAmount,
  DownPaymentDueDate,
  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
FROM R_PurchasingDocument
LEFT OUTER JOIN I_PurchaseOrderType AS _PurchaseOrderType ON _PurchaseOrderType.PurchaseOrderType = PurchaseOrderType  -- association [0..1]
LEFT OUTER JOIN R_PurchaseOrderItem AS _PurchaseOrderItem ON PurchaseOrder = _PurchaseOrderItem.PurchaseOrder  -- association [0..*]
LEFT OUTER JOIN R_PurchaseOrderSupplierAddress AS _SupplierAddress ON PurchaseOrder = _SupplierAddress.PurchaseOrder  -- association [0..*]
LEFT OUTER JOIN I_PurchaseOrderCalcFields AS _PurchaseOrderCalcFields ON PurchaseOrder = _PurchaseOrderCalcFields.PurchaseOrder  -- association [1..1]
LEFT OUTER JOIN I_PurchaseOrderDeletionCode AS _PurchaseOrderDeletionCode ON PurchaseOrderDeletionCode = _PurchaseOrderDeletionCode.PurchaseOrderDeletionCode  -- association [1..1]
;