P_PURCHASEORDERWITHSTOFILTER

DDL: P_PURCHASEORDERWITHSTOFILTER SQL: PPURCHORDNOSTO Type: view CONSUMPTION

Purchase Orders without STO

P_PURCHASEORDERWITHSTOFILTER is a Consumption CDS View that provides data about "Purchase Orders without STO" in SAP S/4HANA. It reads from 2 data sources (I_PurchasingDocument, I_PurchaseOrderItem) and exposes 100 fields with key fields PurchaseOrder, PurchaseOrderItem. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_PurchasingDocument PurchaseOrder from
I_PurchaseOrderItem PurchaseOrderItem inner

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_PurchasingDocumentType _PurchaseOrderType _PurchaseOrderType.PurchasingDocumentCategory = 'F' and _PurchaseOrderType.PurchasingDocumentType = $projection.PurchaseOrderType
[1..1] I_PurchaseOrderCalcFields _PurchaseOrderCalcFields $projection.PurchaseOrder = _PurchaseOrderCalcFields.PurchaseOrder

Annotations (9)

NameValueLevelField
EndUserText.label Purchase Orders without STO view
AbapCatalog.sqlViewName PPURCHORDNOSTO view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (100)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
PurchaseOrderType RFQ Type
PurchaseOrderSubtype PurchasingDocumentSubtype Control
PurchasingDocumentOrigin PurchasingDocumentOrigin Status
PurchasingDocumentIsAged PurchasingDocumentIsAged Document aged
CreatedByUser CreatedByUser User Name
CreationDate I_PurchasingDocument CreationDate Time Stamp
PurchaseOrderDate PO Date
Language Language Report Text Language
PurchasingDocumentDeletionCode I_PurchasingDocument 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 I_PurchasingDocument 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 I_PurchasingDocument Customer Sold-to Party
CorrespncExternalReference CorrespncExternalReference Your Reference
CorrespncInternalReference CorrespncInternalReference Our Reference
PurchaseContract I_PurchasingDocument PurchaseContract Purchasing Doc.
RequestForQuotation I_PurchasingDocument 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 I_PurchasingDocument DownPaymentType Down Payment
DownPaymentPercentageOfTotAmt I_PurchasingDocument DownPaymentPercentageOfTotAmt Down Payment %
DownPaymentAmount I_PurchasingDocument DownPaymentAmount Downpayment
DownPaymentDueDate I_PurchasingDocument DownPaymentDueDate Due Date for DP
IncotermsClassification I_PurchasingDocument IncotermsClassification Incoterms
IncotermsTransferLocation I_PurchasingDocument IncotermsTransferLocation Incoterms 2
IncotermsVersion IncotermsVersion Inco. Version
IncotermsLocation1 I_PurchasingDocument IncotermsLocation1 Inco. Location1
IncotermsLocation2 I_PurchasingDocument IncotermsLocation2 Inco. Location2
IsIntrastatReportingRelevant IsIntrastatReportingRelevant Intrastat rel.
IsIntrastatReportingExcluded IsIntrastatReportingExcluded exclude Intra
PurchasingDocumentCondition PurchasingDocumentCondition Doc. Condition
PricingProcedure PricingProcedure Procedure
DocumentCurrency I_PurchasingDocument 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.
IsStatisticalItem IsStatisticalItem Statisticl.Indicator
AccountAssignmentCategory AccountAssignmentCategory Acct Assgmt Cat
PurchaseOrderQuantityUnit PurchaseOrderQuantityUnit Order Unit
NetPriceAmount NetPriceAmount Net Price
NetAmount NetAmount Stated Amount
NetPriceQuantity NetPriceQuantity Price Unit
MaterialGroup MaterialGroup Product Group
Material Material Vehicle Model
Plant Plant Valuation Area
PurchaseOrderItemCategory PurchaseOrderItemCategory Item Category
PurchaseOrderCategory PurchaseOrderCategory Doc. Category
PurchaseContractItem PurchaseContractItem Item
ProductType ProductType Product Type Group
ServicePerformer ServicePerformer Service Performer
MultipleAcctAssgmtDistribution MultipleAcctAssgmtDistribution Distribution
OrderQuantity OrderQuantity Quantity
PurchaseRequisition PurchaseRequisition Requisition
PurchaseRequisitionItem PurchaseRequisitionItem Requisn. item
IsCompletelyDelivered IsCompletelyDelivered Is completely delivered
IsReturnsItem IsReturnsItem Returns Item
_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
_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 P_PURCHASEORDERWITHSTOFILTER.
-- 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: PPURCHORDNOSTO

