C_RAContrWithPostedBalance
Consumption RA Posted Contract Balance
C_RAContrWithPostedBalance is a Consumption CDS View that provides data about "Consumption RA Posted Contract Balance" in SAP S/4HANA. It reads from 1 data source (I_RAContrWithPostedBalance) and exposes 37 fields with key field RevenueAccountingContract. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_RAContrWithPostedBalance | I_RAContrWithPostedBalance | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_RAPerfOblgnWithToCurPerdAmt | _RAPerfOblgnWithToCurPerdAmt | $projection.RevenueAccountingContract = _RAPerfOblgnWithToCurPerdAmt.RevenueAccountingContract |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Consumption RA Posted Contract Balance | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Search.searchable | true | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RevenueAccountingContract | RevenueAccountingContract | Revenue Contract | |
| RevnAcctgContractDescription | RevnAcctgContractDescription | Description | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| AccountingPrinciple | AccountingPrinciple | AP Ledger/CoCode | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| BusinessPartnerName | ||||
| Customer | Customer | Sold-to Party | ||
| CustomerName | ||||
| TotContractualPrcInSlsDocCrcy | TotContractualPrcInSlsDocCrcy | Contractual Price | ||
| UpToCurPeriodRecognizedRevenue | ||||
| PostedRevnInSlsDocCrcy | ||||
| RAContrLiabilitiesAmount | ||||
| RAContractAssetsAmount | ||||
| RAPostedUnbilldRblsAmount | ||||
| RADeferredRevenueInSlsDocCrcy | ||||
| RAReceivablesAmtInSlsDocCrcy | ||||
| RABilledRblsAmtInSlsDocCrcy | ||||
| RAUnbilledRblsAmount | ||||
| NumberOfPerformanceObligations | NumberOfPerformanceObligations | Number of Performance Obligations | ||
| AllocEffctAmountInSalesDocCrcy | AllocEffctAmountInSalesDocCrcy | Allocation Effect | ||
| RAContractHasAssetsImpairment | RAContractHasAssetsImpairment | Contract was Terminated Early | ||
| RevnAcctgContractStatus | RevnAcctgContractStatus | Contract Status | ||
| RevnAcctgContractStatusName | RevnAcctgContractStatusName | Contract Status Description | ||
| RAContractCompletionDate | RAContractCompletionDate | Completion Date | ||
| SalesDocumentCurrency | SalesDocumentCurrency | Currency | ||
| RevnAcctgSalesOrganization | RevnAcctgSalesOrganization | Sales Org. | ||
| RAContractHasAllocationEffect | RAContractHasAllocationEffect | Has Allocation Effect | ||
| RevnAcctgContractCreatedByUser | RevnAcctgContractCreatedByUser | Last Changed By | ||
| RevnAcctgContractCreationDate | RevnAcctgContractCreationDate | Created On | ||
| RAContractLastChangedByUsr | RAContractLastChangedByUsr | Last Changed By | ||
| RAContractLastChangeDate | RAContractLastChangeDate | Changed on | ||
| RAContractVersionCode | RAContractVersionCode | RAR version code | ||
| RAContractHasPostponedItem | RAContractHasPostponedItem | |||
| _RAPerfOblgnWithToCurPerdAmt | _RAPerfOblgnWithToCurPerdAmt | |||
| _BusinessPartner | _BusinessPartner | |||
| _AccountingPrinciple | _AccountingPrinciple | |||
| _CompanyCode | _CompanyCode |
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 C_RAContrWithPostedBalance.
-- 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 C_RAContrWithPostedBalance AS
SELECT
RevenueAccountingContract,
RevnAcctgContractDescription,
CompanyCode,
AccountingPrinciple,
BusinessPartner,
I_RAContrWithPostedBalance._BusinessPartner.BusinessPartnerName AS BusinessPartnerName,
Customer,
I_RAContrWithPostedBalance._Customer.CustomerName AS CustomerName,
TotContractualPrcInSlsDocCrcy,
cast(UpToCurPeriodRecognizedRevenue + RAContrCatchUpAmtInSlsDocCrcy as farr_recog_amt) AS UpToCurPeriodRecognizedRevenue,
cast(PostedRevnInSlsDocCrcy as farr_post_price) AS PostedRevnInSlsDocCrcy,
cast(RAContrLiabilitiesAmount as farr_posted_clt) AS RAContrLiabilitiesAmount,
cast(RAContractAssetsAmount as farr_posted_cat preserving type) AS RAContractAssetsAmount,
cast(RAPostedUnbilldRblsAmount as farr_posted_urt preserving type) AS RAPostedUnbilldRblsAmount,
cast(RADeferredRevenueInSlsDocCrcy as farr_posted_drt) AS RADeferredRevenueInSlsDocCrcy,
cast(RAReceivablesAmtInSlsDocCrcy as farr_receivable) AS RAReceivablesAmtInSlsDocCrcy,
cast(RABilledRblsAmtInSlsDocCrcy as farr_billed_rbl preserving type) AS RABilledRblsAmtInSlsDocCrcy,
cast(RAUnbilledRblsAmount as farr_unbill_rbl) AS RAUnbilledRblsAmount,
NumberOfPerformanceObligations,
AllocEffctAmountInSalesDocCrcy,
RAContractHasAssetsImpairment,
RevnAcctgContractStatus,
RevnAcctgContractStatusName,
RAContractCompletionDate,
SalesDocumentCurrency,
RevnAcctgSalesOrganization,
RAContractHasAllocationEffect,
RevnAcctgContractCreatedByUser,
RevnAcctgContractCreationDate,
RAContractLastChangedByUsr,
RAContractLastChangeDate,
RAContractVersionCode,
RAContractHasPostponedItem
FROM I_RAContrWithPostedBalance
LEFT OUTER JOIN C_RAPerfOblgnWithToCurPerdAmt AS _RAPerfOblgnWithToCurPerdAmt ON RevenueAccountingContract = _RAPerfOblgnWithToCurPerdAmt.RevenueAccountingContract -- association [0..*]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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