C_CADisputeCaseDraftTP

DDL: C_CADISPUTECASEDRAFTTP Type: view_entity CONSUMPTION Package: ODATA_O2C_FICA_DISPUTE_MANAGE

Dispute Case

C_CADisputeCaseDraftTP is a Consumption CDS View that provides data about "Dispute Case" in SAP S/4HANA. It reads from 1 data source (R_CADisputeCaseTP) and exposes 100 fields with key field CaseUUID. It has 12 associations to related views. It is exposed through 2 OData services (ASQL_F4443, UI_CADISPUTECASE). Part of development package ODATA_O2C_FICA_DISPUTE_MANAGE.

Data Sources (1)

SourceAliasJoin Type
R_CADisputeCaseTP R_CADisputeCaseTP projection

Associations (12)

CardinalityTargetAliasCondition
[0..*] C_CANotDisputedPayment _NotDisPayment $projection.ContractAccount = _NotDisPayment.ContractAccount and $projection.BusinessPartner = _NotDisPayment.BusinessPartner and $projection.CAContract = _NotDisPayment.CAContract and $projection.CaseUUID = _NotDisPayment.CaseUUID
[0..*] C_CANotDisputedCredit _NotDisCredit $projection.ContractAccount = _NotDisCredit.ContractAccount and $projection.BusinessPartner = _NotDisCredit.BusinessPartner and $projection.CAContract = _NotDisCredit.CAContract and $projection.CaseUUID = _NotDisCredit.CaseUUID
[0..*] C_CADisputeCaseChangeHist _ChangeHistory $projection.CaseUUID = _ChangeHistory.DisputeCaseUUID
[0..*] C_CANotDisputedCreditMemo _NotDisCreditMemo $projection.ContractAccount = _NotDisCreditMemo.ContractAccount and $projection.BusinessPartner = _NotDisCreditMemo.BusinessPartner and $projection.CAContract = _NotDisCreditMemo.CAContract and $projection.CaseUUID = _NotDisCreditMemo.CaseUUID and $projection.CompanyCode = _NotDisCreditMemo.CompanyCode
[0..*] C_CANotDisputedDocument _NotDisDocument $projection.ContractAccount = _NotDisDocument.ContractAccount and $projection.BusinessPartner = _NotDisDocument.BusinessPartner and $projection.CAContract = _NotDisDocument.CAContract and $projection.CompanyCode = _NotDisDocument.CompanyCode and $projection.CaseUUID = _NotDisDocument.CaseUUID
[0..1] C_CAInvcgUserContact _CreatedBy $projection.CaseCreatedBy = _CreatedBy.ContactCardID
[0..1] C_CAInvcgUserContact _Processor $projection.CaseProcessor = _Processor.ContactCardID
[0..1] C_CAInvcgUserContact _Responsible $projection.CaseResponsible = _Responsible.ContactCardID
[0..1] C_CAInvcgUserContact _Coordinator $projection.DisputeCaseCoordinator = _Coordinator.ContactCardID
[0..*] C_CANotDisputedInvcgDoc _NotDisInvcgDoc $projection.ContractAccount = _NotDisInvcgDoc.ContractAccount and $projection.BusinessPartner = _NotDisInvcgDoc.BusinessPartner and $projection.CAContract = _NotDisInvcgDoc.CAContract and $projection.CaseUUID = _NotDisInvcgDoc.CaseUUID and $projection.CompanyCode = _NotDisInvcgDoc.CompanyCode
[0..*] C_CANotDisputedBillableItem _NotDisBillableItem $projection.ContractAccount = _NotDisBillableItem.ContractAccount and $projection.BusinessPartner = _NotDisBillableItem.BusinessPartner and $projection.CAContract = _NotDisBillableItem.CAContract and $projection.CaseUUID = _NotDisBillableItem.CaseUUID and $projection.CompanyCode = _NotDisBillableItem.CompanyCode
[0..*] C_CANotDisputedInvcgDocItem _NotDisInvcgDocItem $projection.ContractAccount = _NotDisInvcgDocItem.ContractAccount and $projection.BusinessPartner = _NotDisInvcgDocItem.BusinessPartner and $projection.CAContract = _NotDisInvcgDocItem.CAContract and $projection.CaseUUID = _NotDisInvcgDocItem.CaseUUID and $projection.CompanyCode = _NotDisInvcgDocItem.CompanyCode

Annotations (8)

