ABAP program terminates and you are receiving runtime error SAPSQL_ARRAY_INSERT_DUPREC while executing the generation of FINSTA IDocs In IHC.
ABAP Program: SAPLEDI1
The issue has generated while running the generation of bank statement (IDoc FINSTA) in F9N15.
This runtime error occurs because of an overlod of possible segments for an IDoc and the field for SEGNUM enable to store a maximal amount of 999999 segments to one single IDoc.
To solve this error please do as following:
If you want to avoid the dump you have to create IDoc's with less data / segments this is the only way.
You should check is there any way to reduce the amount of data during creation when IDoc is being created for example you can split them to more IDoc's.