ABAP – How to create/modify Source lists

In this code snippet I’ll demonstrate how to create or modify a source list (TCode ME01). I did’t find a suitable “standard way” how to do it, but after digging in the function module which processes inboud IDOC for source list (IDOC_INPUT_SRCLST) I managed to replicate the functionality in my own code.

Continue reading