@AbapCatalog.sqlViewName: 'PSUBMIG'
@AbapCatalog.compiler.compareFilter: true@ClientHandling.algorithm: #SESSION_VARIABLE@AccessControl.authorizationCheck: #NOT_ALLOWED@ObjectModel:
{
usageType:
{
dataClass: #MASTER,
sizeCategory: #M,
serviceQuality: #B
}
}
@VDM.viewType: #COMPOSITE@VDM.private: true
-- View for the silent data migration for properties of Substance objects
-- It selects all Substance objects that do not have the necessary property root objects
defineview P_SubstanceMigration
-- Part One: Missing physical-chemical properties
asselectfrom I_Substance
leftouter to one join I_PhysicalChemicalProperty as PhysicalChemicalProperty on I_Substance.SubstanceUUID = PhysicalChemicalProperty.SubstanceUUID
{
I_Substance.mandt,
I_Substance.SubstanceUUID,
I_Substance.SubstanceInternalName,
'00' as StatusField
}
where
PhysicalChemicalProperty.PhysChmlPrptyUUID isnull
-- Part Two: Missing properties for ecotoxicological information
unionselectfrom I_Substance
leftouter to one join I_PCEctxProperty as PCEctxProperty on I_Substance.SubstanceUUID = PCEctxProperty.SubstanceUUID
{
I_Substance.mandt,
I_Substance.SubstanceUUID,
I_Substance.SubstanceInternalName,
'00' as StatusField
}
where
PCEctxProperty.PCEctxPrptyUUID isnull/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PCECTXPROPERTY",
"I_PHYSICALCHEMICALPROPERTY",
"I_SUBSTANCE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/