SAP Message /BEV2/EDMESS1090 - Function &1 is only permitted in line(s) &2

Procedure
The selected function is not valid for the line where the cursor hasbeen positioned. Position the cursor onto the new line/s &v2& andselect the function again.