R_RevenueAccountingContractTP

DDL: R_REVENUEACCOUNTINGCONTRACTTP Type: view_entity TRANSACTIONAL

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)

SourceAliasJoin Type
I_RevenueAccountingContract Contract from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;