P_OpenDisputeCase1
P_OpenDisputeCase1 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_DisputeCase) and exposes 24 fields with key field DisputeCaseUUID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_DisputeCase | I_DisputeCase | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydate | |
| P_DisplayCurrency | vdm_v_display_currency | |
| P_ExchangeRateType | kurst_curr |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | POPENDISPCASE1 | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DisputeCaseUUID | I_DisputeCase | DisputeCaseUUID | UUID |
| CaseID | _CaseAttributes | CaseID | Case ID | |
| CompanyCode | I_DisputeCase | CompanyCode | Receiver Company Code | |
| Customer | I_DisputeCase | Customer | Sold-to Party | |
| DisputeCaseProcessor | _CaseAttributes | CaseProcessor | Processor | |
| DisputeCaseProcessorFullName | _CaseAttributes | DisputeCaseProcessorFullName | ||
| DisputeCaseRootCause | DisputeCaseRootCause | Root Cause Code | ||
| DisputeCaseCoordinator | DisputeCaseCoordinator | Coordinator | ||
| DsputCaseCoordinatorFullName | DsputCaseCoordinatorFullName | Full Name | ||
| DisputeCaseReason | _CaseAttributes | CaseReason | Reason | |
| Status | I_DisputeCase | Status | Workflow Status | |
| StatusProfile | _CaseAttributes | CaseStatusProfile | Status Profile | |
| CaseProcessingStatus | _CaseAttributes | CaseProcessingStatus | ||
| CaseType | _CaseAttributes | CaseType | Upper/Lowercase | |
| DisputeCasePriority | _CaseAttributes | DisputeCasePriority | ||
| DisputedAmount | I_DisputeCase | DisputedAmount | Disputed Amount | |
| CaseCreationDate | ||||
| TodayDate | ||||
| Currency | ||||
| trueasDisputedAmountInDisplayCrcy | ||||
| DisplayCurrency | ||||
| _Customer | _Customer | |||
| _CompanyCode | _CompanyCode | |||
| _CaseAttributes | _CaseAttributes |
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_OpenDisputeCase1.
-- 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: POPENDISPCASE1
-- Parameters: P_KeyDate : sydate, P_DisplayCurrency : vdm_v_display_currency, P_ExchangeRateType : kurst_curr
CREATE VIEW P_OpenDisputeCase1 AS
SELECT
I_DisputeCase.DisputeCaseUUID AS DisputeCaseUUID,
_CaseAttributes.CaseID AS CaseID,
I_DisputeCase.CompanyCode AS CompanyCode,
I_DisputeCase.Customer AS Customer,
_CaseAttributes.CaseProcessor AS DisputeCaseProcessor,
_CaseAttributes.DisputeCaseProcessorFullName AS DisputeCaseProcessorFullName,
DisputeCaseRootCause,
DisputeCaseCoordinator,
DsputCaseCoordinatorFullName,
_CaseAttributes.CaseReason AS DisputeCaseReason,
I_DisputeCase.Status AS Status,
_CaseAttributes.CaseStatusProfile AS StatusProfile,
_CaseAttributes.CaseProcessingStatus AS CaseProcessingStatus,
_CaseAttributes.CaseType AS CaseType,
_CaseAttributes.DisputeCasePriority AS DisputeCasePriority,
I_DisputeCase.DisputedAmount AS DisputedAmount,
cast( substring( cast( _CaseAttributes.CreationDateTime as sstring ),1,8 ) as abap.dats ) AS CaseCreationDate,
:P_KeyDate AS TodayDate,
cast( I_DisputeCase.Currency as currency preserving type ) AS Currency,
currency_conversion( amount => I_DisputeCase.DisputedAmount, source_currency => I_DisputeCase.Currency, target_currency => :P_DisplayCurrency, exchange_rate_date => :P_KeyDate , exchange_rate_type => :P_ExchangeRateType, error_handling => #CNV_ERROR_HANDLING.FAIL_ON_ERROR, round => #CDSBoolean.true, decimal_shift => #CDSBoolean.true, decimal_shift_back => #CDSBoolean.true ) as DisputedAmountInDisplayCrcy AS trueasDisputedAmountInDisplayCrcy,
cast( :P_DisplayCurrency as disp_curr preserving type ) AS DisplayCurrency
FROM I_DisputeCase
;
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