@AbapCatalog.sqlViewName: 'PORGPRXG'
@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 organic peroxid substances (listed substances on CRV level) which are assigned to a company substance
defineview P_OrganicPeroxide
asselectfrom I_CmplRqVersOrganicPrxd as OrganicPeroxid
-- 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 = OrganicPeroxid.ListedSubstance
// Text association - Organic Peroxide Printed Name
association [0..*] to I_CmplRqVersDngrsGdsPrxdPrntT as _OrgPeroxidePrintedName on $projection.CmplRqVersOrganicPrxdUUID = _OrgPeroxidePrintedName.CmplRqVersOrganicPrxdUUID
{
key OrganicPeroxid.CmplRqVersOrganicPrxdUUID,
OrganicPeroxid.ProdCmplncDngrsGdsIdnNmbrType,
OrganicPeroxid.ProdCmplncDngrsGdsIdnNmbr,
OrganicPeroxid.ListedSubstance,
OrganicPeroxid.DngrsGdsPositionOnSource,
OrganicPeroxid.SubstanceListUUID,
OrganicPeroxid.CmplRqVersUUID,
OrganicPeroxid.DngrsGdsOrganicPrxdName,
// these values are needed for the apply classification functionality
OrganicPeroxid.DngrsGdsConcnLowrQtyOptr,
OrganicPeroxid.DngrsGdsConcnLowrQty,
OrganicPeroxid.DngrsGdsConcnLowrQtyUnit,
OrganicPeroxid.DngrsGdsHasConcnLowrQty,
OrganicPeroxid.DngrsGdsConcnUprQtyOptr,
OrganicPeroxid.DngrsGdsConcnUprQty,
OrganicPeroxid.DngrsGdsConcnUprQtyUnit,
OrganicPeroxid.DngrsGdsHasConcnUprQty,
OrganicPeroxid.DngrsGdsOrganicPrxdAddlInfoTxt,
// these values are needed for the determine control and emergency temp. functionality
OrganicPeroxid.DngrsGdsHasControlTemp,
OrganicPeroxid.DangerousGoodsControlTemp,
OrganicPeroxid.DangerousGoodsControlTempUnit,
OrganicPeroxid.DngrsGdsHasEmergencyTemp,
OrganicPeroxid.DangerousGoodsEmergencyTemp,
OrganicPeroxid.DangerousGoodsEmgyTempUnit,
_ListedSubstance.SubstanceUUID,
_ListedSubstance.ActiveSubstanceUUID,
_OrgPeroxidePrintedName
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CMPLRQVERSORGANICPRXD",
"I_SUBSTACTIVEDRAFTLSTDSUBST"
],
"ASSOCIATED":
[
"I_CMPLRQVERSDNGRSGDSPRXDPRNTT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/