Discounts can only be applied to services and packages that are discountable. This is defined in the service or package master file in the field Discount, which must be set to either Package or Components as applicable.
Discount groups are defined in combobox RP.