R_CFinRpldPurchasingDocItem

DDL: R_CFINRPLDPURCHASINGDOCITEM Type: view_entity BASIC

CFin Rpld Purchasing Document Item

R_CFinRpldPurchasingDocItem is a Basic CDS View that provides data about "CFin Rpld Purchasing Document Item" in SAP S/4HANA. It reads from 1 data source (cfin_av_po_item) and exposes 70 fields with key field CFinRpldPurchasingDocItemUUID. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
cfin_av_po_item cfin_av_po_item from

Associations (5)

CardinalityTargetAliasCondition
[1..1] R_CFinRpldPurchasingDocument _CFinRpldPurchasingDocument $projection.CFinRpldPurchasingDocUUID = _CFinRpldPurchasingDocument.CFinRpldPurchasingDocUUID
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _OrderQuantityUnit $projection.OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _OrderPriceUnit $projection.OrderPriceUnit = _OrderPriceUnit.UnitOfMeasure
[0..1] I_Currency _DocumentCurrency $projection.DocumentCurrency = _DocumentCurrency.Currency

Annotations (7)

NameValueLevelField
EndUserText.label CFin Rpld Purchasing Document Item view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view

Fields (70)

KeyFieldSource TableSource FieldDescription
KEY CFinRpldPurchasingDocItemUUID db_key UUID
CFinRpldPurchasingDocUUID parent_key UUID
SourceSystemLogicalSystem fins_logsys Logical system
CFinRpldPurchasingDocument Source PurchDoc
CFinRpldPurchasingDocumentItem Item pur. doc.
PurchasingDocumentDeletionCode loekz Status
PurchasingDocumentItemText txz01 Text
Material matnr Vehicle Model
CompanyCode bukrs Value
Plant werks Receiving Plant
MaterialGroup matkl Product Sold Group
TargetQuantity ktmng Target Quantity
OrderQuantity menge WarrCountValue
OrderQuantityUnit meins Valuation Unit
OrderPriceUnit bprme PO Price Unit
OrderPriceUnitToOrderUnitNmrtr bpumz Qty Conversion
OrdPriceUnitToOrderUnitDnmntr bpumn Qty Conversion
OrderItemQtyToBaseQtyNmrtr umrez Numerator
OrderItemQtyToBaseQtyDnmntr umren Denominator
NetPriceAmount netpr Price
NetPriceQuantity Unit of measure
NetAmount netwr Value
TaxCode mwskz Tax Code
ValuationType bwtar Valuation Type
IsCompletelyDelivered elikz Delivery Completion
IsFinallyInvoiced erekz Final Invoice Ind.
PurchasingDocumentItemCategory pstyp Item Category
AccountAssignmentCategory knttp AcctAssgnCat:CC
ConsumptionPosting kzvbr Consumption
MultipleAcctAssgmtDistribution vrtkz Distribution
PartialInvoiceDistribution twrkz Partial invoice
GoodsReceiptIsExpected wepos Goods Receipt
GoodsReceiptIsNonValuated weunb GR Non-Valuated
InvoiceIsExpected repos Invoice Receipt Ind.
InvoiceIsGoodsReceiptBased webre GR-Based IV
BaseUnit lmein Base Unit
NonDeductibleInputTaxAmount navnw Non-deductible
PurchasingDocumentCategory bstyp Source doc.cat.
PurReqnItemIsCmtmtRelevant xoblr Commitments
TaxJurisdiction txjcd Tax Jurisdict.
InventorySpecialStockType sobkz Special Stock
Fund geber Fund
FundsCenter fistl Funds Center
CommitmentItemShortID Commitment item
ProfitCenter ko_prctr Profit Center
PartnerReportedBusinessArea ko_gsber Bus.area:prtner
ServicePackage packno Package number
IsStatisticalItem stapo Statistical
EvaldRcptSettlmtIsAllowed xersy Eval. Rcpt Settlmnt
MaterialType mtart Product Type
IsReturnsItem retpo Returns Item
GrantID grant_nbr Receiver Grant
FunctionalArea fkber Functional Area
BudgetPeriod budget_pd Rec BudPer
ProductTypeCode producttype Product Type Group
RequisitionerName afnam Requisitioner
DocumentCurrency _CFinRpldPurchasingDocument DocumentCurrency Document Currency
LastChangedDate aedat Obsolete
InvoiceIsMMServiceEntryBased lebre Srv.-Based Inv. Ver.
InventorySpecialStockValnType kzbws Valuation
PurchasingDocCompletionStatus ccomp Stock transf. cat.
PurgDocItemIsServiceBsdCmtmt srv_bas_com Service-Based Comm.
TimeDependentTaxValidFromDate txdat_from Tax Rate Valid-From
UnplndDeliveryCostTaxCountry tax_country Tax Ctry/Rgn
SenderCompanyCode bukrs_sender Sender CoCode
_DocumentCurrency _DocumentCurrency
_BaseUnit _BaseUnit
_OrderQuantityUnit _OrderQuantityUnit
_OrderPriceUnit _OrderPriceUnit
_CFinRpldPurchasingDocument _CFinRpldPurchasingDocument

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_CFinRpldPurchasingDocItem.
-- 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.

