I_ProcmtHubPurOrdHdrAPI01

DDL: I_PROCMTHUBPURORDHDRAPI01 SQL: IPRCHBPOHAPI01 Type: view BASIC Package: VDM_MM_PUR_EXT_PO

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

CategoryCDS Views for Centrally Managed Purchase Orders
StatusReleased
Purpose
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

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-HUB-PO-2CL
CapabilitiesData 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
PackageSourcing 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

Data Sources (1)

SourceAliasJoin Type
I_CentralPurchaseOrder I_CentralPurchaseOrder from

Associations (3)

CardinalityTargetAliasCondition
[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)

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

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