Hi Bharat,
1) We have customized the Program RV60SBAT to run in the background.
2) SAPscript is created.
3) Output type is configured for Email. This output type is added in XD02.
4) In the driver program, Email code is written.
You can check the code in the thread:
http://scn.sap.com/thread/3440471
5) Remember to assign
ITCPO-TDGETOTF = 'X'
This Program creates Invoice automatically in the background, then sends as an email.
Thanks & Regards,
Sowmya