I_DisputeCaseDraft
Dispute Case Draft
I_DisputeCaseDraft is a Basic CDS View that provides data about "Dispute Case Draft" in SAP S/4HANA. It reads from 1 data source (dispcasedra) and exposes 68 fields with key field DraftUUID. It has 21 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dispcasedra | dispcasedra | from |
Associations (21)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UserContactCard | _DisputeCaseCoordinatorCard | $projection.DisputeCaseCoordinator = _DisputeCaseCoordinatorCard.ContactCardID |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_DisputeCaseExternalAppl | _DisputeCaseExternalAppl | $projection.DisputeCaseExternalApplication = _DisputeCaseExternalAppl.DisputeCaseExternalApplication |
| [0..1] | I_Country | _Country | $projection.ContactPersonFaxCountry = _Country.Country |
| [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_Caseentity | _CaseEntity | $projection.CaseID = _CaseEntity.CaseUniqueID |
| [0..1] | I_Casetypes | _CaseTypes | $projection.CaseType = _CaseTypes.CaseType |
| [0..1] | I_CaseEscalationReason | _Escalation | $projection.CaseEscalationReason = _Escalation.CaseEscalationReason |
| [0..1] | I_CaseCategory | _CaseCategory | $projection.CaseCategory = _CaseCategory.CaseCategory and $projection.CaseType = _CaseCategory.CaseType |
| [0..1] | I_CasePriority | _Priority | $projection.CasePriority = _Priority.CasePriority |
| [0..1] | I_Caseauthorizationlevel | _AuthLevel | $projection.CaseAuthorizationLevel = _AuthLevel.CaseAuthorizationLevel |
| [0..1] | I_CaseStatusProfile | _StatProfile | $projection.CaseStatusProfile = _StatProfile.CaseStatusProfile |
| [0..1] | I_Caseindividualstatus | _Individual | $projection.CaseStatus = _Individual.CaseStatus and $projection.CaseStatusProfile = _Individual.CaseStatusProfile |
| [0..1] | I_CaseSystemStatus | _CaseSystemStatus | $projection.CaseSystemStatus = _CaseSystemStatus.CaseSystemStatus |
| [0..1] | I_CaseReasons | _Reasons | $projection.CaseReason = _Reasons.CaseReason and $projection.CaseType = _Reasons.CaseType |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IDISPCASEDR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Dispute Case Draft | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | DraftUUID | view |
Fields (68)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DraftUUID | draftuuid | UUID | |
| DisputeCaseUUID | disputecaseuuid | UUID | ||
| DisputeCaseCoordinator | disputecasecoordinator | Coordinator | ||
| DisputeCaseRootCause | disputecaserootcause | Root Cause Code | ||
| CaseProcessingDeadlineDate | caseprocessingdeadlinedate | Process. Deadline | ||
| OriginalAmount | originalamount | Original Disputed Amount | ||
| DisputedAmount | disputedamount | Disputed Amount | ||
| PaidAmount | paidamount | Paid Amount | ||
| CreditedAmount | creditedamount | Credited | ||
| WriteOffAmount | writeoffamount | Cleared Manually | ||
| ManuallyClearedAmount | manuallyclearedamount | Automatically Written Off | ||
| DisputeCaseCurrency | disputecasecurrency | Currency | ||
| CustomerDisputedAmount | 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 | casetype | Upper/Lowercase | ||
| CaseID | caseid | Case ID | ||
| CaseExternalReference | caseexternalreference | External Reference | ||
| CaseCreatedBy | casecreatedby | Created By | ||
| CaseCreatedOn | Created At | |||
| CaseLastChangedBy | caselastchangedby | Changed By | ||
| CaseLastChangedOn | Last Changed At | |||
| CaseClosedBy | caseclosedby | Closed By | ||
| CaseClosedTime | Closed At | |||
| CasePlannedCloseDate | caseplannedclosedate | Planned Close Date | ||
| CaseProcessor | caseprocessor | Processor | ||
| CaseResponsible | caseresponsible | Person Responsible | ||
| CaseTitle | casetitle | Case Title | ||
| CaseEscalationReason | caseescalationreason | Escalation Reason | ||
| CaseCategory | casecategory | Category | ||
| CasePriority | casepriority | Priority | ||
| CaseAuthorizationLevel | caseauthorizationlevel | Auth. Level | ||
| CaseStatusProfile | casestatusprofile | Status Profile | ||
| CaseStatus | casestatus | Status | ||
| CaseSystemStatus | casesystemstatus | System Status | ||
| CaseReason | casereason | Reason | ||
| HasActiveEntity | hasactiveentity | TRUE | ||
| DraftCreationDateTime | draftentitycreationdatetime | Draft Created On | ||
| DraftLastChangedDateTime | draftentitylastchangedatetime | Draft Last Changed On | ||
| DraftAdministrativeDataUUID | draftadministrativedatauuid | UUID | ||
| _Individual | _Individual | |||
| _Priority | _Priority | |||
| _Reasons | _Reasons | |||
| _StatProfile | _StatProfile | |||
| _AuthLevel | _AuthLevel | |||
| _CaseSystemStatus | _CaseSystemStatus | |||
| _CaseTypes | _CaseTypes | |||
| _CaseCategory | _CaseCategory | |||
| _Escalation | _Escalation | |||
| _CompanyCode | _CompanyCode | |||
| _Customer | _Customer | |||
| _CreatedByContactCard | _CreatedByContactCard | |||
| _DisputeCaseExternalAppl | _DisputeCaseExternalAppl | |||
| _DisputeCaseCoordinatorCard | _DisputeCaseCoordinatorCard | |||
| _Country | _Country | |||
| _RootCause | _RootCause | |||
| _ChangedByContactCard | _ChangedByContactCard | |||
| _ClosedByContactCard | _ClosedByContactCard | |||
| _ProcessorContactCard | _ProcessorContactCard | |||
| _ResponsibleContactCard | _ResponsibleContactCard |
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_DisputeCaseDraft.
-- 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 I_DisputeCaseDraft AS
SELECT
DraftUUID,
DisputeCaseUUID,
DisputeCaseCoordinator,
DisputeCaseRootCause,
CaseProcessingDeadlineDate,
OriginalAmount,
DisputedAmount,
PaidAmount,
CreditedAmount,
WriteOffAmount,
ManuallyClearedAmount,
DisputeCaseCurrency,
CustomerDisputedAmount,
CustomerDisputedCurrency,
ContactPersonName,
ContactPersonEmailAddress,
ContactPersonPhoneNumber,
ContactPersonFaxNumber,
ContactPersonFaxCountry,
ContactPerson,
Customer,
CompanyCode,
DisputeCaseExternalApplication,
CaseType,
CaseID,
CaseExternalReference,
CaseCreatedBy,
cast( casecreatedon as udmo_create_time ) AS CaseCreatedOn,
CaseLastChangedBy,
cast( caselastchangedon as udmo_change_time ) AS CaseLastChangedOn,
CaseClosedBy,
cast( caseclosedtime as udmo_closing_time ) AS CaseClosedTime,
CasePlannedCloseDate,
CaseProcessor,
CaseResponsible,
CaseTitle,
CaseEscalationReason,
CaseCategory,
CasePriority,
CaseAuthorizationLevel,
CaseStatusProfile,
CaseStatus,
CaseSystemStatus,
CaseReason,
HasActiveEntity,
draftentitycreationdatetime AS DraftCreationDateTime,
draftentitylastchangedatetime AS DraftLastChangedDateTime,
DraftAdministrativeDataUUID
FROM dispcasedra
LEFT OUTER JOIN I_UserContactCard AS _DisputeCaseCoordinatorCard ON DisputeCaseCoordinator = _DisputeCaseCoordinatorCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_DisputeCaseExternalAppl AS _DisputeCaseExternalAppl ON DisputeCaseExternalApplication = _DisputeCaseExternalAppl.DisputeCaseExternalApplication -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON ContactPersonFaxCountry = _Country.Country -- 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_Caseentity AS _CaseEntity ON CaseID = _CaseEntity.CaseUniqueID -- association [0..1]
LEFT OUTER JOIN I_Casetypes AS _CaseTypes ON CaseType = _CaseTypes.CaseType -- association [0..1]
LEFT OUTER JOIN I_CaseEscalationReason AS _Escalation ON CaseEscalationReason = _Escalation.CaseEscalationReason -- association [0..1]
LEFT OUTER JOIN I_CaseCategory AS _CaseCategory ON CaseCategory = _CaseCategory.CaseCategory AND CaseType = _CaseCategory.CaseType -- association [0..1]
LEFT OUTER JOIN I_CasePriority AS _Priority ON CasePriority = _Priority.CasePriority -- association [0..1]
LEFT OUTER JOIN I_Caseauthorizationlevel AS _AuthLevel ON CaseAuthorizationLevel = _AuthLevel.CaseAuthorizationLevel -- association [0..1]
LEFT OUTER JOIN I_CaseStatusProfile AS _StatProfile ON CaseStatusProfile = _StatProfile.CaseStatusProfile -- association [0..1]
LEFT OUTER JOIN I_Caseindividualstatus AS _Individual ON CaseStatus = _Individual.CaseStatus AND CaseStatusProfile = _Individual.CaseStatusProfile -- association [0..1]
LEFT OUTER JOIN I_CaseSystemStatus AS _CaseSystemStatus ON CaseSystemStatus = _CaseSystemStatus.CaseSystemStatus -- association [0..1]
LEFT OUTER JOIN I_CaseReasons AS _Reasons ON CaseReason = _Reasons.CaseReason AND CaseType = _Reasons.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