SAP Message R5024 - Internal error: Function &1 in &2 not permitted

R5024 : Internal error: Function &1 in &2 not permitted