I was looking for a Userexit (or BADI) which I can leverage to write some basic IDOC related data to a "Z" table whenever any Inbound or Outbound IDOC goes into a failed status. Could not find a generic exit(BADI) to do this.
Anyone knows about an exit etc to achieve this. Please let me know if there is any alternative way to get the same results. Your help would be much appreciated.