I_RAProcdOrderConditionItem
Processed Order Condition RA Items
I_RAProcdOrderConditionItem is a Basic CDS View that provides data about "Processed Order Condition RA Items" in SAP S/4HANA. It reads from 1 data source (farr_d_ord_co) and exposes 28 fields with key fields RevnAcctgSenderComponent, RASndgCompLogicalSystem, RASndgCompDocumentItemType, RASndgCompDocumentItem, ConditionType. It has 5 associations to related views. Part of development package FARR_INBOUND_CDS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| farr_d_ord_co | farr_d_ord_co | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_RAProcdRevnAcctItem | _ProcdOrderMain | $projection.RevnAcctgSenderComponent = _ProcdOrderMain.RevnAcctgSenderComponent and $projection.RASndgCompLogicalSystem = _ProcdOrderMain.RASndgCompLogicalSystem and $projection.RASndgCompDocumentItemType = _ProcdOrderMain.RASndgCompDocumentItemType and $projection.RASndgCompDocumentItem = _ProcdOrderMain.RASndgCompDocumentItem |
| [0..1] | I_Currency | _Currency | $projection.SalesDocumentCurrency = _Currency.Currency |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
| [0..1] | I_Currency | _AdditionalCurrency1 | $projection.AdditionalCurrency1 = _AdditionalCurrency1.Currency |
| [0..1] | I_Currency | _AdditionalCurrency2 | $projection.AdditionalCurrency2 = _AdditionalCurrency2.Currency |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Processed Order Condition RA Items | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RevnAcctgSenderComponent | srcdoc_comp | Source Comp. | |
| KEY | RASndgCompLogicalSystem | srcdoc_logsys | Source System | |
| KEY | RASndgCompDocumentItemType | srcdoc_type | SrcItemType | |
| KEY | RASndgCompDocumentItem | srcdoc_id | Src. Item ID | |
| KEY | ConditionType | condition_type | RAI Condition Type | |
| RAItemLastChangeDateTime | _ProcdOrderMain | RAItemLastChangeDateTime | ||
| RAProfitAndLossAccount | pl_account | P/L Account | ||
| RevnAcctgPostgAmtInSlsDocCrcy | betrw | Reduction Amt | ||
| SalesDocumentCurrency | Transaction Currency | |||
| RevnAcctgPostgAmtInCoCodeCrcy | betrh | Local Crcy Amt | ||
| CompanyCodeCurrency | hwaer | Local Currency | ||
| RevnAcctgPostgAmtInAddlCrcy1 | betr2 | Second Local Crcy | ||
| AdditionalCurrency1 | hwae2 | Local curr. 2 | ||
| RevnAcctgPostgAmtInAddlCrcy2 | betr3 | Third Local Crcy | ||
| AdditionalCurrency2 | hwae3 | Local curr. 3 | ||
| RAConditionItemPercent | Well Contribution Percentage | |||
| RAConditionItemIsStatistical | statistic | Statistical | ||
| RevnAcctgConditionCategory | category | Violation Category | ||
| RAConditionItemIsMainCondition | main_cond_type | Main Cond. Type | ||
| ProfitLostAccountIsDtmndByRA | xplacc_det | Det. P&L Acct | ||
| RAItemStatus | ||||
| RAItemType | ||||
| CompanyCode | _ProcdOrderMain | CompanyCode | Receiver Company Code | |
| _ProcdOrderMain | _ProcdOrderMain | |||
| _Currency | _Currency | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _AdditionalCurrency1 | _AdditionalCurrency1 | |||
| _AdditionalCurrency2 | _AdditionalCurrency2 |
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_RAProcdOrderConditionItem.
-- 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_RAProcdOrderConditionItem AS
SELECT
srcdoc_comp AS RevnAcctgSenderComponent,
srcdoc_logsys AS RASndgCompLogicalSystem,
srcdoc_type AS RASndgCompDocumentItemType,
srcdoc_id AS RASndgCompDocumentItem,
condition_type AS ConditionType,
_ProcdOrderMain.RAItemLastChangeDateTime AS RAItemLastChangeDateTime,
pl_account AS RAProfitAndLossAccount,
betrw AS RevnAcctgPostgAmtInSlsDocCrcy,
cast(waers as waerk preserving type) AS SalesDocumentCurrency,
betrh AS RevnAcctgPostgAmtInCoCodeCrcy,
hwaer AS CompanyCodeCurrency,
betr2 AS RevnAcctgPostgAmtInAddlCrcy1,
hwae2 AS AdditionalCurrency1,
betr3 AS RevnAcctgPostgAmtInAddlCrcy2,
hwae3 AS AdditionalCurrency2,
cast(percentage as farr_cds_percentage preserving type) AS RAConditionItemPercent,
statistic AS RAConditionItemIsStatistical,
category AS RevnAcctgConditionCategory,
main_cond_type AS RAConditionItemIsMainCondition,
xplacc_det AS ProfitLostAccountIsDtmndByRA,
cast(abap.char'2' as farr_cds_rai_status preserving type) AS RAItemStatus,
cast(abap.char'01' as farr_cds_rai_type preserving type) AS RAItemType,
_ProcdOrderMain.CompanyCode AS CompanyCode
FROM farr_d_ord_co
LEFT OUTER JOIN I_RAProcdRevnAcctItem AS _ProcdOrderMain ON RevnAcctgSenderComponent = _ProcdOrderMain.RevnAcctgSenderComponent AND RASndgCompLogicalSystem = _ProcdOrderMain.RASndgCompLogicalSystem AND RASndgCompDocumentItemType = _ProcdOrderMain.RASndgCompDocumentItemType AND RASndgCompDocumentItem = _ProcdOrderMain.RASndgCompDocumentItem -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON SalesDocumentCurrency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _AdditionalCurrency1 ON AdditionalCurrency1 = _AdditionalCurrency1.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _AdditionalCurrency2 ON AdditionalCurrency2 = _AdditionalCurrency2.Currency -- association [0..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