I_PURCHASEORDERAPI01
Purchase Order
I_PURCHASEORDERAPI01 is a CDS View in S/4HANA. Purchase Order. It contains 3 fields. 4 CDS views read from this table.
CDS Views using this table (4)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| C_PurchaseOrderDEX | view | from | CONSUMPTION | Data Extraction for Purchase Order |
| C_PurchaseOrderWorkflowEmail | view | left_outer | CONSUMPTION | Purchase Order Details for Workflow Deadline Email |
| I_ExsTxPurOrderHistory | view | inner | COMPOSITE | Excise Tax Purchase Order History |
| I_PurchaseOrderText | view | from | BASIC | PurchaseOrderText |
Fields (3)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| DocumentCurrency | DocumentCurrency | 1 | |
| PurchaseOrderType | PurchaseOrderType | 2 | |
| Supplier | Supplier | 1 |
@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,
PurchaseOrderType,
PurchaseOrderSubtype,
PurchasingDocumentOrigin,
//Admin
CreatedByUser,
CreationDate,
PurchaseOrderDate,
Language,
CorrespncExternalReference,
CorrespncInternalReference,
//Status
PurchaseOrderDeletionCode as PurchasingDocumentDeletionCode,
ReleaseIsNotCompleted,
PurchasingCompletenessStatus,
PurchasingProcessingStatus,
PurgReleaseSequenceStatus,
ReleaseCode,
//Organization
CompanyCode,
PurchasingOrganization,
PurchasingGroup,
//Supplier
Supplier,
ManualSupplierAddressID,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
SupplyingSupplier,
SupplyingPlant,
InvoicingParty,
Customer,
//Quotation
SupplierQuotationExternalID,
//PaymentTerms
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
//DownPayment
DownPaymentType,
DownPaymentPercentageOfTotAmt,
@Semantics.amount.currencyCode: 'DocumentCurrency'
DownPaymentAmount,
DownPaymentDueDate,
//Incoterms
IncotermsClassification,
IncotermsTransferLocation,
IncotermsVersion,
IncotermsLocation1,
IncotermsLocation2,
//Intratat
IsIntrastatReportingRelevant,
IsIntrastatReportingExcluded,
//Pricing
PricingDocument,
PricingProcedure,
@Semantics.currencyCode:true
DocumentCurrency,
ValidityStartDate,
ValidityEndDate,
ExchangeRate,
ExchangeRateIsFixed,
LastChangeDateTime,
TaxReturnCountry,
VATRegistrationCountry,
PurgReasonForDocCancellation,
@Semantics.amount.currencyCode: 'DocumentCurrency'
PurgReleaseTimeTotalAmount,
PurgAggrgdProdCmplncSuplrSts,
PurgAggrgdProdMarketabilitySts,
PurgAggrgdSftyDataSheetStatus,
PurgProdCmplncTotDngrsGoodsSts,
// Associations
_PurchaseOrderItem
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"R_PURCHASEORDER"
],
"ASSOCIATED":
[
"E_PURCHASINGDOCUMENT",
"I_PURCHASEORDERITEMAPI01"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/