Application Development 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: 

mail sending function module not sending mails,req better FM(fast delivery)

Former Member
0 Kudos

Hai guys,

i tried using the FMS

SO_NEW_DOCUMENT_ATT_SEND_API1

SO_DOCUMENT_SEND_API1

for sending mails from ABAP program.

earlier they used to work fine.

but now i dont get mails,(very rarely once in 50 times i get mail).

however,when sheduled in back ground ,I get mails ..(are these only meant for APlication server)

now,i need a better FM

i dont remember the name ,but thers a CLASS or FM(i think for sendign EXCEL attachment)

which was very FAST.

pls help me get a better way..

1 ACCEPTED SOLUTION

santosh_kumarm
Participant
0 Kudos

Hi gaurav ,

Once you send mails from SAP. they have to be released from SAP-inbox.

so you have to use Tcode SOST. here you will find list of mail ids waiting to be sent . choose the mail id which you want to send and click on execute button within minutes the mail will be sent to recipient.

Hope this shall be useful .

Regards

Santosh Kumaar.M

4 REPLIES 4

Former Member
0 Kudos

Hi,

Add this code after Send Email FM calls

*   To refresh SAP Work Office so that mail can be recieved immediataly.
    SUBMIT rsconn01 WITH mode = 'INT'
                  WITH output = ''
                  AND RETURN.

[Sending mail with attachment using Object Oriented Approach |https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/sendingmailwithattachmentusingObjectOriented+Approach]

Former Member
0 Kudos

Hi,

Have you tried SO_NEW_DOCUMENT_SEND_API1 (not SO_DOCUMENT_SEND_API1)

This sends an express mail (SAPoffice)

See if it works.

Regards.

santosh_kumarm
Participant
0 Kudos

Hi gaurav ,

Once you send mails from SAP. they have to be released from SAP-inbox.

so you have to use Tcode SOST. here you will find list of mail ids waiting to be sent . choose the mail id which you want to send and click on execute button within minutes the mail will be sent to recipient.

Hope this shall be useful .

Regards

Santosh Kumaar.M

Former Member
0 Kudos

Hi ,

After bringing your final alv data in the final internal table,

go through this link , i also had an same requirement to send data after converting to excel file and

send it as an attachment to mail id outside Sap,

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/to%252bsend%252b2%252bint%252btables%252bdat...

Hope it helps

Regrds

Mansi