Hi,
Before implementing Automatic Payment program through IDOC,Bank had sent a file to you regarding in which field what data should be populate. Please check that manual.
Can you brief me how you are sending idoc to Bank like through XML file or other way.
If you are sending XML file to Bank you can take help of SAP PI consultant to get populate 20 digit number in bank account number field
Regards
Pawan Gupta