I_CADisputedDocument
Documents in Dispute Cases
I_CADisputedDocument is a Composite CDS View that provides data about "Documents in Dispute Cases" in SAP S/4HANA. It reads from 3 data sources (I_CADisputedObject, P_CADisputedDocumentAmount, I_CADocumentHeader) and exposes 39 fields with key fields CADocumentNumber, CaseUniqueID. It has 1 association to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_CADisputedObject | _DisputedObject | from |
| P_CADisputedDocumentAmount | _Doc | inner |
| I_CADocumentHeader | _DocHeader | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_User | _CreatedBy | $projection.CreatedByUser = _CreatedBy.UserID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICADCDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Documents in Dispute Cases | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CADocumentNumber | I_CADocumentHeader | CADocumentNumber | Document Number |
| KEY | CaseUniqueID | I_CADisputedObject | CaseUniqueID | |
| ObjectType | I_CADisputedObject | ObjectType | Type | |
| ObjectKey | I_CADisputedObject | ObjectKey | Object Key | |
| RelationshipNumber | I_CADisputedObject | RelationshipNumber | BP Rel. Number | |
| RelationToLinkedObject | I_CADisputedObject | RelationToLinkedObject | ||
| CAAmountInTransactionCurrency | P_CADisputedDocumentAmount | CAAmountInTransactionCurrency | Amount | |
| TransactionCurrency | I_CADocumentHeader | TransactionCurrency | Transaction Currency | |
| CAMainTransaction | ||||
| CASubTransaction | ||||
| CAContract | ||||
| CASubApplication | ||||
| ContractAccount | I_CADisputedObject | ContractAccount | Contract Acct | |
| BusinessPartner | I_CADisputedObject | BusinessPartner | Issuing Authority | |
| CANetDueDate | ||||
| CADeferralDate | ||||
| CAClearingDate | ||||
| CAClearingReasonName | ||||
| CAClearingReason | ||||
| OpenAmountInTransCrcy | P_CADisputedDocumentAmount | OpenAmountInTransCrcy | Open Amt Trans Crcy | |
| CAMainTransactionName | ||||
| CASubTransactionName | ||||
| CreationDate | ||||
| CreationTime | ||||
| CADocumentOriginCodeName | ||||
| CreatedByUser | I_CADocumentHeader | CreatedByUser | User Name | |
| CADocumentOriginCode | I_CADocumentHeader | CADocumentOriginCode | Document Origin | |
| DocumentDate | I_CADocumentHeader | DocumentDate | Journal Entry Date | |
| CAPostingDate | I_CADocumentHeader | CAPostingDate | Posting Date | |
| CAReferenceDocument | I_CADocumentHeader | CAReferenceDocument | Reference | |
| CADocumentTypeName | ||||
| CAReconciliationKey | I_CADocumentHeader | CAReconciliationKey | Reconcil. Key | |
| CAReversalDocumentNumber | I_CADocumentHeader | CAReversalDocumentNumber | Revers.document | |
| CAReversedDocumentNumber | I_CADocumentHeader | CAReversedDocumentNumber | Rev. Doc. For | |
| _BusinessPartner | I_CADisputedObject | _BusinessPartner | ||
| _ContractAccount | I_CADisputedObject | _ContractAccount | ||
| _Currency | _Currency | |||
| _DocOriginCode | _DocOriginCode | |||
| _CreatedBy | _CreatedBy |
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_CADisputedDocument.
-- 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: ICADCDOC
CREATE VIEW I_CADisputedDocument AS
SELECT
_DocHeader.CADocumentNumber AS CADocumentNumber,
_DisputedObject.CaseUniqueID AS CaseUniqueID,
_DisputedObject.ObjectType AS ObjectType,
_DisputedObject.ObjectKey AS ObjectKey,
_DisputedObject.RelationshipNumber AS RelationshipNumber,
_DisputedObject.RelationToLinkedObject AS RelationToLinkedObject,
_Doc.CAAmountInTransactionCurrency AS CAAmountInTransactionCurrency,
_DocHeader.TransactionCurrency AS TransactionCurrency,
cast(' ' as hvorg_kk) AS CAMainTransaction,
cast(' ' as tvorg_gfn_kk) AS CASubTransaction,
cast('' as vtref_kk) AS CAContract,
cast('' as subap_kk) AS CASubApplication,
_DisputedObject.ContractAccount AS ContractAccount,
_DisputedObject.BusinessPartner AS BusinessPartner,
cast('00000000' as faedn_kk) AS CANetDueDate,
cast('00000000' as studt_kk) AS CADeferralDate,
cast('00000000' as augdt_kk) AS CAClearingDate,
cast( '' as augrd_gfn_kk) AS CAClearingReasonName,
cast(''as augrd_kk) AS CAClearingReason,
_Doc.OpenAmountInTransCrcy AS OpenAmountInTransCrcy,
cast('' as hvorg_txt) AS CAMainTransactionName,
cast('' as tvorg_txt) AS CASubTransactionName,
cast(_DocHeader.CreationDate as erdat) AS CreationDate,
cast(_DocHeader.CreationTime as crtime_kk) AS CreationTime,
cast(_DocHeader.CADocumentOriginCodeName as htext_gfn_kk) AS CADocumentOriginCodeName,
_DocHeader.CreatedByUser AS CreatedByUser,
_DocHeader.CADocumentOriginCode AS CADocumentOriginCode,
_DocHeader.DocumentDate AS DocumentDate,
_DocHeader.CAPostingDate AS CAPostingDate,
_DocHeader.CAReferenceDocument AS CAReferenceDocument,
cast(_DocHeader._DocType._Text[1:Language = $session.system_language].CADocumentTypeName as ltext_003t_gfn) AS CADocumentTypeName,
_DocHeader.CAReconciliationKey AS CAReconciliationKey,
_DocHeader.CAReversalDocumentNumber AS CAReversalDocumentNumber,
_DocHeader.CAReversedDocumentNumber AS CAReversedDocumentNumber,
_DisputedObject._BusinessPartner AS _BusinessPartner,
_DisputedObject._ContractAccount AS _ContractAccount
FROM I_CADisputedObject AS _DisputedObject
INNER JOIN I_CADocumentHeader AS _DocHeader ON /* join condition not captured in parsed metadata */
INNER JOIN P_CADisputedDocumentAmount AS _Doc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_User AS _CreatedBy ON CreatedByUser = _CreatedBy.UserID -- 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