SAP Message RSBATCH051 - Lock on ERSBATCHDATA on table RSBATCHDATA not received

Diagnosis
The system tried 10 times with 'WAIT' to get a lock for tableRSBATCHDATA (ERSBATCHDATA) but this failed.
The RELID that needs to be locked is '02' (log RELID).

System Response
The system cannot check whether the log writer is correctly scheduled.

Procedure
In SM12, check who has activated lock ERSBATCHDATA on table RSBATCHDATAand whether this lock still exists or whether the lock has not beendeleted due to a system error, despite the process already having beencompleted.
If this is the case, delete the lock manually in SM12.