Hi Rene,
If you setup a UDF to use Dynamic Configuration for the MT_FILE_EBENE node then you can use the file name in the source message to determine the name and avoid variable substitution. If it is not mapped to the target message then you won't get the blank line in your output.
Regards,
Ryan Crosby