NameValueLevelField
EndUserText.label Dispute Case view
AccessControl.authorizationCheck #MANDATORY view
Metadata.allowExtensions true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
Search.searchable true view
ObjectModel.usageType.dataClass #MIXED view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F4443 ASQL_F4443 C2 NOT_RELEASED
UI_CADISPUTECASE UI_CADISPUTECASE V2 C1 NOT_RELEASED

Fields (100)

KeyFieldSource TableSource FieldDescription
KEY CaseUUID CaseUUID UUID
BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerFullName BusinessPartnerFullName Broker Name
ContractAccount ContractAccount Contract Acct
ContractAccountName ContractAccountName Cont. acct name
CAContract Contract
CAProviderContractName
CASubApplication CASubApplication Subapplication
CASubApplicationText
DisputedAmount DisputedAmount Disputed Amount
TotalReceivablesAmount TotalReceivablesAmount
DisputeCaseCorrectionAmount DisputeCaseCorrectionAmount
DisputeCaseReversedAmount DisputeCaseReversedAmount
CreditedAmount CreditedAmount Credited
WriteOffAmount WriteOffAmount Cleared Manually
DisputeCaseReplacedAmount DisputeCaseReplacedAmount
CARemainingDisputedAmount CARemainingDisputedAmount
DisputeCaseCurrency DisputeCaseCurrency Currency
CADisputeType CADisputeType
CADisputeTypeText CADisputeTypeText
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName Company Name
DisputeCaseCoordinator DisputeCaseCoordinator Coordinator
DsputCaseCoordinatorFullName
DisputeCaseRootCause Root Cause Code
CaseRootCauseDescription
CaseProcessingDeadlineDate CaseProcessingDeadlineDate Process. Deadline
ContactPersonFullName ContactPersonFullName
ContactPersonEmailAddress ContactPersonEmailAddress Email
ContactPersonPhoneNumber ContactPersonPhoneNumber Telephone No.
ContactPersonFaxNumber ContactPersonFaxNumber Fax Number
ContactPersonFaxCountry ContactPersonFaxCountry C/R of Fax No.
FaxCountryName
DisputeCaseInformationText DisputeCaseInformationText
DisputeCaseTransactionDate DisputeCaseTransactionDate
CADisputeCase CADisputeCase
CaseType CaseType Upper/Lowercase
CaseID CaseID Case ID
CaseExternalReference CaseExternalReference External Reference
CaseCreatedBy CaseCreatedBy Created By
CaseCreatedByUserName
CaseCreationDate CaseCreationDate
CaseLastChangedBy CaseLastChangedBy Changed By
CaseLastChangedByUserName
CaseLastChangedOn CaseLastChangedOn Last Changed At
CaseStatusProfile CaseStatusProfile Status Profile
CaseClosedBy CaseClosedBy Closed By
CaseClosedByUserName
CaseClosedTime CaseClosedTime Closed At
CasePlannedCloseDate CasePlannedCloseDate Planned Close Date
CaseProcessor CaseProcessor Processor
CaseProcessorName
CaseResponsible CaseResponsible Person Responsible
CaseResponsibleName _CaseResponsible UserDescription Full Name
CaseTitle CaseTitle Case Title
CaseStatus CaseStatus Status
CaseStatusName CaseStatusName
CaseSystemStatus CaseSystemStatus System Status
CaseUserStatusName CaseUserStatusName User Status
CasePriority CasePriority Priority
DisputeCasePriorityName DisputeCasePriorityName
CaseCategory CaseCategory Category
DisputeCaseCategoryName
CaseReason CaseReason Reason
CaseReasonName CaseReasonName
CaseEscalationReason CaseEscalationReason Escalation Reason
DsputCaseEscalationRsnName DsputCaseEscalationRsnName
CountryName CountryName Country
CADocumentNumber CADocumentNumber Document Number
TemporaryDisputeCaseUUID TemporaryDisputeCaseUUID
AddressLine1 AddressLine1
AddressLine2 AddressLine2
CaseIsDisplayOnly CaseIsDisplayOnly
UserDefinedText UserDefinedText
CACaseConversionStatus CACaseConversionStatus
CaseAttributeProfile CaseAttributeProfile
CADisputeCaseOrigin CADisputeCaseOrigin Source Component
CADisputeCaseOriginText CADisputeCaseOriginText
CAAuthorizationGroup CAAuthorizationGroup AuthorizGroup
virtualIsCloudSystemis_cloud_system
virtualIsDraftEntityabap_boolean
virtualCADocumentopbel_gfn_kk
virtualCAInvoicingDocumentinvdocno_kk
_NotDisPayment _NotDisPayment
_NotDisCredit _NotDisCredit
_ChangeHistory _ChangeHistory
_NotDisCreditMemo _NotDisCreditMemo
_NotDisDocument _NotDisDocument
_CreatedBy _CreatedBy
_Coordinator _Coordinator
_Responsible _Responsible
_Processor _Processor
_NotDisInvcgDoc _NotDisInvcgDoc
_NotDisInvcgDocItem _NotDisInvcgDocItem
_NotDisBillableItem _NotDisBillableItem
_BusinessPartner _BusinessPartner
_ContractAccount _ContractAccount
_ProviderContract _ProviderContract
_CASubApplicationText _CASubApplicationText
_ContactPersonFaxCountryText _ContactPersonFaxCountryText

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 C_CADisputeCaseDraftTP.
-- 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 C_CADisputeCaseDraftTP AS
SELECT
  CaseUUID,
  BusinessPartner,
  BusinessPartnerFullName,
  ContractAccount,
  ContractAccountName,
  cast ( CAContract as vtref_kk preserving type ) AS CAContract,
  cast ( _ProviderContract.CAProviderContractName as vtbez_vt_gfn_kk preserving type ) AS CAProviderContractName,
  CASubApplication,
  _CASubApplicationText[1:Language = $session.system_language].CASubApplicationText AS CASubApplicationText,
  DisputedAmount,
  TotalReceivablesAmount,
  DisputeCaseCorrectionAmount,
  DisputeCaseReversedAmount,
  CreditedAmount,
  WriteOffAmount,
  DisputeCaseReplacedAmount,
  CARemainingDisputedAmount,
  DisputeCaseCurrency,
  CADisputeType,
  CADisputeTypeText,
  CompanyCode,
  cast( CompanyCodeName as bukrs_text_gfn_kk preserving type ) AS CompanyCodeName,
  DisputeCaseCoordinator,
  cast( _DisputeCaseCoordinator.UserDescription as case_coordinator_text_gfn_kk preserving type ) AS DsputCaseCoordinatorFullName,
  cast( DisputeCaseRootCause as udm_root_ccode_gfn_kk preserving type ) AS DisputeCaseRootCause,
  cast( CaseRootCauseDescription as udm_root_ccode_txt_gfn_kk preserving type ) AS CaseRootCauseDescription,
  CaseProcessingDeadlineDate,
  ContactPersonFullName,
  ContactPersonEmailAddress,
  ContactPersonPhoneNumber,
  ContactPersonFaxNumber,
  ContactPersonFaxCountry,
  _ContactPersonFaxCountryText[1:Language = $session.system_language].CountryName AS FaxCountryName,
  DisputeCaseInformationText,
  DisputeCaseTransactionDate,
  CADisputeCase,
  CaseType,
  CaseID,
  CaseExternalReference,
  CaseCreatedBy,
  cast( _CaseCreatedBy.UserDescription as case_created_by_text_gfn_kk preserving type ) AS CaseCreatedByUserName,
  CaseCreationDate,
  CaseLastChangedBy,
  cast( _CaseLastChangedBy.UserDescription as case_last_chg_by_text_gfn_kk preserving type ) AS CaseLastChangedByUserName,
  CaseLastChangedOn,
  CaseStatusProfile,
  CaseClosedBy,
  cast( _CaseClosedBy.UserDescription as case_closed_by_text_gfn_kk preserving type ) AS CaseClosedByUserName,
  CaseClosedTime,
  CasePlannedCloseDate,
  CaseProcessor,
  cast( _CaseProcessor.UserDescription as case_processor_text_gfn_kk preserving type ) AS CaseProcessorName,
  CaseResponsible,
  _CaseResponsible.UserDescription AS CaseResponsibleName,
  CaseTitle,
  CaseStatus,
  CaseStatusName,
  CaseSystemStatus,
  CaseUserStatusName,
  CasePriority,
  DisputeCasePriorityName,
  CaseCategory,
  cast( DisputeCaseCategoryName as scmg_category_desc_gfn_kk preserving type ) AS DisputeCaseCategoryName,
  CaseReason,
  CaseReasonName,
  CaseEscalationReason,
  DsputCaseEscalationRsnName,
  CountryName,
  CADocumentNumber,
  TemporaryDisputeCaseUUID,
  AddressLine1,
  AddressLine2,
  CaseIsDisplayOnly,
  UserDefinedText,
  CACaseConversionStatus,
  CaseAttributeProfile,
  CADisputeCaseOrigin,
  CADisputeCaseOriginText,
  CAAuthorizationGroup,
  virtual IsCloudSystem : is_cloud_system AS virtualIsCloudSystemis_cloud_system,
  virtual IsDraftEntity : abap_boolean AS virtualIsDraftEntityabap_boolean,
  virtual CADocument : opbel_gfn_kk AS virtualCADocumentopbel_gfn_kk,
  virtual CAInvoicingDocument : invdocno_kk AS virtualCAInvoicingDocumentinvdocno_kk
