I_CADocument

DDL: I_CADOCUMENT Type: view_entity BASIC Package: FKK_DOCUMENT

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 64 fields with key field CADocumentNumber. It has 21 associations to related views. Part of development package FKK_DOCUMENT.

Data Sources (1)

SourceAliasJoin Type
dfkkko dfkkko from

Associations (21)

CardinalityTargetAliasCondition
[0..1] I_AccountingDocumentType _AccountingDocType $projection.CADocumentTypeForGLTransfer = _AccountingDocType.AccountingDocumentType
[1..1] I_CAApplicationArea _CAApplicationArea $projection.CAApplicationArea = _CAApplicationArea.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 _CADocumentOriginCode $projection.CADocumentOriginCode = _CADocumentOriginCode.CADocumentOriginCode
[0..1] I_CADocumentSupplement _CADocumentSupplement $projection.CADocumentSupplements = _CADocumentSupplement.CADocumentSupplements
[1..1] I_CADocumentType _CADocumentType $projection.CADocumentType = _CADocumentType.CADocumentType and $projection.CAApplicationArea = _CADocumentType.CAApplicationArea
[0..1] I_CADocumentVersion _CADocumentVersion $projection.CADocumentVersion = _CADocumentVersion.CADocumentVersion
[0..1] I_CAInvcgDocHeader _CAInvcgDocument $projection.CAInvoicingDocument = _CAInvcgDocument.CAInvoicingDocument
[0..1] I_CAInvcgRefPostgDocTyp _CAInvcgRefPostgDocType $projection.CAInvcgRefPostingDocType = _CAInvcgRefPostgDocType.CAInvcgRefPostingDocType
[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 _CAWorkflowCheckReason $projection.CAWorkflowCheckReason = _CAWorkflowCheckReason.CAWorkflowCheckReason
[0..1] I_CAWorkflowCheckProcess _CAWorkflowCheckProcess $projection.CAWorkflowCheckProcess = _CAWorkflowCheckProcess.CAWorkflowCheckProcess
[0..1] I_CompanyCode _CATaxCompanyCode $projection.CATaxCompanyCode = _CATaxCompanyCode.CompanyCode
[1..1] I_Currency _TransactionCurrency $projection.TransactionCurrency = _TransactionCurrency.Currency
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[1..1] E_CADocumentHeader _Extension $projection.CADocumentNumber = _Extension.CADocumentNumber

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Analytics.dataExtraction.enabled true view
EndUserText.label Contract Accounting Document view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.representativeKey CADocumentNumber view
ObjectModel.sapObjectNodeType.name ContrAcctgDocument view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (64)

KeyFieldSource TableSource FieldDescription
KEY CADocumentNumber opbel
CAReconciliationKey fikey
CAApplicationArea applk
CADocumentType blart
CADocumentOriginCode herkf
CreatedByUser ernam
CreationDate cpudt
CreationTime cputm
TransactionCurrency waers
DocumentDate bldat
CAPostingDate budat
ExchangeRateDate wwert
CAReferenceDocument xblnr
CAReturnReason rlgrd
CAPostingReason abgrd
CASeparateDocIsCreatedInGL xeibh
ReferenceDocumentType awtyp
OriginalReferenceDocument awkey
CAReversedDocumentNumber stbel
CADocumentClass bltyp
CAClearingInformation aginf
CATaxCompanyCode stbuk
CAReversalDocumentNumber storb
CADocumentSupplements appdx
LogicalSystem awsys
CADocumentVersion versn
CAWorkflowCheckReason c4eye
CAWorkflowCheckProcess c4eyp
CADocumentTransactionClass tatyp
CADocumentTypeForGLTransfer hbbla
CADocContainsCashFlowItems xcsha
CATaxCodeWasExchanged xtxch
TaxReportingDate vatdate
TaxFulfillmentDate fulfilldate
CARequestedPeriodForGLTransfer wnper
IsIndividualPosting xsing
CADocumentIsAged xdaag
LastChangeDate chdate
LastChangeTime chtime
CAInvcgRefPostingDocType cadoctype
CAInvoicingDocument invdocno
CA1stCountrySpecificReference glo_ref1_hd
CAFirstCountrySpecificDate glo_dat1_hd
CAClassificationKey opord
_AccountingDocType _AccountingDocType
_CAApplicationArea _CAApplicationArea
_CAClearingInformation _CAClearingInformation
_CADocTransactionClass _CADocTransactionClass
_CADocumentClass _CADocumentClass
_CADocumentOriginCode _CADocumentOriginCode
_CADocumentSupplement _CADocumentSupplement
_CADocumentType _CADocumentType
_CADocumentVersion _CADocumentVersion
_CAInvcgDocument _CAInvcgDocument
_CAInvcgRefPostgDocType _CAInvcgRefPostgDocType
_CAPostingReason _CAPostingReason
_CAReturnReason _CAReturnReason
_CARequestedSpecialPeriod _CARequestedSpecialPeriod
_CATaxCompanyCode _CATaxCompanyCode
_CATaxSupplementStorageLoc _CATaxSupplementStorageLoc
_CAWorkflowCheckProcess _CAWorkflowCheckProcess
_CAWorkflowCheckReason _CAWorkflowCheckReason
_CreatedByUser _CreatedByUser
_TransactionCurrency _TransactionCurrency
@AccessControl.authorizationCheck: #MANDATORY

@Analytics.dataExtraction.enabled: true

@EndUserText.label: 'Contract Accounting Document'

@Metadata.ignorePropagatedAnnotations: true

@ObjectModel: { modelingPattern: #NONE,
                representativeKey: 'CADocumentNumber',
                sapObjectNodeType.name: 'ContrAcctgDocument',
                supportedCapabilities: [ #CDS_MODELING_ASSOCIATION_TARGET,
                                         #CDS_MODELING_DATA_SOURCE,
                                         #EXTRACTION_DATA_SOURCE,
                                         #SQL_DATA_SOURCE ],
                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_CAApplicationArea         as _CAApplicationArea         on  $projection.CAApplicationArea = _CAApplicationArea.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 _CADocumentOriginCode      on  $projection.CADocumentOriginCode = _CADocumentOriginCode.CADocumentOriginCode
  association [0..1] to I_CADocumentSupplement      as _CADocumentSupplement      on  $projection.CADocumentSupplements = _CADocumentSupplement.CADocumentSupplements
  association [1..1] to I_CADocumentType            as _CADocumentType            on  $projection.CADocumentType    = _CADocumentType.CADocumentType
                                                                                  and $projection.CAApplicationArea = _CADocumentType.CAApplicationArea
  association [0..1] to I_CADocumentVersion         as _CADocumentVersion         on  $projection.CADocumentVersion = _CADocumentVersion.CADocumentVersion
  association [0..1] to I_CAInvcgDocHeader          as _CAInvcgDocument           on  $projection.CAInvoicingDocument = _CAInvcgDocument.CAInvoicingDocument
  association [0..1] to I_CAInvcgRefPostgDocTyp     as _CAInvcgRefPostgDocType    on  $projection.CAInvcgRefPostingDocType = _CAInvcgRefPostgDocType.CAInvcgRefPostingDocType
  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 _CAWorkflowCheckReason     on  $projection.CAWorkflowCheckReason = _CAWorkflowCheckReason.CAWorkflowCheckReason
  association [0..1] to I_CAWorkflowCheckProcess    as _CAWorkflowCheckProcess    on  $projection.CAWorkflowCheckProcess = _CAWorkflowCheckProcess.CAWorkflowCheckProcess
  association [0..1] to I_CompanyCode               as _CATaxCompanyCode          on  $projection.CATaxCompanyCode = _CATaxCompanyCode.CompanyCode
  association [1..1] to I_Currency                  as _TransactionCurrency       on  $projection.TransactionCurrency = _TransactionCurrency.Currency
  association [0..1] to I_User                      as _CreatedByUser             on  $projection.CreatedByUser = _CreatedByUser.UserID
  // Key User Extensibility. Is registerd in transaction SCFD_REGISTRY. Do not change E_CADocumentHeader or alias _Extension without adopting CFD regestry entry

  association [1..1] to E_CADocumentHeader          as _Extension                 on  $projection.CADocumentNumber = _Extension.CADocumentNumber

{
  key opbel       as CADocumentNumber,

      fikey       as CAReconciliationKey,
      @ObjectModel.foreignKey.association: '_CAApplicationArea'
      applk       as CAApplicationArea,
      @ObjectModel.foreignKey.association: '_CADocumentType'
      blart       as CADocumentType,
      @ObjectModel.foreignKey.association: '_CADocumentOriginCode'
      herkf       as CADocumentOriginCode,
      @ObjectModel.foreignKey.association: '_CreatedByUser'
      ernam       as CreatedByUser,
      cpudt       as CreationDate,
      cputm       as CreationTime,
      @ObjectModel.foreignKey.association: '_TransactionCurrency'
      waers       as TransactionCurrency,
      bldat       as DocumentDate,
      budat       as CAPostingDate,
      wwert       as ExchangeRateDate,
      xblnr       as CAReferenceDocument,
      @ObjectModel.foreignKey.association: '_CAReturnReason'
      rlgrd       as CAReturnReason,
      @ObjectModel.foreignKey.association: '_CAPostingReason'
      abgrd       as CAPostingReason,
      xeibh       as CASeparateDocIsCreatedInGL,
      //xbwer

      awtyp       as ReferenceDocumentType,
      awkey       as OriginalReferenceDocument,
      stbel       as CAReversedDocumentNumber,
      //stmet

      @ObjectModel.foreignKey.association: '_CADocumentClass'
      bltyp       as CADocumentClass,
      @ObjectModel.foreignKey.association: '_CAClearingInformation'
      aginf       as CAClearingInformation,
      @ObjectModel.foreignKey.association: '_CATaxCompanyCode'
      stbuk       as CATaxCompanyCode,
      storb       as CAReversalDocumentNumber,
      @ObjectModel.foreignKey.association: '_CADocumentSupplement'
      appdx       as CADocumentSupplements,
      awsys       as LogicalSystem,
      @ObjectModel.foreignKey.association: '_CADocumentVersion'
      versn       as CADocumentVersion,
      @ObjectModel.foreignKey.association: '_CAWorkflowCheckReason'
      c4eye       as CAWorkflowCheckReason,
      @ObjectModel.foreignKey.association: '_CAWorkflowCheckProcess'
      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,
      vatdate     as TaxReportingDate,
      fulfilldate as TaxFulfillmentDate,
      @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,
      @ObjectModel.foreignKey.association: '_CAInvcgRefPostgDocType'
      cadoctype   as CAInvcgRefPostingDocType,
      @ObjectModel.foreignKey.association: '_CAInvcgDocument'
      invdocno    as CAInvoicingDocument,
      glo_ref1_hd as CA1stCountrySpecificReference,
      glo_dat1_hd as CAFirstCountrySpecificDate,
      opord       as CAClassificationKey,

      /* associations */
      _AccountingDocType,
      _CAApplicationArea,
      _CAClearingInformation,
      _CADocTransactionClass,
      _CADocumentClass,
      _CADocumentOriginCode,
      _CADocumentSupplement,
      _CADocumentType,
      _CADocumentVersion,
      _CAInvcgDocument,
      _CAInvcgRefPostgDocType,
      _CAPostingReason,
      _CAReturnReason,
      _CARequestedSpecialPeriod,
      _CATaxCompanyCode,
      _CATaxSupplementStorageLoc,
      _CAWorkflowCheckProcess,
      _CAWorkflowCheckReason,
      _CreatedByUser,
      _TransactionCurrency
}