I_CADocument
Contract Accounting Document
I_CADocument is a Basic CDS View that provides data about "Contract Accounting Document" in SAP S/4HANA. It reads from 1 data source (dfkkko) and exposes 57 fields with key field CADocumentNumber. It has 18 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dfkkko | dfkkko | from |
Associations (18)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_AccountingDocumentType | _AccountingDocType | $projection.CADocumentTypeForGLTransfer = _AccountingDocType.AccountingDocumentType |
| [1..1] | I_CompanyCode | _CompCode | $projection.CATaxCompanyCode = _CompCode.CompanyCode |
| [1..1] | I_Currency | _Currency | $projection.TransactionCurrency = _Currency.Currency |
| [1..1] | I_CAApplicationArea | _ApplArea | $projection.CAApplicationArea = _ApplArea.CAApplicationArea |
| [0..1] | I_CAClearingInformation | _CAClearingInformation | $projection.CAClearingInformation = _CAClearingInformation.CAClearingInformation |
| [1..1] | I_CADocTransactionClass | _CADocTransactionClass | $projection.CADocumentTransactionClass = _CADocTransactionClass.CADocumentTransactionClass |
| [0..1] | I_CADocumentClass | _CADocumentClass | $projection.CADocumentClass = _CADocumentClass.CADocumentClass |
| [1..1] | I_CADocumentOriginCode | _DocOriginCode | $projection.CADocumentOriginCode = _DocOriginCode.CADocumentOriginCode |
| [0..1] | I_CADocumentSupplement | _CADocumentSupplement | $projection.CADocumentSupplements = _CADocumentSupplement.CADocumentSupplements |
| [1..1] | I_CADocumentType | _DocType | $projection.CADocumentType = _DocType.CADocumentType and $projection.CAApplicationArea = _DocType.CAApplicationArea |
| [0..1] | I_CADocumentVersion | _CADocumentVersion | $projection.CADocumentVersion = _CADocumentVersion.CADocumentVersion |
| [0..1] | I_CAPostingReason | _CAPostingReason | $projection.CADocumentOriginCode = _CAPostingReason.CADocumentOriginCode and $projection.CAPostingReason = _CAPostingReason.CAPostingReason |
| [0..*] | I_CAReturnReason | _CAReturnReason | $projection.CAReturnReason = _CAReturnReason.CAReturnReason and _CAReturnReason.HouseBank is not initial |
| [1..1] | I_CARequestedSpecialPeriod | _CARequestedSpecialPeriod | $projection.CARequestedPeriodForGLTransfer = _CARequestedSpecialPeriod.CARequestedPeriodForGLTransfer |
| [0..1] | I_CATaxSupplementStorageLoc | _CATaxSupplementStorageLoc | $projection.CAStorageLocationOfTaxSuplmnt = _CATaxSupplementStorageLoc.CAStorageLocationOfTaxSuplmnt |
| [0..1] | I_CAWorkflowCheckReason | _WorkflowCheckReason | $projection.CAWorkflowCheckReason = _WorkflowCheckReason.CAWorkflowCheckReason |
| [0..1] | I_CAWorkflowCheckProcess | _WorkflowCheckProcess | $projection.CAWorkflowCheckProcess = _WorkflowCheckProcess.CAWorkflowCheckProcess |
| [1..1] | E_CADocumentHeader | _Extension | $projection.CADocumentNumber = _Extension.CADocumentNumber |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Contract Accounting Document | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | CADocumentNumber | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view |
Fields (57)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CADocumentNumber | opbel | ||
| CAReconciliationKey | fikey | |||
| CAApplicationArea | applk | |||
| CADocumentType | blart | |||
| CADocumentOriginCode | herkf | |||
| CreatedByUser | ||||
| CreationDate | ||||
| CreationTime | ||||
| TransactionCurrency | ||||
| DocumentDate | ||||
| CAPostingDate | budat | |||
| ExchangeRateDate | ||||
| CAReferenceDocument | xblnr | |||
| CAReturnReason | rlgrd | |||
| CAPostingReason | abgrd | |||
| CASeparateDocIsCreatedInGL | xeibh | |||
| ReferenceDocumentType | ||||
| OriginalReferenceDocument | awkey | |||
| CAReversedDocumentNumber | ||||
| CADocumentClass | bltyp | |||
| CAClearingInformation | aginf | |||
| CATaxCompanyCode | stbuk | |||
| CAReversalDocumentNumber | ||||
| CADocumentSupplements | appdx | |||
| LogicalSystem | awsys | |||
| CADocumentVersion | versn | |||
| CAWorkflowCheckReason | c4eye | |||
| CAWorkflowCheckProcess | c4eyp | |||
| CADocumentTransactionClass | tatyp | |||
| CADocumentTypeForGLTransfer | hbbla | |||
| CADocContainsCashFlowItems | xcsha | |||
| CATaxCodeWasExchanged | xtxch | |||
| TaxReportingDate | ||||
| CARequestedPeriodForGLTransfer | wnper | |||
| IsIndividualPosting | xsing | |||
| CADocumentIsAged | xdaag | |||
| LastChangeDate | chdate | |||
| LastChangeTime | chtime | |||
| CA1stCountrySpecificReference | glo_ref1_hd | |||
| CAFirstCountrySpecificDate | glo_dat1_hd | |||
| _AccountingDocType | _AccountingDocType | |||
| _ApplArea | _ApplArea | |||
| _CAClearingInformation | _CAClearingInformation | |||
| _CADocTransactionClass | _CADocTransactionClass | |||
| _CADocumentClass | _CADocumentClass | |||
| _CADocumentSupplement | _CADocumentSupplement | |||
| _CADocumentVersion | _CADocumentVersion | |||
| _CAPostingReason | _CAPostingReason | |||
| _CAReturnReason | _CAReturnReason | |||
| _CARequestedSpecialPeriod | _CARequestedSpecialPeriod | |||
| _CATaxSupplementStorageLoc | _CATaxSupplementStorageLoc | |||
| _CompCode | _CompCode | |||
| _Currency | _Currency | |||
| _DocType | _DocType | |||
| _DocOriginCode | _DocOriginCode | |||
| _WorkflowCheckProcess | _WorkflowCheckProcess | |||
| _WorkflowCheckReason | _WorkflowCheckReason |
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Contract Accounting Document'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: { representativeKey: 'CADocumentNumber',
supportedCapabilities: [ #CDS_MODELING_ASSOCIATION_TARGET,
#SQL_DATA_SOURCE,
#CDS_MODELING_DATA_SOURCE ] }
@ObjectModel.usageType: { serviceQuality: #A,
sizeCategory: #XXL,
dataClass: #TRANSACTIONAL }
@VDM.viewType: #BASIC
define view entity I_CADocument
as select from dfkkko
association [0..1] to I_AccountingDocumentType as _AccountingDocType on $projection.CADocumentTypeForGLTransfer = _AccountingDocType.AccountingDocumentType
association [1..1] to I_CompanyCode as _CompCode on $projection.CATaxCompanyCode = _CompCode.CompanyCode
association [1..1] to I_Currency as _Currency on $projection.TransactionCurrency = _Currency.Currency
association [1..1] to I_CAApplicationArea as _ApplArea on $projection.CAApplicationArea = _ApplArea.CAApplicationArea
association [0..1] to I_CAClearingInformation as _CAClearingInformation on $projection.CAClearingInformation = _CAClearingInformation.CAClearingInformation
association [1..1] to I_CADocTransactionClass as _CADocTransactionClass on $projection.CADocumentTransactionClass = _CADocTransactionClass.CADocumentTransactionClass
association [0..1] to I_CADocumentClass as _CADocumentClass on $projection.CADocumentClass = _CADocumentClass.CADocumentClass
association [1..1] to I_CADocumentOriginCode as _DocOriginCode on $projection.CADocumentOriginCode = _DocOriginCode.CADocumentOriginCode
association [0..1] to I_CADocumentSupplement as _CADocumentSupplement on $projection.CADocumentSupplements = _CADocumentSupplement.CADocumentSupplements
association [1..1] to I_CADocumentType as _DocType on $projection.CADocumentType = _DocType.CADocumentType
and $projection.CAApplicationArea = _DocType.CAApplicationArea
association [0..1] to I_CADocumentVersion as _CADocumentVersion on $projection.CADocumentVersion = _CADocumentVersion.CADocumentVersion
association [0..1] to I_CAPostingReason as _CAPostingReason on $projection.CADocumentOriginCode = _CAPostingReason.CADocumentOriginCode
and $projection.CAPostingReason = _CAPostingReason.CAPostingReason
association [0..*] to I_CAReturnReason as _CAReturnReason on $projection.CAReturnReason = _CAReturnReason.CAReturnReason
and _CAReturnReason.HouseBank is not initial
association [1..1] to I_CARequestedSpecialPeriod as _CARequestedSpecialPeriod on $projection.CARequestedPeriodForGLTransfer = _CARequestedSpecialPeriod.CARequestedPeriodForGLTransfer
association [0..1] to I_CATaxSupplementStorageLoc as _CATaxSupplementStorageLoc on $projection.CAStorageLocationOfTaxSuplmnt = _CATaxSupplementStorageLoc.CAStorageLocationOfTaxSuplmnt
association [0..1] to I_CAWorkflowCheckReason as _WorkflowCheckReason on $projection.CAWorkflowCheckReason = _WorkflowCheckReason.CAWorkflowCheckReason
association [0..1] to I_CAWorkflowCheckProcess as _WorkflowCheckProcess on $projection.CAWorkflowCheckProcess = _WorkflowCheckProcess.CAWorkflowCheckProcess
association [1..1] to E_CADocumentHeader as _Extension on $projection.CADocumentNumber = _Extension.CADocumentNumber
{
key opbel as CADocumentNumber,
fikey as CAReconciliationKey,
@ObjectModel.foreignKey.association: '_ApplArea'
applk as CAApplicationArea,
@ObjectModel.foreignKey.association: '_DocType'
blart as CADocumentType,
@ObjectModel.foreignKey.association: '_DocOriginCode'
herkf as CADocumentOriginCode,
cast(ernam as fclm_bam_created_by preserving type ) as CreatedByUser,
cast(cpudt as fis_cpdat preserving type) as CreationDate,
cast(cputm as ttet_dt_cr_time preserving type ) as CreationTime,
@ObjectModel.foreignKey.association: '_Currency'
cast(waers as fis_rwcur preserving type ) as TransactionCurrency,
cast(bldat as fis_bldat preserving type ) as DocumentDate,
budat as CAPostingDate,
cast(wwert as vdm_v_exchange_rate_date preserving type ) as ExchangeRateDate,
xblnr as CAReferenceDocument,
@ObjectModel.foreignKey.association: '_CAReturnReason'
rlgrd as CAReturnReason,
@ObjectModel.foreignKey.association: '_CAPostingReason'
abgrd as CAPostingReason,
xeibh as CASeparateDocIsCreatedInGL,
//xbwer
cast(awtyp as fis_awtyp preserving type ) as ReferenceDocumentType,
awkey as OriginalReferenceDocument,
cast(stbel as stbel_gfn_kk preserving type ) as CAReversedDocumentNumber,
//stmet
@ObjectModel.foreignKey.association: '_CADocumentClass'
bltyp as CADocumentClass,
@ObjectModel.foreignKey.association: '_CAClearingInformation'
aginf as CAClearingInformation,
@ObjectModel.foreignKey.association: '_CompCode'
stbuk as CATaxCompanyCode,
cast(storb as storb_gfn_kk preserving type ) as CAReversalDocumentNumber,
@ObjectModel.foreignKey.association: '_CADocumentSupplement'
appdx as CADocumentSupplements,
awsys as LogicalSystem,
@ObjectModel.foreignKey.association: '_CADocumentVersion'
versn as CADocumentVersion,
@ObjectModel.foreignKey.association: '_WorkflowCheckReason'
c4eye as CAWorkflowCheckReason,
@ObjectModel.foreignKey.association: '_WorkflowCheckProcess'
c4eyp as CAWorkflowCheckProcess,
@ObjectModel.foreignKey.association: '_CADocTransactionClass'
tatyp as CADocumentTransactionClass,
@ObjectModel.foreignKey.association: '_AccountingDocType'
hbbla as CADocumentTypeForGLTransfer,
xcsha as CADocContainsCashFlowItems,
@ObjectModel.foreignKey.association: '_CATaxSupplementStorageLoc'
utloc as CAStorageLocationOfTaxSuplmnt,
xtxch as CATaxCodeWasExchanged,
cast(vatdate as vatdate preserving type ) as TaxReportingDate,
//fulfilldate
@ObjectModel.foreignKey.association: '_CARequestedSpecialPeriod'
wnper as CARequestedPeriodForGLTransfer,
xsing as IsIndividualPosting,
//keypp
//_dataging
xdaag as CADocumentIsAged,
//trsla
//locok
//bttype
//cbttype
//closingstep
chdate as LastChangeDate,
chtime as LastChangeTime,
//cadoctype
glo_ref1_hd as CA1stCountrySpecificReference,
glo_dat1_hd as CAFirstCountrySpecificDate,
/* associations */
_AccountingDocType,
_ApplArea,
_CAClearingInformation,
_CADocTransactionClass,
_CADocumentClass,
_CADocumentSupplement,
_CADocumentVersion,
_CAPostingReason,
_CAReturnReason,
_CARequestedSpecialPeriod,
_CATaxSupplementStorageLoc,
_CompCode,
_Currency,
_DocType,
_DocOriginCode,
_WorkflowCheckProcess,
_WorkflowCheckReason
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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