SAP Message VHURL305 - Account statements could not be created (exception)

Diagnosis
Account statements could not be created due to (a) serious error(s).Consult the error message 'Internal program error' in the IDoc.

System Response
Inbound processing terminated.

Procedure
Check the number ranges used for RP account statements.