I_RevenueAccountingContract

DDL: I_REVENUEACCOUNTINGCONTRACT Type: view_entity BASIC

Revenue Accounting Contract

I_RevenueAccountingContract (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Accounting and Financial Close

I_RevenueAccountingContract is a Basic CDS View (Dimension) that provides data about "Revenue Accounting Contract" in SAP S/4HANA. It reads from 1 data source (farr_d_contract) and exposes 53 fields with key field RevenueAccountingContract. It has 14 associations to related views.

SAP API Hub

StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-RA
CapabilitiesAssociation Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides access to the master data of the revenue accounting contract.</p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>What is the revenue accounting contract?</p></li> <li><p>What is the description of a revenue accounting contract?</p></li> <li><p>What is the total contractual price in the sales document currency of a revenue accounting contract?</p></li> <li><p>What is the status of a revenue accounting contract?</p></li> <li><p>What is the completion date of a revenue accounting contract?</p></li> <li><p>What is the account used in a revenue accounting contract (for example, asset account)?</p></li> <li><p>What is the version code of the revenue accounting contract (A = Classic, X = Optimized)?</p></li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
farr_d_contract farr_d_contract from

Associations (14)

CardinalityTargetAliasCondition
[0..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_CustomerGroup _CustomerGroup $projection.CustomerGroup = _CustomerGroup.CustomerGroup
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_AccountingPrinciple _AccountingPrinciple $projection.AccountingPrinciple = _AccountingPrinciple.AccountingPrinciple
[1..1] I_RAContractCategory _RAContractCategory $projection.RevnAcctgContractCategory = _RAContractCategory.RevnAcctgContractCategory
[0..1] I_Currency _Currency $projection.SalesDocumentCurrency = _Currency.Currency
[0..1] I_SalesOrganization _SalesOrganization $projection.RevnAcctgSalesOrganization = _SalesOrganization.SalesOrganization
[0..1] I_RAContrBalanceDerivationRule _BalanceDerivationRule $projection.RAContrBalanceDerivationRule = _BalanceDerivationRule.RAContrBalanceDerivationRule
[0..1] I_RAPostLevelOfContractBalance _PostLevel $projection.RAPostLevelOfContractBalance = _PostLevel.RAPostLevelOfContractBalance
[1..1] I_RAContractStatus _RAContractStatus $projection.RevnAcctgContractStatus = _RAContractStatus.RevnAcctgContractStatus
[1..1] I_RAContrManagementVersion _RAContrMgmtVersion $projection.RAContractVersionCode = _RAContrMgmtVersion.RAContractVersionCode
[1..1] I_User _CreatedByUser $projection.RevnAcctgContractCreatedByUser = _CreatedByUser.UserID
[1..1] I_User _ChangedByUser $projection.RAContractLastChangedByUsr = _ChangedByUser.UserID

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
Analytics.dataCategory #DIMENSION view
Analytics.technicalName IRACONTRACT view
EndUserText.label Revenue Accounting Contract view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey RevenueAccountingContract view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (53)

KeyFieldSource TableSource FieldDescription
KEY RevenueAccountingContract Revenue Contract
CompanyCode company_code Company Code
RevnAcctgContractDescription description Description of Revenue Accounting Items
TotContractualPrcInSlsDocCrcy Contractual Price
RevnAcctgContractCategory contract_cat Contract Category
RevnAcctgSalesOrganization sales_org Sales Organization for Revenue Accounting
AllocEffctAmountInSalesDocCrcy Contr.Alloc.Effect
AccountingPrinciple acct_principle Accounting Principle
NumberOfPerformanceObligations Number of Performance Obligations
SalesDocumentCurrency trx_price_curk Currency Key
BusinessPartner partner Business Partner Number
Customer customer_id Recipient Cust. ID
CustomerGroup customer_grp Group key
RAContractHasAllocationEffect Has Allocation Effect
RAContrBalanceDerivationRule liab_method Contract Balance Presentation
RAPostLevelOfContractBalance liability_post_mode Level for Posting Liabilities and Assets to Posting Table
RevnAcctgContractStatus status Workflow Status
RAContractCompletionDate Contract Completion Date
RevnContrAssetsImpairmentDate Date on which the Contract was Terminated Early
RevnAcctgContractCreatedByUser Version Created By
RevnAcctgContractCreationDate Variant created on
RAContractLastChangedByUsr Last Changed By
RAContractIsSoftDeleted soft_deleted Soft Deleted
RAContractLastChangeDate last_changed_on Last Changed On
RAContractLastSavedDateTime last_saved_on UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
RAContractReceivableAdjmtAcct recei_adj_account Receivable Adjustment Account
RAContractAssetAccount asset_account Contract Asset Account
RAContractLiabilityAccount liability_account Contract Liability Account
RAContractIsManuallyChanged manual_changed Manually Changed
RAContractIsManuallyAllocated Price was allocated manually on the Contract
RAContrHasMnlPrcAllocConflict Contract has a manual price allocation conflict
FinancialValuationObjectType Type of the Financial Valuation Object
FinancialValuationObject Identifier of the Financial Valuation Object
FinancialValuationSubobject Identifier of the Financial Valuation Subobject
RAContractVersionCode rar_version_code Contract Management Version
IsBusinessPurposeCompleted is_blocked Func Is Blocked
RAContractTransformRecnclnKey ccm_ocm_recon_key Reconciliation Key for a Contract in a Revenue Acctg. Period
RAContractPostingMode posting_mode Posting Mode
RAContractIsUniversal universal_rev_contr Universal Revenue Recognition Contract
_BusinessPartner _BusinessPartner
_Customer _Customer
_CustomerGroup _CustomerGroup
_CompanyCode _CompanyCode
_AccountingPrinciple _AccountingPrinciple
_RAContractCategory _RAContractCategory
_Currency _Currency
_SalesOrganization _SalesOrganization
_BalanceDerivationRule _BalanceDerivationRule
_PostLevel _PostLevel
_RAContractStatus _RAContractStatus
_RAContrMgmtVersion _RAContrMgmtVersion
_CreatedByUser _CreatedByUser
_ChangedByUser _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 I_RevenueAccountingContract.
-- 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 I_RevenueAccountingContract AS
SELECT
  cast(contract_id as farr_cds_contract_id preserving type) AS RevenueAccountingContract,
  company_code AS CompanyCode,
  description AS RevnAcctgContractDescription,
  cast(trx_price as farr_cds_contractual_price preserving type ) AS TotContractualPrcInSlsDocCrcy,
  contract_cat AS RevnAcctgContractCategory,
  sales_org AS RevnAcctgSalesOrganization,
  cast(alloc_differ as farr_corr_amt preserving type) AS AllocEffctAmountInSalesDocCrcy,
  acct_principle AS AccountingPrinciple,
  cast(num_of_pob as farr_cds_num_of_pobs preserving type) AS NumberOfPerformanceObligations,
  trx_price_curk AS SalesDocumentCurrency,
  partner AS BusinessPartner,
  customer_id AS Customer,
  customer_grp AS CustomerGroup,
  cast(price_adjusted as farr_cds_has_alloc_effect preserving type) AS RAContractHasAllocationEffect,
  liab_method AS RAContrBalanceDerivationRule,
  liability_post_mode AS RAPostLevelOfContractBalance,
  status AS RevnAcctgContractStatus,
  cast(completion_date as farr_cds_contr_completion_date preserving type ) AS RAContractCompletionDate,
  cast(asset_impairment_date as farr_cds_asset_impairment_date preserving type) AS RevnContrAssetsImpairmentDate,
  cast(created_by as fis_cc_erfnm preserving type) AS RevnAcctgContractCreatedByUser,
  cast(created_on as farr_cds_created_on preserving type) AS RevnAcctgContractCreationDate,
  cast(last_changed_by as fis_aufaenam preserving type) AS RAContractLastChangedByUsr,
  soft_deleted AS RAContractIsSoftDeleted,
  last_changed_on AS RAContractLastChangeDate,
  last_saved_on AS RAContractLastSavedDateTime,
  recei_adj_account AS RAContractReceivableAdjmtAcct,
  asset_account AS RAContractAssetAccount,
  liability_account AS RAContractLiabilityAccount,
  manual_changed AS RAContractIsManuallyChanged,
  cast(manual_allocated as farr_cds_manual_price_alloc preserving type ) AS RAContractIsManuallyAllocated,
  cast(manual_price_alloc_conflict as farr_cds_has_alloc_conflict preserving type) AS RAContrHasMnlPrcAllocConflict,
  cast( 'RARC' as val_obj_type preserving type ) AS FinancialValuationObjectType,
  cast( contract_id as val_obj_id) AS FinancialValuationObject,
  cast( '' as val_subobj_id ) AS FinancialValuationSubobject,
  rar_version_code AS RAContractVersionCode,
  is_blocked AS IsBusinessPurposeCompleted,
  ccm_ocm_recon_key AS RAContractTransformRecnclnKey,
  posting_mode AS RAContractPostingMode,
  universal_rev_contr AS RAContractIsUniversal
FROM farr_d_contract
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_CustomerGroup AS _CustomerGroup ON CustomerGroup = _CustomerGroup.CustomerGroup  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_AccountingPrinciple AS _AccountingPrinciple ON AccountingPrinciple = _AccountingPrinciple.AccountingPrinciple  -- association [1..1]
LEFT OUTER JOIN I_RAContractCategory AS _RAContractCategory ON RevnAcctgContractCategory = _RAContractCategory.RevnAcctgContractCategory  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON SalesDocumentCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON RevnAcctgSalesOrganization = _SalesOrganization.SalesOrganization  -- association [0..1]
LEFT OUTER JOIN I_RAContrBalanceDerivationRule AS _BalanceDerivationRule ON RAContrBalanceDerivationRule = _BalanceDerivationRule.RAContrBalanceDerivationRule  -- association [0..1]
LEFT OUTER JOIN I_RAPostLevelOfContractBalance AS _PostLevel ON RAPostLevelOfContractBalance = _PostLevel.RAPostLevelOfContractBalance  -- association [0..1]
LEFT OUTER JOIN I_RAContractStatus AS _RAContractStatus ON RevnAcctgContractStatus = _RAContractStatus.RevnAcctgContractStatus  -- association [1..1]
LEFT OUTER JOIN I_RAContrManagementVersion AS _RAContrMgmtVersion ON RAContractVersionCode = _RAContrMgmtVersion.RAContractVersionCode  -- association [1..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON RevnAcctgContractCreatedByUser = _CreatedByUser.UserID  -- association [1..1]
LEFT OUTER JOIN I_User AS _ChangedByUser ON RAContractLastChangedByUsr = _ChangedByUser.UserID  -- association [1..1]
;