SAP Message UCF8001 - Before executing the function, mark the row or place the cursor

UCF8001 : Before executing the function, mark the row or place the cursor