Solution : https://service.sap.com/sap/support/notes/585183 (SAP Service marketplace login required)
Key words : 
terms planned revenues, sales order items, attached program corrections, sales order item, billing plan reason, order item, billing plan, program error, inconsistent data, structure s007
Related Notes : 
       
| 658473 | |
| 571967 | Incoming sales order: User exit for update |