I_CAInvcgDocHeader

DDL: I_CAINVCGDOCHEADER Type: view_entity BASIC Package: FKKINV_VDM_INV

Fakturierungsbelegkopf

I_CAInvcgDocHeader is a Basic CDS View that provides data about "Fakturierungsbelegkopf" in SAP S/4HANA. It reads from 1 data source (dfkkinvdoc_h) and exposes 97 fields with key field CAInvoicingDocument. It has 31 associations to related views. Part of development package FKKINV_VDM_INV.

Data Sources (1)

SourceAliasJoin Type
dfkkinvdoc_h dfkkinvdoc_h from

Associations (31)

CardinalityTargetAliasCondition
[0..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[0..1] I_ContractAccountHeader _ContractAccountHeader $projection.ContractAccount = _ContractAccountHeader.ContractAccount
[0..1] I_ContractAccountPartner _ContractAccountPartner $projection.BusinessPartner = _ContractAccountPartner.BusinessPartner and $projection.ContractAccount = _ContractAccountPartner.ContractAccount
[0..1] I_ContractAccountHeader _AltvContractAcctForCollvBills $projection.AltvContractAcctForCollvBills = _AltvContractAcctForCollvBills.ContractAccount
[1..1] I_CAInvcgDocHeader _CAInvcgDocHeader $projection.CAInvoicingDocument = _CAInvcgDocHeader.CAInvoicingDocument
[0..1] I_CAInvcgDocHeader _CAInvcgReversalDocument $projection.CAInvcgReversalDocument = _CAInvcgReversalDocument.CAInvoicingDocument
[0..1] I_CAInvcgDocHeader _CAInvcgReversedDocument $projection.CAInvcgReversedDocument = _CAInvcgReversedDocument.CAInvoicingDocument
[0..1] I_Currency _TransactionCurrency $projection.TransactionCurrency = _TransactionCurrency.Currency
[0..1] I_CAInvcgPreliminaryCategory _CAInvcgPreliminaryCategory $projection.CAInvcgPreliminaryCategory = _CAInvcgPreliminaryCategory.CAInvcgPreliminaryCategory
[0..1] I_CAPreliminaryInvcgDocStatus _CAPreliminaryInvcgDocStatus $projection.CAPreliminaryInvcgDocStatus = _CAPreliminaryInvcgDocStatus.CAPreliminaryInvcgDocStatus
[0..1] I_CAInvcgDocReversalReason _CAInvcgDocReversalReason $projection.CAInvcgDocumentReversalReason = _CAInvcgDocReversalReason.CAInvcgDocumentReversalReason
[0..1] I_CAInvcgDocLockedforPrint _CAInvcgDocLockedforPrint $projection.CAInvcgDocIsLockedForPrinting = _CAInvcgDocLockedforPrint.CAInvcgDocIsLockedForPrinting
[0..1] I_CAInvcgProcess _CAInvcgProcess $projection.CAInvcgProcess = _CAInvcgProcess.CAInvcgProcess and $projection.CAApplicationArea = _CAInvcgProcess.CAApplicationArea
[0..1] I_CAInvcgCategory _CAInvcgCategory $projection.CAInvcgCategory = _CAInvcgCategory.CAInvcgCategory
[0..1] I_CAInvcgType _CAInvcgType $projection.CAInvcgType = _CAInvcgType.CAInvcgType and $projection.CAApplicationArea = _CAInvcgType.CAApplicationArea
[0..1] I_CAInvcgDocumentType _CAInvcgDocumentType $projection.CAInvcgDocumentType = _CAInvcgDocumentType.CAInvcgDocumentType and $projection.CAApplicationArea = _CAInvcgDocumentType.CAApplicationArea and _CAInvcgDocumentType.NameNumberRangeObject = 'FKKINVDOC'
[0..1] I_CASubApplication _CASubApplication $projection.CASubApplication = _CASubApplication.CASubApplication
[0..1] I_CAInvcgPeriodCat _CAInvcgPeriodCat $projection.CAInvcgDocPeriodCategory = _CAInvcgPeriodCat.CAInvcgPeriodCategory
[0..1] I_CAInvcgTargetProc _CAInvcgTargetProc $projection.CAInvcgTargetProcess = _CAInvcgTargetProc.CAInvcgTargetProcess
[0..1] I_CAApplicationArea _CAApplicationArea $projection.CAApplicationArea = _CAApplicationArea.CAApplicationArea
[0..1] I_CAInvcgCorrectionCat _CAInvcgCorrectionCat $projection.CAInvcgCorrectionCategory = _CAInvcgCorrectionCat.CAInvcgCorrectionCategory
[0..1] I_CAInvcgDocChrgDiscItems _CAInvcgDocChrgDiscItems $projection.CAInvcgDocHasChargeOrDiscItems = _CAInvcgDocChrgDiscItems.CAInvcgDocHasChargeOrDiscItems
[0..1] I_CAInvcgDocCreationMode _CAInvcgDocCreationMode $projection.CAInvcgDocCreationMode = _CAInvcgDocCreationMode.CAInvcgDocCreationMode
[0..1] I_CAInvcgMasterDataType _CAInvcgMasterDataType $projection.CAInvcgMasterDataType = _CAInvcgMasterDataType.CAInvcgMasterDataType
[0..1] I_CAInvcgDocTechDocType _CAInvcgDocTechDocType $projection.CAInvcgTechnicalDocumentType = _CAInvcgDocTechDocType.CAInvcgTechnicalDocumentType
[0..1] I_CAInvcgDocPartOfList _CAInvcgDocPartOfList $projection.CAInvcgDocIsPartOfList = _CAInvcgDocPartOfList.CAInvcgDocIsPartOfList
[0..1] I_CAInvcgBolloTaxPostStatus _CAInvcgBolloTaxPostStatus $projection.CAInvcgBolloTaxPostStatus = _CAInvcgBolloTaxPostStatus.CAInvcgBolloTaxPostStatus
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_CAReconciliationKey _CAReconciliationKey $projection.CAReconciliationKey = _CAReconciliationKey.CAReconciliationKey
[0..1] I_CAProviderContractHeader _ProviderContract $projection.CASubApplication = 'P' and $projection.CAContract = _ProviderContract.CAProviderContract
[0..1] E_CAInvcgDocHeader _Extension $projection.CAInvoicingDocument = _Extension.CAInvoicingDocument

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
Analytics.dataExtraction.enabled true view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.modelingPattern #NONE view
ObjectModel.representativeKey CAInvoicingDocument view
ObjectModel.sapObjectNodeType.name ContrAcctgInvoicingDocument view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Fakturierungsbelegkopf view

Fields (97)

KeyFieldSource TableSource FieldDescription
KEY CAInvoicingDocument invdocno
CAApplicationArea applk
CAInvcgProcess inv_process
CAInvcgType inv_type
CAInvcgCategory inv_category
CAInvcgTechnicalDocumentType
CAInvcgTargetProcess targprocess
BusinessPartner
ContractAccount vkont
CAInvcgMasterDataType mdcat
AltvContractAcctForCollvBills abwvk
CASubstituteDocumentNumber
CreatedByUser crname
CAInvcgCreationDate crdate
CAInvcgCreationTime crtime
CAInvcgDocCreationMode crmode
CAInvcgNmbrOfInvoicingDocItems recnum
CABllbleItmNumber
CAInvcgDocInternalNumber invrunno
CAReconciliationKey fikey
CAPostingDate budat
DocumentDate bldat
CANetDueDate faedn
CACashDiscountDueDate faeds
CACashDiscountRate sktpz
TransactionCurrency total_curr
CAAmountInTransactionCurrency total_amt
CAInvcgIsDocumentPosted invoiced
CAInvcgIsDocumentSimulated simulated
CAInvcgIsDocumentPreliminary
CAInvcgPreliminaryCategory
CAPrelimInvcgDocValue prlinv_cnt
CAPreliminaryInvcgDocStatus
CAInvcgDocumentReversalReason revreason
CAInvcgReversalDocument
CAInvcgReversedDocument
CAInvcgCorrectionCategory
CAInvcgDocumentPrintDate printdate
CAInvcgDocIsLockedForPrinting printlock
CAPaymentFormNumber nrzas
CAInvcgDocFormID form_id
ApplicationForm formkey
FormIDForAttachedPaymentMedium zlsch Formular ID für Zahlungsträger
CAInvcgDocumentType doctype
CAKeyIdentification exkid
CAOfficialDocumentNumber
CAPartnerSettlementRule ptsrl
CompanyCode bukrs
BusinessPlace bupla
CAContract vtref
CASubApplication subap
CAInvcgBaseDate invoice_basedate
CAInvcgDocPeriodCategory invpercat
CAInvcgDocPeriodDate invperiod
CAInvcgDocPeriodStartDate invperiod_from
CADunningCounter mazae
CAInvcgDocHasChargeOrDiscItems
CAInvcgDocHasControlDoc
CAInvcgBolloTaxPostStatus bollotax
CAInvcgDocIsPartOfList xsubinv Subfakturierngsbeleg
CAInvcgDocHasObjectRelation xinvdoc_x Objektrelationen vorhanden
CAInvcgDocHasSEPAPreNotif sepa_prenot
CAInvcgDocExternal
CAInvcgAdjustmentDocument adjustmentdoc
CAInvcgAdjustedDocument
NameNumberRangeObject
CAClassificationKey dfkkinvdoc_h opord
_BusinessPartner _BusinessPartner
_ContractAccountHeader _ContractAccountHeader
_ContractAccountPartner _ContractAccountPartner
_AltvContractAcctForCollvBills _AltvContractAcctForCollvBills
_CAReconciliationKey _CAReconciliationKey
_TransactionCurrency _TransactionCurrency
_CAInvcgPreliminaryCategory _CAInvcgPreliminaryCategory
_CAPreliminaryInvcgDocStatus _CAPreliminaryInvcgDocStatus
_CAInvcgProcess _CAInvcgProcess
_CAInvcgType _CAInvcgType
_CAInvcgCategory _CAInvcgCategory
_CAInvcgDocTechDocType _CAInvcgDocTechDocType
_CAInvcgTargetProc _CAInvcgTargetProc
_CAInvcgMasterDataType _CAInvcgMasterDataType
_CAInvcgDocCreationMode _CAInvcgDocCreationMode
_CAInvcgDocReversalReason _CAInvcgDocReversalReason
_CAInvcgReversalDocument _CAInvcgReversalDocument
_CAInvcgReversedDocument _CAInvcgReversedDocument
_CAInvcgCorrectionCat _CAInvcgCorrectionCat
_CAInvcgDocumentType _CAInvcgDocumentType
_CAInvcgDocLockedforPrint _CAInvcgDocLockedforPrint
_CAInvcgPeriodCat _CAInvcgPeriodCat
_CAInvcgDocChrgDiscItems _CAInvcgDocChrgDiscItems
_CAInvcgBolloTaxPostStatus _CAInvcgBolloTaxPostStatus
_CAInvcgDocPartOfList _CAInvcgDocPartOfList
_CompanyCode _CompanyCode
_CASubApplication _CASubApplication
_ProviderContract _ProviderContract
_CAInvcgDocHeader _CAInvcgDocHeader
_CAApplicationArea _CAApplicationArea
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #REQUIRED
@Analytics: {
  dataExtraction: {
    enabled: true,
    delta.changeDataCapture: {
      mapping: [ {
          table: 'dfkkinvdoc_h',
          role: #MAIN,
          viewElement: ['CAInvoicingDocument'],
          tableElement: ['invdocno']
      } ]
    }
  }
}
@VDM.viewType: #BASIC
@ObjectModel: {
  usageType: {
    serviceQuality: #B,
    sizeCategory: #XL,
    dataClass: #TRANSACTIONAL
  },
  modelingPattern: #NONE,
  representativeKey: 'CAInvoicingDocument',
  sapObjectNodeType.name: 'ContrAcctgInvoicingDocument',
  supportedCapabilities: [
    #SQL_DATA_SOURCE,
    #CDS_MODELING_DATA_SOURCE,
    #CDS_MODELING_ASSOCIATION_TARGET,
    #EXTRACTION_DATA_SOURCE
  ]
}
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Fakturierungsbelegkopf'
define view entity I_CAInvcgDocHeader
  as select from dfkkinvdoc_h

  association [0..1] to I_BusinessPartner             as _BusinessPartner               on  $projection.BusinessPartner = _BusinessPartner.BusinessPartner
  association [0..1] to I_ContractAccountHeader       as _ContractAccountHeader         on  $projection.ContractAccount = _ContractAccountHeader.ContractAccount
  association [0..1] to I_ContractAccountPartner      as _ContractAccountPartner        on  $projection.BusinessPartner = _ContractAccountPartner.BusinessPartner
                                                                                        and $projection.ContractAccount = _ContractAccountPartner.ContractAccount
  association [0..1] to I_ContractAccountHeader       as _AltvContractAcctForCollvBills on  $projection.AltvContractAcctForCollvBills = _AltvContractAcctForCollvBills.ContractAccount

  association [1..1] to I_CAInvcgDocHeader            as _CAInvcgDocHeader              on  $projection.CAInvoicingDocument = _CAInvcgDocHeader.CAInvoicingDocument
  association [0..1] to I_CAInvcgDocHeader            as _CAInvcgReversalDocument       on  $projection.CAInvcgReversalDocument = _CAInvcgReversalDocument.CAInvoicingDocument
  association [0..1] to I_CAInvcgDocHeader            as _CAInvcgReversedDocument       on  $projection.CAInvcgReversedDocument = _CAInvcgReversedDocument.CAInvoicingDocument

  association [0..1] to I_Currency                    as _TransactionCurrency           on  $projection.TransactionCurrency = _TransactionCurrency.Currency
  association [0..1] to I_CAInvcgPreliminaryCategory  as _CAInvcgPreliminaryCategory    on  $projection.CAInvcgPreliminaryCategory = _CAInvcgPreliminaryCategory.CAInvcgPreliminaryCategory
  association [0..1] to I_CAPreliminaryInvcgDocStatus as _CAPreliminaryInvcgDocStatus   on  $projection.CAPreliminaryInvcgDocStatus = _CAPreliminaryInvcgDocStatus.CAPreliminaryInvcgDocStatus

  association [0..1] to I_CAInvcgDocReversalReason    as _CAInvcgDocReversalReason      on  $projection.CAInvcgDocumentReversalReason = _CAInvcgDocReversalReason.CAInvcgDocumentReversalReason
  association [0..1] to I_CAInvcgDocLockedforPrint    as _CAInvcgDocLockedforPrint      on  $projection.CAInvcgDocIsLockedForPrinting = _CAInvcgDocLockedforPrint.CAInvcgDocIsLockedForPrinting
  association [0..1] to I_CAInvcgProcess              as _CAInvcgProcess                on  $projection.CAInvcgProcess    = _CAInvcgProcess.CAInvcgProcess
                                                                                        and $projection.CAApplicationArea = _CAInvcgProcess.CAApplicationArea
  association [0..1] to I_CAInvcgCategory             as _CAInvcgCategory               on  $projection.CAInvcgCategory = _CAInvcgCategory.CAInvcgCategory
  association [0..1] to I_CAInvcgType                 as _CAInvcgType                   on  $projection.CAInvcgType       = _CAInvcgType.CAInvcgType
                                                                                        and $projection.CAApplicationArea = _CAInvcgType.CAApplicationArea
  association [0..1] to I_CAInvcgDocumentType         as _CAInvcgDocumentType           on  $projection.CAInvcgDocumentType            = _CAInvcgDocumentType.CAInvcgDocumentType
                                                                                        and $projection.CAApplicationArea              = _CAInvcgDocumentType.CAApplicationArea
                                                                                        and _CAInvcgDocumentType.NameNumberRangeObject = 'FKKINVDOC'
  association [0..1] to I_CASubApplication            as _CASubApplication              on  $projection.CASubApplication = _CASubApplication.CASubApplication
  association [0..1] to I_CAInvcgPeriodCat            as _CAInvcgPeriodCat              on  $projection.CAInvcgDocPeriodCategory = _CAInvcgPeriodCat.CAInvcgPeriodCategory
  association [0..1] to I_CAInvcgTargetProc           as _CAInvcgTargetProc             on  $projection.CAInvcgTargetProcess = _CAInvcgTargetProc.CAInvcgTargetProcess
  association [0..1] to I_CAApplicationArea           as _CAApplicationArea             on  $projection.CAApplicationArea = _CAApplicationArea.CAApplicationArea
  association [0..1] to I_CAInvcgCorrectionCat        as _CAInvcgCorrectionCat          on  $projection.CAInvcgCorrectionCategory = _CAInvcgCorrectionCat.CAInvcgCorrectionCategory
  association [0..1] to I_CAInvcgDocChrgDiscItems     as _CAInvcgDocChrgDiscItems       on  $projection.CAInvcgDocHasChargeOrDiscItems = _CAInvcgDocChrgDiscItems.CAInvcgDocHasChargeOrDiscItems
  association [0..1] to I_CAInvcgDocCreationMode      as _CAInvcgDocCreationMode        on  $projection.CAInvcgDocCreationMode = _CAInvcgDocCreationMode.CAInvcgDocCreationMode
  association [0..1] to I_CAInvcgMasterDataType       as _CAInvcgMasterDataType         on  $projection.CAInvcgMasterDataType = _CAInvcgMasterDataType.CAInvcgMasterDataType
  association [0..1] to I_CAInvcgDocTechDocType       as _CAInvcgDocTechDocType         on  $projection.CAInvcgTechnicalDocumentType = _CAInvcgDocTechDocType.CAInvcgTechnicalDocumentType
  association [0..1] to I_CAInvcgDocPartOfList        as _CAInvcgDocPartOfList          on  $projection.CAInvcgDocIsPartOfList = _CAInvcgDocPartOfList.CAInvcgDocIsPartOfList
  association [0..1] to I_CAInvcgBolloTaxPostStatus   as _CAInvcgBolloTaxPostStatus     on  $projection.CAInvcgBolloTaxPostStatus = _CAInvcgBolloTaxPostStatus.CAInvcgBolloTaxPostStatus
  association [0..1] to I_CompanyCode                 as _CompanyCode                   on  $projection.CompanyCode = _CompanyCode.CompanyCode
  association [0..1] to I_CAReconciliationKey         as _CAReconciliationKey           on  $projection.CAReconciliationKey = _CAReconciliationKey.CAReconciliationKey
  association [0..1] to I_CAProviderContractHeader    as _ProviderContract              on  $projection.CASubApplication = 'P'
                                                                                        and $projection.CAContract       = _ProviderContract.CAProviderContract

  // extension

  association [0..1] to E_CAInvcgDocHeader            as _Extension                     on  $projection.CAInvoicingDocument = _Extension.CAInvoicingDocument

{
  key invdocno                                                      as CAInvoicingDocument,

      @ObjectModel.foreignKey.association: '_CAApplicationArea'
      applk                                                         as CAApplicationArea,
      @ObjectModel.foreignKey.association: '_CAInvcgProcess'
      inv_process                                                   as CAInvcgProcess,
      @ObjectModel.foreignKey.association: '_CAInvcgType'
      inv_type                                                      as CAInvcgType,
      @ObjectModel.foreignKey.association: '_CAInvcgCategory'
      inv_category                                                  as CAInvcgCategory,
      @ObjectModel.foreignKey.association: '_CAInvcgDocTechDocType'
      cast(techdoctype as techdoctype_gfn_kk preserving type)       as CAInvcgTechnicalDocumentType,
      @ObjectModel.foreignKey.association: '_CAInvcgTargetProc'
      targprocess                                                   as CAInvcgTargetProcess,
      @ObjectModel.foreignKey.association: '_BusinessPartner'
      cast(gpart as bu_partner preserving type)                     as BusinessPartner,
      @ObjectModel.foreignKey.association: '_ContractAccountHeader'
      vkont                                                         as ContractAccount,
      @ObjectModel.foreignKey.association: '_CAInvcgMasterDataType'
      mdcat                                                         as CAInvcgMasterDataType,
      @ObjectModel.foreignKey.association: '_AltvContractAcctForCollvBills'
      abwvk                                                         as AltvContractAcctForCollvBills,
      cast(abwbl as abwbl_gfn_kk preserving type )                  as CASubstituteDocumentNumber,
      @Semantics.user.createdBy: true
      crname                                                        as CreatedByUser,
      @Semantics.systemDate.createdAt: true
      crdate                                                        as CAInvcgCreationDate,
      @Semantics.systemTime.createdAt: true
      crtime                                                        as CAInvcgCreationTime,
      @ObjectModel.foreignKey.association: '_CAInvcgDocCreationMode'
      crmode                                                        as CAInvcgDocCreationMode,
      recnum                                                        as CAInvcgNmbrOfInvoicingDocItems,
      cast(bit_number as bit_number_gfn_kk preserving type)         as CABllbleItmNumber,
      invrunno                                                      as CAInvcgDocInternalNumber,
      @ObjectModel.foreignKey.association: '_CAReconciliationKey'
      fikey                                                         as CAReconciliationKey,
      budat                                                         as CAPostingDate,
      bldat                                                         as DocumentDate,
      faedn                                                         as CANetDueDate,
      faeds                                                         as CACashDiscountDueDate,
      sktpz                                                         as CACashDiscountRate,
      @ObjectModel.foreignKey.association: '_TransactionCurrency'
      total_curr                                                    as TransactionCurrency,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      total_amt                                                     as CAAmountInTransactionCurrency,
      invoiced                                                      as CAInvcgIsDocumentPosted,
      simulated                                                     as CAInvcgIsDocumentSimulated,
      cast(preliminary as inv_preliminary_gfn_kk preserving type)   as CAInvcgIsDocumentPreliminary,
      @ObjectModel.foreignKey.association: '_CAInvcgPreliminaryCategory'
      cast(prlinv_cat as prlinv_cat_gfn_kk preserving type)         as CAInvcgPreliminaryCategory,
      prlinv_cnt                                                    as CAPrelimInvcgDocValue,
      @ObjectModel.foreignKey.association: '_CAPreliminaryInvcgDocStatus'
      cast(prlinv_status as prlinv_status_gfn_kk preserving type)   as CAPreliminaryInvcgDocStatus,
      @ObjectModel.foreignKey.association: '_CAInvcgDocReversalReason'
      revreason                                                     as CAInvcgDocumentReversalReason,
      @ObjectModel.foreignKey.association: '_CAInvcgReversalDocument'
      cast(reversaldoc as inv_reversaldoc_gfn_kk preserving type)   as CAInvcgReversalDocument,
      @ObjectModel.foreignKey.association: '_CAInvcgReversedDocument'
      cast(reverseddoc as inv_reverseddoc_gfn_kk preserving type)   as CAInvcgReversedDocument,
      @ObjectModel.foreignKey.association: '_CAInvcgCorrectionCat'
      cast(corrcat as corrcat_gfn_kk preserving type)               as CAInvcgCorrectionCategory,
      printdate                                                     as CAInvcgDocumentPrintDate,
      @ObjectModel.foreignKey.association: '_CAInvcgDocLockedforPrint'
      printlock                                                     as CAInvcgDocIsLockedForPrinting,
      -- fkey in upper view (due to complexity)
      pymet                                                         as CAPaymentMethod,
      nrzas                                                         as CAPaymentFormNumber,
      form_id                                                       as CAInvcgDocFormID,
      formkey                                                       as ApplicationForm,
      @EndUserText.label: 'Formular ID für Zahlungsträger'
      zlsch                                                         as FormIDForAttachedPaymentMedium,
      @ObjectModel.foreignKey.association: '_CAInvcgDocumentType'
      doctype                                                       as CAInvcgDocumentType,
      exkid                                                         as CAKeyIdentification,
      cast(exbel as exbel_no_conv_kk)                               as CAOfficialDocumentNumber,
      ptsrl                                                         as CAPartnerSettlementRule,
      @ObjectModel.foreignKey.association: '_CompanyCode'
      bukrs                                                         as CompanyCode,
      bupla                                                         as BusinessPlace,
      vtref                                                         as CAContract,
      @ObjectModel.foreignKey.association: '_CASubApplication'
      subap                                                         as CASubApplication,
      invoice_basedate                                              as CAInvcgBaseDate,
      @ObjectModel.foreignKey.association: '_CAInvcgPeriodCat'
      invpercat                                                     as CAInvcgDocPeriodCategory,
      invperiod                                                     as CAInvcgDocPeriodDate,
      invperiod_from                                                as CAInvcgDocPeriodStartDate,
      mazae                                                         as CADunningCounter,
      cast(chgdoc_ex as chgdoc_ex_gfn_kk preserving type)           as CAInvcgDocHasChargeOrDiscItems,
      cast(cfcsimulated as inv_cfcsimulated_gfn_kk preserving type) as CAInvcgDocHasControlDoc,
      @ObjectModel.foreignKey.association: '_CAInvcgBolloTaxPostStatus'
      bollotax                                                      as CAInvcgBolloTaxPostStatus,
      @EndUserText.label: 'Subfakturierngsbeleg'
      xsubinv                                                       as CAInvcgDocIsPartOfList,
      @EndUserText.label: 'Objektrelationen vorhanden'
      xinvdoc_x                                                     as CAInvcgDocHasObjectRelation,
      sepa_prenot                                                   as CAInvcgDocHasSEPAPreNotif,
      cast(ext_invdocno as ext_invdocno_gfn_kk preserving type)     as CAInvcgDocExternal,
      adjustmentdoc                                                 as CAInvcgAdjustmentDocument,
      cast(adjusteddoc as adjustedinvdoc_gfn_kk preserving type)    as CAInvcgAdjustedDocument,

      cast('FKKINV' as nrobj)                                       as NameNumberRangeObject,

      // from X_S4C_I_CAInvcgDocItem

      dfkkinvdoc_h.opord                                            as CAClassificationKey,

      // Make association public

      _BusinessPartner,
      _ContractAccountHeader,
      _ContractAccountPartner,
      _AltvContractAcctForCollvBills,
      _CAReconciliationKey,
      _TransactionCurrency,
      _CAInvcgPreliminaryCategory,
      _CAPreliminaryInvcgDocStatus,
      _CAInvcgProcess,
      _CAInvcgType,
      _CAInvcgCategory,
      _CAInvcgDocTechDocType,
      _CAInvcgTargetProc,
      _CAInvcgMasterDataType,
      _CAInvcgDocCreationMode,
      _CAInvcgDocReversalReason,
      _CAInvcgReversalDocument,
      _CAInvcgReversedDocument,
      _CAInvcgCorrectionCat,
      _CAInvcgDocumentType,
      _CAInvcgDocLockedforPrint,
      _CAInvcgPeriodCat,
      _CAInvcgDocChrgDiscItems,
      _CAInvcgBolloTaxPostStatus,
      _CAInvcgDocPartOfList,
      _CompanyCode,
      _CASubApplication,
      _ProviderContract,
      _CAInvcgDocHeader,
      _CAApplicationArea
}