R_RevenueAccountingContractTP
Revenue Accounting Contract Entity
R_RevenueAccountingContractTP is a Transactional CDS View that provides data about "Revenue Accounting Contract Entity" in SAP S/4HANA. It reads from 1 data source (I_RevenueAccountingContract) and exposes 40 fields with key field RevenueAccountingContract. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_RevenueAccountingContract | Contract | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_RAContractStatusText | _RAContractStatusText | $projection.RevnAcctgContractStatus = _RAContractStatusText.RevnAcctgContractStatus |
| [0..1] | I_UserContactCard | _CreatedByUserContactCard | $projection.RevnAcctgContractCreatedByUser = _CreatedByUserContactCard.ContactCardID |
| [0..*] | R_RAPerformanceObligationTP | _PerformanceObligation | |
| [0..*] | R_RAContrMappgOplDocTP | _Mapping | |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Revenue Accounting Contract Entity | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.sapObjectNodeType.name | RevenueAccountingContract | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RevenueAccountingContract | I_RevenueAccountingContract | RevenueAccountingContract | Revenue Contract |
| CompanyCode | I_RevenueAccountingContract | CompanyCode | Receiver Company Code | |
| AccountingPrinciple | I_RevenueAccountingContract | AccountingPrinciple | AP Ledger/CoCode | |
| BusinessPartner | I_RevenueAccountingContract | BusinessPartner | Issuing Authority | |
| Customer | I_RevenueAccountingContract | Customer | Sold-to Party | |
| RevnAcctgContractDescription | I_RevenueAccountingContract | RevnAcctgContractDescription | Description | |
| RevnAcctgContractCategory | I_RevenueAccountingContract | RevnAcctgContractCategory | Contract Category | |
| RevnAcctgSalesOrganization | I_RevenueAccountingContract | RevnAcctgSalesOrganization | Sales Org. | |
| TotContractualPrcInSlsDocCrcy | I_RevenueAccountingContract | TotContractualPrcInSlsDocCrcy | Contractual Price | |
| AllocEffctAmountInSalesDocCrcy | I_RevenueAccountingContract | AllocEffctAmountInSalesDocCrcy | Allocation Effect | |
| ContrToBeAllcdAmtInSlsDocCrcy | ||||
| RAContractHasAllocationEffect | I_RevenueAccountingContract | RAContractHasAllocationEffect | Has Allocation Effect | |
| SalesDocumentCurrency | I_RevenueAccountingContract | SalesDocumentCurrency | Currency | |
| RevnAcctgContractStatus | I_RevenueAccountingContract | RevnAcctgContractStatus | Contract Status | |
| NumberOfPerformanceObligations | I_RevenueAccountingContract | NumberOfPerformanceObligations | Number of Performance Obligations | |
| RevnAcctgContractCreationDate | I_RevenueAccountingContract | RevnAcctgContractCreationDate | Created On | |
| RevnAcctgContractCreatedByUser | I_RevenueAccountingContract | RevnAcctgContractCreatedByUser | Last Changed By | |
| CreatedByUserDescription | ||||
| RAContractLastSavedDateTime | I_RevenueAccountingContract | RAContractLastSavedDateTime | Time Stamp | |
| RAContractIsManuallyAllocated | I_RevenueAccountingContract | RAContractIsManuallyAllocated | Price Allocated Manually | |
| IsBusinessPurposeCompleted | I_RevenueAccountingContract | IsBusinessPurposeCompleted | Purpose Completed | |
| RAContractCompletionDate | I_RevenueAccountingContract | RAContractCompletionDate | Completion Date | |
| RAContractLastChangedByUsr | I_RevenueAccountingContract | RAContractLastChangedByUsr | Last Changed By | |
| RAContractLastChangeDate | I_RevenueAccountingContract | RAContractLastChangeDate | Changed on | |
| RAContractIsSetToSystemAlloc | ||||
| RAContrHasMnlPrcAllocConflict | I_RevenueAccountingContract | RAContrHasMnlPrcAllocConflict | Allocation Conflict | |
| RAAttributeHasConflict | ||||
| PerfOblgnHasSprdgConflict | ||||
| RAContractHasAssetsImpairment | I_RevenueAccountingContract | RAContractHasAssetsImpairment | Contract was Terminated Early | |
| RAContractIsUniversal | I_RevenueAccountingContract | RAContractIsUniversal | Universal Rev Contr | |
| _PerformanceObligation | _PerformanceObligation | |||
| _RAContractStatusText | _RAContractStatusText | |||
| _Customer | I_RevenueAccountingContract | _Customer | ||
| _Mapping | _Mapping | |||
| _SalesOrganization | I_RevenueAccountingContract | _SalesOrganization | ||
| _AccountingPrinciple | I_RevenueAccountingContract | _AccountingPrinciple | ||
| _CompanyCode | I_RevenueAccountingContract | _CompanyCode | ||
| _BusinessPartner | I_RevenueAccountingContract | _BusinessPartner | ||
| _CreatedByUserContactCard | _CreatedByUserContactCard | |||
| RAContractVersionCode | I_RevenueAccountingContract | RAContractVersionCode | RAR version code |
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 R_RevenueAccountingContractTP.
-- 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 R_RevenueAccountingContractTP AS
SELECT
Contract.RevenueAccountingContract AS RevenueAccountingContract,
Contract.CompanyCode AS CompanyCode,
Contract.AccountingPrinciple AS AccountingPrinciple,
Contract.BusinessPartner AS BusinessPartner,
Contract.Customer AS Customer,
Contract.RevnAcctgContractDescription AS RevnAcctgContractDescription,
Contract.RevnAcctgContractCategory AS RevnAcctgContractCategory,
Contract.RevnAcctgSalesOrganization AS RevnAcctgSalesOrganization,
Contract.TotContractualPrcInSlsDocCrcy AS TotContractualPrcInSlsDocCrcy,
Contract.AllocEffctAmountInSalesDocCrcy AS AllocEffctAmountInSalesDocCrcy,
cast ( 0 as farr_cds_contr_to_be_allcd_amt ) AS ContrToBeAllcdAmtInSlsDocCrcy,
Contract.RAContractHasAllocationEffect AS RAContractHasAllocationEffect,
Contract.SalesDocumentCurrency AS SalesDocumentCurrency,
Contract.RevnAcctgContractStatus AS RevnAcctgContractStatus,
Contract.NumberOfPerformanceObligations AS NumberOfPerformanceObligations,
Contract.RevnAcctgContractCreationDate AS RevnAcctgContractCreationDate,
Contract.RevnAcctgContractCreatedByUser AS RevnAcctgContractCreatedByUser,
Contract._CreatedByUser.UserDescription AS CreatedByUserDescription,
Contract.RAContractLastSavedDateTime AS RAContractLastSavedDateTime,
Contract.RAContractIsManuallyAllocated AS RAContractIsManuallyAllocated,
Contract.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
Contract.RAContractCompletionDate AS RAContractCompletionDate,
Contract.RAContractLastChangedByUsr AS RAContractLastChangedByUsr,
Contract.RAContractLastChangeDate AS RAContractLastChangeDate,
cast (' ' as farr_manual_changed ) AS RAContractIsSetToSystemAlloc,
Contract.RAContrHasMnlPrcAllocConflict AS RAContrHasMnlPrcAllocConflict,
cast (coalesce(ContractWithAttribConflict.RAAttributeHasConflict, '') as farr_attr_conflict preserving type ) AS RAAttributeHasConflict,
cast (coalesce(ContractWithSpreadingConflict.PerfOblgnHasSprdgConflict, '') as farr_spread_conflict preserving type ) AS PerfOblgnHasSprdgConflict,
Contract.RAContractHasAssetsImpairment AS RAContractHasAssetsImpairment,
Contract.RAContractIsUniversal AS RAContractIsUniversal,
Contract._Customer AS _Customer,
Contract._SalesOrganization AS _SalesOrganization,
Contract._AccountingPrinciple AS _AccountingPrinciple,
Contract._CompanyCode AS _CompanyCode,
Contract._BusinessPartner AS _BusinessPartner,
Contract.RAContractVersionCode AS RAContractVersionCode
FROM I_RevenueAccountingContract AS Contract
LEFT OUTER JOIN I_RAContractStatusText AS _RAContractStatusText ON RevnAcctgContractStatus = _RAContractStatusText.RevnAcctgContractStatus -- association [0..*]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByUserContactCard ON RevnAcctgContractCreatedByUser = _CreatedByUserContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN R_RAPerformanceObligationTP AS _PerformanceObligation ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_RAContrMappgOplDocTP AS _Mapping ON /* condition not available in parsed metadata */ -- association [0..*]
;
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