Hello Archna,
You did the first step, but to be able to add the call to FM that generate the XML file, you need to find the FM used for your XML format,
consider debugging but better check with an Abaper, even if you have some devotement basics . this is touchy so ask Abaper assistance.
Regards
Tamim