CREATE VIEW R_CFinRpldPurchasingDocItem AS
SELECT
  db_key AS CFinRpldPurchasingDocItemUUID,
  parent_key AS CFinRpldPurchasingDocUUID,
  fins_logsys AS SourceSystemLogicalSystem,
  cast( ebeln as fins_cfin_av_purchasing_doc preserving type ) AS CFinRpldPurchasingDocument,
  cast( ebelp as fins_cfin_av_purg_document_itm preserving type ) AS CFinRpldPurchasingDocumentItem,
  loekz AS PurchasingDocumentDeletionCode,
  txz01 AS PurchasingDocumentItemText,
  matnr AS Material,
  bukrs AS CompanyCode,
  werks AS Plant,
  matkl AS MaterialGroup,
  ktmng AS TargetQuantity,
  menge AS OrderQuantity,
  meins AS OrderQuantityUnit,
  bprme AS OrderPriceUnit,
  bpumz AS OrderPriceUnitToOrderUnitNmrtr,
  bpumn AS OrdPriceUnitToOrderUnitDnmntr,
  umrez AS OrderItemQtyToBaseQtyNmrtr,
  umren AS OrderItemQtyToBaseQtyDnmntr,
  netpr AS NetPriceAmount,
  cast (peinh as vdm_price_unit preserving type) AS NetPriceQuantity,
  netwr AS NetAmount,
  mwskz AS TaxCode,
  bwtar AS ValuationType,
  elikz AS IsCompletelyDelivered,
  erekz AS IsFinallyInvoiced,
  pstyp AS PurchasingDocumentItemCategory,
  knttp AS AccountAssignmentCategory,
  kzvbr AS ConsumptionPosting,
  vrtkz AS MultipleAcctAssgmtDistribution,
  twrkz AS PartialInvoiceDistribution,
  wepos AS GoodsReceiptIsExpected,
  weunb AS GoodsReceiptIsNonValuated,
  repos AS InvoiceIsExpected,
  webre AS InvoiceIsGoodsReceiptBased,
  lmein AS BaseUnit,
  navnw AS NonDeductibleInputTaxAmount,
  bstyp AS PurchasingDocumentCategory,
  xoblr AS PurReqnItemIsCmtmtRelevant,
  txjcd AS TaxJurisdiction,
  sobkz AS InventorySpecialStockType,
  geber AS Fund,
  fistl AS FundsCenter,
  cast(fipos as bbp_bapi_fipos preserving type) AS CommitmentItemShortID,
  ko_prctr AS ProfitCenter,
  ko_gsber AS PartnerReportedBusinessArea,
  packno AS ServicePackage,
  stapo AS IsStatisticalItem,
  xersy AS EvaldRcptSettlmtIsAllowed,
  mtart AS MaterialType,
  retpo AS IsReturnsItem,
  grant_nbr AS GrantID,
  fkber AS FunctionalArea,
  budget_pd AS BudgetPeriod,
  producttype AS ProductTypeCode,
  afnam AS RequisitionerName,
  _CFinRpldPurchasingDocument.DocumentCurrency AS DocumentCurrency,
  aedat AS LastChangedDate,
  lebre AS InvoiceIsMMServiceEntryBased,
  kzbws AS InventorySpecialStockValnType,
  ccomp AS PurchasingDocCompletionStatus,
  srv_bas_com AS PurgDocItemIsServiceBsdCmtmt,
  txdat_from AS TimeDependentTaxValidFromDate,
  tax_country AS UnplndDeliveryCostTaxCountry,
  bukrs_sender AS SenderCompanyCode
FROM cfin_av_po_item
LEFT OUTER JOIN R_CFinRpldPurchasingDocument AS _CFinRpldPurchasingDocument ON CFinRpldPurchasingDocUUID = _CFinRpldPurchasingDocument.CFinRpldPurchasingDocUUID  -- association [1..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 _OrderPriceUnit ON OrderPriceUnit = _OrderPriceUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON DocumentCurrency = _DocumentCurrency.Currency  -- association [0..1]
;