R_PurchasingDocumentItem

DDL: R_PURCHASINGDOCUMENTITEM SQL: RMMPURGDOCITEM Type: view BASIC

Purchasing Document Item

R_PurchasingDocumentItem is a Basic CDS View that provides data about "Purchasing Document Item" in SAP S/4HANA. It reads from 1 data source (ekpo) and exposes 291 fields with key fields PurchasingDocument, PurchasingDocumentItem. It has 45 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ekpo ekpo from

Associations (45)

CardinalityTargetAliasCondition
[1..1] R_PurchasingDocument _PurchasingDocument $projection.PurchasingDocument = _PurchasingDocument.PurchasingDocument
[0..*] I_PurgDocScheduleLine _ScheduleLine $projection.PurchasingDocument = _ScheduleLine.PurchasingDocument and $projection.PurchasingDocumentItem = _ScheduleLine.PurchasingDocumentItem
[0..1] I_Purchaserequisition _PurchaseRequisition $projection.PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition
[0..1] I_Purchaserequisitionitem _PurchaseRequisitionItem $projection.PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem
[0..1] I_PurchaseContract _PurchaseContract $projection.PurchaseContract = _PurchaseContract.PurchaseContract
[0..1] I_PurchaseContractItem _PurchaseContractItem $projection.PurchaseContract = _PurchaseContractItem.PurchaseContract and $projection.PurchaseContractItem = _PurchaseContractItem.PurchaseContractItem
[0..1] I_PurchasingInfoRecordApi01 _PurchasingInfoRecord $projection.PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_Material _ManufacturerMaterial $projection.ManufacturerMaterial = _ManufacturerMaterial.Material
[0..1] I_Material _ConfigurableProduct $projection.CrossPlantConfigurableProduct = _ConfigurableProduct.Material
[0..1] I_ProductGroup_2 _ProductGroup $projection.ProductGroup = _ProductGroup.ProductGroup
[0..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _OrderQuantityUnit $projection.OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _VolumeUnit $projection.VolumeUnit = _VolumeUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _WeightUnit $projection.WeightUnit = _WeightUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _OrderPriceUnit $projection.OrderPriceUnit = _OrderPriceUnit.UnitOfMeasure
[0..1] I_Address _ManualDeliveryAddress $projection.ManualDeliveryAddressID = _ManualDeliveryAddress.AddressID
[0..1] I_OrganizationAddress _ManualDeliveryAddress_2 $projection.ManualDeliveryAddressID = _ManualDeliveryAddress_2.AddressID and _ManualDeliveryAddress_2.AddressPersonID = ' ' and _ManualDeliveryAddress_2.AddressRepresentationCode = ' '
[0..1] I_Address _ReferenceDeliveryAddress $projection.ReferenceDeliveryAddressID = _ReferenceDeliveryAddress.AddressID
[0..1] I_Address_2 _ReferenceDeliveryAddress_2 $projection.ReferenceDeliveryAddressID = _ReferenceDeliveryAddress_2.AddressID and _ReferenceDeliveryAddress_2.AddressPersonID = ' ' and _ReferenceDeliveryAddress_2.AddressRepresentationCode = ' '
[0..1] I_PurchasingDocumentCategory _PurgDocumentCategory $projection.PurchasingDocumentCategory = _PurgDocumentCategory.PurchasingDocumentCategory
[0..1] I_PurgDocumentItemCategory _PurgDocumentItemCategory $projection.PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory
[0..1] I_Supplier _Manufacturer $projection.Manufacturer = _Manufacturer.Supplier
[0..1] I_Supplier _Subcontractor $projection.Subcontractor = _Subcontractor.Supplier
[0..1] I_Supplier _PriorSupplier $projection.PriorSupplier = _PriorSupplier.Supplier
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_IncotermsClassification _IncotermsClassification $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification
[0..1] I_BusinessPartner _ServicePerformer $projection.ServicePerformer = _ServicePerformer.BusinessPartner
[0..1] I_ProductTypeCode _ProductType $projection.ProductType = _ProductType.ProductTypeCode
[0..1] I_ProductCategory _ProductCategory $projection.ArticleCategory = _ProductCategory.ProductCategory
[0..1] I_AccountAssignmentCategory _AccountAssignmentCategory $projection.AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory
[0..1] I_ConsumptionPosting _ConsumptionPosting $projection.ConsumptionPosting = _ConsumptionPosting.ConsumptionPosting
[0..1] I_AllocationTable _AllocationTable $projection.AllocationTable = _AllocationTable.AllocationTable
[0..1] I_AllocationTableItem _AllocationTableItem $projection.AllocationTableItem = _AllocationTableItem.AllocationTableItem and $projection.AllocationTable = _AllocationTableItem.AllocationTable
[0..1] I_RetailPromotion _RetailPromotion $projection.RetailPromotion = _RetailPromotion.RetailPromotion
[0..1] E_PurchasingDocumentItem _ItemExtension $projection.PurchasingDocument = _ItemExtension.PurchasingDocument and $projection.PurchasingDocumentItem = _ItemExtension.PurchasingDocumentItem ----Brazil Extension Associations
[0..1] I_BR_MaterialOrigin _BR_MaterialOrigin _BR_MaterialOrigin.BR_MaterialOrigin = $projection.BR_MaterialOrigin
[0..1] I_BR_MaterialUsage _BR_MaterialUsage _BR_MaterialUsage.BR_MaterialUsage = $projection.BR_MaterialUsage
[0..1] I_BR_CFOPCategory _BR_CFOPCategory _BR_CFOPCategory.BR_CFOPCategory = $projection.BR_CFOPCategory
[0..1] I_BR_NCM _BR_NCM _BR_NCM.CountryCode = 'BR' and _BR_NCM.BR_NCM = $projection.BR_NCM

Annotations (14)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Purchasing Document Item view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName RMMPURGDOCITEM view
AbapCatalog.preserveKey true view
ObjectModel.representativeKey PurchasingDocumentItem view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AbapCatalog.compiler.compareFilter true view

Fields (291)

KeyFieldSource TableSource FieldDescription
Product
StorageLocation
ProductGroup
NetPriceQuantity
WBSElementInternalID
CommitmentItem fipos Commitment item
CommitmentItemShortID
ShelfLifeExpirationDatePeriod
ConsumptionTaxCtrlCode
IN_GSTControlCode
IncotermsSupChnLoc1AddlUUID
IncotermsSupChnLoc2AddlUUID
IncotermsSupChnDvtgLocAddlUUID
SubItemCategory uptyp Subitem Cat.
PurgDocSubitemCategory uptyp Subitem Cat.
ProductSeasonYear fsh_season_year Season Year
ProductSeason fsh_season Season
ProductCollection fsh_collection Collection
ProductTheme fsh_theme Theme
SeasonCompletenessStatus rfm_scc_indicator Season Comp.Ind
CommittedQuantity cnfm_qty Committed Qty
ShippingGroupRule rfm_psst_rule PSST Grouping Rule
ShippingGroupNumber rfm_psst_group PSST Group
ProductCharacteristic1 wrf_charstc1 Characteristic 1
ProductCharacteristic2 wrf_charstc2 Characteristic 2
ProductCharacteristic3 wrf_charstc3 Characteristic 3
DiversionStatus rfm_diversion Diversion Status
ReferenceDocumentNumber rfm_ref_doc Reference Document
RefDocNmbrForTrcblyInPO rfm_ref_doc Reference Document
ReferenceDocumentItem rfm_ref_item Reference Item
RefDocItmNmbrForTrcblyInPO rfm_ref_item Reference Item
PurchaseOrderReferenceType rfm_ref_action Reference Action
RefActnForTrcblyInPO rfm_ref_action Reference Action
ReferenceDocumentScheduleLine rfm_ref_slitem Reference Schedule Line Item number for PO Traceability
RefDocSchdLnNmbrForTrcblyInPO rfm_ref_slitem Reference Schedule Line Item number for PO Traceability
ItemHasValueAddedService fsh_vas_rel VAS Relevant
ValAddedSrvcParentItmNumber fsh_vas_prnt_id Item
ARunPriorityValue assignment_priority Demand Priority
ARunDemandGroupPriority arun_group_prio Demand Priority
PFMTransDataFootprintUUID pfmtransdatafootprintuuid Transaction Data Footprint
StockSegment sgt_scat Stock Segment
_CompanyCode _CompanyCode
_Plant _Plant
_StorageLocation _StorageLocation
_Material _Material
_Product _Product
_ManufacturerMaterial _ManufacturerMaterial
_ConfigurableProduct _ConfigurableProduct
_MaterialGroup _MaterialGroup
_ProductGroup _ProductGroup
_BaseUnit _BaseUnit
_OrderQuantityUnit _OrderQuantityUnit
_VolumeUnit _VolumeUnit
_WeightUnit _WeightUnit
_OrderPriceUnit _OrderPriceUnit
_ManualDeliveryAddress _ManualDeliveryAddress
_ReferenceDeliveryAddress _ReferenceDeliveryAddress
_ManualDeliveryAddress_2 _ManualDeliveryAddress_2
_ReferenceDeliveryAddress_2 _ReferenceDeliveryAddress_2
_PurgDocumentCategory _PurgDocumentCategory
_PurgDocumentItemCategory _PurgDocumentItemCategory
_ProductCategory _ProductCategory
_IncotermsClassification _IncotermsClassification
_PurchasingDocument _PurchasingDocument
_ScheduleLine _ScheduleLine
_PurchaseRequisitionItem _PurchaseRequisitionItem
_PurchasingInfoRecord _PurchasingInfoRecord
_Manufacturer _Manufacturer
_Customer _Customer
_Subcontractor _Subcontractor
_PriorSupplier _PriorSupplier
_PurchaseRequisition _PurchaseRequisition
_PurchaseContract _PurchaseContract
_PurchaseContractItem _PurchaseContractItem
_ServicePerformer _ServicePerformer
_ProductType _ProductType
_AccountAssignmentCategory _AccountAssignmentCategory
_ConsumptionPosting _ConsumptionPosting
_AllocationTable _AllocationTable
_AllocationTableItem _AllocationTableItem
_RetailPromotion _RetailPromotion
_BR_MaterialOrigin _BR_MaterialOrigin
_BR_MaterialUsage _BR_MaterialUsage
_BR_CFOPCategory _BR_CFOPCategory
_BR_NCM _BR_NCM
KEY PurchasingDocument ekpo ebeln Source PurchDoc
KEY PurchasingDocumentItem ekpo ebelp Item pur. doc.
PurchasingDocumentItemUniqueID ekpo uniqueid Schedule line
PurchasingDocumentCategory ekpo bstyp Source doc.cat.
PurchasingDocumentDeletionCode ekpo loekz Status
PurchasingDocumentItemOrigin ekpo statu Vehicle Status
PurchasingDocumentCreationDate ekpo creationdate Time Stamp
PurchasingDocumentCreationTime ekpo creationtime Time of Change
Material ekpo matnr Vehicle Model
SupplierMaterialNumber ekpo idnlf Vendor Material
ManufacturerMaterial ekpo ematn MPN: Material
ManufacturerPartNmbr ekpo mfrpn Mfr Part Number
Manufacturer ekpo mfrnr Manufacturer
PurchasingDocumentItemText ekpo txz01 Text
CompanyCode ekpo bukrs Value
Plant ekpo werks Receiving Plant
ManualDeliveryAddressID ekpo adrnr Sold-To Address
ReferenceDeliveryAddressID ekpo adrn2 Address Number
Customer ekpo kunnr Stock customer
Subcontractor ekpo emlif Supplier
SupplierIsSubcontractor ekpo lblkz SC Supplier
CrossPlantConfigurableProduct ekpo satnr Cross-plant CM
ArticleCategory ekpo attyp Trdg Goods Cat.
PlndOrderReplnmtElmntType ekpo kanba Kanban Indicat.
ProductPurchasePointsQtyUnit ekpo punei Points Unit
ProductPurchasePointsQty ekpo anzpu Points
MaterialGroup ekpo matkl Product Sold Group
OrderQuantityUnit ekpo meins Valuation Unit
OrderItemQtyToBaseQtyNmrtr ekpo umrez Numerator
OrderItemQtyToBaseQtyDnmntr ekpo umren Denominator
IsCompletelyDelivered ekpo elikz Delivery Completion
IsFinallyInvoiced ekpo erekz Final Invoice Ind.
GoodsReceiptIsExpected ekpo wepos Goods Receipt
InvoiceIsExpected ekpo repos Invoice Receipt Ind.
OutwardDeliveryIsComplete ekpo eglkz Final Delivery
InvoiceIsGoodsReceiptBased ekpo webre GR-Based IV
GoodsReceiptIsNonValuated ekpo weunb GR Non-Valuated
IsToBeAcceptedAtOrigin ekpo weora Origin Accept.
PriceChangeInSESIsAllowed ekpo price_change_in_ses_allowed Allow Price Change
PurchaseRequisition ekpo banfn Requisition
PurchaseRequisitionItem ekpo bnfpo Requisn. item
ServicePackage ekpo packno Package number
ServicePerformer ekpo serviceperformer Service Performer
ProductType ekpo producttype Product Type Group
ProductTypeCode ekpo producttype Product Type Group
MaterialType ekpo mtart Product Type
PurchaseContractItem ekpo ktpnr Agreement Item
PurchaseContract ekpo konnr Agreement
RequestForQuotation ekpo requestforquotation RFQ
RequestForQuotationItem ekpo requestforquotationitem RFQ Item
EvaldRcptSettlmtIsAllowed ekpo xersy Eval. Rcpt Settlmnt
UnlimitedOverdeliveryIsAllowed ekpo uebtk Unlimited Tol.
OverdelivTolrtdLmtRatioInPct ekpo uebto Overrun Tol.
UnderdelivTolrtdLmtRatioInPct ekpo untto Underdel. Tol.
RequisitionerName ekpo afnam Requisitioner
MRPArea ekpo berid Single-Character Flag
IncotermsClassification ekpo inco1 Incoterms
IncotermsTransferLocation ekpo inco2 Incoterms 2
IncotermsLocation1 ekpo inco2_l Inco. Location1
IncotermsLocation2 ekpo inco3_l Inco. Location2
PriorSupplier ekpo kolif Prior Supplier
InvoicingPlan ekpo fplnr Invoicing plan
InternationalArticleNumber ekpo ean11 EAN/UPC
SupplierConfirmationControlKey ekpo bstae Conf. Control
PriceIsToBePrinted ekpo prsdr Print Price
BaseUnit ekpo lmein Base Unit
PurchasingDocumentItemCategory ekpo pstyp Item Category
ProfitCenter ekpo ko_prctr Profit Center
OrderPriceUnit ekpo bprme PO Price Unit
VolumeUnit ekpo voleh Volume Unit
WeightUnit ekpo gewei Weight Unit
MultipleAcctAssgmtDistribution ekpo vrtkz Distribution
PartialInvoiceDistribution ekpo twrkz Partial invoice
PricingDateControl ekpo meprf Pr. Date Cat.
IsStatisticalItem ekpo stapo Statistical
PurchasingParentItem ekpo uebpo H-Lev. Item
GoodsReceiptLatestCreationDate ekpo lewed Latest GR Date
IsReturnsItem ekpo retpo Returns Item
PurchasingOrderReason ekpo bsgru Reason for Ord.
AccountAssignmentCategory ekpo knttp AcctAssgnCat:CC
PurchasingInfoRecord ekpo infnr Info Record
NetAmount ekpo netwr Value
GrossAmount ekpo brtwr Gross value
EffectiveAmount ekpo effwr Effective value
Subtotal1Amount ekpo kzwi1 Subtotal 1
Subtotal2Amount ekpo kzwi2 Subtotal 2
Subtotal3Amount ekpo kzwi3 Subtotal 3
Subtotal4Amount ekpo kzwi4 Subtotal 4
Subtotal5Amount ekpo kzwi5 Subtotal 5
Subtotal6Amount ekpo kzwi6 Subtotal 6
TargetQuantity ekpo ktmng Target Quantity
OrderQuantity ekpo menge WarrCountValue
NetPriceAmount ekpo netpr Price
TargetAmount ekpo zwert Target Value
ItemVolume ekpo volum Volume
ItemGrossWeight ekpo brgew Weight
ItemNetWeight ekpo ntgew Net Weight
OrderPriceUnitToOrderUnitNmrtr ekpo bpumz Qty Conversion
OrdPriceUnitToOrderUnitDnmntr ekpo bpumn Qty Conversion
SchedAgrmtCumQtyReconcileDate ekpo abdat Store Until
SchedAgrmtAgreedCumQty ekpo abftz Agr. Cum. Qty.
ItemLastTransmissionDate ekpo drdat Last Transm.
ScheduleLineFirmOrderInDays ekpo etfz1 Firm Zone
SchedLineSemiFirmOrderInDays ekpo etfz2 Trade-Off Zone
NoDaysReminder1 ekpo mahn1 1st Rem./Exped.
NoDaysReminder2 ekpo mahn2 2nd Rem./Exped.
NoDaysReminder3 ekpo mahn3 3rd Rem./Exped.
RequirementTracking ekpo bednr Tracking Number
IsOrderAcknRqd ekpo kzabs Acknowl. Reqd.
StockType ekpo insmk Stock Type
TaxCode ekpo mwskz Tax Code
TaxJurisdiction ekpo txjcd Tax Jurisdict.
ShippingInstruction ekpo evers Shipping Instr.
ShippingType ekpo vsart Shp.type: stage
NonDeductibleInputTaxAmount ekpo navnw Non-deductible
ValuationType ekpo bwtar Valuation Type
ValuationCategory ekpo bwtty Valuation Cat.
ItemIsRejectedBySupplier ekpo abskz Rejection Ind.
PurgDocPriceDate ekpo prdat Valid to
PurchasingInfoRecordUpdateCode ekpo spinf InfoUpdate
PurgDocReleaseOrderQuantity ekpo abmng Rel. order qty.
PurgDocOrderAcknNumber ekpo labnr Order Acknowl.
PurchasingPriceIsEstimated ekpo schpr Yard Sch. Prof.
IsInfoAtRegistration ekpo borgr_miss Info at Reg.
SupplierSubrange ekpo ltsnr Suppl. Subrange
CostCenter ekpo kostl Substitute CC
GLAccount ekpo sakto G/L Account
Fund ekpo geber Fund
BudgetPeriod ekpo budget_pd Rec BudPer
FundsCenter ekpo fistl Funds Center
FunctionalArea ekpo fkber Functional Area
GrantID ekpo grant_nbr Receiver Grant
EarmarkedFundsDocument ekpo kblnr Earmarked funds
EarmarkedFundsDocumentItem ekpo kblpos Document Item
PartnerReportedBusinessArea ekpo ko_gsber Bus.area:prtner
PlannedDeliveryDurationInDays ekpo plifz Plnd Deliv.Time
GoodsReceiptDurationInDays ekpo webaz GR Proc. Time
PartialDeliveryIsAllowed ekpo kztlf Part.dlv./item
ConsumptionPosting ekpo kzvbr Consumption
SchedgAgrmtRelCreationProfile ekpo abueb RC Profile
SchedAgrmtCumulativeQtyControl ekpo spe_cq_ctrltype Control Type
CumulativeQuantityIsNotSent ekpo spe_cq_nocq No CQ Transmission
MinRemainingShelfLife ekpo mhdrz Rem. Shelf Life
QualityMgmtCtrlKey ekpo ssqss QM Control Key
InventorySpecialStockType ekpo sobkz Special Stock
IsRelevantForJITDelivSchedule ekpo fabkz Sched. Agr. Forecast
NextJITDelivSchedSendingDate ekpo nfabd Next JIT Sched.
NextFcstDelivSchedSendingDate ekpo nlabd Next FRC Sched.
FirmTradeOffZoneBindMRP ekpo kzstu Binding on MRP
QualityCertificateType ekpo zgtyp CertificateType
SupplierQuotation ekpo anfnr RFQ
SupplierQuotationItem ekpo anfps Item
IntrastatServiceCode ekpo isvco Intrastat Srvc. Code
CommodityCode ekpo stawn Commodity Code
DeliveryDocumentType ekpo lfret Del. Type Rtns
MaterialFreightGroup ekpo mfrgr Prod.Frgt Group
DiscountInKindEligibility ekpo nrfhg Disc. in kind
PurgItemIsBlockedForDelivery ekpo novet Shipping block
IssuingStorageLocation ekpo reslo Iss. Stor. Loc.
AllocationTable ekpo abeln Alloc. Table
AllocationTableItem ekpo abelp Item
RetailPromotion ekpo aktnr Promotion
PurgConfigurableItemNumber ekpo exlin Hierarchy Number
PurgDocAggrgdSubitemCategory ekpo upvor Sub-items
PurgExternalSortNumber ekpo exsnr External Sort No.
DownPaymentType ekpo dptyp Down Payment
DownPaymentPercentageOfTotAmt ekpo dppct Down Payment %
DownPaymentAmount ekpo dpamt Down Payment Amt
DownPaymentDueDate ekpo dpdat Due Date for DP
LoadingPointForDelivery ekpo loadingpoint Loading Point
ExpectedOverallLimitAmount ekpo expected_value Expected Value
OverallLimitAmount ekpo limit_amount Quota Price
PurContractForOverallLimit ekpo contract_for_limit Contract For Limit
PurContractItemForOverallLimit ekpo contract_item_for_limit
RequirementSegment ekpo sgt_rcat Req. Segment
SubcontrgCompIsRealTmeCnsmd ekpo itcons RT Consumption
PurgProdCmplncDngrsGoodsStatus ekpo status_dg Result Del. Grp
PurgProdCmplncSupplierStatus ekpo status_pcs Supplier Check Sts
PurgProductMarketabilityStatus ekpo status_pma Prod. Marktablty Sts
PurgSafetyDataSheetStatus ekpo status_sds Sfty Data Sheet Sts
PurgDocItmBlkRsnCode ekpo blk_reason_id Block Reason ID
PurgDocItemRenegotiationStatus ekpo renegotiation_status Renegotiation Status
BR_MaterialOrigin ekpo j_1bmatorg Material Origin
BR_MaterialUsage ekpo j_1bmatuse Material Usage
BR_CFOPCategory ekpo j_1bindust Mat. category
BR_NCM ekpo j_1bnbm NCM Code
BR_IsProducedInHouse ekpo j_1bownpro Prod. in-house
PurchasingCentralMaterial ekpo extmaterialforpurg Material
ProcmtHubExtReferencedMaterial ekpo extmaterialforpurg Material
ProcmtHubRefcdConnectedSystem ekpo procmt_hub_source_system Source Connected Sys
PurgDocItmTargetAmount ekpo target_value Target Value
TaxCodeValidFromDate ekpo txdat_from Tax Rate Valid-From
TaxCountry ekpo tax_country Tax Ctry/Rgn
TaxDeterminationDate ekpo txdat Tax Date
ThirdPtyOrdProcgExtReference ekpo spe_crm_ref_so CRM Ref Order
ThirdPtyOrdProcgExtRefItem ekpo spe_crm_ref_item CRM Rf Item No
IsGoodsCountCorrectionItem ekpo goods_count_correction Gds. Ct. Crrtn
GdsCtCrrtnDelivDocBySuplr ekpo lifex Lifex
GdsCtCrrtnDelivDocItemBySuplr ekpo lifexpos Ext. Item
PurchasingIsCatalogRelevant ekpo is_catalog_relevant Ctlg Item Indicator
IsEndOfPurposeBlocked _PurchasingDocument IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
DocumentCurrency _PurchasingDocument DocumentCurrency Document Currency
PurchasingOrganization _PurchasingDocument PurchasingOrganization Purchasing Organization
PurchasingGroup _PurchasingDocument PurchasingGroup Purchasing Group
PurchasingDocumentType _PurchasingDocument PurchasingDocumentType RFQ Type
_DocumentCurrency _PurchasingDocument _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 R_PurchasingDocumentItem.
-- 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: RMMPURGDOCITEM

CREATE VIEW R_PurchasingDocumentItem AS
SELECT
  cast (ekpo.matnr as productnumber preserving type ) AS Product,
  cast (ekpo.lgort as vdm_storage_location preserving type) AS StorageLocation,
  cast (ekpo.matkl as productgroup preserving type ) AS ProductGroup,
  cast (ekpo.peinh as vdm_price_unit preserving type) AS NetPriceQuantity,
  cast (ekpo.ps_psp_pnr as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
  fipos AS CommitmentItem,
  cast( ekpo.fipos as fmis_ci_internalname) AS CommitmentItemShortID,
  cast (ekpo.iprkz as vdm_dattp preserving type) AS ShelfLifeExpirationDatePeriod,
  cast(ekpo.j_1bnbm as j_1ig_hsn_sac preserving type) AS ConsumptionTaxCtrlCode,
  cast( ekpo.j_1bnbm as j_1ig_hsn_sac preserving type) AS IN_GSTControlCode,
  cast ( ekpo.inco2_key as /scmtms/inc_loc_1_key_nc preserving type ) AS IncotermsSupChnLoc1AddlUUID,
  cast ( ekpo.inco3_key as /scmtms/inc_loc_2_key_nc preserving type ) AS IncotermsSupChnLoc2AddlUUID,
  cast ( ekpo.inco4_key as /scmtms/inc_dv_plce_dst_key_nc preserving type ) AS IncotermsSupChnDvtgLocAddlUUID,
  uptyp AS SubItemCategory,
  uptyp AS PurgDocSubitemCategory,
  fsh_season_year AS ProductSeasonYear,
  fsh_season AS ProductSeason,
  fsh_collection AS ProductCollection,
  fsh_theme AS ProductTheme,
  rfm_scc_indicator AS SeasonCompletenessStatus,
  cnfm_qty AS CommittedQuantity,
  rfm_psst_rule AS ShippingGroupRule,
  rfm_psst_group AS ShippingGroupNumber,
  wrf_charstc1 AS ProductCharacteristic1,
  wrf_charstc2 AS ProductCharacteristic2,
  wrf_charstc3 AS ProductCharacteristic3,
  rfm_diversion AS DiversionStatus,
  rfm_ref_doc AS ReferenceDocumentNumber,
  rfm_ref_doc AS RefDocNmbrForTrcblyInPO,
  rfm_ref_item AS ReferenceDocumentItem,
  rfm_ref_item AS RefDocItmNmbrForTrcblyInPO,
  rfm_ref_action AS PurchaseOrderReferenceType,
  rfm_ref_action AS RefActnForTrcblyInPO,
  rfm_ref_slitem AS ReferenceDocumentScheduleLine,
  rfm_ref_slitem AS RefDocSchdLnNmbrForTrcblyInPO,
  fsh_vas_rel AS ItemHasValueAddedService,
  fsh_vas_prnt_id AS ValAddedSrvcParentItmNumber,
  assignment_priority AS ARunPriorityValue,
  arun_group_prio AS ARunDemandGroupPriority,
  PFMTransDataFootprintUUID,
  sgt_scat AS StockSegment,
  ekpo.ebeln AS PurchasingDocument,
  ekpo.ebelp AS PurchasingDocumentItem,
  ekpo.uniqueid AS PurchasingDocumentItemUniqueID,
  ekpo.bstyp AS PurchasingDocumentCategory,
  ekpo.loekz AS PurchasingDocumentDeletionCode,
  ekpo.statu AS PurchasingDocumentItemOrigin,
  ekpo.creationdate AS PurchasingDocumentCreationDate,
  ekpo.creationtime AS PurchasingDocumentCreationTime,
  ekpo.matnr AS Material,
  ekpo.idnlf AS SupplierMaterialNumber,
  ekpo.ematn AS ManufacturerMaterial,
  ekpo.mfrpn AS ManufacturerPartNmbr,
  ekpo.mfrnr AS Manufacturer,
  ekpo.txz01 AS PurchasingDocumentItemText,
  ekpo.bukrs AS CompanyCode,
  ekpo.werks AS Plant,
  ekpo.adrnr AS ManualDeliveryAddressID,
  ekpo.adrn2 AS ReferenceDeliveryAddressID,
  ekpo.kunnr AS Customer,
  ekpo.emlif AS Subcontractor,
  ekpo.lblkz AS SupplierIsSubcontractor,
  ekpo.satnr AS CrossPlantConfigurableProduct,
  ekpo.attyp AS ArticleCategory,
  ekpo.kanba AS PlndOrderReplnmtElmntType,
  ekpo.punei AS ProductPurchasePointsQtyUnit,
  ekpo.anzpu AS ProductPurchasePointsQty,
  ekpo.matkl AS MaterialGroup,
  ekpo.meins AS OrderQuantityUnit,
  ekpo.umrez AS OrderItemQtyToBaseQtyNmrtr,
  ekpo.umren AS OrderItemQtyToBaseQtyDnmntr,
  ekpo.elikz AS IsCompletelyDelivered,
  ekpo.erekz AS IsFinallyInvoiced,
  ekpo.wepos AS GoodsReceiptIsExpected,
  ekpo.repos AS InvoiceIsExpected,
  ekpo.eglkz AS OutwardDeliveryIsComplete,
  ekpo.webre AS InvoiceIsGoodsReceiptBased,
  ekpo.weunb AS GoodsReceiptIsNonValuated,
  ekpo.weora AS IsToBeAcceptedAtOrigin,
  ekpo.price_change_in_ses_allowed AS PriceChangeInSESIsAllowed,
  ekpo.banfn AS PurchaseRequisition,
  ekpo.bnfpo AS PurchaseRequisitionItem,
  ekpo.packno AS ServicePackage,
  ekpo.serviceperformer AS ServicePerformer,
  ekpo.producttype AS ProductType,
  ekpo.producttype AS ProductTypeCode,
  ekpo.mtart AS MaterialType,
  ekpo.ktpnr AS PurchaseContractItem,
  ekpo.konnr AS PurchaseContract,
  ekpo.requestforquotation AS RequestForQuotation,
  ekpo.requestforquotationitem AS RequestForQuotationItem,
  ekpo.xersy AS EvaldRcptSettlmtIsAllowed,
  ekpo.uebtk AS UnlimitedOverdeliveryIsAllowed,
  ekpo.uebto AS OverdelivTolrtdLmtRatioInPct,
  ekpo.untto AS UnderdelivTolrtdLmtRatioInPct,
  ekpo.afnam AS RequisitionerName,
  ekpo.berid AS MRPArea,
  ekpo.inco1 AS IncotermsClassification,
  ekpo.inco2 AS IncotermsTransferLocation,
  ekpo.inco2_l AS IncotermsLocation1,
  ekpo.inco3_l AS IncotermsLocation2,
  ekpo.kolif AS PriorSupplier,
  ekpo.fplnr AS InvoicingPlan,
  ekpo.ean11 AS InternationalArticleNumber,
  ekpo.bstae AS SupplierConfirmationControlKey,
  ekpo.prsdr AS PriceIsToBePrinted,
  ekpo.lmein AS BaseUnit,
  ekpo.pstyp AS PurchasingDocumentItemCategory,
  ekpo.ko_prctr AS ProfitCenter,
  ekpo.bprme AS OrderPriceUnit,
  ekpo.voleh AS VolumeUnit,
  ekpo.gewei AS WeightUnit,
  ekpo.vrtkz AS MultipleAcctAssgmtDistribution,
  ekpo.twrkz AS PartialInvoiceDistribution,
  ekpo.meprf AS PricingDateControl,
  ekpo.stapo AS IsStatisticalItem,
  ekpo.uebpo AS PurchasingParentItem,
  ekpo.lewed AS GoodsReceiptLatestCreationDate,
  ekpo.retpo AS IsReturnsItem,
  ekpo.bsgru AS PurchasingOrderReason,
  ekpo.knttp AS AccountAssignmentCategory,
  ekpo.infnr AS PurchasingInfoRecord,
  ekpo.netwr AS NetAmount,
  ekpo.brtwr AS GrossAmount,
  ekpo.effwr AS EffectiveAmount,
  ekpo.kzwi1 AS Subtotal1Amount,
  ekpo.kzwi2 AS Subtotal2Amount,
  ekpo.kzwi3 AS Subtotal3Amount,
  ekpo.kzwi4 AS Subtotal4Amount,
  ekpo.kzwi5 AS Subtotal5Amount,
  ekpo.kzwi6 AS Subtotal6Amount,
  ekpo.ktmng AS TargetQuantity,
  ekpo.menge AS OrderQuantity,
  ekpo.netpr AS NetPriceAmount,
  ekpo.zwert AS TargetAmount,
  ekpo.volum AS ItemVolume,
  ekpo.brgew AS ItemGrossWeight,
  ekpo.ntgew AS ItemNetWeight,
  ekpo.bpumz AS OrderPriceUnitToOrderUnitNmrtr,
  ekpo.bpumn AS OrdPriceUnitToOrderUnitDnmntr,
  ekpo.abdat AS SchedAgrmtCumQtyReconcileDate,
  ekpo.abftz AS SchedAgrmtAgreedCumQty,
  ekpo.drdat AS ItemLastTransmissionDate,
  ekpo.etfz1 AS ScheduleLineFirmOrderInDays,
  ekpo.etfz2 AS SchedLineSemiFirmOrderInDays,
  ekpo.mahn1 AS NoDaysReminder1,
  ekpo.mahn2 AS NoDaysReminder2,
  ekpo.mahn3 AS NoDaysReminder3,
  ekpo.bednr AS RequirementTracking,
  ekpo.kzabs AS IsOrderAcknRqd,
  ekpo.insmk AS StockType,
  ekpo.mwskz AS TaxCode,
  ekpo.txjcd AS TaxJurisdiction,
  ekpo.evers AS ShippingInstruction,
  ekpo.vsart AS ShippingType,
  ekpo.navnw AS NonDeductibleInputTaxAmount,
  ekpo.bwtar AS ValuationType,
  ekpo.bwtty AS ValuationCategory,
  ekpo.abskz AS ItemIsRejectedBySupplier,
  ekpo.prdat AS PurgDocPriceDate,
  ekpo.spinf AS PurchasingInfoRecordUpdateCode,
  ekpo.abmng AS PurgDocReleaseOrderQuantity,
  ekpo.labnr AS PurgDocOrderAcknNumber,
  ekpo.schpr AS PurchasingPriceIsEstimated,
  ekpo.borgr_miss AS IsInfoAtRegistration,
  ekpo.ltsnr AS SupplierSubrange,
  ekpo.kostl AS CostCenter,
  ekpo.sakto AS GLAccount,
  ekpo.geber AS Fund,
  ekpo.budget_pd AS BudgetPeriod,
  ekpo.fistl AS FundsCenter,
  ekpo.fkber AS FunctionalArea,
  ekpo.grant_nbr AS GrantID,
  ekpo.kblnr AS EarmarkedFundsDocument,
  ekpo.kblpos AS EarmarkedFundsDocumentItem,
  ekpo.ko_gsber AS PartnerReportedBusinessArea,
  ekpo.plifz AS PlannedDeliveryDurationInDays,
  ekpo.webaz AS GoodsReceiptDurationInDays,
  ekpo.kztlf AS PartialDeliveryIsAllowed,
  ekpo.kzvbr AS ConsumptionPosting,
  ekpo.abueb AS SchedgAgrmtRelCreationProfile,
  ekpo.spe_cq_ctrltype AS SchedAgrmtCumulativeQtyControl,
  ekpo.spe_cq_nocq AS CumulativeQuantityIsNotSent,
  ekpo.mhdrz AS MinRemainingShelfLife,
  ekpo.ssqss AS QualityMgmtCtrlKey,
  ekpo.sobkz AS InventorySpecialStockType,
  ekpo.fabkz AS IsRelevantForJITDelivSchedule,
  ekpo.nfabd AS NextJITDelivSchedSendingDate,
  ekpo.nlabd AS NextFcstDelivSchedSendingDate,
  ekpo.kzstu AS FirmTradeOffZoneBindMRP,
  ekpo.zgtyp AS QualityCertificateType,
  ekpo.anfnr AS SupplierQuotation,
  ekpo.anfps AS SupplierQuotationItem,
  ekpo.isvco AS IntrastatServiceCode,
  ekpo.stawn AS CommodityCode,
  ekpo.lfret AS DeliveryDocumentType,
  ekpo.mfrgr AS MaterialFreightGroup,
  ekpo.nrfhg AS DiscountInKindEligibility,
  ekpo.novet AS PurgItemIsBlockedForDelivery,
  ekpo.reslo AS IssuingStorageLocation,
  ekpo.abeln AS AllocationTable,
  ekpo.abelp AS AllocationTableItem,
  ekpo.aktnr AS RetailPromotion,
  ekpo.exlin AS PurgConfigurableItemNumber,
  ekpo.upvor AS PurgDocAggrgdSubitemCategory,
  ekpo.exsnr AS PurgExternalSortNumber,
  ekpo.dptyp AS DownPaymentType,
  ekpo.dppct AS DownPaymentPercentageOfTotAmt,
  ekpo.dpamt AS DownPaymentAmount,
  ekpo.dpdat AS DownPaymentDueDate,
  ekpo.loadingpoint AS LoadingPointForDelivery,
  ekpo.expected_value AS ExpectedOverallLimitAmount,
  ekpo.limit_amount AS OverallLimitAmount,
  ekpo.contract_for_limit AS PurContractForOverallLimit,
  ekpo.contract_item_for_limit AS PurContractItemForOverallLimit,
  ekpo.sgt_rcat AS RequirementSegment,
  ekpo.itcons AS SubcontrgCompIsRealTmeCnsmd,
  ekpo.status_dg AS PurgProdCmplncDngrsGoodsStatus,
  ekpo.status_pcs AS PurgProdCmplncSupplierStatus,
  ekpo.status_pma AS PurgProductMarketabilityStatus,
  ekpo.status_sds AS PurgSafetyDataSheetStatus,
  ekpo.blk_reason_id AS PurgDocItmBlkRsnCode,
  ekpo.renegotiation_status AS PurgDocItemRenegotiationStatus,
  ekpo.j_1bmatorg AS BR_MaterialOrigin,
  ekpo.j_1bmatuse AS BR_MaterialUsage,
  ekpo.j_1bindust AS BR_CFOPCategory,
  ekpo.j_1bnbm AS BR_NCM,
  ekpo.j_1bownpro AS BR_IsProducedInHouse,
  ekpo.extmaterialforpurg AS PurchasingCentralMaterial,
  ekpo.extmaterialforpurg AS ProcmtHubExtReferencedMaterial,
  ekpo.procmt_hub_source_system AS ProcmtHubRefcdConnectedSystem,
  ekpo.target_value AS PurgDocItmTargetAmount,
  ekpo.txdat_from AS TaxCodeValidFromDate,
  ekpo.tax_country AS TaxCountry,
  ekpo.txdat AS TaxDeterminationDate,
  ekpo.spe_crm_ref_so AS ThirdPtyOrdProcgExtReference,
  ekpo.spe_crm_ref_item AS ThirdPtyOrdProcgExtRefItem,
  ekpo.goods_count_correction AS IsGoodsCountCorrectionItem,
  ekpo.lifex AS GdsCtCrrtnDelivDocBySuplr,
  ekpo.lifexpos AS GdsCtCrrtnDelivDocItemBySuplr,
  ekpo.is_catalog_relevant AS PurchasingIsCatalogRelevant,
  _PurchasingDocument.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
  _PurchasingDocument.DocumentCurrency AS DocumentCurrency,
  _PurchasingDocument.PurchasingOrganization AS PurchasingOrganization,
  _PurchasingDocument.PurchasingGroup AS PurchasingGroup,
  _PurchasingDocument.PurchasingDocumentType AS PurchasingDocumentType,
  _PurchasingDocument._DocumentCurrency AS _DocumentCurrency
FROM ekpo
LEFT OUTER JOIN R_PurchasingDocument AS _PurchasingDocument ON PurchasingDocument = _PurchasingDocument.PurchasingDocument  -- association [1..1]
LEFT OUTER JOIN I_PurgDocScheduleLine AS _ScheduleLine ON PurchasingDocument = _ScheduleLine.PurchasingDocument AND PurchasingDocumentItem = _ScheduleLine.PurchasingDocumentItem  -- association [0..*]
LEFT OUTER JOIN I_Purchaserequisition AS _PurchaseRequisition ON PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition  -- association [0..1]
LEFT OUTER JOIN I_Purchaserequisitionitem AS _PurchaseRequisitionItem ON PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition AND PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContract AS _PurchaseContract ON PurchaseContract = _PurchaseContract.PurchaseContract  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContractItem AS _PurchaseContractItem ON PurchaseContract = _PurchaseContractItem.PurchaseContract AND PurchaseContractItem = _PurchaseContractItem.PurchaseContractItem  -- association [0..1]
LEFT OUTER JOIN I_PurchasingInfoRecordApi01 AS _PurchasingInfoRecord ON PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_Material AS _ManufacturerMaterial ON ManufacturerMaterial = _ManufacturerMaterial.Material  -- association [0..1]
LEFT OUTER JOIN I_Material AS _ConfigurableProduct ON CrossPlantConfigurableProduct = _ConfigurableProduct.Material  -- association [0..1]
LEFT OUTER JOIN I_ProductGroup_2 AS _ProductGroup ON ProductGroup = _ProductGroup.ProductGroup  -- association [0..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OrderQuantityUnit ON OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VolumeUnit ON VolumeUnit = _VolumeUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _WeightUnit ON WeightUnit = _WeightUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OrderPriceUnit ON OrderPriceUnit = _OrderPriceUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Address AS _ManualDeliveryAddress ON ManualDeliveryAddressID = _ManualDeliveryAddress.AddressID  -- association [0..1]
LEFT OUTER JOIN I_OrganizationAddress AS _ManualDeliveryAddress_2 ON ManualDeliveryAddressID = _ManualDeliveryAddress_2.AddressID AND _ManualDeliveryAddress_2.AddressPersonID = ' ' AND _ManualDeliveryAddress_2.AddressRepresentationCode = ' '  -- association [0..1]
LEFT OUTER JOIN I_Address AS _ReferenceDeliveryAddress ON ReferenceDeliveryAddressID = _ReferenceDeliveryAddress.AddressID  -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _ReferenceDeliveryAddress_2 ON ReferenceDeliveryAddressID = _ReferenceDeliveryAddress_2.AddressID AND _ReferenceDeliveryAddress_2.AddressPersonID = ' ' AND _ReferenceDeliveryAddress_2.AddressRepresentationCode = ' '  -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentCategory AS _PurgDocumentCategory ON PurchasingDocumentCategory = _PurgDocumentCategory.PurchasingDocumentCategory  -- association [0..1]
LEFT OUTER JOIN I_PurgDocumentItemCategory AS _PurgDocumentItemCategory ON PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Manufacturer ON Manufacturer = _Manufacturer.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Subcontractor ON Subcontractor = _Subcontractor.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _PriorSupplier ON PriorSupplier = _PriorSupplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_IncotermsClassification AS _IncotermsClassification ON IncotermsClassification = _IncotermsClassification.IncotermsClassification  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _ServicePerformer ON ServicePerformer = _ServicePerformer.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_ProductTypeCode AS _ProductType ON ProductType = _ProductType.ProductTypeCode  -- association [0..1]
LEFT OUTER JOIN I_ProductCategory AS _ProductCategory ON ArticleCategory = _ProductCategory.ProductCategory  -- association [0..1]
LEFT OUTER JOIN I_AccountAssignmentCategory AS _AccountAssignmentCategory ON AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory  -- association [0..1]
LEFT OUTER JOIN I_ConsumptionPosting AS _ConsumptionPosting ON ConsumptionPosting = _ConsumptionPosting.ConsumptionPosting  -- association [0..1]
LEFT OUTER JOIN I_AllocationTable AS _AllocationTable ON AllocationTable = _AllocationTable.AllocationTable  -- association [0..1]
LEFT OUTER JOIN I_AllocationTableItem AS _AllocationTableItem ON AllocationTableItem = _AllocationTableItem.AllocationTableItem AND AllocationTable = _AllocationTableItem.AllocationTable  -- association [0..1]
LEFT OUTER JOIN I_RetailPromotion AS _RetailPromotion ON RetailPromotion = _RetailPromotion.RetailPromotion  -- association [0..1]
LEFT OUTER JOIN E_PurchasingDocumentItem AS _ItemExtension ON PurchasingDocument = _ItemExtension.PurchasingDocument AND PurchasingDocumentItem = _ItemExtension.PurchasingDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_BR_MaterialOrigin AS _BR_MaterialOrigin ON _BR_MaterialOrigin.BR_MaterialOrigin = BR_MaterialOrigin  -- association [0..1]
LEFT OUTER JOIN I_BR_MaterialUsage AS _BR_MaterialUsage ON _BR_MaterialUsage.BR_MaterialUsage = BR_MaterialUsage  -- association [0..1]
LEFT OUTER JOIN I_BR_CFOPCategory AS _BR_CFOPCategory ON _BR_CFOPCategory.BR_CFOPCategory = BR_CFOPCategory  -- association [0..1]
LEFT OUTER JOIN I_BR_NCM AS _BR_NCM ON _BR_NCM.CountryCode = 'BR' AND _BR_NCM.BR_NCM = BR_NCM  -- association [0..1]
;