08-17-2007 8:07 AM
Hi guys,
I had a requirement...
my program should first download a flat-file to application/presentation server and latter send this file as an attachment via email to recipient..
can you guys help me....
cheers,
Harish
08-17-2007 8:14 AM
Hi Harish,
for the download to presentation server
cl_gui_frontend_services=>gui_download.
To download the file to presentation server use
command open dataset
To transfer the file you have to use command TRANSFER
To send the file as attachment you use Function Module
SO_NEW_DOCUMENT_ATT_SEND_API1.
Make sure you commit rsconn01 after calling SO_NEW_DOCUMENT_ATT_SEND_API1 only this will trigger the sending of your mail.
Kind regards Henner
08-17-2007 3:13 PM
Hi buddy..,
will this FM SO_NEW_DOCUMENT_ATT_SEND_API1 send any type of file via email
cheers,
Harish
08-17-2007 3:15 PM
Hello Harish,
You just need to tun the transaction. Here prvide the Presentation server filename & then Appliction server path. e.g.: application server path C:\usr\sap\R3D\SYS\global\substanc.txt etc
But before copying the file on application server consult with Basis Consultatnt wehter you have authorization for writing file on Application server or not? If not first get the authorization.
Reward if helpful answer.
Regards
--
Sasidhar Reddy Matli.