P_LstMiFIAcctgDocItmByDocument

DDL: P_LSTMIFIACCTGDOCITMBYDOCUMENT SQL: PLSTMIRTACCDOC Type: view COMPOSITE

P_LstMiFIAcctgDocItmByDocument is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 6 fields with key fields FiscalYear, CompanyCode, AccountingDocument.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem I_OperationalAcctgDocItem from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PLSTMIRTACCDOC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY FiscalYear FiscalYear
KEY CompanyCode CompanyCode
KEY AccountingDocument AccountingDocument
BillingDocument BillingDocument
Min_ClearingDocument
Max_ClearingDocument
@AbapCatalog.sqlViewName: 'PLSTMIRTACCDOC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Last Mile FI Accounting Item by Document'

@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_LstMiFIAcctgDocItmByDocument
  as select from I_OperationalAcctgDocItem
  
{
  key FiscalYear,
  key CompanyCode,
  key AccountingDocument,
  BillingDocument,
      min (ClearingAccountingDocument) as Min_ClearingDocument,
      max (ClearingAccountingDocument) as Max_ClearingDocument
}
where
      FinancialAccountType = #farp_koart.'D'
//  and DebitCreditCode      = #shkzg.'S'

group by
  FiscalYear,
  CompanyCode,
  AccountingDocument,
  BillingDocument