Skip to Content
avatar image
Former Member

Firing an Email

Hi Experts!!

I have designed a module pool program, and SAVE button

I want to fire email while saving my data into database.

Anybody suggest me with code.

thank you in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 17, 2007 at 10:56 AM

    Hi Nahid,

    Check out these links. Iam sure these would help.

    Revert for more clarification.

    ABAP Development

    how-to-send-an-email

    what-is-the-function-module-used-to-send-an-email

    how-to-send-result-of-a-report-as-an-email.

    regards,

    Vikas

    <b>Reward all helpful answers.</b>

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      can u please tell me by using tcode SCOT how to fire Email from sapsytem to MS outlook2003 to concern person email id.

      Thanks in adv

  • avatar image
    Former Member
    Aug 17, 2007 at 12:23 PM

    Hi,

    U can use the Tcode EMAIL rather than SCOT.Also u can refer the SAP notes 455140 and 455127.

    Also if u want to send email to any adress while saving u can use the FM

    SRM_TOOLS_LOG_SENDMAIL

    Reward if helpful...

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 17, 2007 at 02:06 PM

    After using your SO_DOCUMENT_SEND_API1 FM, Instead of manually sending from SCOT use the following subroutine

    FORM F4155_EXECUTE_MAIL.

    WAIT UP TO 2 SECONDS.

    SUBMIT RSCONN01 WITH MODE = 'INT'

    WITH OUTPUT = 'X'

    AND RETURN.

    ENDFORM. " F4155_EXECUTE_MAIL

    However most of the times in a PRD env SCOT is refreshed periodically, but you can use it anyways, there is no harm in it.

    Hope it helps.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 10:07 AM

    Hi,

    Please checkout this posting

    sample program code

    http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html

    Regards, ABY

    Add comment
    10|10000 characters needed characters exceeded