I_CFinRpldSalesDocumentItem

DDL: I_CFINRPLDSALESDOCUMENTITEM Type: view BASIC

CFin Replicated Sales Document: Item

I_CFinRpldSalesDocumentItem is a Basic CDS View that provides data about "CFin Replicated Sales Document: Item" in SAP S/4HANA. It reads from 1 data source (cfin_av_so_item) and exposes 74 fields with key fields SenderLogicalSystem, CFinReplicatedSalesDocument, CFinRpldSalesDocumentItem. It has 27 associations to related views.

Data Sources (1)

SourceAliasJoin Type
cfin_av_so_item cfin_av_so_item from

Associations (27)

CardinalityTargetAliasCondition
[1..1] I_CFinReplicatedSalesDocument _SalesDocument $projection.CFinReplicatedSalesDocument = _SalesDocument.CFinReplicatedSalesDocument and $projection.SenderLogicalSystem = _SalesDocument.SenderLogicalSystem
[0..*] I_CFinRpldSalesDocScheduleLine _ScheduleLine $projection.CFinReplicatedSalesDocument = _ScheduleLine.CFinReplicatedSalesDocument and $projection.CFinRpldSalesDocumentItem = _ScheduleLine.CFinRpldSalesDocumentItem and $projection.SenderLogicalSystem = _ScheduleLine.SenderLogicalSystem
[0..1] I_SalesDocumentItemCategory _ItemCategory $projection.SalesDocumentItemCategory = _ItemCategory.SalesDocumentItemCategory
[0..1] I_Division _Division $projection.Division = _Division.Division
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[0..1] I_UnitOfMeasure _OrderQuantityUnit $projection.OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _TargetQuantityUnit $projection.TargetQuantityUnit = _TargetQuantityUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _ItemWeightUnit $projection.ItemWeightUnit = _ItemWeightUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _ItemVolumeUnit $projection.ItemVolumeUnit = _ItemVolumeUnit.UnitOfMeasure
[0..1] I_CustomerGroup _CustomerGroup $projection.CustomerGroup = _CustomerGroup.CustomerGroup
[0..1] I_SalesDocumentRjcnReason _SalesDocumentRjcnReason $projection.SalesDocumentRjcnReason = _SalesDocumentRjcnReason.SalesDocumentRjcnReason
[0..1] I_StatisticalValueControl _StatisticalValueControl $projection.StatisticalValueControl = _StatisticalValueControl.StatisticalValueControl
[0..1] I_Currency _TransactionCurrency $projection.TransactionCurrency = _TransactionCurrency.Currency
[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_BillingRelevanceCode _ItemIsBillingRelevant $projection.ItemIsBillingRelevant = _ItemIsBillingRelevant.BillingRelevanceCode
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..1] I_CFinReplicatedSalesDocument _ReferenceSDDocument $projection.ReferenceSDDocument = _ReferenceSDDocument.CFinReplicatedSalesDocument and $projection.SenderLogicalSystem = _ReferenceSDDocument.SenderLogicalSystem
[0..1] I_CFinRpldSalesDocumentItem _ReferenceSDDocumentItem $projection.ReferenceSDDocument = _ReferenceSDDocumentItem.CFinReplicatedSalesDocument and $projection.ReferenceSDDocumentItem = _ReferenceSDDocumentItem.CFinRpldSalesDocumentItem and $projection.SenderLogicalSystem = _ReferenceSDDocumentItem.SenderLogicalSystem
[0..1] I_SDDocumentCategory _ReferenceSDDocumentCategory $projection.ReferenceSDDocumentCategory = _ReferenceSDDocumentCategory.SDDocumentCategory
[0..1] I_LogicalSystem _LogicalSystem $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem
[0..1] I_WBSElementBasicData _WBSElementBasicData $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..*] I_ProfitCenter _ProfitCenter $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.ControllingArea = _ProfitCenter.ControllingArea
[1..1] E_CFinRpldSalesDocumentItem _Extension $projection.CFinReplicatedSalesDocument = _Extension.CFinReplicatedSalesDocument and $projection.SenderLogicalSystem = _Extension.SourceSystemLogicalSystem and $projection.CFinRpldSalesDocumentItem = _Extension.CFinRpldSalesDocumentItem

