I think nost of this came in Note 1062489.
The institution (bank) will tell you where in the format tree they want the element. Add the element and then use exit module radio button, on the source tab enter the exit function which needs to be created by the ABAP developer. If you F1 in the this field SAP will display some pre-formatted exit programs for you.
Hope it helps.
Regards
Waza