R_DisputeCaseLinkedInvoice

DDL: R_DISPUTECASELINKEDINVOICE Type: view COMPOSITE

Invoices linked to a Dispute Case

R_DisputeCaseLinkedInvoice is a Composite CDS View that provides data about "Invoices linked to a Dispute Case" in SAP S/4HANA. It reads from 1 data source (R_DisputeCase) and exposes 16 fields with key field DisputeCaseUUID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
R_DisputeCase R_DisputeCase from

Associations (1)

CardinalityTargetAliasCondition
[0..*] R_CollectionsInvoiceTP _Invoice $projection.Customer = _Invoice.BranchAccount and $projection.CompanyCode = _Invoice.CompanyCode and $projection.DisputeCaseUUID = _Invoice.CaseUniqueID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName RDCLINKIVTP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Invoices linked to a Dispute Case view
VDM.viewType #COMPOSITE 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 (16)

KeyFieldSource TableSource FieldDescription
KEY DisputeCaseUUID DisputeCaseUUID UUID
Customer Customer Sold-to Party
CompanyCode CompanyCode Receiver Company Code
CaseType CaseType Upper/Lowercase
CasePlannedCloseDate CasePlannedCloseDate Planned Close Date
CaseProcessingDeadlineDate CaseProcessingDeadlineDate Process. Deadline
CaseSystemStatus CaseSystemStatus System Status
CaseStatusProfile CaseStatusProfile Status Profile
DisputedAmount DisputedAmount Disputed Amount
DisputeCaseCurrency DisputeCaseCurrency Currency
CaseReason CaseReason Reason
CaseID CaseID Case ID
_Invoice _Invoice
_Customer _Customer
_CompanyCode _CompanyCode
_Reasons _Reasons

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_DisputeCaseLinkedInvoice.
-- 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_DisputeCaseLinkedInvoice AS
SELECT
  DisputeCaseUUID,
  Customer,
  CompanyCode,
  CaseType,
  CasePlannedCloseDate,
  CaseProcessingDeadlineDate,
  CaseSystemStatus,
  CaseStatusProfile,
  DisputedAmount,
  DisputeCaseCurrency,
  CaseReason,
  CaseID
FROM R_DisputeCase
LEFT OUTER JOIN R_CollectionsInvoiceTP AS _Invoice ON Customer = _Invoice.BranchAccount AND CompanyCode = _Invoice.CompanyCode AND DisputeCaseUUID = _Invoice.CaseUniqueID  -- association [0..*]
;