Annotations (12)

NameValueLevelField
EndUserText.label CFin Replicated Sales Document: Item view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName ICFINRSOITEM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.representativeKey CFinRpldSalesDocumentItem view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view

Fields (74)

KeyFieldSource TableSource FieldDescription
KEY SenderLogicalSystem cfin_av_so_item fins_logsys Logical system
KEY CFinReplicatedSalesDocument
KEY CFinRpldSalesDocumentItem
ReferenceSDDocument cfin_av_so_item vgbel Reference Doc.
ReferenceSDDocumentItem cfin_av_so_item vgpos Reference Item
ReferenceSDDocumentCategory cfin_av_so_item vgtyp Trans. Type
BusinessArea cfin_av_so_item gsber Business Area
Material cfin_av_so_item matnr Vehicle Model
SalesDocumentItemCategory cfin_av_so_item pstyv Item Category
Division cfin_av_so_item spart Source supplier
Plant cfin_av_so_item werks Receiving Plant
MaterialGroup cfin_av_so_item matkl Product Sold Group
StorageLocation cfin_av_so_item lgort Sublocation
ProfitCenter cfin_av_so_item prctr Profit Centers
CreationDate cfin_av_so_item erdat Entered On
LastChangeDate cfin_av_so_item aedat Obsolete
IsReturnsItem cfin_av_so_item shkzg Returns
OriginSDDocument cfin_av_so_item vbelv Preceding Doc.
OriginSDDocumentItem cfin_av_so_item posnv SettlmtRefDocItem
OrderQuantity cfin_av_so_item kwmeng Sales Quantity
OrderToBaseQuantityDnmntr cfin_av_so_item umvkn Denominator
OrderToBaseQuantityNmrtr cfin_av_so_item umvkz Numerator
BaseUnit cfin_av_so_item meins Valuation Unit
TargetQuantity cfin_av_so_item zmeng Target Quantity
TargetToBaseQuantityDnmntr cfin_av_so_item umzin Convers.Factor
TargetToBaseQuantityNmrtr cfin_av_so_item umziz Convers.Factor
OrderID cfin_av_so_item aufnr SettlementOrder
ItemIsBillingRelevant cfin_av_so_item fkrel Relev.for Bill.
DeliveryDateQuantityIsFixed cfin_av_so_item fixmg Planned qty
TransactionCurrency cfin_av_so_item waerk Doc. Currency
ConfdDelivQtyInOrderQtyUnit cfin_av_so_item kbmeng CumltvConfdQty
OrderQuantityUnit cfin_av_so_item vrkme UoM for SubItm CCD
SalesDocumentRjcnReason cfin_av_so_item abgru RejectionReason
StatisticalValueControl cfin_av_so_item kowrr Stat. Value
NetAmount cfin_av_so_item netwr Value
ItemGrossWeight cfin_av_so_item brgew Weight
ItemNetWeight cfin_av_so_item ntgew Net Weight
ItemWeightUnit cfin_av_so_item gewei Weight Unit
ItemVolume cfin_av_so_item volum Volume
ItemVolumeUnit cfin_av_so_item voleh Volume Unit
TargetQuantityUnit cfin_av_so_item zieme Target Qty UoM
ProfitabilitySegment cfin_av_so_item paobjnr Profit. segment
WBSElementInternalID
CompanyCode cfin_av_so_item bukrs Value
CustomerGroup cfin_av_so_biz kdgrp Customer group
PricingDate cfin_av_so_biz prsdt Pricing Date
AdditionalValueDays cfin_av_so_biz valtg Add.Value Days
BillingDocumentDate cfin_av_so_biz fkdat Sett. Date
_SalesDocument _SalesDocument
_ScheduleLine _ScheduleLine
_ItemCategory _ItemCategory
_Division _Division
_Material _Material
_MaterialGroup _MaterialGroup
_OrderQuantityUnit _OrderQuantityUnit
_TargetQuantityUnit _TargetQuantityUnit
_BaseUnit _BaseUnit
_ItemWeightUnit _ItemWeightUnit
_ItemVolumeUnit _ItemVolumeUnit
_CustomerGroup _CustomerGroup
_SalesDocumentRjcnReason _SalesDocumentRjcnReason
_StatisticalValueControl _StatisticalValueControl
_TransactionCurrency _TransactionCurrency
_Plant _Plant
_StorageLocation _StorageLocation
_ItemIsBillingRelevant _ItemIsBillingRelevant
_BusinessArea _BusinessArea
_ReferenceSDDocument _ReferenceSDDocument
_ReferenceSDDocumentItem _ReferenceSDDocumentItem
_ReferenceSDDocumentCategory _ReferenceSDDocumentCategory
_LogicalSystem _LogicalSystem
_WBSElementBasicData _WBSElementBasicData
_ControllingArea _ControllingArea
_ProfitCenter _ProfitCenter

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 I_CFinRpldSalesDocumentItem.
-- 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 I_CFinRpldSalesDocumentItem AS
SELECT
  cfin_av_so_item.fins_logsys AS SenderLogicalSystem,
  cast(cfin_av_so_item.vbeln as fins_cfin_av_rpld_sls_doc preserving type ) AS CFinReplicatedSalesDocument,
  cast(cfin_av_so_item.posnr as fins_cfin_av_rpld_sls_doc_item preserving type ) AS CFinRpldSalesDocumentItem,
  cfin_av_so_item.vgbel AS ReferenceSDDocument,
  cfin_av_so_item.vgpos AS ReferenceSDDocumentItem,
  cfin_av_so_item.vgtyp AS ReferenceSDDocumentCategory,
  cfin_av_so_item.gsber AS BusinessArea,
  cfin_av_so_item.matnr AS Material,
  cfin_av_so_item.pstyv AS SalesDocumentItemCategory,
  cfin_av_so_item.spart AS Division,
  cfin_av_so_item.werks AS Plant,
  cfin_av_so_item.matkl AS MaterialGroup,
  cfin_av_so_item.lgort AS StorageLocation,
  cfin_av_so_item.prctr AS ProfitCenter,
  cfin_av_so_item.erdat AS CreationDate,
  cfin_av_so_item.aedat AS LastChangeDate,
  cfin_av_so_item.shkzg AS IsReturnsItem,
  cfin_av_so_item.vbelv AS OriginSDDocument,
  cfin_av_so_item.posnv AS OriginSDDocumentItem,
  cfin_av_so_item.kwmeng AS OrderQuantity,
  cfin_av_so_item.umvkn AS OrderToBaseQuantityDnmntr,
  cfin_av_so_item.umvkz AS OrderToBaseQuantityNmrtr,
  cfin_av_so_item.meins AS BaseUnit,
  cfin_av_so_item.zmeng AS TargetQuantity,
  cfin_av_so_item.umzin AS TargetToBaseQuantityDnmntr,
  cfin_av_so_item.umziz AS TargetToBaseQuantityNmrtr,
  cfin_av_so_item.aufnr AS OrderID,
  cfin_av_so_item.fkrel AS ItemIsBillingRelevant,
  cfin_av_so_item.fixmg AS DeliveryDateQuantityIsFixed,
  cfin_av_so_item.waerk AS TransactionCurrency,
  cfin_av_so_item.kbmeng AS ConfdDelivQtyInOrderQtyUnit,
  cfin_av_so_item.vrkme AS OrderQuantityUnit,
  cfin_av_so_item.abgru AS SalesDocumentRjcnReason,
  cfin_av_so_item.kowrr AS StatisticalValueControl,
  cfin_av_so_item.netwr AS NetAmount,
  cfin_av_so_item.brgew AS ItemGrossWeight,
  cfin_av_so_item.ntgew AS ItemNetWeight,
  cfin_av_so_item.gewei AS ItemWeightUnit,
  cfin_av_so_item.volum AS ItemVolume,
  cfin_av_so_item.voleh AS ItemVolumeUnit,
  cfin_av_so_item.zieme AS TargetQuantityUnit,
  cfin_av_so_item.paobjnr AS ProfitabilitySegment,
  cast( cfin_av_so_item.ps_psp_pnr as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
  cfin_av_so_item.bukrs AS CompanyCode,
  cfin_av_so_biz.kdgrp AS CustomerGroup,
  cfin_av_so_biz.prsdt AS PricingDate,
  cfin_av_so_biz.valtg AS AdditionalValueDays,
  cfin_av_so_biz.fkdat AS BillingDocumentDate
FROM cfin_av_so_item
LEFT OUTER JOIN I_CFinReplicatedSalesDocument AS _SalesDocument ON CFinReplicatedSalesDocument = _SalesDocument.CFinReplicatedSalesDocument AND SenderLogicalSystem = _SalesDocument.SenderLogicalSystem  -- association [1..1]
LEFT OUTER JOIN I_CFinRpldSalesDocScheduleLine AS _ScheduleLine ON CFinReplicatedSalesDocument = _ScheduleLine.CFinReplicatedSalesDocument AND CFinRpldSalesDocumentItem = _ScheduleLine.CFinRpldSalesDocumentItem AND SenderLogicalSystem = _ScheduleLine.SenderLogicalSystem  -- association [0..*]
LEFT OUTER JOIN I_SalesDocumentItemCategory AS _ItemCategory ON SalesDocumentItemCategory = _ItemCategory.SalesDocumentItemCategory  -- association [0..1]
LEFT OUTER JOIN I_Division AS _Division ON Division = _Division.Division  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OrderQuantityUnit ON OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TargetQuantityUnit ON TargetQuantityUnit = _TargetQuantityUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ItemWeightUnit ON ItemWeightUnit = _ItemWeightUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ItemVolumeUnit ON ItemVolumeUnit = _ItemVolumeUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_CustomerGroup AS _CustomerGroup ON CustomerGroup = _CustomerGroup.CustomerGroup  -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentRjcnReason AS _SalesDocumentRjcnReason ON SalesDocumentRjcnReason = _SalesDocumentRjcnReason.SalesDocumentRjcnReason  -- association [0..1]
LEFT OUTER JOIN I_StatisticalValueControl AS _StatisticalValueControl ON StatisticalValueControl = _StatisticalValueControl.StatisticalValueControl  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency  -- 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_BillingRelevanceCode AS _ItemIsBillingRelevant ON ItemIsBillingRelevant = _ItemIsBillingRelevant.BillingRelevanceCode  -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_CFinReplicatedSalesDocument AS _ReferenceSDDocument ON ReferenceSDDocument = _ReferenceSDDocument.CFinReplicatedSalesDocument AND SenderLogicalSystem = _ReferenceSDDocument.SenderLogicalSystem  -- association [0..1]
LEFT OUTER JOIN I_CFinRpldSalesDocumentItem AS _ReferenceSDDocumentItem ON ReferenceSDDocument = _ReferenceSDDocumentItem.CFinReplicatedSalesDocument AND ReferenceSDDocumentItem = _ReferenceSDDocumentItem.CFinRpldSalesDocumentItem AND SenderLogicalSystem = _ReferenceSDDocumentItem.SenderLogicalSystem  -- association [0..1]
LEFT OUTER JOIN I_SDDocumentCategory AS _ReferenceSDDocumentCategory ON ReferenceSDDocumentCategory = _ReferenceSDDocumentCategory.SDDocumentCategory  -- association [0..1]
LEFT OUTER JOIN I_LogicalSystem AS _LogicalSystem ON SenderLogicalSystem = _LogicalSystem.LogicalSystem  -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ProfitCenter = _ProfitCenter.ProfitCenter AND ControllingArea = _ProfitCenter.ControllingArea  -- association [0..*]
LEFT OUTER JOIN E_CFinRpldSalesDocumentItem AS _Extension ON CFinReplicatedSalesDocument = _Extension.CFinReplicatedSalesDocument AND SenderLogicalSystem = _Extension.SourceSystemLogicalSystem AND CFinRpldSalesDocumentItem = _Extension.CFinRpldSalesDocumentItem  -- association [1..1]
;