I_PurchaseOrderAPI01
Purchase Order
I_PurchaseOrderAPI01 is a Basic CDS View that provides data about "Purchase Order" in SAP S/4HANA. It reads from 1 data source (R_PurchaseOrder) and exposes 82 fields with key field PurchaseOrder. It has 2 associations to related views. Part of development package VDM_MM_PUR_PO_PUBLIC.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_PurchaseOrder | R_PurchaseOrder | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_PurchaseOrderItemAPI01 | _PurchaseOrderItem | $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder --Extension |
| [1..1] | E_PurchasingDocument | _PurchaseOrderExtension | $projection.PurchaseOrder = _PurchaseOrderExtension.PurchasingDocument |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | IMMPURORDAPI01 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Purchase Order | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | PurchaseOrder | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view |
Fields (82)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | ||
| PurchaseOrderType | PurchaseOrderType | |||
| PurchaseOrderSubtype | PurchaseOrderSubtype | |||
| PurchasingDocumentOrigin | PurchasingDocumentOrigin | |||
| CreatedByUser | CreatedByUser | |||
| CreationDate | CreationDate | |||
| PurchaseOrderDate | PurchaseOrderDate | |||
| Language | Language | |||
| CorrespncExternalReference | CorrespncExternalReference | |||
| CorrespncInternalReference | CorrespncInternalReference | |||
| PurchasingDocumentDeletionCode | PurchaseOrderDeletionCode | |||
| ReleaseIsNotCompleted | ReleaseIsNotCompleted | |||
| PurchasingCompletenessStatus | PurchasingCompletenessStatus | |||
| PurchasingProcessingStatus | PurchasingProcessingStatus | |||
| PurgReleaseSequenceStatus | PurgReleaseSequenceStatus | |||
| ReleaseCode | ReleaseCode | |||
| CompanyCode | CompanyCode | |||
| PurchasingOrganization | PurchasingOrganization | |||
| PurchasingGroup | PurchasingGroup | |||
| Supplier | Supplier | |||
| ManualSupplierAddressID | ManualSupplierAddressID | |||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | |||
| SupplierPhoneNumber | SupplierPhoneNumber | |||
| SupplyingSupplier | SupplyingSupplier | |||
| SupplyingPlant | SupplyingPlant | |||
| InvoicingParty | InvoicingParty | |||
| Customer | Customer | |||
| SupplierQuotationExternalID | SupplierQuotationExternalID | |||
| PaymentTerms | PaymentTerms | |||
| CashDiscount1Days | CashDiscount1Days | |||
| CashDiscount2Days | CashDiscount2Days | |||
| NetPaymentDays | NetPaymentDays | |||
| CashDiscount1Percent | CashDiscount1Percent | |||
| CashDiscount2Percent | CashDiscount2Percent | |||
| DownPaymentType | DownPaymentType | |||
| DownPaymentPercentageOfTotAmt | DownPaymentPercentageOfTotAmt | |||
| DownPaymentAmount | DownPaymentAmount | |||
| DownPaymentDueDate | DownPaymentDueDate | |||
| IncotermsClassification | IncotermsClassification | |||
| IncotermsTransferLocation | IncotermsTransferLocation | |||
| IncotermsVersion | IncotermsVersion | |||
| IncotermsLocation1 | IncotermsLocation1 | |||
| IncotermsLocation2 | IncotermsLocation2 | |||
| IsIntrastatReportingRelevant | IsIntrastatReportingRelevant | |||
| IsIntrastatReportingExcluded | IsIntrastatReportingExcluded | |||
| PricingDocument | PricingDocument | |||
| PricingProcedure | PricingProcedure | |||
| DocumentCurrency | DocumentCurrency | |||
| ValidityStartDate | ValidityStartDate | |||
| ValidityEndDate | ValidityEndDate | |||
| ExchangeRate | ExchangeRate | |||
| ExchangeRateIsFixed | ExchangeRateIsFixed | |||
| LastChangeDateTime | LastChangeDateTime | |||
| TaxReturnCountry | TaxReturnCountry | |||
| VATRegistration | VATRegistration | |||
| VATRegistrationCountry | VATRegistrationCountry | |||
| PurgReasonForDocCancellation | PurgReasonForDocCancellation | |||
| PurgReleaseTimeTotalAmount | PurgReleaseTimeTotalAmount | |||
| PurgAggrgdProdCmplncSuplrSts | PurgAggrgdProdCmplncSuplrSts | |||
| PurgAggrgdProdMarketabilitySts | PurgAggrgdProdMarketabilitySts | |||
| PurgAggrgdSftyDataSheetStatus | PurgAggrgdSftyDataSheetStatus | |||
| PurgProdCmplncTotDngrsGoodsSts | PurgProdCmplncTotDngrsGoodsSts | |||
| _PurchaseOrderItem | _PurchaseOrderItem | |||
| _Supplier | _Supplier | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _PurchaseOrderType | _PurchaseOrderType | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _CompanyCode | _CompanyCode | |||
| _SupplyingSupplier | _SupplyingSupplier | |||
| _InvoicingParty | _InvoicingParty | |||
| _SupplyingPlant | _SupplyingPlant | |||
| _PurchaseOrderTypeText | _PurchaseOrderTypeText | |||
| _PurchaseOrderDeletionCodeText | _PurchaseOrderDeletionCodeText | |||
| _IncotermsClassificationText | _IncotermsClassificationText | |||
| _IncotermsVersionText | _IncotermsVersionText | |||
| _DocumentCurrencyText | _DocumentCurrencyText | |||
| _TaxReturnCountryText | _TaxReturnCountryText | |||
| _VATRegistrationCountryText | _VATRegistrationCountryText | |||
| _PurgTotProdCmplncSuplrStsT | _PurgTotProdCmplncSuplrStsT | |||
| _PurgTotProdMarketabilityStsT | _PurgTotProdMarketabilityStsT | |||
| _PurgAggrgdSftyDataSheetStsT | _PurgAggrgdSftyDataSheetStsT | |||
| _PurgTotDangerousGoodsStsT | _PurgTotDangerousGoodsStsT |
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'IMMPURORDAPI01'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType : #BASIC
@EndUserText.label: 'Purchase Order'
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.representativeKey: 'PurchaseOrder'
@ObjectModel.supportedCapabilities: [ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@Metadata.ignorePropagatedAnnotations:true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
define view I_PurchaseOrderAPI01
as select from R_PurchaseOrder
association [0..*] to I_PurchaseOrderItemAPI01 as _PurchaseOrderItem on $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder
--Extension Association
association [1..1] to E_PurchasingDocument as _PurchaseOrderExtension on $projection.PurchaseOrder = _PurchaseOrderExtension.PurchasingDocument
{
//Key
key PurchaseOrder,
@ObjectModel.text.association: '_PurchaseOrderTypeText'
PurchaseOrderType,
PurchaseOrderSubtype,
PurchasingDocumentOrigin,
//Admin
CreatedByUser,
CreationDate,
PurchaseOrderDate,
Language,
CorrespncExternalReference,
CorrespncInternalReference,
//Status
@ObjectModel.text.association: '_PurchaseOrderDeletionCodeText'
PurchaseOrderDeletionCode as PurchasingDocumentDeletionCode,
ReleaseIsNotCompleted,
PurchasingCompletenessStatus,
PurchasingProcessingStatus,
PurgReleaseSequenceStatus,
ReleaseCode,
//Organization
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_CompanyCodeStdVH', element: 'CompanyCode' }, useAsTemplate: true }] //CustomUI
CompanyCode,
PurchasingOrganization,
PurchasingGroup,
//Supplier
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_Supplier_VH', element: 'Supplier' }, useAsTemplate: true }] //CustomUI
Supplier,
ManualSupplierAddressID,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_Supplier_VH', element: 'Supplier' }, useAsTemplate: true }] //CustomUI
SupplyingSupplier,
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_PlantStdVH', element: 'Plant' }, useAsTemplate: true }] //CustomUI
SupplyingPlant,
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_Supplier_VH', element: 'Supplier' }, useAsTemplate: true }] //CustomUI
InvoicingParty,
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_Customer_VH', element: 'Customer' }, useAsTemplate: true }] //CustomUI
Customer,
//Quotation
SupplierQuotationExternalID,
//PaymentTerms
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
//DownPayment
DownPaymentType,
DownPaymentPercentageOfTotAmt,
@Semantics.amount.currencyCode: 'DocumentCurrency'
DownPaymentAmount,
DownPaymentDueDate,
//Incoterms
@ObjectModel.text.association: '_IncotermsClassificationText'
IncotermsClassification,
IncotermsTransferLocation,
@ObjectModel.text.association: '_IncotermsVersionText'
IncotermsVersion,
IncotermsLocation1,
IncotermsLocation2,
//Intratat
IsIntrastatReportingRelevant,
IsIntrastatReportingExcluded,
//Pricing
PricingDocument,
PricingProcedure,
@Semantics.currencyCode:true
@ObjectModel.text.association: '_DocumentCurrencyText'
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_CurrencyStdVH', element: 'Currency' }, useAsTemplate: true }] //CustomUI
DocumentCurrency,
ValidityStartDate,
ValidityEndDate,
ExchangeRate,
ExchangeRateIsFixed,
LastChangeDateTime,
@ObjectModel.text.association: '_TaxReturnCountryText'
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_CountryVH', element: 'Country' }, useAsTemplate: true }] //CustomUI
TaxReturnCountry,
VATRegistration,
@ObjectModel.text.association: '_VATRegistrationCountryText'
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_CountryVH', element: 'Country' }, useAsTemplate: true }] //CustomUI
VATRegistrationCountry,
PurgReasonForDocCancellation,
@Semantics.amount.currencyCode: 'DocumentCurrency'
PurgReleaseTimeTotalAmount,
@ObjectModel.text.association: '_PurgTotProdCmplncSuplrStsT'
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_PurgAggrgdProdCmplncSuplrSts', element: 'PurgAggrgdProdCmplncSuplrSts' },useAsTemplate: true }] //CustomUI
PurgAggrgdProdCmplncSuplrSts,
@ObjectModel.text.association: '_PurgTotProdMarketabilityStsT'
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_PurgTotProdMarketabilitySts', element: 'PurgAggrgdProdMarketabilitySts' },useAsTemplate: true }] //CustomUI
PurgAggrgdProdMarketabilitySts,
@ObjectModel.text.association: '_PurgAggrgdSftyDataSheetStsT'
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_PurgAggrgdSftyDataSheetSts', element: 'PurgAggrgdSftyDataSheetStatus' },useAsTemplate: true }] //CustomUI
PurgAggrgdSftyDataSheetStatus,
@ObjectModel.text.association: '_PurgTotDangerousGoodsStsT'
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_PurgProdCmplncTotDngrsGdsSts', element: 'PurgProdCmplncTotDngrsGoodsSts' },useAsTemplate: true }] //CustomUI
PurgProdCmplncTotDngrsGoodsSts,
// Associations
_PurchaseOrderItem,
_Supplier,
_PurchasingGroup,
// CustomUI additions //too many associations ATC
_PurchaseOrderType,
_PurchasingOrganization,
_CompanyCode,
_SupplyingSupplier,
_InvoicingParty,
_SupplyingPlant,
// Text associations for CustomUI
_PurchaseOrderTypeText,
_PurchaseOrderDeletionCodeText,
_IncotermsClassificationText,
_IncotermsVersionText,
_DocumentCurrencyText,
_TaxReturnCountryText,
_VATRegistrationCountryText,
_PurgTotProdCmplncSuplrStsT,
_PurgTotProdMarketabilityStsT,
_PurgAggrgdSftyDataSheetStsT,
_PurgTotDangerousGoodsStsT
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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