R_DisputeCase
Dispute Case
R_DisputeCase is a Basic CDS View that provides data about "Dispute Case" in SAP S/4HANA. It reads from 1 data source (R_DisputeCaseAttribute) and exposes 65 fields with key field DisputeCaseUUID. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_DisputeCaseAttribute | DisputeCase | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CaseAttribute | _CaseAttribute | $projection.DisputeCaseUUID = _CaseAttribute.CaseUniqueID |
| [0..1] | I_RootCause | _RootCause | $projection.DisputeCaseRootCause = _RootCause.DisputeCaseRootCause and $projection.casetype = _RootCause.CaseType |
| [0..1] | I_UserContactCard | _CreatedByContactCard | $projection.casecreatedby = _CreatedByContactCard.ContactCardID |
| [0..1] | I_UserContactCard | _ChangedByContactCard | $projection.caselastchangedby = _ChangedByContactCard.ContactCardID |
| [0..1] | I_UserContactCard | _ClosedByContactCard | $projection.caseclosedby = _ClosedByContactCard.ContactCardID |
| [0..1] | I_UserContactCard | _ProcessorContactCard | $projection.caseprocessor = _ProcessorContactCard.ContactCardID |
| [0..1] | I_UserContactCard | _ResponsibleContactCard | $projection.CaseResponsible = _ResponsibleContactCard.ContactCardID |
| [0..1] | I_CaseCategory | _CaseCategory | $projection.casecategory = _CaseCategory.CaseCategory and $projection.casetype = _CaseCategory.CaseType |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | RDISPCASE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Dispute Case | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | DisputeCaseUUID | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DisputeCaseUUID | DisputeCaseUUID | UUID | |
| DisputeCaseCoordinator | DisputeCaseCoordinator | Coordinator | ||
| DisputeCaseRootCause | DisputeCaseRootCause | Root Cause Code | ||
| CaseProcessingDeadlineDate | CaseProcessingDeadlineDate | Process. Deadline | ||
| OriginalAmount | Original Disputed Amount | |||
| DisputedAmount | DisputedAmount | Disputed Amount | ||
| PaidAmount | PaidAmount | Paid Amount | ||
| CreditedAmount | CreditedAmount | Credited | ||
| WriteOffAmount | WriteOffAmount | Cleared Manually | ||
| ManuallyClearedAmount | Automatically Written Off | |||
| DisputeCaseCurrency | DisputeCaseCurrency | Currency | ||
| CustomerDisputedAmount | Customer Disputed Amount | |||
| CustomerDisputedCurrency | CustomerDisputedCurrency | Currency | ||
| ContactPersonName | ContactPersonName | Full Name | ||
| ContactPersonEmailAddress | ContactPersonEmailAddress | |||
| ContactPersonPhoneNumber | ContactPersonPhoneNumber | Telephone No. | ||
| ContactPersonFaxNumber | ContactPersonFaxNumber | Fax Number | ||
| ContactPersonFaxCountry | ContactPersonFaxCountry | C/R of Fax No. | ||
| ContactPerson | ContactPerson | Contact Person Key | ||
| Customer | Customer | Sold-to Party | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| DisputeCaseExternalApplication | DisputeCaseExternalApplication | External Appl. | ||
| CaseType | _CaseAttribute | CaseType | Upper/Lowercase | |
| CaseID | _CaseAttribute | CaseID | Case ID | |
| CaseExternalReference | ||||
| CaseCreatedBy | _CaseAttribute | CaseCreatedBy | Created By | |
| CaseCreatedOn | ||||
| CaseLastChangedBy | _CaseAttribute | CaseLastChangedBy | Changed By | |
| CaseLastChangedOn | ||||
| CaseClosedBy | _CaseAttribute | CaseClosedBy | Closed By | |
| CaseClosedTime | ||||
| CasePlannedCloseDate | _CaseAttribute | CasePlannedCloseDate | Planned Close Date | |
| CaseProcessor | _CaseAttribute | CaseProcessor | Processor | |
| CaseResponsible | ||||
| CaseTitle | ||||
| CaseEscalationReason | _CaseAttribute | CaseEscalationReason | Escalation Reason | |
| CaseCategory | _CaseAttribute | CaseCategory | Category | |
| CasePriority | _CaseAttribute | CasePriority | Priority | |
| CaseAuthorizationLevel | _CaseAttribute | CaseAuthorizationLevel | Auth. Level | |
| CaseStatusProfile | _CaseAttribute | CaseStatusProfile | Status Profile | |
| CaseStatus | _CaseAttribute | CaseStatus | Status | |
| CaseSystemStatus | _CaseAttribute | CaseSystemStatus | System Status | |
| CaseReason | _CaseAttribute | CaseReason | Reason | |
| CaseUserStatusName | _CaseAttribute | CaseUserStatusName | User Status | |
| _Individual | _CaseAttribute | _Individual | ||
| _Priority | _CaseAttribute | _Priority | ||
| _Reasons | _CaseAttribute | _Reasons | ||
| _StatProfile | _CaseAttribute | _StatProfile | ||
| _AuthLevel | _CaseAttribute | _AuthLevel | ||
| _CaseSystemStatus | _CaseAttribute | _CaseSystemStatus | ||
| _CaseTypes | _CaseAttribute | _CaseTypes | ||
| _Escalation | _CaseAttribute | _Escalation | ||
| _CaseAttribute | _CaseAttribute | |||
| _CompanyCode | _CompanyCode | |||
| _Customer | _Customer | |||
| _CreatedByContactCard | _CreatedByContactCard | |||
| _DisputeCaseExternalAppl | _DisputeCaseExternalAppl | |||
| _DisputeCaseCoordinatorCard | _DisputeCaseCoordinatorCard | |||
| _Country | _Country | |||
| _RootCause | _RootCause | |||
| _ChangedByContactCard | _ChangedByContactCard | |||
| _ClosedByContactCard | _ClosedByContactCard | |||
| _ProcessorContactCard | _ProcessorContactCard | |||
| _ResponsibleContactCard | _ResponsibleContactCard | |||
| _CaseCategory | _CaseCategory |
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 R_DisputeCase.
-- 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 R_DisputeCase AS
SELECT
DisputeCaseUUID,
DisputeCaseCoordinator,
DisputeCaseRootCause,
CaseProcessingDeadlineDate,
cast ( OriginalAmount as dispute_original_disp_amt preserving type ) AS OriginalAmount,
DisputedAmount,
PaidAmount,
CreditedAmount,
WriteOffAmount,
cast ( ManuallyClearedAmount as dispute_auto_write_off_amt preserving type ) AS ManuallyClearedAmount,
DisputeCaseCurrency,
cast( CustomerDisputedAmount as dispute_cust_disp_amt preserving type ) AS CustomerDisputedAmount,
CustomerDisputedCurrency,
ContactPersonName,
ContactPersonEmailAddress,
ContactPersonPhoneNumber,
ContactPersonFaxNumber,
ContactPersonFaxCountry,
ContactPerson,
Customer,
CompanyCode,
DisputeCaseExternalApplication,
_CaseAttribute.CaseType AS CaseType,
_CaseAttribute.CaseID AS CaseID,
cast ( _CaseAttribute.CaseExternalReference as dispute_external_reference preserving type ) AS CaseExternalReference,
_CaseAttribute.CaseCreatedBy AS CaseCreatedBy,
cast( _CaseAttribute.CaseCreatedOn as coll_pr_creation_date_time preserving type ) AS CaseCreatedOn,
_CaseAttribute.CaseLastChangedBy AS CaseLastChangedBy,
cast( _CaseAttribute.CaseLastChangedOn as coll_pr_changed_at preserving type ) AS CaseLastChangedOn,
_CaseAttribute.CaseClosedBy AS CaseClosedBy,
cast( _CaseAttribute.CaseClosedTime as coll_pr_closed_at preserving type ) AS CaseClosedTime,
_CaseAttribute.CasePlannedCloseDate AS CasePlannedCloseDate,
_CaseAttribute.CaseProcessor AS CaseProcessor,
cast ( _CaseAttribute.CaseResponsible as dispute_person_responisble preserving type ) AS CaseResponsible,
cast ( _CaseAttribute.CaseTitle as dispute_title preserving type ) AS CaseTitle,
_CaseAttribute.CaseEscalationReason AS CaseEscalationReason,
_CaseAttribute.CaseCategory AS CaseCategory,
_CaseAttribute.CasePriority AS CasePriority,
_CaseAttribute.CaseAuthorizationLevel AS CaseAuthorizationLevel,
_CaseAttribute.CaseStatusProfile AS CaseStatusProfile,
_CaseAttribute.CaseStatus AS CaseStatus,
_CaseAttribute.CaseSystemStatus AS CaseSystemStatus,
_CaseAttribute.CaseReason AS CaseReason,
_CaseAttribute.CaseUserStatusName AS CaseUserStatusName,
_CaseAttribute._Individual AS _Individual,
_CaseAttribute._Priority AS _Priority,
_CaseAttribute._Reasons AS _Reasons,
_CaseAttribute._StatProfile AS _StatProfile,
_CaseAttribute._AuthLevel AS _AuthLevel,
_CaseAttribute._CaseSystemStatus AS _CaseSystemStatus,
_CaseAttribute._CaseTypes AS _CaseTypes,
_CaseAttribute._Escalation AS _Escalation
FROM R_DisputeCaseAttribute AS DisputeCase
LEFT OUTER JOIN I_CaseAttribute AS _CaseAttribute ON DisputeCaseUUID = _CaseAttribute.CaseUniqueID -- association [0..1]
LEFT OUTER JOIN I_RootCause AS _RootCause ON DisputeCaseRootCause = _RootCause.DisputeCaseRootCause AND casetype = _RootCause.CaseType -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByContactCard ON casecreatedby = _CreatedByContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ChangedByContactCard ON caselastchangedby = _ChangedByContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ClosedByContactCard ON caseclosedby = _ClosedByContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ProcessorContactCard ON caseprocessor = _ProcessorContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ResponsibleContactCard ON CaseResponsible = _ResponsibleContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_CaseCategory AS _CaseCategory ON casecategory = _CaseCategory.CaseCategory AND casetype = _CaseCategory.CaseType -- 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