I_RevenueAccountingPosting

DDL: I_REVENUEACCOUNTINGPOSTING Type: view_entity BASIC Package: FARR_CONTRACT_CDS

Revenue Accounting Posting

I_RevenueAccountingPosting is a Basic CDS View that provides data about "Revenue Accounting Posting" in SAP S/4HANA. It reads from 1 data source (farr_d_posting) and exposes 67 fields with key fields CompanyCode, AccountingPrinciple, RevnAcctgReconciliationKey, PerformanceObligation, ConditionType. It has 26 associations to related views. Part of development package FARR_CONTRACT_CDS.

Data Sources (1)

SourceAliasJoin Type
farr_d_posting post from

Associations (26)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_AccountingPrinciple _AccountingPrinciple $projection.AccountingPrinciple = _AccountingPrinciple.AccountingPrinciple
[1..1] I_RevnAcctgReconciliationKey _RevnAcctgReconciliationKey $projection.CompanyCode = _RevnAcctgReconciliationKey.CompanyCode and $projection.AccountingPrinciple = _RevnAcctgReconciliationKey.AccountingPrinciple and $projection.RevenueAccountingContract = _RevnAcctgReconciliationKey.RevenueAccountingContract and $projection.RevnAcctgReconciliationKey = _RevnAcctgReconciliationKey.RevnAcctgReconciliationKey
[1..1] I_RAPerformanceObligation _RAPerformanceObligation $projection.PerformanceObligation = _RAPerformanceObligation.PerformanceObligation
[1..1] I_RAPostingCategory _RAPostingCategory $projection.RevnAcctgPostingCategory = _RAPostingCategory.RevnAcctgPostingCategory
[1..1] I_DebitCreditCode _DebitCreditCode $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode
[1..1] I_RevenueAccountingContract _RevenueAccountingContract $projection.RevenueAccountingContract = _RevenueAccountingContract.RevenueAccountingContract
[1..1] I_Currency _Currency $projection.SalesDocumentCurrency = _Currency.Currency
[1..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
[1..1] I_Currency _AdditionalCurrency1 $projection.AdditionalCurrency1 = _AdditionalCurrency1.Currency
[1..1] I_Currency _AdditionalCurrency2 $projection.AdditionalCurrency2 = _AdditionalCurrency2.Currency
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_FiscalYearForCompanyCode _FiscalYear $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode
[0..1] I_GLAccountInCompanyCode _GLAccountInCompanyCode $projection.CompanyCode = _GLAccountInCompanyCode.CompanyCode and $projection.GLAccount = _GLAccountInCompanyCode.GLAccount
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..*] I_ProfitCenter _ProfitCenter $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter
[0..1] I_ProfitCenter _CurrentProfitCenter $projection.ControllingArea = _CurrentProfitCenter.ControllingArea and $projection.ProfitCenter = _CurrentProfitCenter.ProfitCenter and _CurrentProfitCenter.ValidityStartDate <= $session.system_date and _CurrentProfitCenter.ValidityEndDate >= $session.system_date
[0..1] I_FunctionalArea _FunctionalArea $projection.FunctionalArea = _FunctionalArea.FunctionalArea
[0..1] I_Segment _Segment $projection.Segment = _Segment.Segment
[0..*] I_CostCenter _CostCenter $projection.ControllingArea = _CostCenter.ControllingArea and $projection.CostCenter = _CostCenter.CostCenter
[0..1] I_CostCenter _CurrentCostCenter $projection.ControllingArea = _CurrentCostCenter.ControllingArea and $projection.CostCenter = _CurrentCostCenter.CostCenter and _CurrentCostCenter.ValidityStartDate <= $session.system_date and _CurrentCostCenter.ValidityEndDate >= $session.system_date
[0..1] I_WBSElementBasicData _InternalWBSElement $projection.WBSElementInternalID = _InternalWBSElement.WBSElementInternalID
[0..1] I_WBSElementByExternalID _WBSElement $projection.WBSElementExternalID = _WBSElement.WBSElementExternalID
[0..1] I_Order _Order $projection.OrderID = _Order.OrderID
[0..1] I_SalesOrder _SalesOrder $projection.SalesOrder = _SalesOrder.SalesOrder
[0..1] I_RevenueAccountingInvoice _Invoice $projection.RevnAcctgInvoiceUUID = _Invoice.RevnAcctgInvoiceUUID and $projection.PerformanceObligation = _Invoice.PerformanceObligation

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Revenue Accounting Posting view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (67)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode company_code Company Code
KEY AccountingPrinciple acct_principle Accounting Principle
KEY RevnAcctgReconciliationKey recon_key Reconcil. Key
KEY PerformanceObligation POB
KEY ConditionType condition_type RAI Condition Type
KEY RevnAcctgPostingCategory post_cat Update to FI
KEY DebitCreditCode shkzg Returns
KEY RevnAcctgPostingItemUUID guid UUID 22 char.
RevenueAccountingContract Contract ID
RevnAcctgPostgAmtInSlsDocCrcy betrw Reduction Amt
SalesDocumentCurrency Transaction Currency
RevnAcctgPostgAmtInCoCodeCrcy Local Crcy Amt
CompanyCodeCurrency hwaer Local Currency
RevnAcctgPostgAmtInAddlCrcy1 betr2 Second Local Crcy
AdditionalCurrency1 hwae2 Local curr. 2
RevnAcctgPostgAmtInAddlCrcy2 betr3 Third Local Crcy
AdditionalCurrency2 hwae3 Local curr. 3
RAPostingItemLastChgDateTime timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
ConditionIsForStatistics statistic Statistical
FiscalYear Settlement Year
FiscalYearPeriod
GLAccount hkont Transfer acct
DeferralItemCatPerCndnType spec_indicator Special Indicator
FunctionalArea fkber Functional Area
BusinessArea gsber Business Area
Segment segment Segment number
ProfitCenter prctr Profit Centers
CostCenter kostl Substitute CC
OrderID aufnr SettlementOrder
SalesOrder kdauf SD Document
WBSElementExternalID _InternalWBSElement WBSElementExternalID WBS Element External ID
WBSElementInternalID WBS Element
ProfitabilitySegment paobjnr Profit. segment
ControllingArea _CompanyCode ControllingArea Controlling Area
RevnAcctgInvoiceUUID invoice_guid Invoice GUID
RevnAcctgSenderComponent srcdoc_comp Source Comp.
RASndgCompLogicalSystem srcdoc_logsys Source System
RASndgCompDocumentItemType srcdoc_type SrcItemType
RASndgCompDocumentItem srcdoc_id Src. Item ID
FiscalPeriod poper Posting periods
RAPostingAggregationType aggregation_type Aggregation Type
_CompanyCode _CompanyCode
_AccountingPrinciple _AccountingPrinciple
_RevnAcctgReconciliationKey _RevnAcctgReconciliationKey
_RAPerformanceObligation _RAPerformanceObligation
_RAPostingCategory _RAPostingCategory
_DebitCreditCode _DebitCreditCode
_RevenueAccountingContract _RevenueAccountingContract
_Currency _Currency
_CompanyCodeCurrency _CompanyCodeCurrency
_AdditionalCurrency1 _AdditionalCurrency1
_AdditionalCurrency2 _AdditionalCurrency2
_FiscalYear _FiscalYear
_GLAccountInCompanyCode _GLAccountInCompanyCode
_BusinessArea _BusinessArea
_ProfitCenter _ProfitCenter
_CurrentProfitCenter _CurrentProfitCenter
_ControllingArea _ControllingArea
_FunctionalArea _FunctionalArea
_Segment _Segment
_CostCenter _CostCenter
_CurrentCostCenter _CurrentCostCenter
_Order _Order
_SalesOrder _SalesOrder
_WBSElement _WBSElement
_InternalWBSElement _InternalWBSElement
_Invoice _Invoice

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_RevenueAccountingPosting.
-- 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_RevenueAccountingPosting AS
SELECT
  company_code AS CompanyCode,
  acct_principle AS AccountingPrinciple,
  recon_key AS RevnAcctgReconciliationKey,
  cast(pob_id as farr_cds_pob_id preserving type) AS PerformanceObligation,
  condition_type AS ConditionType,
  post_cat AS RevnAcctgPostingCategory,
  shkzg AS DebitCreditCode,
  guid AS RevnAcctgPostingItemUUID,
  cast(contract_id as farr_cds_contract_id preserving type) AS RevenueAccountingContract,
  betrw AS RevnAcctgPostgAmtInSlsDocCrcy,
  cast(waers as waerk preserving type) AS SalesDocumentCurrency,
  cast(betrh as farr_cds_postg_revn_company preserving type) AS RevnAcctgPostgAmtInCoCodeCrcy,
  hwaer AS CompanyCodeCurrency,
  betr2 AS RevnAcctgPostgAmtInAddlCrcy1,
  hwae2 AS AdditionalCurrency1,
  betr3 AS RevnAcctgPostgAmtInAddlCrcy2,
  hwae3 AS AdditionalCurrency2,
  timestamp AS RAPostingItemLastChgDateTime,
  statistic AS ConditionIsForStatistics,
  cast(gjahr as fis_gjahr_no_conv preserving type) AS FiscalYear,
  cast(substring(recon_key, 1, 7) as fis_jahrper_conv) AS FiscalYearPeriod,
  hkont AS GLAccount,
  spec_indicator AS DeferralItemCatPerCndnType,
  fkber AS FunctionalArea,
  gsber AS BusinessArea,
  Segment,
  prctr AS ProfitCenter,
  kostl AS CostCenter,
  aufnr AS OrderID,
  kdauf AS SalesOrder,
  _InternalWBSElement.WBSElementExternalID AS WBSElementExternalID,
  cast(ps_psp_pnr as ps_s4_pspnr preserving type) AS WBSElementInternalID,
  paobjnr AS ProfitabilitySegment,
  _CompanyCode.ControllingArea AS ControllingArea,
  invoice_guid AS RevnAcctgInvoiceUUID,
  srcdoc_comp AS RevnAcctgSenderComponent,
  srcdoc_logsys AS RASndgCompLogicalSystem,
  srcdoc_type AS RASndgCompDocumentItemType,
  srcdoc_id AS RASndgCompDocumentItem,
  poper AS FiscalPeriod,
  aggregation_type AS RAPostingAggregationType
