SAP Message 0S157 - Function not possible - incorrect cursor position

Diagnosis
To display the primary key or index fields, the cursor must be placedon a primary key or an index.

System Response
Processing continues after the error message.

Procedure
Place the cursor on a primary key or an index.