P_LU_SAFTGLOneTimeBP

DDL: P_LU_SAFTGLONETIMEBP SQL: PLUSAFTGLOTBP Type: view COMPOSITE

P_LU_SAFTGLOneTimeBP is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_LU_SAFTJournalEntry, I_LU_SAFTJournalEntry) and exposes 13 fields with key fields CompanyCode, FiscalYear, AccountingDocument, Ledger, FiscalYear.

Data Sources (2)

SourceAliasJoin Type
I_LU_SAFTJournalEntry GLItem from
I_LU_SAFTJournalEntry GLItem union

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PLUSAFTGLOTBP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_LU_SAFTJournalEntry CompanyCode
KEY FiscalYear I_LU_SAFTJournalEntry FiscalYear
KEY AccountingDocument I_LU_SAFTJournalEntry AccountingDocument
KEY Ledger I_LU_SAFTJournalEntry Ledger
_CompanyCode I_LU_SAFTJournalEntry _CompanyCode
_FiscalYear I_LU_SAFTJournalEntry _FiscalYear
CompanyCode
KEY FiscalYear I_LU_SAFTJournalEntry FiscalYear
KEY AccountingDocument I_LU_SAFTJournalEntry AccountingDocument
KEY Ledger I_LU_SAFTJournalEntry Ledger
_CompanyCode I_LU_SAFTJournalEntry _CompanyCode
_FiscalYear I_LU_SAFTJournalEntry _FiscalYear
_Ledger I_LU_SAFTJournalEntry _Ledger
@AbapCatalog.sqlViewName: 'PLUSAFTGLOTBP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #P
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking : #NOT_REQUIRED

// To be deprecated


define view P_LU_SAFTGLOneTimeBP
  as select from I_LU_SAFTJournalEntry as GLItem

{
      @ObjectModel.foreignKey.association: '_CompanyCode'
  key GLItem.CompanyCode,
      @ObjectModel.foreignKey.association: '_FiscalYear'
  key GLItem.FiscalYear,
  key GLItem.AccountingDocument,
      //  key GLItem.AccountingDocumentItem,

  @ObjectModel.foreignKey.association: '_Ledger'      
  key GLItem.Ledger,
      case when _Customer.IsOneTimeAccount is not null
           and  _Customer.IsOneTimeAccount is not initial
           then _Customer.IsOneTimeAccount
           else ''
      end as IsOneTimeAccount,

      GLItem._CompanyCode,
      GLItem._FiscalYear,
      GLItem._Ledger
}

where
  FinancialAccountType = 'D'

union select from I_LU_SAFTJournalEntry as GLItem

{
      @ObjectModel.foreignKey.association: '_CompanyCode'
  key GLItem.CompanyCode,
      @ObjectModel.foreignKey.association: '_FiscalYear'
  key GLItem.FiscalYear,
  key GLItem.AccountingDocument,
      //  key GLItem.AccountingDocumentItem,

      @ObjectModel.foreignKey.association: '_Ledger'
  key GLItem.Ledger,
      case when _Supplier.IsOneTimeAccount is not null
           and  _Supplier.IsOneTimeAccount is not initial
           then _Supplier.IsOneTimeAccount
           else ''
      end as IsOneTimeAccount,

      GLItem._CompanyCode,
      GLItem._FiscalYear,
      GLItem._Ledger
}

where
  FinancialAccountType = 'K'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CUSTOMER",
"I_LU_SAFTJOURNALENTRY",
"I_SUPPLIER"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_FISCALYEARFORCOMPANYCODE",
"I_LEDGER"
],
"BASE":
[
"I_LU_SAFTJOURNALENTRY"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/