C_PurchaseOrderDEX

DDL: C_PURCHASEORDERDEX Type: view_entity CONSUMPTION

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)

SourceAliasJoin Type
I_PurchaseOrderAPI01 I_PurchaseOrderAPI01 from

Associations (2)

CardinalityTargetAliasCondition
[0..*] C_PurchaseOrderItemDEX _PurchaseOrderItem $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder
[0..1] E_PurchasingDocument _HeaderExtension $projection.PurchaseOrder = _HeaderExtension.PurchasingDocument

Annotations (15)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;