Solution : https://service.sap.com/sap/support/notes/127565 (SAP Service marketplace login required)
Summary : 
      
Key words : 
system generates warning message f2054 'allocate number, maintain number range object rf_beleg, additional key words sapff001, network problems/electricity outage, replace line    message w054, line    message i054, system generates, windows task manager, document number assignment, attached program correction
Related Notes : 
       
| 175047 | Causes for FI document number gaps (RF_BELEG) | 
| 37939 | Connection problems (TCP/IP error) SAPgui app.serv. | 
| 21971 | Connection between SAP GUI and application server terminated |