P_CarryFwdAndDeltaPostgByQtr

DDL: P_CARRYFWDANDDELTAPOSTGBYQTR SQL: PRAPOSTGCFDQTR Type: view COMPOSITE

P_CarryFwdAndDeltaPostgByQtr is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (P_RAContrBalFiscalPeriodSel, I_RevenueAccountingPosting, I_RevenueAccountingPosting) and exposes 33 fields with key fields CompanyCode, AccountingPrinciple, RevenueAccountingContract, RevnAcctgPostingCategory, PerformanceObligation.

Data Sources (3)

SourceAliasJoin Type
P_RAContrBalFiscalPeriodSel P_RAContrBalFiscalPeriodSel inner
I_RevenueAccountingPosting RACarryForwardPosting from
I_RevenueAccountingPosting RADeltaPosting union_all

Parameters (4)

NameTypeDefault
P_FiscalYearFrom fis_gjahr
P_FiscalPeriodFrom fis_poper
P_FiscalYearTo fis_gjahr
P_FiscalPeriodTo fis_poper

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PRAPOSTGCFDQTR view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_RevenueAccountingPosting CompanyCode Receiver Company Code
KEY AccountingPrinciple I_RevenueAccountingPosting AccountingPrinciple AP Ledger/CoCode
KEY RevenueAccountingContract I_RevenueAccountingPosting RevenueAccountingContract Revenue Contract
KEY RevnAcctgPostingCategory I_RevenueAccountingPosting RevnAcctgPostingCategory Update to FI
KEY PerformanceObligation I_RevenueAccountingPosting PerformanceObligation Performance Obligation
KEY FiscalYear G/L Fiscal Year
KEY FiscalQuarter
GLAccount I_RevenueAccountingPosting GLAccount General Ledger
SalesDocumentCurrency I_RevenueAccountingPosting SalesDocumentCurrency Currency
CompanyCodeCurrency I_RevenueAccountingPosting CompanyCodeCurrency Local Currency
AdditionalCurrency1 I_RevenueAccountingPosting AdditionalCurrency1 Local curr. 2
AdditionalCurrency2 I_RevenueAccountingPosting AdditionalCurrency2 Local curr. 3
RevnAcctgPostgAmtInSlsDocCrcy
RevnAcctgPostgAmtInCoCodeCrcy
RevnAcctgPostgAmtInAddlCrcy1
RevnAcctgPostgAmtInAddlCrcy2
CompanyCode Receiver Company Code
KEY AccountingPrinciple I_RevenueAccountingPosting AccountingPrinciple AP Ledger/CoCode
KEY RevenueAccountingContract I_RevenueAccountingPosting RevenueAccountingContract Revenue Contract
KEY RevnAcctgPostingCategory I_RevenueAccountingPosting RevnAcctgPostingCategory Update to FI
KEY PerformanceObligation I_RevenueAccountingPosting PerformanceObligation Performance Obligation
KEY FiscalYear I_RevenueAccountingPosting FiscalYear G/L Fiscal Year
KEY FiscalQuarter _RAContrBalFiscalPeriodSel FiscalQuarterNumber
GLAccount I_RevenueAccountingPosting GLAccount General Ledger
SalesDocumentCurrency I_RevenueAccountingPosting SalesDocumentCurrency Currency
CompanyCodeCurrency I_RevenueAccountingPosting CompanyCodeCurrency Local Currency
AdditionalCurrency1 I_RevenueAccountingPosting AdditionalCurrency1 Local curr. 2
AdditionalCurrency2 I_RevenueAccountingPosting AdditionalCurrency2 Local curr. 3
RevnAcctgPostgAmtInSlsDocCrcy
RevnAcctgPostgAmtInCoCodeCrcy
RevnAcctgPostgAmtInAddlCrcy1
RevnAcctgPostgAmtInAddlCrcy2
RAPostLevelOfContractBalance

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 P_CarryFwdAndDeltaPostgByQtr.
-- 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: PRAPOSTGCFDQTR
-- Parameters: P_FiscalYearFrom : fis_gjahr, P_FiscalPeriodFrom : fis_poper, P_FiscalYearTo : fis_gjahr, P_FiscalPeriodTo : fis_poper

CREATE VIEW P_CarryFwdAndDeltaPostgByQtr AS
SELECT
  RACarryForwardPosting.CompanyCode AS CompanyCode,
  RACarryForwardPosting.AccountingPrinciple AS AccountingPrinciple,
  RACarryForwardPosting.RevenueAccountingContract AS RevenueAccountingContract,
  RACarryForwardPosting.RevnAcctgPostingCategory AS RevnAcctgPostingCategory,
  RACarryForwardPosting.PerformanceObligation AS PerformanceObligation,
  cast( '0000' as fis_gjahr ) AS FiscalYear,
  cast( '0' as fins_fscalquarter ) AS FiscalQuarter,
  RACarryForwardPosting.GLAccount AS GLAccount,
  RACarryForwardPosting.SalesDocumentCurrency AS SalesDocumentCurrency,
  RACarryForwardPosting.CompanyCodeCurrency AS CompanyCodeCurrency,
  RACarryForwardPosting.AdditionalCurrency1 AS AdditionalCurrency1,
  RACarryForwardPosting.AdditionalCurrency2 AS AdditionalCurrency2,
  sum(RACarryForwardPosting.RevnAcctgPostgAmtInSlsDocCrcy) AS RevnAcctgPostgAmtInSlsDocCrcy,
  sum(RACarryForwardPosting.RevnAcctgPostgAmtInCoCodeCrcy) AS RevnAcctgPostgAmtInCoCodeCrcy,
  sum(RACarryForwardPosting.RevnAcctgPostgAmtInAddlCrcy1) AS RevnAcctgPostgAmtInAddlCrcy1,
  sum(RACarryForwardPosting.RevnAcctgPostgAmtInAddlCrcy2) AS RevnAcctgPostgAmtInAddlCrcy2,
  RADeltaPosting._RevenueAccountingContract.RAPostLevelOfContractBalance AS RAPostLevelOfContractBalance
FROM I_RevenueAccountingPosting AS RACarryForwardPosting
INNER JOIN P_RAContrBalFiscalPeriodSel ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_RevenueAccountingPosting
;