P_RAContrWithPostedBalance
P_RAContrWithPostedBalance is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_RevenueAccountingContract) and exposes 44 fields with key field RevenueAccountingContract.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_RevenueAccountingContract | I_RevenueAccountingContract | from |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RevenueAccountingContract | I_RevenueAccountingContract | RevenueAccountingContract | Revenue Contract |
| RevnAcctgContractDescription | RevnAcctgContractDescription | Description | ||
| CompanyCode | I_RevenueAccountingContract | CompanyCode | Receiver Company Code | |
| AccountingPrinciple | AccountingPrinciple | AP Ledger/CoCode | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| Customer | Customer | Sold-to Party | ||
| TotContractualPrcInSlsDocCrcy | TotContractualPrcInSlsDocCrcy | Contractual Price | ||
| UpToCurPeriodRecognizedRevenue | ||||
| RAContrCatchUpAmtInSlsDocCrcy | ||||
| RAContrBalanceDerivationRule | RAContrBalanceDerivationRule | Balance Presentation | ||
| PostedRevnInSlsDocCrcy | ||||
| RAContrLiabilitiesAmount | ||||
| RAContractAssetsAmount | ||||
| RAPostedUnbilldRblsAmount | ||||
| RADeferredRevenueInSlsDocCrcy | ||||
| RAReceivablesAmtInSlsDocCrcy | ||||
| RABilledRblsAmtInSlsDocCrcy | ||||
| RAUnbilledRblsAmount | ||||
| NumberOfPerformanceObligations | NumberOfPerformanceObligations | Number of Performance Obligations | ||
| AllocEffctAmountInSalesDocCrcy | AllocEffctAmountInSalesDocCrcy | Allocation Effect | ||
| SalesDocumentCurrency | I_RevenueAccountingContract | SalesDocumentCurrency | Currency | |
| RevnAcctgSalesOrganization | RevnAcctgSalesOrganization | Sales Org. | ||
| RAContractHasAllocationEffect | RAContractHasAllocationEffect | Has Allocation Effect | ||
| RevnAcctgContractStatus | RevnAcctgContractStatus | Contract Status | ||
| RevnAcctgContractStatusName | ||||
| RAContractCompletionDate | RAContractCompletionDate | Completion Date | ||
| RevnContrAssetsImpairmentDate | RevnContrAssetsImpairmentDate | Early Termination Date | ||
| RAContractHasAssetsImpairment | RAContractHasAssetsImpairment | Contract was Terminated Early | ||
| RevnAcctgContractCreatedByUser | RevnAcctgContractCreatedByUser | Last Changed By | ||
| CreatedByUserDescription | ||||
| RevnAcctgContractCreationDate | RevnAcctgContractCreationDate | Created On | ||
| RAContractLastChangedByUsr | RAContractLastChangedByUsr | Last Changed By | ||
| LastChangedByUserDescription | ||||
| RAContractLastChangeDate | RAContractLastChangeDate | Changed on | ||
| RAContractVersionCode | I_RevenueAccountingContract | RAContractVersionCode | RAR version code | |
| RAContractIsSoftDeleted | RAContractIsSoftDeleted | Soft Deleted | ||
| _BusinessPartner | I_RevenueAccountingContract | _BusinessPartner | ||
| _Customer | I_RevenueAccountingContract | _Customer | ||
| _CompanyCode | I_RevenueAccountingContract | _CompanyCode | ||
| _AccountingPrinciple | I_RevenueAccountingContract | _AccountingPrinciple | ||
| _Currency | I_RevenueAccountingContract | _Currency | ||
| _SalesOrganization | I_RevenueAccountingContract | _SalesOrganization | ||
| _CreatedByUser | I_RevenueAccountingContract | _CreatedByUser | ||
| _ChangedByUser | I_RevenueAccountingContract | _ChangedByUser |
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_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 P_RAContrWithPostedBalance AS
SELECT
I_RevenueAccountingContract.RevenueAccountingContract AS RevenueAccountingContract,
RevnAcctgContractDescription,
I_RevenueAccountingContract.CompanyCode AS CompanyCode,
AccountingPrinciple,
BusinessPartner,
Customer,
TotContractualPrcInSlsDocCrcy,
cast(0 as farr_recog_amt) AS UpToCurPeriodRecognizedRevenue,
cast(0 as farr_defitem_rev_amt_catchup) AS RAContrCatchUpAmtInSlsDocCrcy,
RAContrBalanceDerivationRule,
cast(0 as farr_amount_tc) AS PostedRevnInSlsDocCrcy,
cast(0 as farr_amount_tc) AS RAContrLiabilitiesAmount,
cast(0 as farr_amount_tc) AS RAContractAssetsAmount,
cast(0 as farr_amount_tc) AS RAPostedUnbilldRblsAmount,
cast(0 as farr_amount_tc) AS RADeferredRevenueInSlsDocCrcy,
cast(0 as farr_amount_tc) AS RAReceivablesAmtInSlsDocCrcy,
cast(0 as farr_amount_tc) AS RABilledRblsAmtInSlsDocCrcy,
cast(0 as farr_amount_tc) AS RAUnbilledRblsAmount,
NumberOfPerformanceObligations,
AllocEffctAmountInSalesDocCrcy,
I_RevenueAccountingContract.SalesDocumentCurrency AS SalesDocumentCurrency,
RevnAcctgSalesOrganization,
RAContractHasAllocationEffect,
RevnAcctgContractStatus,
I_RevenueAccountingContract._RAContractStatus._Text[1: Language = $session.system_language].RevnAcctgContractStatusName AS RevnAcctgContractStatusName,
RAContractCompletionDate,
RevnContrAssetsImpairmentDate,
RAContractHasAssetsImpairment,
RevnAcctgContractCreatedByUser,
I_RevenueAccountingContract._CreatedByUser.UserDescription AS CreatedByUserDescription,
RevnAcctgContractCreationDate,
RAContractLastChangedByUsr,
I_RevenueAccountingContract._ChangedByUser.UserDescription AS LastChangedByUserDescription,
RAContractLastChangeDate,
I_RevenueAccountingContract.RAContractVersionCode AS RAContractVersionCode,
RAContractIsSoftDeleted,
I_RevenueAccountingContract._BusinessPartner AS _BusinessPartner,
I_RevenueAccountingContract._Customer AS _Customer,
I_RevenueAccountingContract._CompanyCode AS _CompanyCode,
I_RevenueAccountingContract._AccountingPrinciple AS _AccountingPrinciple,
I_RevenueAccountingContract._Currency AS _Currency,
I_RevenueAccountingContract._SalesOrganization AS _SalesOrganization,
I_RevenueAccountingContract._CreatedByUser AS _CreatedByUser,
I_RevenueAccountingContract._ChangedByUser AS _ChangedByUser
FROM I_RevenueAccountingContract
;
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