You can configure an outbound IDoc mapping to write invalid IDocs to a relational or flat file target. To write invalid IDocs to a relational or flat file target, connect the Error Output port in the SAP/ALE IDoc Interpreter transformation to a relational or flat file target definition.
To write invalid outbound IDocs to a relational or flat file target, you must also configure the outbound IDoc session to check for invalid IDocs.