‎2007 Jun 13 4:00 PM
Hi all,
Friends i want to send customer statement through E-mail automatically when we run the program. Can anybody help me by giving some sample program or the complete steps involved in this. And may i know the approximate time to finish this report.
I shall be greatful if i get complete solution and it will be highly rewarded.
regards,
Naveen.
‎2007 Jun 13 11:10 PM
‎2007 Jun 14 4:35 AM
Hi DJ,
I am getting an error as "gd_spool_nr.....Unknown"...what should i do?
Regards,
Naveen.
‎2007 Jun 14 1:03 AM
Hi Naveen,
Check the following FMs:
SO_DOCUMENT_SEND_API1
SAPoffice: Send new document with attachments via RFC
SO_NEW_DOCUMENT_ATT_SEND_API1
(In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)
SAPoffice: Send new document with attachments via RFC
Note : If you are using FM SO_NEW_DOCUMENT_ATT_SEND_API1 then Export Parameter DOCUMENT_DATA-OBJ_DESCR contains the Subject.
SO_NEW_DOCUMENT_SEND_API1
SAPoffice: Send new document
Hope this helps.
reward if helpful.
Regards
Manish
‎2007 Jun 14 1:27 AM
You need to copy sap standard print program to custom program and do the modification..
Looks like form and print program will trigger at F.27 transaction ..
Form name would be F140_ACC_STAT_01
Print program would be FKORD10
copy the layout and program into custom and keep the form and program at OB96 Transaction ( ask ur functional guy )
use this FM SO_NEW_DOCUMENT_ATT_SEND_API1 in print program to send an email.