A_PurchaseOrder_2

DDL: A_PURCHASEORDER_2 Type: view_entity CONSUMPTION

Purchase Order

A_PurchaseOrder_2 is a Consumption CDS View that provides data about "Purchase Order" in SAP S/4HANA. It reads from 1 data source (R_PurchaseOrderTP) and exposes 67 fields with key field PurchaseOrder.

Data Sources (1)

SourceAliasJoin Type
R_PurchaseOrderTP R_PurchaseOrderTP projection

Annotations (11)

NameValueLevelField
EndUserText.label Purchase Order view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
OData.entityType.name PurchaseOrder_Type view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #CONSUMPTION view
Feature MM_PUR_OAPI_PURCHASEORDER_2 view

Fields (67)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderType PurchaseOrderType PO Type
PurchaseOrderSubtype PurchaseOrderSubtype Control
PurchasingDocumentOrigin PurchasingDocumentOrigin Status
PurchasingDocumentProcessCode PurchasingDocumentProcessCode Process Indicator
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
PurchaseOrderDate PurchaseOrderDate PO Date
LastChangeDateTime LastChangeDateTime Timestamp
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
Language Language Report Text Language
PurchaseOrderDeletionCode PurchaseOrderDeletionCode Deletion Code
ReleaseIsNotCompleted ReleaseIsNotCompleted Subj.to Release
PurchasingCompletenessStatus PurchasingCompletenessStatus Incomplete
PurchasingProcessingStatus PurchasingProcessingStatus Proc. State
PurgReleaseSequenceStatus PurgReleaseSequenceStatus Release State
ReleaseCode ReleaseCode Release ind.
PurchasingReleaseStrategy PurchasingReleaseStrategy Rel. Strategy
PurgReasonForDocCancellation PurgReasonForDocCancellation Reas. for Canc.
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.
SupplierQuotationExternalID SupplierQuotationExternalID Quotation
QuotationSubmissionDate QuotationSubmissionDate Quotation Date
ItemNumberIntervalForSubItems ItemNumberIntervalForSubItems Subitem Interv.
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
CorrespncExternalReference CorrespncExternalReference Your Reference
CorrespncInternalReference CorrespncInternalReference Our Reference
PricingDocument PricingDocument Document Condition
PricingProcedure PricingProcedure Procedure
DocumentCurrency DocumentCurrency Document Currency
ExchangeRate ExchangeRate Exchange rate
ExchangeRateIsFixed ExchangeRateIsFixed Fixed Exch.Rate
TaxReturnCountry TaxReturnCountry Reporting C/R
VATRegistrationCountry VATRegistrationCountry CtryRgnSlsTxNo.
PurgAggrgdProdCmplncSuplrSts PurgAggrgdProdCmplncSuplrSts Supplier Check Sts
PurgAggrgdProdMarketabilitySts PurgAggrgdProdMarketabilitySts Prod. Marktablty Sts
PurgAggrgdSftyDataSheetStatus PurgAggrgdSftyDataSheetStatus Sfty Data Sheet Sts
PurgProdCmplncTotDngrsGoodsSts PurgProdCmplncTotDngrsGoodsSts Dangerous Goods Sts
PurchasingCollectiveNumber PurchasingCollectiveNumber

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 A_PurchaseOrder_2.
-- 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 A_PurchaseOrder_2 AS
SELECT
  PurchaseOrder,
  PurchaseOrderType,
  PurchaseOrderSubtype,
  PurchasingDocumentOrigin,
  PurchasingDocumentProcessCode,
  CreatedByUser,
  CreationDate,
  PurchaseOrderDate,
  LastChangeDateTime,
  ValidityStartDate,
  ValidityEndDate,
  Language,
  PurchaseOrderDeletionCode,
  ReleaseIsNotCompleted,
  PurchasingCompletenessStatus,
  PurchasingProcessingStatus,
  PurgReleaseSequenceStatus,
  ReleaseCode,
  PurchasingReleaseStrategy,
  PurgReasonForDocCancellation,
  CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  Supplier,
  ManualSupplierAddressID,
  SupplierAddressID,
  SupplierRespSalesPersonName,
  SupplierPhoneNumber,
  SupplyingSupplier,
  SupplyingPlant,
  InvoicingParty,
  Customer,
  PurchaseContract,
  SupplierQuotationExternalID,
  QuotationSubmissionDate,
  ItemNumberIntervalForSubItems,
  PaymentTerms,
  CashDiscount1Days,
  CashDiscount2Days,
  NetPaymentDays,
  CashDiscount1Percent,
  CashDiscount2Percent,
  DownPaymentType,
  DownPaymentPercentageOfTotAmt,
  DownPaymentAmount,
  DownPaymentDueDate,
  IncotermsClassification,
  IncotermsTransferLocation,
  IncotermsVersion,
  IncotermsLocation1,
  IncotermsLocation2,
  IsIntrastatReportingRelevant,
  IsIntrastatReportingExcluded,
  CorrespncExternalReference,
  CorrespncInternalReference,
  PricingDocument,
  PricingProcedure,
  DocumentCurrency,
  ExchangeRate,
  ExchangeRateIsFixed,
  TaxReturnCountry,
  VATRegistrationCountry,
  PurgAggrgdProdCmplncSuplrSts,
  PurgAggrgdProdMarketabilitySts,
  PurgAggrgdSftyDataSheetStatus,
  PurgProdCmplncTotDngrsGoodsSts,
  PurchasingCollectiveNumber
FROM R_PurchaseOrderTP
;