Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sending Customer statement through E-mail

Former Member
0 Likes
5,452

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.

4 REPLIES 4
Read only

Former Member
0 Likes
1,746

Hi,

Check the below link for e mail notification. If you want to trigger this logic immedaitely when ever you save the document then you just need to findout the user exit which will trigger before you save the document...you can insert the code there.

Regards,

  • DJ

reward, if its useful

Read only

0 Likes
1,746

Hi DJ,

I am getting an error as "gd_spool_nr.....Unknown"...what should i do?

Regards,

Naveen.

Read only

Former Member
0 Likes
1,746

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

Read only

Former Member
0 Likes
1,746

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.