CREATE VIEW P_PURCHASEORDERWITHSTOFILTER AS
SELECT
  cast (PurchaseOrder.PurchasingDocument as vdm_purchaseorder preserving type) AS PurchaseOrder,
  PurchaseOrderItem,
  cast (PurchasingDocumentType as mm_purchaseordertype preserving type ) AS PurchaseOrderType,
  PurchasingDocumentSubtype AS PurchaseOrderSubtype,
  PurchasingDocumentOrigin,
  PurchasingDocumentIsAged,
  CreatedByUser,
  PurchaseOrder.CreationDate AS CreationDate,
  cast (PurchasingDocumentOrderDate as bedat preserving type) AS PurchaseOrderDate,
  Language,
  PurchaseOrder.PurchasingDocumentDeletionCode AS PurchasingDocumentDeletionCode,
  ReleaseIsNotCompleted,
  PurchasingCompletenessStatus,
  PurchasingProcessingStatus,
  PurgReleaseSequenceStatus,
  ReleaseCode,
  PurchasingReleaseStrategy,
  PurchaseOrder.CompanyCode AS CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  Supplier,
  ManualSupplierAddressID,
  SupplierAddressID,
  SupplierRespSalesPersonName,
  SupplierPhoneNumber,
  SupplyingSupplier,
  SupplyingPlant,
  InvoicingParty,
  PurchaseOrder.Customer AS Customer,
  CorrespncExternalReference,
  CorrespncInternalReference,
  PurchaseOrder.PurchaseContract AS PurchaseContract,
  PurchaseOrder.RequestForQuotation AS RequestForQuotation,
  SupplierQuotationExternalID,
  PaymentTerms,
  CashDiscount1Days,
  CashDiscount2Days,
  NetPaymentDays,
  CashDiscount1Percent,
  CashDiscount2Percent,
  PurchaseOrder.DownPaymentType AS DownPaymentType,
  PurchaseOrder.DownPaymentPercentageOfTotAmt AS DownPaymentPercentageOfTotAmt,
  PurchaseOrder.DownPaymentAmount AS DownPaymentAmount,
  PurchaseOrder.DownPaymentDueDate AS DownPaymentDueDate,
  PurchaseOrder.IncotermsClassification AS IncotermsClassification,
  PurchaseOrder.IncotermsTransferLocation AS IncotermsTransferLocation,
  IncotermsVersion,
  PurchaseOrder.IncotermsLocation1 AS IncotermsLocation1,
  PurchaseOrder.IncotermsLocation2 AS IncotermsLocation2,
  IsIntrastatReportingRelevant,
  IsIntrastatReportingExcluded,
  PurchasingDocumentCondition,
  PricingProcedure,
  PurchaseOrder.DocumentCurrency AS DocumentCurrency,
  ValidityStartDate,
  ValidityEndDate,
  ExchangeRate,
  ExchangeRateIsFixed,
  LastChangeDateTime,
  IsEndOfPurposeBlocked,
  TaxReturnCountry,
  VATRegistrationCountry,
  PurgReasonForDocCancellation,
  PurgReleaseTimeTotalAmount,
  IsStatisticalItem,
  AccountAssignmentCategory,
  PurchaseOrderQuantityUnit,
  NetPriceAmount,
  NetAmount,
  NetPriceQuantity,
  MaterialGroup,
  Material,
  Plant,
  PurchaseOrderItemCategory,
  PurchaseOrderCategory,
  PurchaseContractItem,
  ProductType,
  ServicePerformer,
  MultipleAcctAssgmtDistribution,
  OrderQuantity,
  PurchaseRequisition,
  PurchaseRequisitionItem,
  IsCompletelyDelivered,
  IsReturnsItem
FROM I_PurchasingDocument AS PurchaseOrder
INNER JOIN I_PurchaseOrderItem AS PurchaseOrderItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurchasingDocumentType AS _PurchaseOrderType ON _PurchaseOrderType.PurchasingDocumentCategory = 'F' AND _PurchaseOrderType.PurchasingDocumentType = PurchaseOrderType  -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrderCalcFields AS _PurchaseOrderCalcFields ON PurchaseOrder = _PurchaseOrderCalcFields.PurchaseOrder  -- association [1..1]
;