FROM farr_d_posting AS post
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_AccountingPrinciple AS _AccountingPrinciple ON AccountingPrinciple = _AccountingPrinciple.AccountingPrinciple  -- association [1..1]
LEFT OUTER JOIN I_RevnAcctgReconciliationKey AS _RevnAcctgReconciliationKey ON CompanyCode = _RevnAcctgReconciliationKey.CompanyCode AND AccountingPrinciple = _RevnAcctgReconciliationKey.AccountingPrinciple AND RevenueAccountingContract = _RevnAcctgReconciliationKey.RevenueAccountingContract AND RevnAcctgReconciliationKey = _RevnAcctgReconciliationKey.RevnAcctgReconciliationKey  -- association [1..1]
LEFT OUTER JOIN I_RAPerformanceObligation AS _RAPerformanceObligation ON PerformanceObligation = _RAPerformanceObligation.PerformanceObligation  -- association [1..1]
LEFT OUTER JOIN I_RAPostingCategory AS _RAPostingCategory ON RevnAcctgPostingCategory = _RAPostingCategory.RevnAcctgPostingCategory  -- association [1..1]
LEFT OUTER JOIN I_DebitCreditCode AS _DebitCreditCode ON DebitCreditCode = _DebitCreditCode.DebitCreditCode  -- association [1..1]
LEFT OUTER JOIN I_RevenueAccountingContract AS _RevenueAccountingContract ON RevenueAccountingContract = _RevenueAccountingContract.RevenueAccountingContract  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON SalesDocumentCurrency = _Currency.Currency  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _AdditionalCurrency1 ON AdditionalCurrency1 = _AdditionalCurrency1.Currency  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _AdditionalCurrency2 ON AdditionalCurrency2 = _AdditionalCurrency2.Currency  -- association [1..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYear ON FiscalYear = _FiscalYear.FiscalYear AND CompanyCode = _FiscalYear.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInCompanyCode AS _GLAccountInCompanyCode ON CompanyCode = _GLAccountInCompanyCode.CompanyCode AND GLAccount = _GLAccountInCompanyCode.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter  -- association [0..*]
LEFT OUTER JOIN I_ProfitCenter AS _CurrentProfitCenter ON ControllingArea = _CurrentProfitCenter.ControllingArea AND ProfitCenter = _CurrentProfitCenter.ProfitCenter AND _CurrentProfitCenter.ValidityStartDate <= $session.system_date AND _CurrentProfitCenter.ValidityEndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea  -- association [0..1]
LEFT OUTER JOIN I_Segment AS _Segment ON Segment = _Segment.Segment  -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON ControllingArea = _CostCenter.ControllingArea AND CostCenter = _CostCenter.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_CostCenter AS _CurrentCostCenter ON ControllingArea = _CurrentCostCenter.ControllingArea AND CostCenter = _CurrentCostCenter.CostCenter AND _CurrentCostCenter.ValidityStartDate <= $session.system_date AND _CurrentCostCenter.ValidityEndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _InternalWBSElement ON WBSElementInternalID = _InternalWBSElement.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_WBSElementByExternalID AS _WBSElement ON WBSElementExternalID = _WBSElement.WBSElementExternalID  -- association [0..1]
LEFT OUTER JOIN I_Order AS _Order ON OrderID = _Order.OrderID  -- association [0..1]
LEFT OUTER JOIN I_SalesOrder AS _SalesOrder ON SalesOrder = _SalesOrder.SalesOrder  -- association [0..1]
LEFT OUTER JOIN I_RevenueAccountingInvoice AS _Invoice ON RevnAcctgInvoiceUUID = _Invoice.RevnAcctgInvoiceUUID AND PerformanceObligation = _Invoice.PerformanceObligation  -- association [0..1]
;