@AbapCatalog.sqlViewName: 'PSELFREACTIVE'
@AbapCatalog.compiler.compareFilter: true@AbapCatalog.preserveKey: true@AccessControl.authorizationCheck: #NOT_REQUIRED@VDM: {
private: true,
viewType: #COMPOSITE
}@ClientHandling.algorithm: #SESSION_VARIABLE@ObjectModel: {
usageType: {
serviceQuality: #C,
sizeCategory: #L,
dataClass: #MIXED
}
}
// This viewselectall self reactive substances (listed substances on CRV level) which are assigned to a company substance
defineview P_SelfReactiveSubstance
asselectfrom I_CmplRqVersSelfReactvSubst as SelfReactiveSubstance
-- Listed substance information
-- Remark: Substance.substanceuuid is the active UUID => use _ListedSubstance.ActiveSubstanceUUID. If not no listed substance information is shown for draft
innerjoin I_SubstActiveDraftLstdSubst as _ListedSubstance on _ListedSubstance.ListedSubstance = SelfReactiveSubstance.ListedSubstance
// Text association - Self-reactive Substance Printed Name
association [0..*] to I_DngrsGdsSelfReactvPrntT as _SelfReactvPrintedName on $projection.CmplRqVersSelfReactvSubstUUID = _SelfReactvPrintedName.CmplRqVersSelfReactvSubstUUID
{
key SelfReactiveSubstance.CmplRqVersSelfReactvSubstUUID,
key _ListedSubstance.ActiveSubstanceUUID,
SelfReactiveSubstance.SubstanceListUUID,
SelfReactiveSubstance.CmplRqVersUUID,
SelfReactiveSubstance.ProdCmplncDngrsGdsIdnNmbrType,
SelfReactiveSubstance.ProdCmplncDngrsGdsIdnNmbr,
SelfReactiveSubstance.ListedSubstance,
SelfReactiveSubstance.DngrsGdsPositionOnSource,
SelfReactiveSubstance.DngrsGdsSelfReactvName,
// these values are needed for the apply classification functionality
SelfReactiveSubstance.DngrsGdsConcnLowrQtyOptr,
SelfReactiveSubstance.DngrsGdsConcnLowrQty,
SelfReactiveSubstance.DngrsGdsConcnLowrQtyUnit,
SelfReactiveSubstance.DngrsGdsHasConcnLowrQty,
SelfReactiveSubstance.DngrsGdsConcnUprQtyOptr,
SelfReactiveSubstance.DngrsGdsConcnUprQty,
SelfReactiveSubstance.DngrsGdsConcnUprQtyUnit,
SelfReactiveSubstance.DngrsGdsHasConcnUprQty,
SelfReactiveSubstance.DngrsGdsSelfReactvAddlInfoTxt,
// these values are needed for the determine control and emergency temp. functionality
SelfReactiveSubstance.DngrsGdsHasControlTemp,
SelfReactiveSubstance.DangerousGoodsControlTemp,
SelfReactiveSubstance.DangerousGoodsControlTempUnit,
SelfReactiveSubstance.DngrsGdsHasEmergencyTemp,
SelfReactiveSubstance.DangerousGoodsEmergencyTemp,
SelfReactiveSubstance.DangerousGoodsEmgyTempUnit,
_ListedSubstance.SubstanceUUID,
_SelfReactvPrintedName
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CMPLRQVERSSELFREACTVSUBST",
"I_SUBSTACTIVEDRAFTLSTDSUBST"
],
"ASSOCIATED":
[
"I_DNGRSGDSSELFREACTVPRNTT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/