R_PurchasingDocument
Purchasing Document
R_PurchasingDocument is a Basic CDS View that provides data about "Purchasing Document" in SAP S/4HANA. It reads from 1 data source (ekko) and exposes 141 fields with key field PurchasingDocument. It has 39 associations to related views. Part of development package VDM_MM_PUR_PD.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ekko | ekko | from |
Associations (39)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PurchasingDocumentCategory | _PurchasingDocumentCategory | $projection.PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory |
| [0..1] | I_PurchasingDocumentType | _PurchasingDocumentType | $projection.PurchasingDocumentCategory = _PurchasingDocumentType.PurchasingDocumentCategory and $projection.PurchasingDocumentType = _PurchasingDocumentType.PurchasingDocumentType |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Supplier | _SupplyingSupplier | $projection.SupplyingSupplier = _SupplyingSupplier.Supplier |
| [0..1] | I_Supplier | _InvoicingParty | $projection.InvoicingParty = _InvoicingParty.Supplier |
| [0..1] | I_PaymentTerms | _PaymentTerms | $projection.PaymentTerms = _PaymentTerms.PaymentTerms |
| [0..1] | I_Address | _SupplierAddress | $projection.ManualSupplierAddressID = _SupplierAddress.AddressID |
| [0..1] | I_OrganizationAddress | _SupplierAddress_2 | $projection.ManualSupplierAddressID = _SupplierAddress_2.AddressID and _SupplierAddress_2.AddressPersonID = ' ' and _SupplierAddress_2.AddressRepresentationCode = ' ' |
| [0..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [0..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [0..1] | I_Currency | _DocumentCurrency | $projection.DocumentCurrency = _DocumentCurrency.Currency |
| [0..1] | I_IncotermsClassification | _IncotermsClassification | $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification |
| [0..1] | I_IncotermsVersion | _IncotermsVersion | $projection.IncotermsVersion = _IncotermsVersion.IncotermsVersion |
| [0..1] | I_Plant | _SupplyingPlant | $projection.SupplyingPlant = _SupplyingPlant.Plant |
| [0..*] | I_PurchasingDocumentItem | _PurchasingDocumentItem | $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument |
| [0..*] | I_PurchasingDocumentPartner | _PurchasingDocumentPartner | $projection.PurchasingDocument = _PurchasingDocumentPartner.PurchasingDocument |
| [0..1] | I_PurchasingDocumentOrigin | _PurchasingDocumentOrigin | $projection.PurchasingDocumentOrigin = _PurchasingDocumentOrigin.PurchasingDocumentOrigin |
| [0..1] | I_ReleaseCode | _ReleaseCode | $projection.ReleaseCode = _ReleaseCode.ReleaseCode |
| [0..1] | I_PurchaseContract | _PurchaseContract | $projection.PurchaseContract = _PurchaseContract.PurchaseContract |
| [0..1] | I_Language | _Language | $projection.Language = _Language.Language |
| [0..1] | I_TaxCalculationProcedure | _PricingProcedure | $projection.PricingProcedure = _PricingProcedure.TaxCalculationProcedure |
| [0..1] | I_PurchasingProcessingStatus | _PurchasingProcessingStatus | $projection.PurchasingProcessingStatus = _PurchasingProcessingStatus.PurchasingProcessingStatus |
| [0..1] | I_OvrlTrdCmplncLegalCtrlChkSts | _OvrlTrdCmplncLegalCtrlChkSts | $projection.OvrlTrdCmplncLegalCtrlChkSts = _OvrlTrdCmplncLegalCtrlChkSts.OvrlTrdCmplncLegalCtrlChkSts |
| [0..1] | I_OvrlTradeCmplncEmbargoStatus | _OverallTrdCmplncEmbargoSts | $projection.OverallTrdCmplncEmbargoSts = _OverallTrdCmplncEmbargoSts.OverallTrdCmplncEmbargoSts |
| [0..1] | I_OvTrdCmplncSnctndListChkSts | _OvrlTrdCmplncSnctndListChkSts | $projection.OvrlTrdCmplncSnctndListChkSts = _OvrlTrdCmplncSnctndListChkSts.OvrlTrdCmplncSnctndListChkSts |
| [0..*] | I_IncotermsClassificationText | _IncotermsClassificationText | $projection.IncotermsClassification = _IncotermsClassificationText.IncotermsClassification |
| [0..*] | I_IncotermsVersionText | _IncotermsVersionText | $projection.IncotermsVersion = _IncotermsVersionText.IncotermsVersion |
| [0..*] | I_CurrencyText | _DocumentCurrencyText | $projection.DocumentCurrency = _DocumentCurrencyText.Currency |
| [0..*] | I_CountryText | _TaxReturnCountryText | $projection.TaxReturnCountry = _TaxReturnCountryText.Country |
| [0..*] | I_CountryText | _VATRegistrationCountryText | $projection.VATRegistrationCountry = _VATRegistrationCountryText.Country |
| [0..*] | I_PurgTotProdCmplncSuplrStsT | _PurgTotProdCmplncSuplrStsT | $projection.PurgAggrgdProdCmplncSuplrSts = _PurgTotProdCmplncSuplrStsT.PurgAggrgdProdCmplncSuplrSts |
| [0..*] | I_PurgTotProdMarketabilityStsT | _PurgTotProdMarketabilityStsT | $projection.PurgAggrgdProdMarketabilitySts = _PurgTotProdMarketabilityStsT.PurgAggrgdProdMarketabilitySts |
| [0..*] | I_PurgAggrgdSftyDataSheetStsT | _PurgAggrgdSftyDataSheetStsT | $projection.PurgAggrgdSftyDataSheetStatus = _PurgAggrgdSftyDataSheetStsT.PurgAggrgdSftyDataSheetStatus |
| [0..*] | I_PurgTotDangerousGoodsStsT | _PurgTotDangerousGoodsStsT | $projection.PurgProdCmplncTotDngrsGoodsSts = _PurgTotDangerousGoodsStsT.PurgProdCmplncTotDngrsGoodsSts |
| [0..*] | I_OvTrdComplLegalCtrlChkStsTxt | _OvTrdComplLegalCtrlChkStsTxt | $projection.OvrlTrdCmplncLegalCtrlChkSts = _OvTrdComplLegalCtrlChkStsTxt.OvrlTrdCmplncLegalCtrlChkSts |
| [0..*] | I_OvrlTradeCmplncEmbargoStsTxt | _OvrlTradeCmplncEmbargoStsTxt | $projection.OverallTrdCmplncEmbargoSts = _OvrlTradeCmplncEmbargoStsTxt.OverallTrdCmplncEmbargoSts |
| [0..*] | I_OvTrdComplSanctListChkStsTxt | _OvTrdComplSanctListChkStsTxt | $projection.OvrlTrdCmplncSnctndListChkSts = _OvTrdComplSanctListChkStsTxt.OvrlTrdCmplncSnctndListChkSts |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Purchasing Document | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| VDM.viewType | #BASIC | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.representativeKey | PurchasingDocument | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Analytics.technicalName | RMMPURCHASINGDOC | view |
Fields (141)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | ekko | ebeln | |
| PurchasingDocumentCategory | ekko | bstyp | ||
| PurchasingDocumentType | ekko | bsart | ||
| PurchasingDocumentSubtype | ekko | bsakz | ||
| PurchasingDocumentProcessCode | ekko | process_indicator | ||
| CompanyCode | ekko | bukrs | ||
| PurchasingDocumentDeletionCode | ekko | loekz | ||
| PurchasingDocumentIsAged | ekko | isaged | ||
| ItemNumberInterval | ekko | pincr | ||
| ItemNumberIntervalForSubItems | ekko | upinc | ||
| PurchasingDocumentOrigin | ekko | statu | ||
| ReleaseIsNotCompleted | ekko | frgrl | ||
| ReleaseCode | ekko | frgke | ||
| PurchasingReleaseStrategy | ekko | frgsx | ||
| PurgReleaseSequenceStatus | ekko | frgzu | ||
| TaxReturnCountry | ekko | lands | ||
| CreationDate | ekko | aedat | ||
| LastChangeDateTime | ekko | lastchangedatetime | ||
| CreatedByUser | ekko | ernam | ||
| Supplier | ||||
| SupplierRespSalesPersonName | ekko | verkf | ||
| SupplierPhoneNumber | ||||
| SupplierAddressID | ekko | adrnr | ||
| ManualSupplierAddressID | ekko | adrnr | ||
| CorrespncExternalReference | ekko | ihrez | ||
| CorrespncInternalReference | ekko | unsez | ||
| PurchasingOrganization | ekko | ekorg | ||
| PurchasingGroup | ekko | ekgrp | ||
| DocumentCurrency | ekko | waers | ||
| ExchangeRate | ||||
| PurchasingDocumentOrderDate | ekko | bedat | ||
| SupplyingSupplier | ekko | llief | ||
| SupplyingPlant | ekko | reswk | ||
| InvoicingParty | ekko | lifre | ||
| Customer | ekko | kunnr | ||
| PurchaseContract | ekko | konnr | ||
| Language | ekko | spras | ||
| PurgReasonForDocCancellation | ekko | absgr | ||
| PurchasingCompletenessStatus | ekko | memory | ||
| IncotermsClassification | ekko | inco1 | ||
| IncotermsTransferLocation | ekko | inco2 | ||
| PaymentTerms | ||||
| CashDiscount1Days | ||||
| CashDiscount2Days | ||||
| NetPaymentDays | ||||
| CashDiscount1Percent | ekko | zbd1p | ||
| CashDiscount2Percent | ekko | zbd2p | ||
| PricingProcedure | ekko | kalsm | ||
| TargetAmount | ekko | ktwrt | ||
| PurgDocumentDistributionType | ekko | distributiontype | ||
| PurgSingleCardinalityDistrType | ekko | singlecardinalitydistrtype | ||
| PricingDocument | ekko | knumv | ||
| ValidityStartDate | ekko | kdatb | ||
| ValidityEndDate | ekko | kdate | ||
| ScheduleAgreementHasReleaseDoc | ekko | lphis | ||
| QuotationLatestSubmissionDate | ekko | angdt | ||
| BindingPeriodValidityEndDate | ekko | bnddt | ||
| QuotationSubmissionDate | ekko | ihran | ||
| PurchasingCollectiveNumber | ekko | submi | ||
| SupplierQuotationExternalID | ekko | angnr | ||
| RequestForQuotation | ekko | ausnr | ||
| ExchangeRateIsFixed | ekko | kufix | ||
| IncotermsVersion | ekko | incov | ||
| IncotermsLocation1 | ekko | inco2_l | ||
| IncotermsLocation2 | ekko | inco3_l | ||
| IncotermsSupChnLoc1AddlUUID | ||||
| IncotermsSupChnLoc2AddlUUID | ||||
| IncotermsSupChnDvtgLocAddlUUID | ||||
| PurchasingProcessingStatus | ekko | procstat | ||
| PurgReleaseTimeTotalAmount | ekko | rlwrt | ||
| DownPaymentType | ekko | dptyp | ||
| DownPaymentPercentageOfTotAmt | ekko | dppct | ||
| DownPaymentAmount | ekko | dpamt | ||
| DownPaymentDueDate | ekko | dpdat | ||
| PurchasingDocumentName | ||||
| QuotationEarliestSubmsnDate | ekko | qtn_erlst_submsn_date | ||
| LatestRegistrationDate | ekko | bwbdt | ||
| FollowOnDocumentCategory | ekko | followon_doc_cat | ||
| PurgDocDefaultShippingType | ekko | vsart | ||
| FollowOnDocumentType | ekko | followon_doc_type | ||
| PurgDocFollowOnDocumentType | ekko | followon_doc_type | ||
| VATRegistration | ekko | stceg | ||
| VATRegistrationCountry | ekko | stceg_l | ||
| IsIntrastatReportingRelevant | ekko | intra_rel | ||
| IsIntrastatReportingExcluded | ekko | intra_excl | ||
| IsEndOfPurposeBlocked | ekko | iseopblocked | ||
| ActivePurchasingDocument | ekko | active_id | ||
| PurgDocChangeRequestStatus | ekko | cr_stat | ||
| PurchasingDocumentVersion | ekko | revno | ||
| PurgDocExternalReference | ekko | externalreferenceid | ||
| PurgProdCmplncTotDngrsGoodsSts | ekko | total_status_dg | ||
| PurgAggrgdProdCmplncSuplrSts | ekko | total_status_pcs | ||
| PurgAggrgdProdMarketabilitySts | ekko | total_status_pma | ||
| PurgAggrgdSftyDataSheetStatus | ekko | total_status_sds | ||
| OverallTrdCmplncEmbargoSts | ekko | total_status_emcst | ||
| OvrlTrdCmplncSnctndListChkSts | ekko | total_status_slcst | ||
| OvrlTrdCmplncLegalCtrlChkSts | ekko | total_status_lccst | ||
| PurchasingParentDocument | ekko | parent_id | ||
| ProcmtHubCompanyCodeGroupingID | ekko | grouping_id | ||
| PurgHasCatalogRelevantItems | ekko | has_catalog_relevant_items | ||
| MsgOnGoodsReceiptIsRequested | ||||
| ContrCnsmpnCheckOnChangeIsRqd | ekko | contr_cnsmpn_check_is_rqd | ||
| _CompanyCode | _CompanyCode | |||
| _PurchasingDocumentType | _PurchasingDocumentType | |||
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _Supplier | _Supplier | |||
| _SupplyingSupplier | _SupplyingSupplier | |||
| _InvoicingParty | _InvoicingParty | |||
| _PaymentTerms | _PaymentTerms | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _SupplierAddress | _SupplierAddress | |||
| _SupplierAddress_2 | _SupplierAddress_2 | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _CreatedByUser | _CreatedByUser | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _SupplyingPlant | _SupplyingPlant | |||
| _PurchasingDocumentOrigin | _PurchasingDocumentOrigin | |||
| _ReleaseCode | _ReleaseCode | |||
| _PurchaseContract | _PurchaseContract | |||
| _Language | _Language | |||
| _PricingProcedure | _PricingProcedure | |||
| _PurchasingDocumentItem | _PurchasingDocumentItem | |||
| _PurchasingDocumentPartner | _PurchasingDocumentPartner | |||
| _PurchasingProcessingStatus | _PurchasingProcessingStatus | |||
| _OvrlTrdCmplncLegalCtrlChkSts | _OvrlTrdCmplncLegalCtrlChkSts | |||
| _OverallTrdCmplncEmbargoSts | _OverallTrdCmplncEmbargoSts | |||
| _OvrlTrdCmplncSnctndListChkSts | _OvrlTrdCmplncSnctndListChkSts | |||
| _IncotermsClassificationText | _IncotermsClassificationText | |||
| _IncotermsVersionText | _IncotermsVersionText | |||
| _DocumentCurrencyText | _DocumentCurrencyText | |||
| _TaxReturnCountryText | _TaxReturnCountryText | |||
| _VATRegistrationCountryText | _VATRegistrationCountryText | |||
| _PurgTotProdCmplncSuplrStsT | _PurgTotProdCmplncSuplrStsT | |||
| _PurgTotProdMarketabilityStsT | _PurgTotProdMarketabilityStsT | |||
| _PurgAggrgdSftyDataSheetStsT | _PurgAggrgdSftyDataSheetStsT | |||
| _PurgTotDangerousGoodsStsT | _PurgTotDangerousGoodsStsT | |||
| _OvTrdComplLegalCtrlChkStsTxt | _OvTrdComplLegalCtrlChkStsTxt | |||
| _OvrlTradeCmplncEmbargoStsTxt | _OvrlTradeCmplncEmbargoStsTxt | |||
| _OvTrdComplSanctListChkStsTxt | _OvTrdComplSanctListChkStsTxt |
@EndUserText.label: 'Purchasing Document'
@AccessControl.authorizationCheck:#PRIVILEGED_ONLY
@VDM.viewType : #BASIC
@Metadata.ignorePropagatedAnnotations: true
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@ObjectModel: {
representativeKey: 'PurchasingDocument',
usageType.serviceQuality: #A,
usageType.sizeCategory: #L,
usageType.dataClass: #TRANSACTIONAL
}
@Analytics.technicalName: 'RMMPURCHASINGDOC'
@AccessControl.privilegedAssociations: [ '_SupplierAddress' ]
define view entity R_PurchasingDocument
as select from ekko as ekko //PurgDoc
association [1..1] to I_PurchasingDocumentCategory as _PurchasingDocumentCategory on $projection.PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory
association [0..1] to I_PurchasingDocumentType as _PurchasingDocumentType on $projection.PurchasingDocumentCategory = _PurchasingDocumentType.PurchasingDocumentCategory
and $projection.PurchasingDocumentType = _PurchasingDocumentType.PurchasingDocumentType
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [0..1] to I_User as _CreatedByUser on $projection.CreatedByUser = _CreatedByUser.UserID
association [0..1] to I_Supplier as _Supplier on $projection.Supplier = _Supplier.Supplier
association [0..1] to I_Supplier as _SupplyingSupplier on $projection.SupplyingSupplier = _SupplyingSupplier.Supplier
association [0..1] to I_Supplier as _InvoicingParty on $projection.InvoicingParty = _InvoicingParty.Supplier
association [0..1] to I_PaymentTerms as _PaymentTerms on $projection.PaymentTerms = _PaymentTerms.PaymentTerms
association [0..1] to I_Address as _SupplierAddress on $projection.ManualSupplierAddressID = _SupplierAddress.AddressID
association [0..1] to I_OrganizationAddress as _SupplierAddress_2 on $projection.ManualSupplierAddressID = _SupplierAddress_2.AddressID
and _SupplierAddress_2.AddressPersonID = ' '
and _SupplierAddress_2.AddressRepresentationCode = ' '
association [0..1] to I_PurchasingOrganization as _PurchasingOrganization on $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
association [0..1] to I_PurchasingGroup as _PurchasingGroup on $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
association [0..1] to I_Currency as _DocumentCurrency on $projection.DocumentCurrency = _DocumentCurrency.Currency
association [0..1] to I_IncotermsClassification as _IncotermsClassification on $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification
association [0..1] to I_IncotermsVersion as _IncotermsVersion on $projection.IncotermsVersion = _IncotermsVersion.IncotermsVersion
association [0..1] to I_Plant as _SupplyingPlant on $projection.SupplyingPlant = _SupplyingPlant.Plant
association [0..*] to I_PurchasingDocumentItem as _PurchasingDocumentItem on $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument
association [0..*] to I_PurchasingDocumentPartner as _PurchasingDocumentPartner on $projection.PurchasingDocument = _PurchasingDocumentPartner.PurchasingDocument
association [0..1] to I_PurchasingDocumentOrigin as _PurchasingDocumentOrigin on $projection.PurchasingDocumentOrigin = _PurchasingDocumentOrigin.PurchasingDocumentOrigin
association [0..1] to I_ReleaseCode as _ReleaseCode on $projection.ReleaseCode = _ReleaseCode.ReleaseCode
association [0..1] to I_PurchaseContract as _PurchaseContract on $projection.PurchaseContract = _PurchaseContract.PurchaseContract
association [0..1] to I_Language as _Language on $projection.Language = _Language.Language
association [0..1] to I_TaxCalculationProcedure as _PricingProcedure on $projection.PricingProcedure = _PricingProcedure.TaxCalculationProcedure
association [0..1] to I_PurchasingProcessingStatus as _PurchasingProcessingStatus on $projection.PurchasingProcessingStatus = _PurchasingProcessingStatus.PurchasingProcessingStatus
association [0..1] to I_OvrlTrdCmplncLegalCtrlChkSts as _OvrlTrdCmplncLegalCtrlChkSts on $projection.OvrlTrdCmplncLegalCtrlChkSts = _OvrlTrdCmplncLegalCtrlChkSts.OvrlTrdCmplncLegalCtrlChkSts
association [0..1] to I_OvrlTradeCmplncEmbargoStatus as _OverallTrdCmplncEmbargoSts on $projection.OverallTrdCmplncEmbargoSts = _OverallTrdCmplncEmbargoSts.OverallTrdCmplncEmbargoSts
association [0..1] to I_OvTrdCmplncSnctndListChkSts as _OvrlTrdCmplncSnctndListChkSts on $projection.OvrlTrdCmplncSnctndListChkSts = _OvrlTrdCmplncSnctndListChkSts.OvrlTrdCmplncSnctndListChkSts
// Text associations
association [0..*] to I_IncotermsClassificationText as _IncotermsClassificationText on $projection.IncotermsClassification = _IncotermsClassificationText.IncotermsClassification
association [0..*] to I_IncotermsVersionText as _IncotermsVersionText on $projection.IncotermsVersion = _IncotermsVersionText.IncotermsVersion
association [0..*] to I_CurrencyText as _DocumentCurrencyText on $projection.DocumentCurrency = _DocumentCurrencyText.Currency
association [0..*] to I_CountryText as _TaxReturnCountryText on $projection.TaxReturnCountry = _TaxReturnCountryText.Country
association [0..*] to I_CountryText as _VATRegistrationCountryText on $projection.VATRegistrationCountry = _VATRegistrationCountryText.Country
association [0..*] to I_PurgTotProdCmplncSuplrStsT as _PurgTotProdCmplncSuplrStsT on $projection.PurgAggrgdProdCmplncSuplrSts = _PurgTotProdCmplncSuplrStsT.PurgAggrgdProdCmplncSuplrSts
association [0..*] to I_PurgTotProdMarketabilityStsT as _PurgTotProdMarketabilityStsT on $projection.PurgAggrgdProdMarketabilitySts = _PurgTotProdMarketabilityStsT.PurgAggrgdProdMarketabilitySts
association [0..*] to I_PurgAggrgdSftyDataSheetStsT as _PurgAggrgdSftyDataSheetStsT on $projection.PurgAggrgdSftyDataSheetStatus = _PurgAggrgdSftyDataSheetStsT.PurgAggrgdSftyDataSheetStatus
association [0..*] to I_PurgTotDangerousGoodsStsT as _PurgTotDangerousGoodsStsT on $projection.PurgProdCmplncTotDngrsGoodsSts = _PurgTotDangerousGoodsStsT.PurgProdCmplncTotDngrsGoodsSts
association [0..*] to I_OvTrdComplLegalCtrlChkStsTxt as _OvTrdComplLegalCtrlChkStsTxt on $projection.OvrlTrdCmplncLegalCtrlChkSts = _OvTrdComplLegalCtrlChkStsTxt.OvrlTrdCmplncLegalCtrlChkSts
association [0..*] to I_OvrlTradeCmplncEmbargoStsTxt as _OvrlTradeCmplncEmbargoStsTxt on $projection.OverallTrdCmplncEmbargoSts = _OvrlTradeCmplncEmbargoStsTxt.OverallTrdCmplncEmbargoSts
association [0..*] to I_OvTrdComplSanctListChkStsTxt as _OvTrdComplSanctListChkStsTxt on $projection.OvrlTrdCmplncSnctndListChkSts = _OvTrdComplSanctListChkStsTxt.OvrlTrdCmplncSnctndListChkSts
{
key ekko.ebeln as PurchasingDocument,
@ObjectModel.foreignKey.association: '_PurchasingDocumentCategory'
ekko.bstyp as PurchasingDocumentCategory,
@ObjectModel.foreignKey.association: '_PurchasingDocumentType'
ekko.bsart as PurchasingDocumentType,
ekko.bsakz as PurchasingDocumentSubtype,
ekko.process_indicator as PurchasingDocumentProcessCode,
@ObjectModel.foreignKey.association: '_CompanyCode'
ekko.bukrs as CompanyCode,
ekko.loekz as PurchasingDocumentDeletionCode,
ekko.isaged as PurchasingDocumentIsAged,
ekko.pincr as ItemNumberInterval,
ekko.upinc as ItemNumberIntervalForSubItems,
@ObjectModel.foreignKey.association: '_PurchasingDocumentOrigin'
ekko.statu as PurchasingDocumentOrigin,
ekko.frgrl as ReleaseIsNotCompleted,
@ObjectModel.foreignKey.association: '_ReleaseCode'
ekko.frgke as ReleaseCode,
ekko.frgsx as PurchasingReleaseStrategy,
ekko.frgzu as PurgReleaseSequenceStatus,
ekko.lands as TaxReturnCountry,
@Semantics.systemDate.createdAt: true
ekko.aedat as CreationDate,
ekko.lastchangedatetime as LastChangeDateTime,
@Semantics.user.createdBy: true
ekko.ernam as CreatedByUser,
@ObjectModel.foreignKey.association: '_Supplier'
cast ( ekko.lifnr as md_supplier preserving type) as Supplier,
ekko.verkf as SupplierRespSalesPersonName,
cast (ekko.telf1 as telfnr0) as SupplierPhoneNumber,
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'ManualSupplierAddressID'
ekko.adrnr as SupplierAddressID, //obsolete
@ObjectModel.foreignKey.association: '_SupplierAddress_2'
ekko.adrnr as ManualSupplierAddressID,
ekko.ihrez as CorrespncExternalReference,
ekko.unsez as CorrespncInternalReference,
@ObjectModel.foreignKey.association: '_PurchasingOrganization'
ekko.ekorg as PurchasingOrganization,
@ObjectModel.foreignKey.association: '_PurchasingGroup'
ekko.ekgrp as PurchasingGroup,
//_CompanyCode.FiscalYearVariant as FiscalYearVariant,
@ObjectModel.foreignKey.association: '_DocumentCurrency'
ekko.waers as DocumentCurrency,
cast ( ekko.wkurs as fis_exchange_rate preserving type ) as ExchangeRate,
@Semantics.businessDate.at
ekko.bedat as PurchasingDocumentOrderDate,
@ObjectModel.foreignKey.association: '_SupplyingSupplier'
ekko.llief as SupplyingSupplier,
@ObjectModel.foreignKey.association: '_SupplyingPlant'
ekko.reswk as SupplyingPlant,
@ObjectModel.foreignKey.association: '_InvoicingParty'
ekko.lifre as InvoicingParty,
ekko.kunnr as Customer,
@ObjectModel.foreignKey.association: '_PurchaseContract'
ekko.konnr as PurchaseContract,
@Semantics.language: true
@ObjectModel.foreignKey.association: '_Language'
ekko.spras as Language,
ekko.absgr as PurgReasonForDocCancellation,
ekko.memory as PurchasingCompletenessStatus,
@ObjectModel.foreignKey.association: '_IncotermsClassification'
ekko.inco1 as IncotermsClassification,
ekko.inco2 as IncotermsTransferLocation,
@ObjectModel.foreignKey.association: '_PaymentTerms'
cast( zterm as farp_dzterm preserving type) as PaymentTerms,
cast (ekko.zbd1t as dzbd1t preserving type) as CashDiscount1Days,
cast (ekko.zbd2t as dzbd2t preserving type) as CashDiscount2Days,
cast (ekko.zbd3t as dzbd3t preserving type) as NetPaymentDays,
ekko.zbd1p as CashDiscount1Percent,
ekko.zbd2p as CashDiscount2Percent,
@ObjectModel.foreignKey.association: '_PricingProcedure'
ekko.kalsm as PricingProcedure,
@Semantics.amount.currencyCode: 'DocumentCurrency'
@DefaultAggregation:#NONE
ekko.ktwrt as TargetAmount,
ekko.distributiontype as PurgDocumentDistributionType,
ekko.singlecardinalitydistrtype as PurgSingleCardinalityDistrType,
ekko.knumv as PricingDocument,
ekko.kdatb as ValidityStartDate,
ekko.kdate as ValidityEndDate,
ekko.lphis as ScheduleAgreementHasReleaseDoc,
ekko.angdt as QuotationLatestSubmissionDate,
ekko.bnddt as BindingPeriodValidityEndDate,
ekko.ihran as QuotationSubmissionDate,
ekko.submi as PurchasingCollectiveNumber,
ekko.angnr as SupplierQuotationExternalID,
ekko.ausnr as RequestForQuotation,
ekko.kufix as ExchangeRateIsFixed,
@ObjectModel.foreignKey.association: '_IncotermsVersion'
ekko.incov as IncotermsVersion,
ekko.inco2_l as IncotermsLocation1,
ekko.inco3_l as IncotermsLocation2,
cast ( ekko.inco2_key as /scmtms/inc_loc_1_key_nc preserving type ) as IncotermsSupChnLoc1AddlUUID,
cast ( ekko.inco3_key as /scmtms/inc_loc_2_key_nc preserving type ) as IncotermsSupChnLoc2AddlUUID,
cast ( ekko.inco4_key as /scmtms/inc_dv_plce_dst_key_nc preserving type ) as IncotermsSupChnDvtgLocAddlUUID,
@ObjectModel.foreignKey.association: '_PurchasingProcessingStatus'
ekko.procstat as PurchasingProcessingStatus,
@Semantics.amount.currencyCode: 'DocumentCurrency'
ekko.rlwrt as PurgReleaseTimeTotalAmount,
ekko.dptyp as DownPaymentType,
ekko.dppct as DownPaymentPercentageOfTotAmt,
@Semantics.amount.currencyCode: 'DocumentCurrency'
ekko.dpamt as DownPaymentAmount,
ekko.dpdat as DownPaymentDueDate,
cast ( ekko.description as vdm_purgdoc_name preserving type ) as PurchasingDocumentName,
ekko.qtn_erlst_submsn_date as QuotationEarliestSubmsnDate,
ekko.bwbdt as LatestRegistrationDate,
ekko.followon_doc_cat as FollowOnDocumentCategory,
ekko.vsart as PurgDocDefaultShippingType,
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'PurgDocFollowOnDocumentType'
ekko.followon_doc_type as FollowOnDocumentType,
ekko.followon_doc_type as PurgDocFollowOnDocumentType,
ekko.stceg as VATRegistration,
ekko.stceg_l as VATRegistrationCountry,
ekko.intra_rel as IsIntrastatReportingRelevant,
ekko.intra_excl as IsIntrastatReportingExcluded,
@Semantics.booleanIndicator: true
ekko.iseopblocked as IsEndOfPurposeBlocked, //IsEopBlocked
ekko.active_id as ActivePurchasingDocument,
ekko.cr_stat as PurgDocChangeRequestStatus,
ekko.revno as PurchasingDocumentVersion,
ekko.externalreferenceid as PurgDocExternalReference,
// Product Compliance Status
ekko.total_status_dg as PurgProdCmplncTotDngrsGoodsSts,
ekko.total_status_pcs as PurgAggrgdProdCmplncSuplrSts,
ekko.total_status_pma as PurgAggrgdProdMarketabilitySts,
ekko.total_status_sds as PurgAggrgdSftyDataSheetStatus,
// Trade Compliance Status
@ObjectModel.foreignKey.association: '_OverallTrdCmplncEmbargoSts'
ekko.total_status_emcst as OverallTrdCmplncEmbargoSts,
@ObjectModel.foreignKey.association: '_OvrlTrdCmplncSnctndListChkSts'
ekko.total_status_slcst as OvrlTrdCmplncSnctndListChkSts,
@ObjectModel.foreignKey.association: '_OvrlTrdCmplncLegalCtrlChkSts'
ekko.total_status_lccst as OvrlTrdCmplncLegalCtrlChkSts,
ekko.parent_id as PurchasingParentDocument,
ekko.grouping_id as ProcmtHubCompanyCodeGroupingID,
ekko.has_catalog_relevant_items as PurgHasCatalogRelevantItems,
//Indicator Goods Receipt Message
cast(ekko.weakt as BT_MsgOnGdsRcptIsReqd preserving type) as MsgOnGoodsReceiptIsRequested,
ekko.contr_cnsmpn_check_is_rqd as ContrCnsmpnCheckOnChangeIsRqd,
_CompanyCode,
_PurchasingDocumentType,
_PurchasingDocumentCategory,
_Supplier,
_SupplyingSupplier,
_InvoicingParty,
_PaymentTerms,
_PurchasingOrganization,
_PurchasingGroup,
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: '_SupplierAddress_2'
_SupplierAddress,
_SupplierAddress_2,
_DocumentCurrency,
_CreatedByUser,
_IncotermsClassification,
_IncotermsVersion,
_SupplyingPlant,
_PurchasingDocumentOrigin,
_ReleaseCode,
_PurchaseContract,
_Language,
_PricingProcedure,
_PurchasingDocumentItem,
_PurchasingDocumentPartner,
_PurchasingProcessingStatus,
_OvrlTrdCmplncLegalCtrlChkSts,
_OverallTrdCmplncEmbargoSts,
_OvrlTrdCmplncSnctndListChkSts,
// Text associations for CustomUI
_IncotermsClassificationText,
_IncotermsVersionText,
_DocumentCurrencyText,
_TaxReturnCountryText,
_VATRegistrationCountryText,
_PurgTotProdCmplncSuplrStsT,
_PurgTotProdMarketabilityStsT,
_PurgAggrgdSftyDataSheetStsT,
_PurgTotDangerousGoodsStsT,
_OvTrdComplLegalCtrlChkStsTxt,
_OvrlTradeCmplncEmbargoStsTxt,
_OvTrdComplSanctListChkStsTxt
}
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