P_RACumltvReceivableAmountSeld
P_RACumltvReceivableAmountSeld is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_RAContrBalFiscalPeriodSel, P_RADeltaRevenueAmountAll) and exposes 17 fields with key fields CompanyCode, AccountingPrinciple, RevenueAccountingContract, PerformanceObligation, FiscalYear.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_RAContrBalFiscalPeriodSel | P_RAContrBalFiscalPeriodSel | from |
| P_RADeltaRevenueAmountAll | P_RADeltaRevenueAmountAll | inner |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_FiscalYearFrom | fis_gjahr | |
| P_FiscalPeriodFrom | fis_poper | |
| P_FiscalYearTo | fis_gjahr | |
| P_FiscalPeriodTo | fis_poper |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | _RAPostingRVSeldPerd | CompanyCode | Receiver Company Code |
| KEY | AccountingPrinciple | _RAPostingRVSeldPerd | AccountingPrinciple | AP Ledger/CoCode |
| KEY | RevenueAccountingContract | _RAPostingRVPerPerd | RevenueAccountingContract | Revenue Contract |
| KEY | PerformanceObligation | _RAPostingRVPerPerd | PerformanceObligation | Performance Obligation |
| KEY | FiscalYear | _RAPostingRVSeldPerd | FiscalYear | G/L Fiscal Year |
| KEY | FiscalPeriod | _RAPostingRVSeldPerd | FiscalPeriod | Tax period |
| KEY | GLAccount | _RAPostingRVPerPerd | GLAccount | General Ledger |
| SalesDocumentCurrency | _RAPostingRVPerPerd | SalesDocumentCurrency | Currency | |
| CompanyCodeCurrency | _RAPostingRVPerPerd | CompanyCodeCurrency | Local Currency | |
| AdditionalCurrency1 | _RAPostingRVPerPerd | AdditionalCurrency1 | Local curr. 2 | |
| AdditionalCurrency2 | _RAPostingRVPerPerd | AdditionalCurrency2 | Local curr. 3 | |
| RevnAcctgEndAmtInSlsDocCrcy | ||||
| RevnAcctgEndAmtInCoCodeCrcy | ||||
| curr232endasRevnAcctgDeltaAmtInAddlCrcy1 | ||||
| RevnAcctgEndAmtInAddlCrcy1 | ||||
| curr232endasRevnAcctgDeltaAmtInAddlCrcy2 | ||||
| RevnAcctgEndAmtInAddlCrcy2 |
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_RACumltvReceivableAmountSeld.
-- 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.
-- Parameters: P_FiscalYearFrom : fis_gjahr, P_FiscalPeriodFrom : fis_poper, P_FiscalYearTo : fis_gjahr, P_FiscalPeriodTo : fis_poper
CREATE VIEW P_RACumltvReceivableAmountSeld AS
SELECT
_RAPostingRVSeldPerd.CompanyCode AS CompanyCode,
_RAPostingRVSeldPerd.AccountingPrinciple AS AccountingPrinciple,
_RAPostingRVPerPerd.RevenueAccountingContract AS RevenueAccountingContract,
_RAPostingRVPerPerd.PerformanceObligation AS PerformanceObligation,
_RAPostingRVSeldPerd.FiscalYear AS FiscalYear,
_RAPostingRVSeldPerd.FiscalPeriod AS FiscalPeriod,
_RAPostingRVPerPerd.GLAccount AS GLAccount,
_RAPostingRVPerPerd.SalesDocumentCurrency AS SalesDocumentCurrency,
_RAPostingRVPerPerd.CompanyCodeCurrency AS CompanyCodeCurrency,
_RAPostingRVPerPerd.AdditionalCurrency1 AS AdditionalCurrency1,
_RAPostingRVPerPerd.AdditionalCurrency2 AS AdditionalCurrency2,
sum(_RAPostingRVPerPerd.RevnAcctgDeltaAmtInSlsDocCrcy) AS RevnAcctgEndAmtInSlsDocCrcy,
sum(_RAPostingRVPerPerd.RevnAcctgDeltaAmtInCoCodeCrcy) AS RevnAcctgEndAmtInCoCodeCrcy,
sum(case when _RAPostingRVSeldPerd.FiscalYear = _RAPostingRVPerPerd.FiscalYear and _RAPostingRVSeldPerd.FiscalPeriod = _RAPostingRVPerPerd.FiscalPeriod then _RAPostingRVPerPerd.RevnAcctgDeltaAmtInAddlCrcy1 else cast(0 as abap.curr(23,2)) end) as RevnAcctgDeltaAmtInAddlCrcy1 AS curr232endasRevnAcctgDeltaAmtInAddlCrcy1,
sum(_RAPostingRVPerPerd.RevnAcctgDeltaAmtInAddlCrcy1) AS RevnAcctgEndAmtInAddlCrcy1,
sum(case when _RAPostingRVSeldPerd.FiscalYear = _RAPostingRVPerPerd.FiscalYear and _RAPostingRVSeldPerd.FiscalPeriod = _RAPostingRVPerPerd.FiscalPeriod then _RAPostingRVPerPerd.RevnAcctgDeltaAmtInAddlCrcy2 else cast(0 as abap.curr(23,2)) end) as RevnAcctgDeltaAmtInAddlCrcy2 AS curr232endasRevnAcctgDeltaAmtInAddlCrcy2,
sum(_RAPostingRVPerPerd.RevnAcctgDeltaAmtInAddlCrcy2) AS RevnAcctgEndAmtInAddlCrcy2
FROM P_RAContrBalFiscalPeriodSel
INNER JOIN P_RADeltaRevenueAmountAll ON /* join condition not captured in parsed metadata */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA