I_ProcmtHubPurOrdHdrAPI01
Centrally Managed Purchase Order Header
I_ProcmtHubPurOrdHdrAPI01 (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Sourcing & Procurement
I_ProcmtHubPurOrdHdrAPI01 is a Basic CDS View that provides data about "Centrally Managed Purchase Order Header" in SAP S/4HANA. It reads from 1 data source (I_CentralPurchaseOrder) and exposes 63 fields with key fields PurchaseOrder, ExtSourceSystem. It has 3 associations to related views. Part of development package VDM_MM_PUR_EXT_PO.
SAP Help Documentation
| Category | CDS Views for Centrally Managed Purchase Orders |
|---|---|
| Status | Released |
This CDS view provides general information about the centrally managed purchase orders. This CDS view provides the prerequisites for answering the following business questions: What is the purchase order number? What is the purchase order type? When was the purchase order created? Who created the purchase order? What is the connected system in which the purchase order is created? What is the purchasing organization and purchasing group, supplier associated with the purchase order? What are the payment terms and incoterms for the purchase order? What is the period for which the purchase order is valid? What is the release status of the purchase order?
Prerequisites
You must have a role based on the SAP_BR_CENTRAL_PURCHASER business role template. These restriction types are edited in the Maintain Business Roles app.
Structure
Object types This view relates to the following SAP object types: PrmtHbRpldPurchaseOrder Main parameters and filters of the CDS view The main parameters and filters are as follows: Plant Company Code Supplier Purchasing Group Purchasing Organization Document Type Document Status Material Payment Terms Incoterms Connected System ID Measures and attributes Some important measures and attributes are: Purchase Order Number Purchase Order Type Purchasing Organization Purchasing Group Connected System Validity Supplier
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Sourcing & Procurement |
| Application Component | MM-PUR-HUB-PO-2CL |
| Capabilities | Data Source in SQL Select,Data Source for Defining CDS Entities,Association Target for Defining CDS Entities |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Sourcing and Procurement for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view provides general information about the centrally managed purchase orders.</p> This CDS view provides the prerequisites for answering the following business questions:<ul> <li> <p>What is the purchase order number?</p> </li> <li> <p>What is the purchase order type?</p> </li> <li> <p>When was the purchase order created?</p> </li> <li> <p>Who created the purchase order?</p> </li> <li> <p>What is the connected system in which the purchase order is created?</p> </li> <li> <p>What is the purchasing organization and purchasing group, supplier associated with the purchase order?</p> </li> <li> <p>What are the payment terms and incoterms for the purchase order?</p> </li> <li> <p>What is the period for which the purchase order is valid?</p> </li> <li> <p>What is the release status of the purchase order?</p> </li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CentralPurchaseOrder | I_CentralPurchaseOrder | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_ProcmtHubPurOrdItmAPI01 | _ProcmtHubPurchaseOrderItem | $projection.PurchaseOrder = _ProcmtHubPurchaseOrderItem.PurchaseOrder and $projection.ExtSourceSystem = _ProcmtHubPurchaseOrderItem.ExtSourceSystem |
| [0..1] | I_ProcmtHubCompanyCode | _ProcmtHubCoCodeSystemVH | $projection.CompanyCode = _ProcmtHubCoCodeSystemVH.ProcmtHubCompanyCode and $projection.ExtSourceSystem = _ProcmtHubCoCodeSystemVH.ProcurementHubSourceSystem |
| [0..1] | I_ProcmtHubPurgOrgAPI01 | _ProcmtHubPurgOrgSystemVH | $projection.PurchasingOrganization = _ProcmtHubPurgOrgSystemVH.ProcmtHubPurchasingOrg and $projection.ExtSourceSystem = _ProcmtHubPurgOrgSystemVH.ProcurementHubSourceSystem |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | IPRCHBPOHAPI01 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Centrally Managed Purchase Order Header | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view |
Fields (63)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document Number | |
| KEY | ExtSourceSystem | ExtSourceSystem | Connected System ID | |
| PurchaseOrderType | PurchaseOrderType | Purchasing Document Type | ||
| PurchaseOrderSubtype | PurchaseOrderSubtype | Control indicator for purchasing document type | ||
| PurchasingDocumentOrigin | PurchasingDocumentOrigin | Status of Purchasing Document | ||
| CreatedByUser | CreatedByUser | User of person who created a purchasing document | ||
| CreationDate | CreationDate | Creation Date of Purchasing Document | ||
| PurchaseOrderDate | PurchaseOrderDate | Purchase Order Date | ||
| Language | Language | Report Text Language | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Deletion Indicator in Purchasing Document | ||
| ReleaseIsNotCompleted | ReleaseIsNotCompleted | Release Not Yet Completely Effected | ||
| PurchasingCompletenessStatus | PurchasingCompletenessStatus | Purchase order not yet complete | ||
| PurchasingProcessingStatus | PurchasingProcessingStatus | Purchasing Document Processing State | ||
| PurgReleaseSequenceStatus | PurgReleaseSequenceStatus | Release Status | ||
| ReleaseCode | ReleaseCode | Release Indicator: Purchasing Document | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| Supplier | Supplier | Supplier | ||
| ManualSupplierAddressID | ManualSupplierAddressID | Address Number | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Responsible Salesperson at Supplier's Office | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Supplier's Telephone Number | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| SupplyingPlant | SupplyingPlant | Supplying (issuing) plant in case of stock transport order | ||
| InvoicingParty | InvoicingParty | Different Invoicing Party | ||
| Customer | Customer | Customer Number | ||
| SupplierQuotationExternalID | SupplierQuotationExternalID | Quotation Number | ||
| PaymentTerms | PaymentTerms | Terms of Payment Key | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| NetPaymentDays | NetPaymentDays | Net Payment Terms Period | ||
| CashDiscount1Percent | CashDiscount1Percent | Cash Discount Percentage 1 | ||
| CashDiscount2Percent | CashDiscount2Percent | Cash Discount Percentage 2 | ||
| DownPaymentType | DownPaymentType | Down Payment Indicator | ||
| DownPaymentPercentageOfTotAmt | DownPaymentPercentageOfTotAmt | Down Payment Percentage | ||
| DownPaymentAmount | DownPaymentAmount | Down Payment Amount in Document Currency | ||
| DownPaymentDueDate | DownPaymentDueDate | Due Date for Down Payment | ||
| IncotermsClassification | IncotermsClassification | Incoterms (Part 1) | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms (Part 2) | ||
| IncotermsVersion | IncotermsVersion | Incoterms Version | ||
| IncotermsLocation1 | IncotermsLocation1 | Incoterms Location 1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Incoterms Location 2 | ||
| IsIntrastatReportingRelevant | IsIntrastatReportingRelevant | Relevant for Intrastat Reporting | ||
| IsIntrastatReportingExcluded | IsIntrastatReportingExcluded | Exclude from Intrastat Reporting | ||
| PricingDocument | DeliveryDocumentCondition | Number of the Document Condition | ||
| PricingProcedure | PricingProcedure | Procedure (Pricing, Output Control, Acct. Det., Costing,...) | ||
| PurchaseOrderNetAmount | PurchaseOrderNetAmount | Net Value in Document Currency | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ValidityStartDate | ValidityStartDate | Start of Validity Period | ||
| ValidityEndDate | ValidityEndDate | End of Validity Period | ||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| ExchangeRateIsFixed | ExchangeRateIsFixed | Indicator for Fixed Exchange Rate | ||
| LastChangeDateTime | LastChangeDateTime | Change Time Stamp | ||
| TaxReturnCountry | TaxReturnCountry | Country/Region for Tax Report | ||
| VATRegistrationCountry | VATRegistrationCountry | Country/Region of VAT Registration Number (VAT ID) | ||
| PurgReasonForDocCancellation | PurgReasonForDocCancellation | Reason for Cancellation | ||
| PurgReleaseTimeTotalAmount | PurgReleaseTimeTotalAmount | Total value at time of release | ||
| PrmtHbRpldPOUniqueID | ||||
| ProcmtHubCompanyCodeUniqueID | _ProcmtHubCoCodeSystemVH | ProcmtHubCompanyCodeUniqueID | Company Code Unique ID | |
| ProcmtHubPurgOrgUniqueID | _ProcmtHubPurgOrgSystemVH | ProcmtHubPurgOrgUniqueID | Connected Purchasing Organization Unique ID | |
| _ProcmtHubPurchaseOrderItem | _ProcmtHubPurchaseOrderItem | |||
| _ProcmtHubCoCodeSystemVH | _ProcmtHubCoCodeSystemVH | |||
| _ProcmtHubPurgOrgSystemVH | _ProcmtHubPurgOrgSystemVH |
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 I_ProcmtHubPurOrdHdrAPI01.
-- 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: IPRCHBPOHAPI01
CREATE VIEW I_ProcmtHubPurOrdHdrAPI01 AS
SELECT
PurchaseOrder,
ExtSourceSystem,
PurchaseOrderType,
PurchaseOrderSubtype,
PurchasingDocumentOrigin,
CreatedByUser,
CreationDate,
PurchaseOrderDate,
Language,
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,
DeliveryDocumentCondition AS PricingDocument,
PricingProcedure,
PurchaseOrderNetAmount,
DocumentCurrency,
ValidityStartDate,
ValidityEndDate,
ExchangeRate,
ExchangeRateIsFixed,
LastChangeDateTime,
TaxReturnCountry,
VATRegistrationCountry,
PurgReasonForDocCancellation,
PurgReleaseTimeTotalAmount,
concat(PurchaseOrder, ExtSourceSystem) AS PrmtHbRpldPOUniqueID,
_ProcmtHubCoCodeSystemVH.ProcmtHubCompanyCodeUniqueID AS ProcmtHubCompanyCodeUniqueID,
_ProcmtHubPurgOrgSystemVH.ProcmtHubPurgOrgUniqueID AS ProcmtHubPurgOrgUniqueID
FROM I_CentralPurchaseOrder
LEFT OUTER JOIN I_ProcmtHubPurOrdItmAPI01 AS _ProcmtHubPurchaseOrderItem ON PurchaseOrder = _ProcmtHubPurchaseOrderItem.PurchaseOrder AND ExtSourceSystem = _ProcmtHubPurchaseOrderItem.ExtSourceSystem -- association [0..*]
LEFT OUTER JOIN I_ProcmtHubCompanyCode AS _ProcmtHubCoCodeSystemVH ON CompanyCode = _ProcmtHubCoCodeSystemVH.ProcmtHubCompanyCode AND ExtSourceSystem = _ProcmtHubCoCodeSystemVH.ProcurementHubSourceSystem -- association [0..1]
LEFT OUTER JOIN I_ProcmtHubPurgOrgAPI01 AS _ProcmtHubPurgOrgSystemVH ON PurchasingOrganization = _ProcmtHubPurgOrgSystemVH.ProcmtHubPurchasingOrg AND ExtSourceSystem = _ProcmtHubPurgOrgSystemVH.ProcurementHubSourceSystem -- 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