Define attribute based on the order quantity and its multipliers

Dear Community,

I need to define an attribute based on the quantity of an line item also including the multipliers of the quantity.

The formula for a single value is clear to me:

CASE WHEN “VBEP”.“WMENG” = 40 THEN ‘no picking’ ELSE ‘picking’ END

However, I would also need to include all multipliers of “40”.

Can anyone help with this please?

Thank you and best regards,