@AbapCatalog.sqlViewName: 'PPLSAFTBP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #BLOCKED_DATA_INCLUDED
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #P
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_PL_SAFTBusinessPartner
as select from P_PL_SAFTTaxItemAgg
association [0..*] to I_BusinessPartnerSupplier as _BPSupplier on _BPSupplier.Supplier = $projection.Supplier
association [0..*] to I_BusinessPartnerCustomer as _BPCustomer on _BPCustomer.Customer = $projection.Customer
{
key TaxType,
key CompanyCode,
key AccountingDocument,
key FiscalYear,
Customer,
Supplier,
case when Customer <> ''
then _BPCustomer.BusinessPartner
else _BPSupplier.BusinessPartner
end as BusinessPartner,
_BPSupplier,
_BPCustomer
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPARTNERCUSTOMER",
"I_BUSINESSPARTNERSUPPLIER",
"P_PL_SAFTTAXITEMAGG"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNERCUSTOMER",
"I_BUSINESSPARTNERSUPPLIER"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/