SAP Message UPWB040 - Selector &1 can be used only for functions and layouts

Diagnosis
You attempted to createa reference to selector &V1&. However, thisselector cannot be used by elements of the current type.