We have a requirement where we need to capture the idoc numbers before it is dispatched.
IDOCS are populated by FM IDOC_OUTPUT_INVOIC using process code SD09 for custom output type(EDI processing).
Our requirement is to capture these idoc numbers into a custom table which will be used for further custom processing. The user exits in the above FM are good for just for segment population.
What is the best approach to capture these idocs? Is there a user exit to capture these idocs?