I_CentralPurchaseOrderTP
Central Purchase Order
I_CentralPurchaseOrderTP is a Transactional CDS View that provides data about "Central Purchase Order" in SAP S/4HANA. It reads from 1 data source (I_CentralPurchaseOrder) and exposes 73 fields with key fields PurchaseOrder, ExtSourceSystem. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CentralPurchaseOrder | Document | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_CentralPurchaseOrderItemTP | _PurchaseOrderItemTP | _PurchaseOrderItemTP.PurchaseOrder = $projection.PurchaseOrder and _PurchaseOrderItemTP.ExtSourceSystem = $projection.ExtSourceSystem |
| [0..1] | I_User | _User | _User.UserID = $projection.CreatedByUser |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #TRANSACTIONAL | view | |
| AbapCatalog.sqlViewName | ICPURORDTP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Central Purchase Order | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.semanticKey | PurchaseOrder | view | |
| ObjectModel.representativeKey | PurchaseOrder | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.entityChangeStateId | LastChangeDateTime | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.sapObjectNodeType.name | PrmtHbRpldPurchaseOrder | view |
Fields (73)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | I_CentralPurchaseOrder | PurchaseOrder | Purchasing Document |
| KEY | ExtSourceSystem | I_CentralPurchaseOrder | ExtSourceSystem | Connected System ID |
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchaseOrderType | I_CentralPurchaseOrder | PurchaseOrderType | PO Type | |
| PurchaseOrderSubtype | I_CentralPurchaseOrder | PurchaseOrderSubtype | Control | |
| PurchasingDocumentOrigin | I_CentralPurchaseOrder | PurchasingDocumentOrigin | Status | |
| CreatedByUser | I_CentralPurchaseOrder | CreatedByUser | User Name | |
| CreatedByUserFullName | I_CentralPurchaseOrder | CreatedByUserName | Person Resp. | |
| CreationDate | I_CentralPurchaseOrder | CreationDate | Time Stamp | |
| PurchaseOrderDate | I_CentralPurchaseOrder | PurchaseOrderDate | PO Date | |
| ValidityStartDate | I_CentralPurchaseOrder | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | I_CentralPurchaseOrder | ValidityEndDate | ValidTo | |
| Language | I_CentralPurchaseOrder | Language | Report Text Language | |
| PurchasingDocumentDeletionCode | I_CentralPurchaseOrder | PurchasingDocumentDeletionCode | Del. Indicator | |
| ReleaseIsNotCompleted | I_CentralPurchaseOrder | ReleaseIsNotCompleted | Subj.to Release | |
| PurchasingProcessingStatus | I_CentralPurchaseOrder | PurchasingProcessingStatus | Proc. State | |
| PurchasingCompletenessStatus | I_CentralPurchaseOrder | PurchasingCompletenessStatus | Incomplete | |
| CompanyCode | I_CentralPurchaseOrder | CompanyCode | Receiver Company Code | |
| CompanyCodeCountry | I_CentralPurchaseOrder | CompanyCodeCountry | Reporting Ctry/Reg. | |
| PurchasingOrganization | I_CentralPurchaseOrder | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_CentralPurchaseOrder | PurchasingGroup | Purchasing Group | |
| Supplier | I_CentralPurchaseOrder | Supplier | Supplier | |
| SupplierRespSalesPersonName | I_CentralPurchaseOrder | SupplierRespSalesPersonName | Salesperson | |
| SupplierPhoneNumber | I_CentralPurchaseOrder | SupplierPhoneNumber | Telephone | |
| SupplyingSupplier | I_CentralPurchaseOrder | SupplyingSupplier | Goods Supplier | |
| SupplyingPlant | I_CentralPurchaseOrder | SupplyingPlant | Supplying Plant | |
| InvoicingParty | I_CentralPurchaseOrder | InvoicingParty | Supplier | |
| PaymentTerms | I_CentralPurchaseOrder | PaymentTerms | Pyt Terms | |
| CashDiscount1Days | I_CentralPurchaseOrder | CashDiscount1Days | Days from Baseline Date for Payment | |
| CashDiscount2Days | I_CentralPurchaseOrder | CashDiscount2Days | Days from Baseline Date for Payment | |
| NetPaymentDays | I_CentralPurchaseOrder | NetPaymentDays | Net Pmt Terms Period | |
| CashDiscount1Percent | I_CentralPurchaseOrder | CashDiscount1Percent | Disc. Percent 1 | |
| CashDiscount2Percent | I_CentralPurchaseOrder | CashDiscount2Percent | Disc. Percent 2 | |
| IncotermsClassification | I_CentralPurchaseOrder | IncotermsClassification | Incoterms | |
| IncotermsTransferLocation | I_CentralPurchaseOrder | IncotermsTransferLocation | Incoterms 2 | |
| IncotermsVersion | I_CentralPurchaseOrder | IncotermsVersion | Inco. Version | |
| IncotermsLocation1 | I_CentralPurchaseOrder | IncotermsLocation1 | Inco. Location1 | |
| IncotermsLocation2 | I_CentralPurchaseOrder | IncotermsLocation2 | Inco. Location2 | |
| IsIntrastatReportingRelevant | I_CentralPurchaseOrder | IsIntrastatReportingRelevant | Intrastat rel. | |
| IsIntrastatReportingExcluded | I_CentralPurchaseOrder | IsIntrastatReportingExcluded | exclude Intra | |
| DeliveryDocumentCondition | I_CentralPurchaseOrder | DeliveryDocumentCondition | Doc. Condition | |
| PricingProcedure | I_CentralPurchaseOrder | PricingProcedure | Procedure | |
| DocumentCurrency | I_CentralPurchaseOrder | DocumentCurrency | Document Currency | |
| ExchangeRate | I_CentralPurchaseOrder | ExchangeRate | Exchange rate | |
| AbsoluteExchangeRate | I_CentralPurchaseOrder | AbsoluteExchangeRate | Absolute Exchange Rate | |
| ExchRateIsIndirectQuotation | I_CentralPurchaseOrder | ExchRateIsIndirectQuotation | Exchange Rate Is Indirect Quotation | |
| EffectiveExchangeRate | I_CentralPurchaseOrder | EffectiveExchangeRate | Effective Exch. Rate | |
| ExchangeRateForEdit | ||||
| ExchangeRateIsFixed | I_CentralPurchaseOrder | ExchangeRateIsFixed | Fixed Exch.Rate | |
| LastChangeDateTime | I_CentralPurchaseOrder | LastChangeDateTime | Timestamp | |
| ProcmtHubLastExtractionTime | I_CentralPurchaseOrder | ProcmtHubLastExtractionTime | Time Stamp | |
| ManualSupplierAddressID | I_CentralPurchaseOrder | ManualSupplierAddressID | Address Number | |
| HasNote | I_CentralPurchaseOrder | HasNote | TRUE | |
| HasAttachment | I_CentralPurchaseOrder | HasAttachment | Truth Value | |
| PurchaseOrderNetAmount | ||||
| NumberOfOverduePurOrders | I_CentralPurchaseOrder | NumberOfOverduePurOrders | NoofOverduePurOrder | |
| NumberOfOverduePurOrdItm | I_CentralPurchaseOrder | NumberOfOverduePurOrdItm | NoofOverduePOrderItm | |
| PurchaseOrderStatus | I_CentralPurchaseOrder | PurchaseOrderStatus | Doc. Status | |
| PurchaseOrderStatusName | I_CentralPurchaseOrder | PurchaseOrderStatusName | PurOrdStatusname | |
| ApproverUser | I_CentralPurchaseOrder | ApproverUser | Approver | |
| ApproverName | I_CentralPurchaseOrder | ApproverName | Approver Name | |
| ScheduleLineDeliveryDate | I_CentralPurchaseOrder | ScheduleLineDeliveryDate | Delivery Date | |
| PurOrdOutputCtrlType | I_CentralPurchaseOrder | PurOrdOutputCtrlType | PurOrdStatusFlg | |
| PurchaseOrderOutputStatus | I_CentralPurchaseOrder | PurchaseOrderOutputStatus | PurOrdStatusFlg | |
| PurchaseOrderOutputStatusName | I_CentralPurchaseOrder | PurchaseOrderOutputStatusName | PurOrdStatusName | |
| PurchaseOrderOutputDateTime | I_CentralPurchaseOrder | PurchaseOrderOutputDateTime | Time Stamp | |
| WeightedRelevance | I_CentralPurchaseOrder | WeightedRelevance | Weighted Relevance | |
| PurchaseOrderOutputIndCode | I_CentralPurchaseOrder | PurchaseOrderOutputIndCode | Pur ord outp Ind | |
| PurchaseOrderOutputIndDesc | I_CentralPurchaseOrder | PurchaseOrderOutputIndDesc | Outp Ind Name | |
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | ||
| _User | _User | |||
| _PurchaseOrderItemTP | _PurchaseOrderItemTP | |||
| _DocumentCurrency | _DocumentCurrency |
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_CentralPurchaseOrderTP.
-- 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: ICPURORDTP
CREATE VIEW I_CentralPurchaseOrderTP AS
SELECT
Document.PurchaseOrder AS PurchaseOrder,
Document.ExtSourceSystem AS ExtSourceSystem,
PurchasingDocumentCategory,
Document.PurchaseOrderType AS PurchaseOrderType,
Document.PurchaseOrderSubtype AS PurchaseOrderSubtype,
Document.PurchasingDocumentOrigin AS PurchasingDocumentOrigin,
Document.CreatedByUser AS CreatedByUser,
Document.CreatedByUserName AS CreatedByUserFullName,
Document.CreationDate AS CreationDate,
Document.PurchaseOrderDate AS PurchaseOrderDate,
Document.ValidityStartDate AS ValidityStartDate,
Document.ValidityEndDate AS ValidityEndDate,
Document.Language AS Language,
Document.PurchasingDocumentDeletionCode AS PurchasingDocumentDeletionCode,
Document.ReleaseIsNotCompleted AS ReleaseIsNotCompleted,
Document.PurchasingProcessingStatus AS PurchasingProcessingStatus,
Document.PurchasingCompletenessStatus AS PurchasingCompletenessStatus,
Document.CompanyCode AS CompanyCode,
Document.CompanyCodeCountry AS CompanyCodeCountry,
Document.PurchasingOrganization AS PurchasingOrganization,
Document.PurchasingGroup AS PurchasingGroup,
Document.Supplier AS Supplier,
Document.SupplierRespSalesPersonName AS SupplierRespSalesPersonName,
Document.SupplierPhoneNumber AS SupplierPhoneNumber,
Document.SupplyingSupplier AS SupplyingSupplier,
Document.SupplyingPlant AS SupplyingPlant,
Document.InvoicingParty AS InvoicingParty,
Document.PaymentTerms AS PaymentTerms,
Document.CashDiscount1Days AS CashDiscount1Days,
Document.CashDiscount2Days AS CashDiscount2Days,
Document.NetPaymentDays AS NetPaymentDays,
Document.CashDiscount1Percent AS CashDiscount1Percent,
Document.CashDiscount2Percent AS CashDiscount2Percent,
Document.IncotermsClassification AS IncotermsClassification,
Document.IncotermsTransferLocation AS IncotermsTransferLocation,
Document.IncotermsVersion AS IncotermsVersion,
Document.IncotermsLocation1 AS IncotermsLocation1,
Document.IncotermsLocation2 AS IncotermsLocation2,
Document.IsIntrastatReportingRelevant AS IsIntrastatReportingRelevant,
Document.IsIntrastatReportingExcluded AS IsIntrastatReportingExcluded,
Document.DeliveryDocumentCondition AS DeliveryDocumentCondition,
Document.PricingProcedure AS PricingProcedure,
Document.DocumentCurrency AS DocumentCurrency,
Document.ExchangeRate AS ExchangeRate,
Document.AbsoluteExchangeRate AS AbsoluteExchangeRate,
Document.ExchRateIsIndirectQuotation AS ExchRateIsIndirectQuotation,
Document.EffectiveExchangeRate AS EffectiveExchangeRate,
cast(Document.ExchangeRate as abap.char( 12 )) AS ExchangeRateForEdit,
Document.ExchangeRateIsFixed AS ExchangeRateIsFixed,
Document.LastChangeDateTime AS LastChangeDateTime,
Document.ProcmtHubLastExtractionTime AS ProcmtHubLastExtractionTime,
Document.ManualSupplierAddressID AS ManualSupplierAddressID,
Document.HasNote AS HasNote,
Document.HasAttachment AS HasAttachment,
Document.NumberOfOverduePurOrders AS NumberOfOverduePurOrders,
Document.NumberOfOverduePurOrdItm AS NumberOfOverduePurOrdItm,
Document.PurchaseOrderStatus AS PurchaseOrderStatus,
Document.PurchaseOrderStatusName AS PurchaseOrderStatusName,
Document.ApproverUser AS ApproverUser,
Document.ApproverName AS ApproverName,
Document.ScheduleLineDeliveryDate AS ScheduleLineDeliveryDate,
Document.PurOrdOutputCtrlType AS PurOrdOutputCtrlType,
Document.PurchaseOrderOutputStatus AS PurchaseOrderOutputStatus,
Document.PurchaseOrderOutputStatusName AS PurchaseOrderOutputStatusName,
Document.PurchaseOrderOutputDateTime AS PurchaseOrderOutputDateTime,
Document.WeightedRelevance AS WeightedRelevance,
Document.PurchaseOrderOutputIndCode AS PurchaseOrderOutputIndCode,
Document.PurchaseOrderOutputIndDesc AS PurchaseOrderOutputIndDesc,
IsEndOfPurposeBlocked
FROM I_CentralPurchaseOrder AS Document
LEFT OUTER JOIN I_CentralPurchaseOrderItemTP AS _PurchaseOrderItemTP ON _PurchaseOrderItemTP.PurchaseOrder = PurchaseOrder AND _PurchaseOrderItemTP.ExtSourceSystem = ExtSourceSystem -- association [1..*]
LEFT OUTER JOIN I_User AS _User ON _User.UserID = CreatedByUser -- 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