SAP Message 9J502 - You cannot execute this function due to document status

9J502 : You cannot execute this function due to document status