I_RAProcdRevnAcctItem

DDL: I_RAPROCDREVNACCTITEM Type: view_entity BASIC

Revenue Accounting Processed RAI

I_RAProcdRevnAcctItem is a Basic CDS View that provides data about "Revenue Accounting Processed RAI" in SAP S/4HANA. It reads from 1 data source (farr_d_ord_mi) and exposes 104 fields with key fields RevnAcctgSenderComponent, RASndgCompLogicalSystem, RASndgCompDocumentItemType, RASndgCompDocumentItem. It has 30 associations to related views.

Data Sources (1)

SourceAliasJoin Type
farr_d_ord_mi farr_d_ord_mi from

Associations (30)

CardinalityTargetAliasCondition
[0..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_User _CreatedByUser $projection.RevnAcctgItemCreatedByUser = _CreatedByUser.UserID
[0..1] I_SalesOrganization _SalesOrganization $projection.RevnAcctgSalesOrganization = _SalesOrganization.SalesOrganization
[0..1] I_Currency _Currency $projection.SalesDocumentCurrency = _Currency.Currency
[0..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
[0..1] I_Currency _AdditionalCurrency1 $projection.AdditionalCurrency1 = _AdditionalCurrency1.Currency
[0..1] I_Currency _AdditionalCurrency2 $projection.AdditionalCurrency2 = _AdditionalCurrency2.Currency
[0..1] I_Order _Order $projection.OrderID = _Order.OrderID
[0..1] I_FunctionalArea _FunctionalArea $projection.FunctionalArea = _FunctionalArea.FunctionalArea
[0..*] I_CostCenter _CostCenter $projection.CostCenter = _CostCenter.CostCenter
[0..*] I_GLAccountInChartOfAccounts _ReceivablesAccount $projection.RevnAcctgReceivablesAccount = _ReceivablesAccount.GLAccount
[0..1] I_SalesDocumentType _SalesDocumentType $projection.SalesDocumentType = _SalesDocumentType.SalesDocumentType
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_CustomerGroup _CustomerGroup $projection.CustomerGroup = _CustomerGroup.CustomerGroup
[0..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_SalesDocumentItemCategory _SalesDocumentItemCategory $projection.SalesDocumentItemCategory = _SalesDocumentItemCategory.SalesDocumentItemCategory
[0..1] I_SDDocumentCategory _SDDocumentCategory $projection.SDDocumentCategory = _SDDocumentCategory.SDDocumentCategory
[0..1] I_CARevnAcctgServiceType _RevnAcctgServiceType $projection.CARevenueAccountingServiceType = _RevnAcctgServiceType.CARevenueAccountingServiceType
[0..1] I_Segment _Segment $projection.Segment = _Segment.Segment
[0..1] I_Division _Division $projection.Division = _Division.Division
[0..1] I_DistributionChannel _DistributionChannel $projection.DistributionChannel = _DistributionChannel.DistributionChannel
[0..*] I_ProfitCenter _ProfitCenter $projection.ProfitCenter = _ProfitCenter.ProfitCenter
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.QuantityUnit = _UnitOfMeasure.UnitOfMeasure
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[1..1] I_RAPerfOblgnCategory _RAPerfOblgnCategory $projection.RAPerfOblgnCategory = _RAPerfOblgnCategory.RAPerfOblgnCategory
[0..1] I_WBSElementBasicData _WBSElement $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Revenue Accounting Processed RAI view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (104)

KeyFieldSource TableSource FieldDescription
KEY RevnAcctgSenderComponent srcdoc_comp Source Comp.
KEY RASndgCompLogicalSystem srcdoc_logsys Source System
KEY RASndgCompDocumentItemType srcdoc_type SrcItemType
KEY RASndgCompDocumentItem srcdoc_id Src. Item ID
RAItemLastChangeDateTime Timestamp
RAItemCreationDateTime crea_tmstp_utc Timestamp
RevnAcctgItemCreatedByUser crea_user User
RevnAcctgOperationalDocument header_id Stress Test: GUID
AdditionalCurrency1 hwae2 Local curr. 2
AdditionalCurrency2 hwae3 Local curr. 3
CompanyCodeCurrency hwaer Local Currency
RAOperationalDocumentItem item_id Simulation Item ID
ApplicationLogHandle log_handle Migration Log Handle
ProfitabilitySegment paobjnr Profit. segment
Quantity Value
QuantityUnit quantity_unit Unit of Measure
SalesDocumentCurrency waers Transaction Currency
Customer kunnr Stock customer
BusinessPartner partner With Partner
RevnAcctgAssetImpairment asset_impairment Reduct.in Val.
OrderID aufnr SettlementOrder
RABillingPlanType bill_plan_type BillPlanTyp
RAItemIsBillingRelevant bilrel Billing Relevant
PerfObligationChangeReason business_change_reason Bus Chg Reason
RAItemIsDeliveryRelevant delrel Delivery-Relevant
RevnAcctgContrChangeEffctvDate effective_date Validity Date
PerformanceObligationEndDate end_date Valn End date
PerfObligationInceptionDate inception_date Inception Date
CostCenter kostl Substitute CC
RAPredecessorDocItemSenderComp PredItemComp
RAPredecessorDocItemLgclSystem LogSysPredItem
RAPredecessorDocItemType PredItType
RAPredecessorDocItemID predoc_id Pred. Item ID
WBSElementInternalID WBS Element
WBSElementExternalID _WBSElement WBSElementExternalID WBS Element External ID
RevnAcctgReceivablesAccount receiv_account ReceivAccount
RevenueAccountingReference reference_id Reference No.
RevenueAccountingRefType reference_type Sttl. Ref. Type
RevnAcctgSalesOrganization sales_org Sales Organization
PerformanceObligationStartDate start_date Valn start date
RAInvoiceAmountIsRelevant value_relevant Value-Relevant
AccountAssignmentIsDtmndByRA Det. Acct. Asg.
PerfObligationIsNegative xnegative_item Negative Amount
ReceivableAccountIsDtmndByRA Det. Recvbls Acct
CAProduct prdnr Product ID
CARevenueAccountingServiceType service_type Type of Ext. Service
SalesDocumentType auart Sales Doc. Type
StorageLocation lgort Sublocation
Material matnr Vehicle Model
OriginSDDocumentItem posnv SettlmtRefDocItem
SalesDocumentItemCategory pstyv Item Category
OriginSDDocument vbelv Preceding Doc.
SDDocumentCategory vbtyp TSW Det.Doc typ
CompanyCode bukrs Value
FunctionalArea fkber Functional Area
CustomerGroup kdgrp Customer group
MaterialGroup matkl Product Sold Group
ProfitCenter prctr Profit Centers
Segment segment Segment number
Division spart Source supplier
DistributionChannel vtweg RefDistCh-Cust/Mat.
Plant werks Receiving Plant
RAPerfOblgnFinalizationDate final_date Finalizat. Date
BusinessArea gsber Business Area
RAPerfOblgnCategory POB Category
QuantityAndPriceIsDtmndByRA x_estimated_quan Estim. Quantity
RAHigherDocItemSenderComp hildoc_comp HilItemComp
RAHigherDocItemLogicalSystem hildoc_logsys LogSysHiLItem
RAHigherDocItemType hildoc_type HiLItemType
RAHigherDocItemID hildoc_id HiLItemID
IsBusinessPurposeCompleted is_blocked Func Is Blocked
RAItemStatus
RAItemType
RAItemIsManuallyChanged manually_changed Manual Changed
ResultAnalysisInternalID abgsl Results analysis key
_BusinessArea _BusinessArea
_BusinessPartner _BusinessPartner
_CompanyCode _CompanyCode
_CompanyCodeCurrency _CompanyCodeCurrency
_CreatedByUser _CreatedByUser
_Currency _Currency
_AdditionalCurrency1 _AdditionalCurrency1
_AdditionalCurrency2 _AdditionalCurrency2
_Customer _Customer
_SalesOrganization _SalesOrganization
_FunctionalArea _FunctionalArea
_CostCenter _CostCenter
_Order _Order
_ReceivablesAccount _ReceivablesAccount
_SalesDocumentType _SalesDocumentType
_Plant _Plant
_CustomerGroup _CustomerGroup
_StorageLocation _StorageLocation
_MaterialGroup _MaterialGroup
_Material _Material
_SalesDocumentItemCategory _SalesDocumentItemCategory
_SDDocumentCategory _SDDocumentCategory
_RevnAcctgServiceType _RevnAcctgServiceType
_Segment _Segment
_Division _Division
_DistributionChannel _DistributionChannel
_ProfitCenter _ProfitCenter
_UnitOfMeasure _UnitOfMeasure
_RAPerfOblgnCategory _RAPerfOblgnCategory

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_RAProcdRevnAcctItem.
-- 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_RAProcdRevnAcctItem AS
SELECT
  srcdoc_comp AS RevnAcctgSenderComponent,
  srcdoc_logsys AS RASndgCompLogicalSystem,
  srcdoc_type AS RASndgCompDocumentItemType,
  srcdoc_id AS RASndgCompDocumentItem,
  cast(timestamp_utc as farr_cds_rai_timestamp preserving type) AS RAItemLastChangeDateTime,
  crea_tmstp_utc AS RAItemCreationDateTime,
  crea_user AS RevnAcctgItemCreatedByUser,
  header_id AS RevnAcctgOperationalDocument,
  hwae2 AS AdditionalCurrency1,
  hwae3 AS AdditionalCurrency2,
  hwaer AS CompanyCodeCurrency,
  item_id AS RAOperationalDocumentItem,
  log_handle AS ApplicationLogHandle,
  paobjnr AS ProfitabilitySegment,
  cast(quantity as farr_cds_quantity) AS Quantity,
  quantity_unit AS QuantityUnit,
  waers AS SalesDocumentCurrency,
  kunnr AS Customer,
  partner AS BusinessPartner,
  asset_impairment AS RevnAcctgAssetImpairment,
  aufnr AS OrderID,
  bill_plan_type AS RABillingPlanType,
  bilrel AS RAItemIsBillingRelevant,
  business_change_reason AS PerfObligationChangeReason,
  delrel AS RAItemIsDeliveryRelevant,
  effective_date AS RevnAcctgContrChangeEffctvDate,
  end_date AS PerformanceObligationEndDate,
  inception_date AS PerfObligationInceptionDate,
  kostl AS CostCenter,
  cast(predoc_comp as farr_cds_rai_predoc_comp preserving type) AS RAPredecessorDocItemSenderComp,
  cast(predoc_logsys as farr_cds_rai_predoc_logsys preserving type) AS RAPredecessorDocItemLgclSystem,
  cast(predoc_type as farr_cds_rai_predoc_type preserving type) AS RAPredecessorDocItemType,
  predoc_id AS RAPredecessorDocItemID,
  cast(ps_psp_pnr as ps_s4_pspnr preserving type) AS WBSElementInternalID,
  _WBSElement.WBSElementExternalID AS WBSElementExternalID,
  receiv_account AS RevnAcctgReceivablesAccount,
  reference_id AS RevenueAccountingReference,
  reference_type AS RevenueAccountingRefType,
  sales_org AS RevnAcctgSalesOrganization,
  start_date AS PerformanceObligationStartDate,
  value_relevant AS RAInvoiceAmountIsRelevant,
  cast(xaccass_det as farr_cds_xaccass_det preserving type) AS AccountAssignmentIsDtmndByRA,
  xnegative_item AS PerfObligationIsNegative,
  cast(xrecacc_det as farr_cds_xrecacc_det preserving type) AS ReceivableAccountIsDtmndByRA,
  prdnr AS CAProduct,
  service_type AS CARevenueAccountingServiceType,
  auart AS SalesDocumentType,
  lgort AS StorageLocation,
  matnr AS Material,
  posnv AS OriginSDDocumentItem,
  pstyv AS SalesDocumentItemCategory,
  vbelv AS OriginSDDocument,
  vbtyp AS SDDocumentCategory,
  bukrs AS CompanyCode,
  fkber AS FunctionalArea,
  kdgrp AS CustomerGroup,
  matkl AS MaterialGroup,
  prctr AS ProfitCenter,
  Segment,
  spart AS Division,
  vtweg AS DistributionChannel,
  werks AS Plant,
  final_date AS RAPerfOblgnFinalizationDate,
  gsber AS BusinessArea,
  cast(pob_category as farr_cds_pob_category preserving type) AS RAPerfOblgnCategory,
  x_estimated_quan AS QuantityAndPriceIsDtmndByRA,
  hildoc_comp AS RAHigherDocItemSenderComp,
  hildoc_logsys AS RAHigherDocItemLogicalSystem,
  hildoc_type AS RAHigherDocItemType,
  hildoc_id AS RAHigherDocItemID,
  is_blocked AS IsBusinessPurposeCompleted,
  cast(abap.char'2' as farr_cds_rai_status preserving type) AS RAItemStatus,
  cast(abap.char'01' as farr_cds_rai_type preserving type) AS RAItemType,
  manually_changed AS RAItemIsManuallyChanged,
  abgsl AS ResultAnalysisInternalID
FROM farr_d_ord_mi
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON RevnAcctgItemCreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON RevnAcctgSalesOrganization = _SalesOrganization.SalesOrganization  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON SalesDocumentCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _AdditionalCurrency1 ON AdditionalCurrency1 = _AdditionalCurrency1.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _AdditionalCurrency2 ON AdditionalCurrency2 = _AdditionalCurrency2.Currency  -- association [0..1]
LEFT OUTER JOIN I_Order AS _Order ON OrderID = _Order.OrderID  -- association [0..1]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea  -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _ReceivablesAccount ON RevnAcctgReceivablesAccount = _ReceivablesAccount.GLAccount  -- association [0..*]
LEFT OUTER JOIN I_SalesDocumentType AS _SalesDocumentType ON SalesDocumentType = _SalesDocumentType.SalesDocumentType  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_CustomerGroup AS _CustomerGroup ON CustomerGroup = _CustomerGroup.CustomerGroup  -- 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_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentItemCategory AS _SalesDocumentItemCategory ON SalesDocumentItemCategory = _SalesDocumentItemCategory.SalesDocumentItemCategory  -- association [0..1]
LEFT OUTER JOIN I_SDDocumentCategory AS _SDDocumentCategory ON SDDocumentCategory = _SDDocumentCategory.SDDocumentCategory  -- association [0..1]
LEFT OUTER JOIN I_CARevnAcctgServiceType AS _RevnAcctgServiceType ON CARevenueAccountingServiceType = _RevnAcctgServiceType.CARevenueAccountingServiceType  -- association [0..1]
LEFT OUTER JOIN I_Segment AS _Segment ON Segment = _Segment.Segment  -- association [0..1]
LEFT OUTER JOIN I_Division AS _Division ON Division = _Division.Division  -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ProfitCenter = _ProfitCenter.ProfitCenter  -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON QuantityUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_RAPerfOblgnCategory AS _RAPerfOblgnCategory ON RAPerfOblgnCategory = _RAPerfOblgnCategory.RAPerfOblgnCategory  -- association [1..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON WBSElementInternalID = _WBSElement.WBSElementInternalID  -- association [0..1]
;