SAP Message RE017 - You cannot leave the transaction in active batch input

Diagnosis
You cannot leave the session in active batch input as the status of thesession is not clearly defined.