I_RAProcdOrderConditionItem
RAR Inbound Processed Order Condition Items
I_RAProcdOrderConditionItem is a Basic CDS View that provides data about "RAR Inbound Processed Order Condition 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.
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 (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IRAPROCDORDERCO | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | RAR Inbound Processed Order Condition Items | 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 | waers | 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.
-- SQL view name: IRAPROCDORDERCO
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,
waers 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 ( '2' as farr_cds_rai_status ) AS RAItemStatus,
cast ( '01'as farr_cds_rai_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