I_OpenClosedDisputeCase

DDL: I_OPENCLOSEDDISPUTECASE SQL: IOPNCLSDISPCASE3 Type: view COMPOSITE

Open and Closed Dispute Cases - Cube

I_OpenClosedDisputeCase (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Financial Operations

I_OpenClosedDisputeCase is a Composite CDS View (Cube) that provides data about "Open and Closed Dispute Cases - Cube" in SAP S/4HANA. It reads from 1 data source (P_OpenClosedDisputeCase3) and exposes 48 fields with key fields DisputeCaseUUID, Customer. It has 15 associations to related views.

SAP Help Documentation

CategoryCDS Views for Dispute Resolution
Data CategoryCube
StatusCase Status
Purpose
This CDS view is designed to provide a comprehensive overview of dispute cases, specifically focusing on their status as either open or closed. It aggregates data related to dispute cases, including their creation and resolution dates, associated amounts, and other relevant attributes. The view is structured to facilitate analytical processing and reporting on SAP Dispute Management . This CDS view provides the data to answer the following business questions: How many dispute cases have been created or resolved today, in the last five days, or in the current month? What is the total amount associated with dispute cases created or resolved today, in the last five days, or in the current month? What are the details of dispute cases, including their status, type, reason, priority, and associated personnel (processor and coordinator)? How can we track the progress and resolution of dispute cases over time? What are the root causes and reasons for dispute cases, and how do they correlate with their resolution status? How can we analyze dispute cases based on customer, company code, and currency? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: BEGRU_KNA1 (Authorization Group for Customers) KTOKD (Customer Account Group) BUKRS (Company Code) You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.

Structure
Parameters The parameters of the CDS view are as follows: P_ExchangeRateType : This parameter is used to set the exchange rate type for currency conversion. Default value: M ( Standard translation at average rate ) P_DisplayCurrency : This parameter is used to define the currency in which amounts are displayed. Default value: EUR P_KeyDate : This parameter is used to specify the key date for data extraction. Important Fields Important fields in this view include the following: Field Name Description Measure or Attribute Comment DisputeCaseID Dispute Case ID Attribute Unique identifier for dispute cases CaseStatus Case Status Attribute Status of the dispute case CreationDate Creation Date Attribute Date when the dispute case was created ResolutionDate Resolution Date Attribute Date when the dispute case was resolved DisputeAmount Dispute Amount Measure Amount involved in the dispute case

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessFinancial Operations
Application ComponentFIN-FSCM-DM
CapabilitiesData Provider for Analytical Queries, Data Source in SQL Select, Data Source for Defining CDS Entities
PackageFinancial Operations for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
P_OpenClosedDisputeCase3 P_OpenClosedDisputeCase3 from

Parameters (3)

NameTypeDefault
P_KeyDate sydate
P_DisplayCurrency vdm_v_display_currency
P_ExchangeRateType kurst_curr

Associations (15)

CardinalityTargetAliasCondition
[1..1] I_CaseAttributes _CaseUUID _CaseUUID.CaseUUID = $projection.DisputeCaseUUID
[0..1] I_CompanyCode _Company _Company.CompanyCode = $projection.CompanyCode
[0..1] I_Customer _Customer _Customer.Customer = $projection.Customer
[0..1] I_Currency _Currency $projection.DisplayCurrency = _Currency.Currency
[0..1] I_CaseReason _CaseReason $projection.CaseType = _CaseReason.CaseType and $projection.DisputeCaseReason = _CaseReason.CaseReason
[0..1] I_CaseType _CaseType $projection.CaseType = _CaseType.CaseType
[0..1] I_CaseStatus _CaseStatus $projection.Status = _CaseStatus.Status
[0..1] I_CaseStatProfile _StatProf $projection.StatusProfile = _StatProf.CaseStatusProfile
[0..1] I_CaseIndivStatus _StatusProfile $projection.StatusProfile = _StatusProfile.CaseStatusProfile and $projection.CaseProcessingStatus = _StatusProfile.CaseStatus
[0..1] I_CasePriority _Prio $projection.DisputeCasePriority = _Prio.CasePriority
[0..1] I_RootCause _RootCause $projection.CaseType = _RootCause.CaseType and $projection.DisputeCaseRootCause = _RootCause.DisputeCaseRootCause
[0..1] I_DisputeCaseContact _CaseProcessor $projection.DisputeCaseProcessor = _CaseProcessor.UserID
[0..1] I_DisputeCaseContact _CaseCoordinator $projection.DisputeCaseCoordinator = _CaseCoordinator.UserID
[0..1] I_User _Processor $projection.DisputeCaseProcessor = _Processor.UserID
[0..1] I_User _Coordinator $projection.DisputeCaseCoordinator = _Coordinator.UserID

Annotations (14)

NameValueLevelField
EndUserText.label Open and Closed Dispute Cases - Cube view
AbapCatalog.sqlViewName IOPNCLSDISPCASE3 view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #COMPOSITE view
Analytics.dataCategory #CUBE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY DisputeCaseUUID DisputeCaseUUID UUID in character form
KEY Customer Customer Customer Key in Accounts Receivable Accounting
CaseID CaseID Case ID
CompanyCode CompanyCode Receiver Company Code
CustomerAccountGroup _Customer CustomerAccountGroup Customer Account Group
CustomerBasicAuthorizationGrp _Customer AuthorizationGroup Authorization Group
DisputeCaseProcessor DisputeCaseProcessor Processor
DisputeCaseProcessorFullName Full Name of Processor
DisputeCaseRootCause Root Cause Code
DisputeCaseCoordinator Coordinator of Dispute Case
DsputCaseCoordinatorFullName Fullname of Coordinator
DisputeCaseReason Reason for Case
Status Status Case: System Status
StatusProfile Case: Status Profile
CaseProcessingStatus Case: Status
CaseType CaseType Upper/Lowercase
DisputeCasePriority _CaseUUID DisputeCasePriority Priority
DisplayCurrency Display Currency
CaseCreationDate CaseCreationDate
CaseClosingDate CaseClosingDate
CurrentDay Current Day
IsCreatedToday Created today
IsSolvedToday Solved Today
IsCreatedLast5Days Created in Last 5 Days
IsSolvedLast5Days Solved in Last 5 Days
IsCreatedCurrentMonth Created in Current Month
IsSolvedCurrentMonth Solved in current month
TodayCreatedAmtInDspCrcy New Amount, Today
TodaySolvedAmtInDspCrcy Amount Solved Today
Last5DaysCrtedAmtInDspCrcy New Amount in Last 5 Days
Last5DaysSolvedAmtInDspCrcy Amount Solved in Last 5 Days
CurMonthCreatedAmtInDspCrcy New Amount, Current Month
CurMonthSolvedAmtInDspCrcy Solved Amount Current Month
_CaseUUID _CaseUUID
_Customer _Customer
_Company _Company
_Currency _Currency
_CaseType _CaseType
_CaseReason _CaseReason
_CaseStatus _CaseStatus
_StatProf _StatProf
_StatusProfile _StatusProfile
_RootCause _RootCause
_CaseProcessor _CaseProcessor
_CaseCoordinator _CaseCoordinator
_Prio _Prio
_Processor _Processor
_Coordinator _Coordinator

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_OpenClosedDisputeCase.
-- 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: IOPNCLSDISPCASE3
-- Parameters: P_KeyDate : sydate, P_DisplayCurrency : vdm_v_display_currency, P_ExchangeRateType : kurst_curr

CREATE VIEW I_OpenClosedDisputeCase AS
SELECT
  DisputeCaseUUID,
  Customer,
  CaseID,
  CompanyCode,
  _Customer.CustomerAccountGroup AS CustomerAccountGroup,
  _Customer.AuthorizationGroup AS CustomerBasicAuthorizationGrp,
  DisputeCaseProcessor,
  cast( DisputeCaseProcessorFullName as farp_processor_full_name preserving type ) AS DisputeCaseProcessorFullName,
  cast( DisputeCaseRootCause as udm_root_ccode preserving type ) AS DisputeCaseRootCause,
  cast( DisputeCaseCoordinator as udm_coordinator preserving type ) AS DisputeCaseCoordinator,
  cast( DsputCaseCoordinatorFullName as farp_coordinator_full_name preserving type ) AS DsputCaseCoordinatorFullName,
  cast( DisputeCaseReason as scmg_reason_code preserving type ) AS DisputeCaseReason,
  Status,
  cast( StatusProfile as scmgstatusprofid preserving type ) AS StatusProfile,
  cast( CaseProcessingStatus as scmgstatusonr preserving type) AS CaseProcessingStatus,
  CaseType,
  _CaseUUID.DisputeCasePriority AS DisputeCasePriority,
  cast( DisplayCurrency as disp_curr preserving type ) AS DisplayCurrency,
  CaseCreationDate,
  CaseClosingDate,
  cast( CurrentDay as currentday preserving type ) AS CurrentDay,
  cast( IsCreatedToday as farp_createdtoday preserving type ) AS IsCreatedToday,
  cast( IsSolvedToday as farp_solvedtoday ) AS IsSolvedToday,
  cast( IsCreatedLast5Days as farp_createdlast5days preserving type ) AS IsCreatedLast5Days,
  cast( IsSolvedLast5Days as farp_solvedinlast5days ) AS IsSolvedLast5Days,
  cast( IsCreatedCurrentMonth as farp_createdcurrentmonth ) AS IsCreatedCurrentMonth,
  cast( IsSolvedCurrentMonth as farp_solvedincurrentmonth ) AS IsSolvedCurrentMonth,
  cast( TodayCreatedAmtInDspCrcy as farp_createdamttoday ) AS TodayCreatedAmtInDspCrcy,
  cast( TodaySolvedAmtInDspCrcy as farp_solvedamttoday ) AS TodaySolvedAmtInDspCrcy,
  cast( Last5DaysCrtedAmtInDspCrcy as farp_createdamtlast5days ) AS Last5DaysCrtedAmtInDspCrcy,
  cast( Last5DaysSolvedAmtInDspCrcy as farp_solvedamtlast5days ) AS Last5DaysSolvedAmtInDspCrcy,
  cast( CurMonthCreatedAmtInDspCrcy as farp_createdamtcurmonth ) AS CurMonthCreatedAmtInDspCrcy,
  cast( CurMonthSolvedAmtInDspCrcy as farp_solvedamtcurrentmonth ) AS CurMonthSolvedAmtInDspCrcy
FROM P_OpenClosedDisputeCase3
LEFT OUTER JOIN I_CaseAttributes AS _CaseUUID ON _CaseUUID.CaseUUID = DisputeCaseUUID  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _Company ON _Company.CompanyCode = CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON _Customer.Customer = Customer  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON DisplayCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_CaseReason AS _CaseReason ON CaseType = _CaseReason.CaseType AND DisputeCaseReason = _CaseReason.CaseReason  -- association [0..1]
LEFT OUTER JOIN I_CaseType AS _CaseType ON CaseType = _CaseType.CaseType  -- association [0..1]
LEFT OUTER JOIN I_CaseStatus AS _CaseStatus ON Status = _CaseStatus.Status  -- association [0..1]
LEFT OUTER JOIN I_CaseStatProfile AS _StatProf ON StatusProfile = _StatProf.CaseStatusProfile  -- association [0..1]
LEFT OUTER JOIN I_CaseIndivStatus AS _StatusProfile ON StatusProfile = _StatusProfile.CaseStatusProfile AND CaseProcessingStatus = _StatusProfile.CaseStatus  -- association [0..1]
LEFT OUTER JOIN I_CasePriority AS _Prio ON DisputeCasePriority = _Prio.CasePriority  -- association [0..1]
LEFT OUTER JOIN I_RootCause AS _RootCause ON CaseType = _RootCause.CaseType AND DisputeCaseRootCause = _RootCause.DisputeCaseRootCause  -- association [0..1]
LEFT OUTER JOIN I_DisputeCaseContact AS _CaseProcessor ON DisputeCaseProcessor = _CaseProcessor.UserID  -- association [0..1]
LEFT OUTER JOIN I_DisputeCaseContact AS _CaseCoordinator ON DisputeCaseCoordinator = _CaseCoordinator.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _Processor ON DisputeCaseProcessor = _Processor.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _Coordinator ON DisputeCaseCoordinator = _Coordinator.UserID  -- association [0..1]
;