P_LU_SAFTGLOneTimeBP
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)
| Source | Alias | Join Type |
|---|---|---|
| I_LU_SAFTJournalEntry | GLItem | from |
| I_LU_SAFTJournalEntry | GLItem | union |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA