Hi All,
We solved this problem applying SAP Note 493422 in ECC (Inconsistent IDoc segments/transf. structures in srce system). This note has a program (Z_RS_SCRSYSTEM_R3_CHECK) that clean up old IDOC segments and ROOSGEN DDIC structures. This note is for Source System (not BW).
https://websmp230.sap-ag.de/sap/support/notes/convert2pdf/0000493422?sap-language=EN
BR,
Marco Modesto.