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 Mails through ABAP Program

Former Member
0 Likes
518

Hi,

I am using this function module "SO_NEW_DOCUMENT_SEND_API1" to send mails to recipients.

I am also uploading a notepad through "GUI_UPLOAD" FM for mail body content.

When I execute the abap program, I am unable to see the mail generation in SOST Transaction.

The system is not configured to send mails, but still I am not able to see the mail in SOST tcode.

I also got inputs that, if mail size is >1KB, then it will not be viewed in SOST.

Can you please throw some inputs.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
487

Hi,

Check the sy-subrc value after the execution of the FM SO_NEW_DOCUMENT_SEND_API1.

I dont think its true that mail attachments greater than 1KB cant be viewed in SOST.

Regards,

Vikranth

3 REPLIES 3
Read only

Former Member
0 Likes
488

Hi,

Check the sy-subrc value after the execution of the FM SO_NEW_DOCUMENT_SEND_API1.

I dont think its true that mail attachments greater than 1KB cant be viewed in SOST.

Regards,

Vikranth

Read only

Former Member
0 Likes
487

Hi,

Try this.

In you Fm

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

EXPORTING

document_data = wa_doc_data

put_in_outbox = ' 'X

  • SENDER_ADDRESS = SY-UNAME

Regards,

Vijay

Read only

Former Member
0 Likes
487

Hi,

If the emails are sent correctly i.e sy-subrc of the FM is Zero, then

Check the transaction SCOT and select the INT node and WAITING column and execute so that the emails can be sent.

Hope this helps

Regards

Shiva