Solution : https://service.sap.com/sap/support/notes/442902 (SAP Service marketplace login required)
Key words : 
rscds_db400_abap_tmpl summarizer template sapkw30a05 rsdrs_db400_routines report, additional i_external_call parameter introduced, symptom db2/400-specific corrections, gen_type_desc form implemented locally, terms bw support package, form index_renamethe primary key, rsdrs_db400_routines cx_sy_sql_error exception added, rscds_db400_abap_tmpl aggregation template, latest support package, additional compression methods
Related Notes : 
       
| 652174 | iSeries: SQL error "-303" when you call a query | 
| 644266 | iSeries: Missing aggregate indexes after change run | 
| 601110 | iSeries: Setting up indexes in parallel | 
| 601109 | iSeries: Performance Improvement During Compression | 
| 592073 | iSeries: ODS queries too slow | 
| 536997 | iSeries: Termination while condensing | 
| 527792 | iSeries: SQL-5001 Deleting in fact tables | 
| 527654 | iSeries: Query terminates with SQL-104 | 
| 518780 | iSeries: Termination during condensing | 
| 451808 | iSeries: Adjusting indexes to the new index schema | 
| 432839 | InfoSet (BW): Corrections for SP 2, BW 30A | 
| 407528 | AS/400: DB2/400 indexing Schema of the BW Fact Tables | 
| 310214 | AS/400: SQL0153 while filling aggregates |