P_RU_ExchDiff1
Unrealized exchange differences
P_RU_ExchDiff1 is a Consumption CDS View that provides data about "Unrealized exchange differences" in SAP S/4HANA. It reads from 1 data source (P_ValnHistForDocs) and exposes 20 fields. It has 2 associations to related views. Part of development package GLO_FIN_IS_RU.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_ValnHistForDocs | UnrealizedExchDiff | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_FIDeprArea | _DeprArea | $projection.ActiveValuationArea = _DeprArea.ActiveValuationArea and $projection.ControllingAreaCurrencyRole = _DeprArea.ControllingAreaCurrencyRole |
| [1..1] | P_RU_ExchDiff0 | _Financial | $projection.CompanyCode = _Financial.CompanyCode and $projection.AccountingDocument = _Financial.AccountingDocument and $projection.FiscalYear = _Financial.FiscalYear and $projection.AccountingDocumentItem = _Financial.AccountingDocumentItem |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRUEXCHDIFF1 | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | P_ValnHistForDocs | CompanyCode | Receiver Company Code | |
| AccountingDocument | P_ValnHistForDocs | AccountingDocument | Journal Entry | |
| FiscalYear | P_ValnHistForDocs | FiscalYear | G/L Fiscal Year | |
| AccountingDocumentItem | P_ValnHistForDocs | AccountingDocumentItem | Posting View Item | |
| ControllingAreaCurrencyRole | P_ValnHistForDocs | ControllingAreaCurrencyRole | Valuation Area | |
| ActiveValuationArea | P_ValnHistForDocs | ActiveValuationArea | Valuation area | |
| EvaluationKeyDate | P_ValnHistForDocs | EvaluationKeyDate | Valid to | |
| CompanyCodeCurrency | _Financial | CompanyCodeCurrency | Local Currency | |
| FrgnCrcyValnDeltaLogicIsActive | _DeprArea | FrgnCrcyValnDeltaLogicIsActive | ||
| AssignmentReference | _Financial | AssignmentReference | Assignment Reference | |
| Creditor | _Financial | Creditor | Supplier | |
| Debtor | _Financial | Debtor | Debtor | |
| BusinessPartner | _Financial | Partner | With Partner | |
| PostingDate | _Financial | PostingDate | Posting Date for GR | |
| CndnContrType | _Financial | CndnContrType | Contract Type | |
| AuthorizationGroup | _Financial | AuthorizationGroup | AuthorizGroup | |
| CustomerAccountGroup | _Financial | CustomerAccountGroup | Account group | |
| CustomerFinsAuthorizationGrp | _Financial | CustomerFinsAuthorizationGrp | ||
| SupplierAccountGroup | _Financial | SupplierAccountGroup | Account group | |
| SupplierFinsAuthorizationGrp | _Financial | SupplierFinsAuthorizationGrp |
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 P_RU_ExchDiff1.
-- 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: PRUEXCHDIFF1
CREATE VIEW P_RU_ExchDiff1 AS
SELECT
UnrealizedExchDiff.CompanyCode AS CompanyCode,
UnrealizedExchDiff.AccountingDocument AS AccountingDocument,
UnrealizedExchDiff.FiscalYear AS FiscalYear,
UnrealizedExchDiff.AccountingDocumentItem AS AccountingDocumentItem,
UnrealizedExchDiff.ControllingAreaCurrencyRole AS ControllingAreaCurrencyRole,
UnrealizedExchDiff.ActiveValuationArea AS ActiveValuationArea,
UnrealizedExchDiff.EvaluationKeyDate AS EvaluationKeyDate,
_Financial.CompanyCodeCurrency AS CompanyCodeCurrency,
_DeprArea.FrgnCrcyValnDeltaLogicIsActive AS FrgnCrcyValnDeltaLogicIsActive,
_Financial.AssignmentReference AS AssignmentReference,
_Financial.Creditor AS Creditor,
_Financial.Debtor AS Debtor,
_Financial.Partner AS BusinessPartner,
_Financial.PostingDate AS PostingDate,
_Financial.CndnContrType AS CndnContrType,
_Financial.AuthorizationGroup AS AuthorizationGroup,
_Financial.CustomerAccountGroup AS CustomerAccountGroup,
_Financial.CustomerFinsAuthorizationGrp AS CustomerFinsAuthorizationGrp,
_Financial.SupplierAccountGroup AS SupplierAccountGroup,
_Financial.SupplierFinsAuthorizationGrp AS SupplierFinsAuthorizationGrp
FROM P_ValnHistForDocs AS UnrealizedExchDiff
LEFT OUTER JOIN P_FIDeprArea AS _DeprArea ON ActiveValuationArea = _DeprArea.ActiveValuationArea AND ControllingAreaCurrencyRole = _DeprArea.ControllingAreaCurrencyRole -- association [0..1]
LEFT OUTER JOIN P_RU_ExchDiff0 AS _Financial ON CompanyCode = _Financial.CompanyCode AND AccountingDocument = _Financial.AccountingDocument AND FiscalYear = _Financial.FiscalYear AND AccountingDocumentItem = _Financial.AccountingDocumentItem -- association [1..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