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: 

Issue regarding FM LXE_SEND_MAIL_WITHOUT_ATTMNT

Former Member
0 Kudos

Dear All,

We are facing problem while sending mail using FM LXE_SEND_MAIL_WITHOUT_ATTMNT .

We are trying to send within same SAP server from one sap user id to another sap user id.

FM is getting executed successfully. And the mail is also visible in the sender's outbox in SAP business workplace. But the receipient does not get the mail in his sap inbox.

We tried to send mail directly from SAP inbox. It is working fine. Receipient is getting the mail in his SAP inbox.

But he is not getting mail while using the FM LXE_SEND_MAIL_WITHOUT_ATTMNT.

Regards

Sachin

3 REPLIES 3

Former Member
0 Kudos

will you able to show,how you populate the Function Module ...?

why don't you use this FM SO_NEW_DOCUMENT_SEND_API1,it won't creates any problem

Edited by: sekhar manda on May 13, 2009 9:10 AM

Former Member
0 Kudos

Hi,

check below link its useful for u reqirment

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/email%2bfrom%2bsap

Regards,

Madhu

0 Kudos

This FM uses another FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'

Since 620 there is a new Parameter 'commit_work'.

You have to change the FM 'LXE_SEND_MAIL_WITHOUT_ATTMNT' and add one line

commit_work = 'X'

call function 'SO_NEW_DOCUMENT_SEND_API1'
  exporting
    document_type              = 'RAW'
    document_data              = doc_chng
    put_in_outbox              = in_outbox
*add new Parameter*
    commit_work               = 'X'

Now the E-Mail is sent.