SAP Tips'n tricks
Check this : How to Extend an Outbound IDoc.pdf
Use transaction WEDI in session manager to display list of available transactions about idoc (non-exhaustive list) :
Search tags : WE02
ABAP SQL adobe form ALV grid BADI Date Debug Exit/BADI Idoc Mass retrieve Popup SAPSCRIPT Selection-screen Transaction