FROM R_CADisputeCaseTP
LEFT OUTER JOIN C_CANotDisputedPayment AS _NotDisPayment ON ContractAccount = _NotDisPayment.ContractAccount AND BusinessPartner = _NotDisPayment.BusinessPartner AND CAContract = _NotDisPayment.CAContract AND CaseUUID = _NotDisPayment.CaseUUID  -- association [0..*]
LEFT OUTER JOIN C_CANotDisputedCredit AS _NotDisCredit ON ContractAccount = _NotDisCredit.ContractAccount AND BusinessPartner = _NotDisCredit.BusinessPartner AND CAContract = _NotDisCredit.CAContract AND CaseUUID = _NotDisCredit.CaseUUID  -- association [0..*]
LEFT OUTER JOIN C_CADisputeCaseChangeHist AS _ChangeHistory ON CaseUUID = _ChangeHistory.DisputeCaseUUID  -- association [0..*]
LEFT OUTER JOIN C_CANotDisputedCreditMemo AS _NotDisCreditMemo ON ContractAccount = _NotDisCreditMemo.ContractAccount AND BusinessPartner = _NotDisCreditMemo.BusinessPartner AND CAContract = _NotDisCreditMemo.CAContract AND CaseUUID = _NotDisCreditMemo.CaseUUID AND CompanyCode = _NotDisCreditMemo.CompanyCode  -- association [0..*]
LEFT OUTER JOIN C_CANotDisputedDocument AS _NotDisDocument ON ContractAccount = _NotDisDocument.ContractAccount AND BusinessPartner = _NotDisDocument.BusinessPartner AND CAContract = _NotDisDocument.CAContract AND CompanyCode = _NotDisDocument.CompanyCode AND CaseUUID = _NotDisDocument.CaseUUID  -- association [0..*]
LEFT OUTER JOIN C_CAInvcgUserContact AS _CreatedBy ON CaseCreatedBy = _CreatedBy.ContactCardID  -- association [0..1]
LEFT OUTER JOIN C_CAInvcgUserContact AS _Processor ON CaseProcessor = _Processor.ContactCardID  -- association [0..1]
LEFT OUTER JOIN C_CAInvcgUserContact AS _Responsible ON CaseResponsible = _Responsible.ContactCardID  -- association [0..1]
LEFT OUTER JOIN C_CAInvcgUserContact AS _Coordinator ON DisputeCaseCoordinator = _Coordinator.ContactCardID  -- association [0..1]
LEFT OUTER JOIN C_CANotDisputedInvcgDoc AS _NotDisInvcgDoc ON ContractAccount = _NotDisInvcgDoc.ContractAccount AND BusinessPartner = _NotDisInvcgDoc.BusinessPartner AND CAContract = _NotDisInvcgDoc.CAContract AND CaseUUID = _NotDisInvcgDoc.CaseUUID AND CompanyCode = _NotDisInvcgDoc.CompanyCode  -- association [0..*]
LEFT OUTER JOIN C_CANotDisputedBillableItem AS _NotDisBillableItem ON ContractAccount = _NotDisBillableItem.ContractAccount AND BusinessPartner = _NotDisBillableItem.BusinessPartner AND CAContract = _NotDisBillableItem.CAContract AND CaseUUID = _NotDisBillableItem.CaseUUID AND CompanyCode = _NotDisBillableItem.CompanyCode  -- association [0..*]
LEFT OUTER JOIN C_CANotDisputedInvcgDocItem AS _NotDisInvcgDocItem ON ContractAccount = _NotDisInvcgDocItem.ContractAccount AND BusinessPartner = _NotDisInvcgDocItem.BusinessPartner AND CAContract = _NotDisInvcgDocItem.CAContract AND CaseUUID = _NotDisInvcgDocItem.CaseUUID AND CompanyCode = _NotDisInvcgDocItem.CompanyCode  -- association [0..*]
;