P_RblsItmForKeyDtePerd1_WSJ

DDL: P_RBLSITMFORKEYDTEPERD1_WSJ Type: view_entity COMPOSITE Package: FINS_FIS_APAR_APPS

Cash Collection Tracker 1

P_RblsItmForKeyDtePerd1_WSJ is a Composite CDS View that provides data about "Cash Collection Tracker 1" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 30 fields with key fields CompanyCode, AccountingDocument, AccountingDocumentItem, FiscalYear. Part of development package FINS_FIS_APAR_APPS.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem I_OperationalAcctgDocItem from

Annotations (3)

NameValueLevelField
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode
KEY AccountingDocument AccountingDocument
KEY AccountingDocumentItem AccountingDocumentItem
KEY FiscalYear FiscalYear
InvoiceReference InvoiceReference
InvoiceItemReference InvoiceItemReference
InvoiceReferenceFiscalYear InvoiceReferenceFiscalYear
ClearingDate ClearingDate
PostingDate PostingDate
DocumentDate DocumentDate
FinancialAccountType FinancialAccountType
DebitCreditCode DebitCreditCode
Customer Customer
FollowOnDocumentType FollowOnDocumentType
NetDueDate NetDueDate
SpecialGLCode SpecialGLCode
GLAccount GLAccount
DisplayCurrency CompanyCodeCurrency
CompanyCodeCurrency CompanyCodeCurrency
FunctionalCurrency FunctionalCurrency
TransactionCurrency TransactionCurrency
OpenDueAmountInDisplayCrcy AmountInCompanyCodeCurrency
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency
AccountingDocumentCategory AccountingDocumentCategory
AmountInFunctionalCurrency AmountInFunctionalCurrency
AmountInTransactionCurrency AmountInTransactionCurrency
PostingKey PostingKey
IsUsedInPaymentTransaction IsUsedInPaymentTransaction
BusinessArea BusinessArea
FiscalPeriod FiscalPeriod
@VDM.viewType: #COMPOSITE
@VDM.private:true
@AccessControl.authorizationCheck: #NOT_REQUIRED

define view entity  P_RblsItmForKeyDtePerd1_WSJ
  as select from I_OperationalAcctgDocItem
{
  key CompanyCode,
  key AccountingDocument,
  key AccountingDocumentItem,
  key FiscalYear,
      InvoiceReference,
      InvoiceItemReference,
      InvoiceReferenceFiscalYear,
      ClearingDate,
      PostingDate,
      DocumentDate,
      FinancialAccountType,
      DebitCreditCode,
      Customer,
      FollowOnDocumentType,
      NetDueDate,
      SpecialGLCode,
      GLAccount,
      CompanyCodeCurrency         as DisplayCurrency,
      CompanyCodeCurrency,
      FunctionalCurrency,
      TransactionCurrency,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      AmountInCompanyCodeCurrency as OpenDueAmountInDisplayCrcy,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      AmountInCompanyCodeCurrency,
      AccountingDocumentCategory,
      AmountInFunctionalCurrency,
      AmountInTransactionCurrency,
      PostingKey,
      IsUsedInPaymentTransaction,
      BusinessArea,
      FiscalPeriod
}

where
  // receivables

       FinancialAccountType       =  'D'
  and  AccountingDocumentCategory =  ''
  and  IsUsedInPaymentTransaction =  ' '
  and  FollowOnDocumentType       <> ''
  and  FollowOnDocumentType       <> 'V'
  and  FollowOnDocumentType       <> 'P'
  and  InvoiceReference           <> 'V' // V is a valid invoice reference value for credit memos via e.g. transaction FB75 (see documentation of DTEL REBZG)

  and(
       InvoiceReference           <> ''
    or InvoiceItemReference       <> '000' // it is required to specify an invoice item reference (also for join) in contrast to documentation of DTEL REBZZ

    or InvoiceReferenceFiscalYear <> '0000'
  )