I_LU_SAFTGenLedgerMultiBP
SAFT LU Multiple BP On Same Document
I_LU_SAFTGenLedgerMultiBP is a Composite CDS View that provides data about "SAFT LU Multiple BP On Same Document" in SAP S/4HANA. It reads from 2 data sources (I_LU_SAFTJournalItemBP, I_LU_SAFTJournalItemBP) and exposes 17 fields with key fields CompanyCode, FiscalYear, AccountingDocument, Ledger, FiscalYear.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_LU_SAFTJournalItemBP | BP | from |
| I_LU_SAFTJournalItemBP | BP | union_all |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ILUSAFTMBPLINE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | SAFT LU Multiple BP On Same Document | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_LU_SAFTJournalItemBP | CompanyCode | |
| KEY | FiscalYear | I_LU_SAFTJournalItemBP | FiscalYear | |
| KEY | AccountingDocument | I_LU_SAFTJournalItemBP | AccountingDocument | |
| KEY | Ledger | I_LU_SAFTJournalItemBP | Ledger | |
| PostingDate | I_LU_SAFTJournalItemBP | PostingDate | ||
| NumberOfRecords | ||||
| _CompanyCode | _CompanyCode | |||
| _FiscalYear | _FiscalYear | |||
| CompanyCode | ||||
| KEY | FiscalYear | I_LU_SAFTJournalItemBP | FiscalYear | |
| KEY | AccountingDocument | I_LU_SAFTJournalItemBP | AccountingDocument | |
| KEY | Ledger | I_LU_SAFTJournalItemBP | Ledger | |
| PostingDate | I_LU_SAFTJournalItemBP | PostingDate | ||
| NumberOfRecords | ||||
| _CompanyCode | _CompanyCode | |||
| _FiscalYear | _FiscalYear | |||
| _Ledger | _Ledger |
@AbapCatalog.sqlViewName: 'ILUSAFTMBPLINE'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.personalData.blocking: #BLOCKED_DATA_INCLUDED
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'SAFT LU Multiple BP On Same Document'
define view I_LU_SAFTGenLedgerMultiBP
as select from I_LU_SAFTJournalItemBP as BP
{
@ObjectModel.foreignKey.association: '_CompanyCode'
key BP.CompanyCode,
@ObjectModel.foreignKey.association: '_FiscalYear'
key BP.FiscalYear,
key BP.AccountingDocument,
@ObjectModel.foreignKey.association: '_Ledger'
key BP.Ledger,
BP.PostingDate,
count( distinct BP.BusinessPartnerCustomer ) as NumberOfRecords,
_CompanyCode,
_FiscalYear,
_Ledger
}
where
BP.BusinessPartnerType = '0001'
group by
BP.CompanyCode,
BP.FiscalYear,
BP.AccountingDocument,
BP.Ledger,
BP.PostingDate
union all
select from I_LU_SAFTJournalItemBP as BP
{
@ObjectModel.foreignKey.association: '_CompanyCode'
key BP.CompanyCode,
@ObjectModel.foreignKey.association: '_FiscalYear'
key BP.FiscalYear,
key BP.AccountingDocument,
@ObjectModel.foreignKey.association: '_Ledger'
key BP.Ledger,
BP.PostingDate,
count( distinct BP.SupplierToPartner ) as NumberOfRecords,
_CompanyCode,
_FiscalYear,
_Ledger
}
where
BP.BusinessPartnerType = '0002'
group by
BP.CompanyCode,
BP.FiscalYear,
BP.AccountingDocument,
BP.Ledger,
BP.PostingDate
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LU_SAFTJOURNALITEMBP"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_FISCALYEARFORCOMPANYCODE",
"I_LEDGER"
],
"BASE":
[
"I_LU_SAFTJOURNALITEMBP"
],
"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