SAP Message VR142 - Function is only for subsequent documents: Cursor in wrong position

VR142 : Function is only for subsequent documents: Cursor in wrong position