I_CFinAAPurchasingPosting

DDL: I_CFINAAPURCHASINGPOSTING Type: view_entity COMPOSITE

CFinAA Purchasing Posting

I_CFinAAPurchasingPosting is a Composite CDS View that provides data about "CFinAA Purchasing Posting" in SAP S/4HANA. It reads from 1 data source (I_JournalEntry) and exposes 28 fields with key fields CompanyCode, AccountingDocument, FiscalYear, ReferenceDocumentType, OriginalReferenceDocument. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_JournalEntry I_JournalEntry inner

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_ReferenceDocumentTypeText _ReferenceDocumentTypeText $projection.ReferenceDocumentType = _ReferenceDocumentTypeText.ReferenceDocumentType and _ReferenceDocumentTypeText.Language = $session.system_language
[0..1] I_LedgerGroupText _LedgerGroupText $projection.LedgerGroup = _LedgerGroupText.LedgerGroup and _LedgerGroupText.Language = $session.system_language
[0..1] I_AccountingDocumentTypeText _AccountingDocumentTypeText $projection.AccountingDocumentType = _AccountingDocumentTypeText.AccountingDocumentType and _AccountingDocumentTypeText.Language = $session.system_language

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label CFinAA Purchasing Posting view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode
KEY AccountingDocument I_JournalEntry AccountingDocument
KEY FiscalYear I_JournalEntry FiscalYear
KEY ReferenceDocumentType
KEY OriginalReferenceDocument
KEY ReferenceDocumentLogicalSystem I_JournalEntry ReferenceDocumentLogicalSystem
KEY PurchasingDocument I_CFinAAAcqnIntegrationPosting PurchasingDocument
KEY PurchasingDocumentItem I_CFinAAAcqnIntegrationPosting PurchasingDocumentItem
AccountingDocumentType I_JournalEntry AccountingDocumentType
LedgerGroup I_JournalEntry LedgerGroup
AccountingDocumentClass I_JournalEntry AccountingDocumentClass
ReverseDocument I_JournalEntry ReverseDocument
ReverseDocumentFiscalYear I_JournalEntry ReverseDocumentFiscalYear
IsReversed I_JournalEntry IsReversed
IsReversal I_JournalEntry IsReversal
SenderLogicalSystem I_JournalEntry SenderLogicalSystem
SenderCompanyCode I_JournalEntry SenderCompanyCode
SenderAccountingDocument I_JournalEntry SenderAccountingDocument
SenderFiscalYear I_JournalEntry SenderFiscalYear
MasterFixedAsset I_CFinAAAcqnIntegrationPosting MasterFixedAsset
FixedAsset I_CFinAAAcqnIntegrationPosting FixedAsset
FiscalPeriod I_CFinAAAcqnIntegrationPosting FiscalPeriod
DocumentDate I_CFinAAAcqnIntegrationPosting DocumentDate
PostingDate I_CFinAAAcqnIntegrationPosting PostingDate
_CompanyCode _CompanyCode
_ReferenceDocumentTypeText _ReferenceDocumentTypeText
_LedgerGroupText _LedgerGroupText
_AccountingDocumentTypeText _AccountingDocumentTypeText
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'CFinAA Purchasing Posting'
@Metadata.ignorePropagatedAnnotations: true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType:{
  serviceQuality: #C,
  sizeCategory: #XXL,
  dataClass: #TRANSACTIONAL
}
define view entity I_CFinAAPurchasingPosting
  as select distinct from I_CFinAAAcqnIntegrationPosting
    inner join            I_JournalEntry on  I_JournalEntry.ReferenceDocumentType          = I_CFinAAAcqnIntegrationPosting.ReferenceDocumentType
                                         and I_JournalEntry.OriginalReferenceDocument      = I_CFinAAAcqnIntegrationPosting.OriginalReferenceDocument
                                         and I_JournalEntry.ReferenceDocumentLogicalSystem = I_CFinAAAcqnIntegrationPosting.ReferenceDocumentLogicalSystem

  association [0..1] to I_CompanyCode                as _CompanyCode                on  $projection.CompanyCode = _CompanyCode.CompanyCode
  association [0..1] to I_ReferenceDocumentTypeText  as _ReferenceDocumentTypeText  on  $projection.ReferenceDocumentType   = _ReferenceDocumentTypeText.ReferenceDocumentType
                                                                                    and _ReferenceDocumentTypeText.Language = $session.system_language
  association [0..1] to I_LedgerGroupText            as _LedgerGroupText            on  $projection.LedgerGroup   = _LedgerGroupText.LedgerGroup
                                                                                    and _LedgerGroupText.Language = $session.system_language
  association [0..1] to I_AccountingDocumentTypeText as _AccountingDocumentTypeText on  $projection.AccountingDocumentType   = _AccountingDocumentTypeText.AccountingDocumentType
                                                                                    and _AccountingDocumentTypeText.Language = $session.system_language
{

  key cast( I_JournalEntry.CompanyCode as fis_bukrs preserving type )           as CompanyCode,
  key I_JournalEntry.AccountingDocument,
  key I_JournalEntry.FiscalYear,
  key cast( I_JournalEntry.ReferenceDocumentType as awtyp preserving type )     as ReferenceDocumentType,
  key cast( I_JournalEntry.OriginalReferenceDocument as awkey preserving type ) as OriginalReferenceDocument,
  key I_JournalEntry.ReferenceDocumentLogicalSystem,
  key I_CFinAAAcqnIntegrationPosting.PurchasingDocument,
  key I_CFinAAAcqnIntegrationPosting.PurchasingDocumentItem,
      /* start suppress warning shlporigin_not_inherited */
      I_JournalEntry.AccountingDocumentType,
      I_JournalEntry.LedgerGroup,
      /* end suppress warning shlporigin_not_inherited */
      I_JournalEntry.AccountingDocumentClass,
      I_JournalEntry.ReverseDocument,
      I_JournalEntry.ReverseDocumentFiscalYear,
      I_JournalEntry.IsReversed,
      I_JournalEntry.IsReversal,
      I_JournalEntry.SenderLogicalSystem,
      I_JournalEntry.SenderCompanyCode,
      I_JournalEntry.SenderAccountingDocument,
      I_JournalEntry.SenderFiscalYear,
      I_CFinAAAcqnIntegrationPosting.MasterFixedAsset,
      I_CFinAAAcqnIntegrationPosting.FixedAsset,
      I_CFinAAAcqnIntegrationPosting.FiscalPeriod,
      I_CFinAAAcqnIntegrationPosting.DocumentDate,
      I_CFinAAAcqnIntegrationPosting.PostingDate,

      _CompanyCode,
      _ReferenceDocumentTypeText,
      _LedgerGroupText,
      _AccountingDocumentTypeText
}
where
     I_JournalEntry.JournalEntryReprocessingStatus = ''
  or I_JournalEntry.JournalEntryReprocessingStatus = '3'