C_RAPostponedConditionObjPg
Consumption of RAI Condition Item
C_RAPostponedConditionObjPg is a Consumption CDS View that provides data about "Consumption of RAI Condition Item" in SAP S/4HANA. It reads from 1 data source (I_RevnAccountingConditionItem) and exposes 26 fields with key fields RAItemType, RevnAcctgSenderComponent, RASndgCompLogicalSystem, RASndgCompDocumentItemType, RASndgCompDocumentItem. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_RevnAccountingConditionItem | ConditionItem | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_RAPostponedItem | _MainItem | $projection.RAItemType = _MainItem.RAItemType and $projection.RevnAcctgSenderComponent = _MainItem.RevnAcctgSenderComponent and $projection.RASndgCompLogicalSystem = _MainItem.RASndgCompLogicalSystem and $projection.RASndgCompDocumentItemType = _MainItem.RASndgCompDocumentItemType and $projection.RASndgCompDocumentItem = _MainItem.RASndgCompDocumentItem and $projection.RAItemLastChangeDateTime = _MainItem.RAItemLastChangeDateTime |
| [1..*] | I_RAConditionCategoryText | _RAConditionCategoryText | $projection.RevnAcctgConditionCategory = _RAConditionCategoryText.RevnAcctgConditionCategory |
| [1..*] | I_GlAccountTextInCompanycode | _AccountText | $projection.RAProfitAndLossAccount = _AccountText.GLAccount and $projection.CompanyCode = _AccountText.CompanyCode |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Consumption of RAI Condition Item | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RAItemType | RAItemType | ||
| KEY | RevnAcctgSenderComponent | RevnAcctgSenderComponent | Sender Component | |
| KEY | RASndgCompLogicalSystem | RASndgCompLogicalSystem | ||
| KEY | RASndgCompDocumentItemType | RASndgCompDocumentItemType | ||
| KEY | RASndgCompDocumentItem | RASndgCompDocumentItem | ||
| KEY | RAItemLastChangeDateTime | RAItemLastChangeDateTime | ||
| KEY | ConditionType | ConditionType | Condition type | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| RAProfitAndLossAccount | RAProfitAndLossAccount | |||
| GLAccountName | ||||
| RevnAcctgPostgAmtInSlsDocCrcy | ||||
| SalesDocumentCurrency | SalesDocumentCurrency | Currency | ||
| RevnAcctgPostgAmtInCoCodeCrcy | ||||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| RevnAcctgPostgAmtInAddlCrcy1 | ||||
| AdditionalCurrency1 | AdditionalCurrency1 | Local curr. 2 | ||
| RevnAcctgPostgAmtInAddlCrcy2 | ||||
| AdditionalCurrency2 | AdditionalCurrency2 | Local curr. 3 | ||
| RAConditionItemPercent | RAConditionItemPercent | |||
| RAConditionItemIsStatistical | ||||
| ProfitLostAccountIsDtmndByRA | ProfitLostAccountIsDtmndByRA | |||
| RevnAcctgConditionCategory | RevnAcctgConditionCategory | |||
| RAConditionItemIsMainCondition | RAConditionItemIsMainCondition | |||
| _MainItem | _MainItem | |||
| _RAConditionCategoryText | _RAConditionCategoryText | |||
| _AccountText | _AccountText |
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_RAPostponedConditionObjPg.
-- 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_RAPostponedConditionObjPg AS
SELECT
RAItemType,
RevnAcctgSenderComponent,
RASndgCompLogicalSystem,
RASndgCompDocumentItemType,
RASndgCompDocumentItem,
RAItemLastChangeDateTime,
ConditionType,
CompanyCode,
RAProfitAndLossAccount,
cast(_AccountText[1: Language = $session.system_language].GLAccountName as farr_description100) AS GLAccountName,
cast(RevnAcctgPostgAmtInSlsDocCrcy as farr_cds_amount_tc preserving type) AS RevnAcctgPostgAmtInSlsDocCrcy,
SalesDocumentCurrency,
cast(RevnAcctgPostgAmtInCoCodeCrcy as farr_cds_amount_lc preserving type) AS RevnAcctgPostgAmtInCoCodeCrcy,
CompanyCodeCurrency,
cast(RevnAcctgPostgAmtInAddlCrcy1 as farr_cds_amount_lc2 preserving type) AS RevnAcctgPostgAmtInAddlCrcy1,
AdditionalCurrency1,
cast(RevnAcctgPostgAmtInAddlCrcy2 as farr_cds_amount_lc3 preserving type) AS RevnAcctgPostgAmtInAddlCrcy2,
AdditionalCurrency2,
RAConditionItemPercent,
cast(RAConditionItemIsStatistical as farr_cds_condition_statistic preserving type) AS RAConditionItemIsStatistical,
ProfitLostAccountIsDtmndByRA,
RevnAcctgConditionCategory,
RAConditionItemIsMainCondition
FROM I_RevnAccountingConditionItem AS ConditionItem
LEFT OUTER JOIN C_RAPostponedItem AS _MainItem ON RAItemType = _MainItem.RAItemType AND RevnAcctgSenderComponent = _MainItem.RevnAcctgSenderComponent AND RASndgCompLogicalSystem = _MainItem.RASndgCompLogicalSystem AND RASndgCompDocumentItemType = _MainItem.RASndgCompDocumentItemType AND RASndgCompDocumentItem = _MainItem.RASndgCompDocumentItem AND RAItemLastChangeDateTime = _MainItem.RAItemLastChangeDateTime -- association [1..1]
LEFT OUTER JOIN I_RAConditionCategoryText AS _RAConditionCategoryText ON RevnAcctgConditionCategory = _RAConditionCategoryText.RevnAcctgConditionCategory -- association [1..*]
LEFT OUTER JOIN I_GlAccountTextInCompanycode AS _AccountText ON RAProfitAndLossAccount = _AccountText.GLAccount AND CompanyCode = _AccountText.CompanyCode -- association [1..*]
;
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