This is a product defect (33071).
The ReferenceScope - Filter to SAPLicence should be changed to
Active = 'X' and UID_SAPLicence in
select x.UID as UID_SAPLicence from
select distinct(UID_SAPsystem + '|' + Ident_SAPLicence) as D, max(UID_SAPLicence) as UID FROM SAPLicence where Active = 'X' and UID_SAPSystem in
select UID_SAPSYSTEM from SAPmandant where DistinguishedName = '$CP_SAPMandantDN$'
select distinct(UID_SAPSYSTEM) from SAPMandant where ALEModelName = (select ALEmodelname from SAPmandant where DistinguishedName = '$CP_SAPMandantDN$' and CUAStatus = 'Central' )
) group by UID_SAPsystem + '|' + Ident_SAPLicence
) as x
This will be fixed in a future release of the product. If you require this immediately corrected, please contact support for a hotfix referencing the defect ID 33071.