P_RATotalOpenAmount
P_RATotalOpenAmount is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_RATOTALOPENCOST, P_RATotalOpenRevenue) and exposes 97 fields with key fields CompanyCode, AccountingPrinciple, PerformanceObligation, RevnAcctgConditionCategory, AccountingPrinciple.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_RATOTALOPENCOST | P_RATOTALOPENCOST | union_all |
| P_RATotalOpenRevenue | P_RATotalOpenRevenue | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_FiscalYear | fis_gjahr | |
| P_FiscalPeriod | fins_fiscalperiod |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (97)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | AccountingPrinciple | AccountingPrinciple | AP Ledger/CoCode | |
| KEY | PerformanceObligation | PerformanceObligation | Performance Obligation | |
| KEY | RevnAcctgConditionCategory | RevnAcctgConditionCategory | ||
| RAPerformanceObligationType | RAPerformanceObligationType | Performance Obligation Type | ||
| SalesDocumentCurrency | Currency | |||
| RevenueAccountingContract | TotalOpenRevenue | RevenueAccountingContract | Revenue Contract | |
| RevnAcctgContractCreationDate | ||||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| Customer | Customer | Sold-to Party | ||
| PerfOblgnFulfillmentType | PerfOblgnFulfillmentType | Fulfillment Type | ||
| PerfOblgnEventType | PerfOblgnEventType | Event Type | ||
| RevnAcctgSalesOrganization | RevnAcctgSalesOrganization | Sales Org. | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ProfitabilitySegment_2 | ProfitabilitySegment_2 | Profit. segment | ||
| CostCenter | CostCenter | Cost Center | ||
| OrderID | OrderID | Order ID | ||
| SalesOrder | SalesOrder | SD Document | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| RevnAcctgPerfOblgnStatus | RevnAcctgPerfOblgnStatus | Perf. Oblig. Status | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| PerformanceObligationClass | PerformanceObligationClass | Performance Obligation Name | ||
| RAInitialEffectiveDate | RAInitialEffectiveDate | |||
| IsBusinessPurposeCompleted | ||||
| RATotalOpenRevnInSlsDocCrcy | TotalOpenRevenue | TotalOpenRevenue | ||
| RAOpenCostInCoCodeCrcy | ||||
| RATimeBsdOpenCostInSlsDocCrcy | ||||
| RAEventBsdOpenCostInSlsDocCrcy | ||||
| _AccountingPrinciple | _AccountingPrinciple | |||
| _BusinessArea | _BusinessArea | |||
| _BusinessPartner | _BusinessPartner | |||
| _CompanyCode | _CompanyCode | |||
| _Customer | _Customer | |||
| _FunctionalArea | _FunctionalArea | |||
| _Order | _Order | |||
| _PerfObligationEventType | _PerfObligationEventType | |||
| _FulfillmentType | _FulfillmentType | |||
| _RAPerfOblgnStatus | _RAPerfOblgnStatus | |||
| _SalesOrder | _SalesOrder | |||
| _Segment | _Segment | |||
| _WBSElement | _WBSElement | |||
| _CostCenter | _CostCenter | |||
| _ProfitCenter | _ProfitCenter | |||
| _SalesOrganization | _SalesOrganization | |||
| _ControllingArea | _ControllingArea | |||
| P_FiscalYear | ||||
| KEY | AccountingPrinciple | AccountingPrinciple | AP Ledger/CoCode | |
| KEY | PerformanceObligation | PerformanceObligation | Performance Obligation | |
| KEY | RevnAcctgConditionCategory | RevnAcctgConditionCategory | ||
| RAPerformanceObligationType | RAPerformanceObligationType | Performance Obligation Type | ||
| SalesDocumentCurrency | Currency | |||
| RevenueAccountingContract | TotalOpenCost | RevenueAccountingContract | Revenue Contract | |
| RevnAcctgContractCreationDate | ||||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| Customer | Customer | Sold-to Party | ||
| PerfOblgnFulfillmentType | PerfOblgnFulfillmentType | Fulfillment Type | ||
| PerfOblgnEventType | PerfOblgnEventType | Event Type | ||
| RevnAcctgSalesOrganization | RevnAcctgSalesOrganization | Sales Org. | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ProfitabilitySegment_2 | ProfitabilitySegment_2 | Profit. segment | ||
| CostCenter | CostCenter | Cost Center | ||
| OrderID | OrderID | Order ID | ||
| SalesOrder | SalesOrder | SD Document | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| RevnAcctgPerfOblgnStatus | RevnAcctgPerfOblgnStatus | Perf. Oblig. Status | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| PerformanceObligationClass | PerformanceObligationClass | Performance Obligation Name | ||
| RAInitialEffectiveDate | RAInitialEffectiveDate | |||
| IsBusinessPurposeCompleted | ||||
| RATotalOpenRevnInSlsDocCrcy | ||||
| RAEventBsdOpenRevnInSlsDocCrcy | ||||
| RATimeBsdOpenRevnInSlsDocCrcy | ||||
| RAOpenCostInCoCodeCrcy | TotalOpenCost | RAOpenCostInCoCodeCury | ||
| _AccountingPrinciple | _AccountingPrinciple | |||
| _BusinessArea | _BusinessArea | |||
| _BusinessPartner | _BusinessPartner | |||
| _CompanyCode | _CompanyCode | |||
| _Customer | _Customer | |||
| _FunctionalArea | _FunctionalArea | |||
| _Order | _Order | |||
| _PerfObligationEventType | _PerfObligationEventType | |||
| _FulfillmentType | _FulfillmentType | |||
| _RAPerfOblgnStatus | _RAPerfOblgnStatus | |||
| _SalesOrder | _SalesOrder | |||
| _Segment | _Segment | |||
| _WBSElement | _WBSElement | |||
| _CostCenter | _CostCenter | |||
| _ProfitCenter | _ProfitCenter | |||
| _SalesOrganization | _SalesOrganization | |||
| _ControllingArea | _ControllingArea | |||
| _RevenueAccountingContract | _RevenueAccountingContract |
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_RATotalOpenAmount.
-- 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_FiscalYear : fis_gjahr, P_FiscalPeriod : fins_fiscalperiod
CREATE VIEW P_RATotalOpenAmount AS
SELECT
CompanyCode,
AccountingPrinciple,
PerformanceObligation,
RevnAcctgConditionCategory,
RAPerformanceObligationType,
cast(SalesDocumentCurrency as farp_document_currency preserving type) AS SalesDocumentCurrency,
TotalOpenRevenue.RevenueAccountingContract AS RevenueAccountingContract,
TotalOpenRevenue._RevenueAccountingContract.RevnAcctgContractCreationDate AS RevnAcctgContractCreationDate,
BusinessPartner,
Customer,
PerfOblgnFulfillmentType,
PerfOblgnEventType,
RevnAcctgSalesOrganization,
FunctionalArea,
BusinessArea,
Segment,
ProfitCenter,
ProfitabilitySegment_2,
CostCenter,
OrderID,
SalesOrder,
WBSElementExternalID,
RevnAcctgPerfOblgnStatus,
ControllingArea,
PerformanceObligationClass,
RAInitialEffectiveDate,
TotalOpenRevenue._RevenueAccountingContract.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
TotalOpenRevenue.TotalOpenRevenue AS RATotalOpenRevnInSlsDocCrcy,
cast(0 as farr_open_revenue) AS RAOpenCostInCoCodeCrcy,
cast(0 as farr_open_revenue) AS RATimeBsdOpenCostInSlsDocCrcy,
cast(0 as farr_open_revenue) AS RAEventBsdOpenCostInSlsDocCrcy,
cast(0 as farr_open_revenue) AS RAEventBsdOpenRevnInSlsDocCrcy,
cast(0 as farr_open_revenue) AS RATimeBsdOpenRevnInSlsDocCrcy
FROM P_RATotalOpenRevenue
-- UNION ALL with additional select branch(es): P_RATOTALOPENCOST
;
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