Need help: Sending mail to internet address without commit work statement

Dear Experts,
        I have a problem in sending mails from sap to internet address.Am using the function module
SO_NEW_DOCUMENT_SEND_API1 and am passing parameters like,
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
     EXPORTING
          DOCUMENT_TYPE  = 'RAW'
          DOCUMENT_DATA  = DOC_CHNG
          PUT_IN_OUTBOX  = 'X'
     TABLES
          OBJECT_CONTENT = OBJCONT
          RECEIVERS      = RECLIST
     EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
          DOCUMENT_NOT_SENT          = 2
          OPERATION_NO_AUTHORIZATION = 4
          OTHERS                     = 99.
submit rsconn01 with mode = 'INT'
                    with output = 'X'
                    and return.
My problem here is,with the commit work statement after FM, the mail is triggering correctly.but if, am not using the commit work statement,at the very first time of execution mail is not triggering, and the second time of execution first mail is triggering like wise it is going.The status of the message is waiting in queue.
i have refresh receiver's list also.I want to use this concept in badi.So anyone can pls help me,how to send a mail without commit work statement.
Thanks in advance.

There is a parameter Commit_Work pass it as 'X'
<code>
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_TYPE = 'RAW'
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
commit_work = 'X'
TABLES
OBJECT_CONTENT = OBJCONT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
submit rsconn01 with mode = 'INT'
with output = 'X'
and return.
</code>
Edited by: Saravanan Ramasamy on Nov 11, 2009 1:31 PM

Similar Messages

  • Sending mail to Internet address from SAP system

    Hi...
    My requirement is to send a mail to an internet address say ABC@companyid from SAP.
    I have used a FM So_New_Document_Send_API1 for the purpose.For this I have provided
                 e_mailrec-receiver = w_emailid.
                  e_mailrec-rec_type = 'U'.
                  APPEND e_mailrec.
    But I get an error msg in SOST, that the route from (SAP server) to (mail id) not found.
    Instead of internet address when I give rec_type as B i.e. SAP USER it sends a mail to my SAP inbox.
    I have also checked SAPConnect, and it is fine.
    Is the above FM only for sending mails to SAP id, then wats the FM for sending mails to internet address? Its just sending a 1 line mail without attachment.
    P.S: I have gone through search in sdn so please don't provide me with links to other threads.
    Reply only if you can actually help and know wats this about.
    Thnaks and Regards.

    These are the FM for sending external email :-
    SO_DOCUMENT_SEND_API1
    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.)
    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
    Send new document
    For Code
    http://www.forum.saptechies.com/viewtopic.php?t=5562

  • Sending Mail to Internet Address Maintained in Infotype 105

    Hi All,
    I have a requirement wherein I have to send mail to the Internet Address of the employee which is maintained in Infotype 0105. Now I have gone through the SDN where in they have said that using select or FM get the Employee details and pass it to a container which will be added in the Send Mail step. I have understood all this thing. But Since I am new to workflow Concepts. Can someone guide me where to write this peice of code to fetch email id from INfotype 0105 and how to get that value in a workflow container.
    If anyone has done this scenario , I will be very grateful if you can guide me step by step how to do it.
    I am an Abaper and understands ABAP OO and BOR Concepts very well.
    Regards,
    Akhil Rai

    I am an Abaper and understands ABAP OO and BOR Concepts very well.
    Createa a method in the BOR and impor the employee number for whom you need to determine the EMAIL ID by using the FM HR_READ_INFOTYPE pass the infotype as 0105 and subtype as 0010 to get the email Id.
    and once the email ID is determined then export the email back to workflow by using binding concept
    Pass the pernr from WORKFLOW  ---> TASK  ---> method container ( For importing into method )
    Pass any value METHOD ---> TASK ---> Workflow Container ( for exporting to workflow )..
    and if possible instead of using send mail step call the standrad FM and mention the address type as U external address and pass the email ID and content...

  • How to send mail to multiple addresses without anyone seeing who else is on mail

    how do I send mulitple addresses info but hide each other from knowing that others are getting the email.

    Send it to yourself in the To: field, or leave it blank.
    Put the other addresses in the BCC: (Blind Carbon Copy)  field.

  • Hi! Need help on mail can't send or receive tried Bal checked everything I can think of any suggestions? Thank you

    HI need help on mail Mac OS X leopard- can't send or receive anymore have tried checking Bal etc -everything seems ok- there is just a weird icon next to in box a sort of bell which I believe means no  mail setup but I'm stuck any suggestions are welcome thank you regards

    Most of the time I'd suspect one of 2 other things...
    orange.fr has changed their authentication without telling their users.
    Malformed eMails clogging up both ways.
    So anyway, did Connection Doctor say it connected or not? What was exact error if there were some?
    Can you login to their Webmail in a Btowser?
    http://messagerie.orange.fr/mail.html

  • I desperately need help with Mail, specifically sending

    For Starters:  I am on OSX 10.9.2 and am trying to use mail 7.2.
    https://discussions.apple.com/post!input.jspa?container=2998&containerType=14&qu estion=I+desperately+need+help+with+Mail%2C+specifically+sending
    I cannot send.  I have been at this for hours and hours and hours.  Here are the details.
    my mail server however is s1.sistercompany.net
    I can receive email just fine.  I can also send mail just find having set this up on my iphone and also in thunderbird (which i hate hate hate hate hate hate hate, which is why I am desperate to set up mail)
    The settings in thunderbird are as follows:
    Servername: s1.sistercompany.net
    port: 465
    Authentication method:  normal password
    Connection Security:  SSL/TLS
    However, I just can't get this to work in Mail.  When I write an email and hit send I get a popup that says:
    Cannot send message using the server s1.sistercompany.net
    The certifcate for this server is invalid.
    Now, my tech guy says yeah the certifacte is invalid because you are going through sistercompany server, there should be some way to just accept the certifcate anyway (but he has never used mail before).
    So I have serached around and come up with this: http://support.apple.com/kb/PH11706
    Which tells me to use the verify certificate dialogue, which I would do except there is no verify certificate dialog.  Any thoughts?
    <Email Edited by Host>

    I don't have a problem watching the Lost episode on abc.com, using a stock MacBook with 512MB RAM. I don't know what technology abc.com uses in their viewer, but I have Flip4Mac and the latest version of Flash player installed.

  • Mail the internet address when alert occured

    Hi,gurus:
       I want to mail the internet address after the alert trigger,but it throws exception "CL_SMTP_RESPONSE ESMTP " and the error "530 530 5.7.0 No AUTH command".I think it is the cause of the authentication of the mail server.What do you think of that? In the blog "FAQ in Business Communication area" I saw this problem:
    Q4. How does the R/3 System authenticate at the Mail Server.
    A4. The R/3 System can only use domain based authentication. Authentication with username + password is not possible. /* It is also not planned to implement this feature. */
    Workaround: You can install an additional SMTP hop, what only accepts mail from the SAP System, and sends these mails to your "productive" SMTP Server. /* With authentication */
    So is the problem the same to mine?
    I have configured relavant work in scot,sicf,su01...
    Any help will be appreciated!Thanks in advance.

    hi,
    check the below threads with same issue
    configuring SMTPPlugin for sending mail to Internet
    SCOT - error
    problem send email
    <removed by moderator>
    regards
    kummari
    Edited by: Mike Pokraka on Jul 24, 2008 1:00 PM

  • NEED TO SEND MAIL FROM FORMS...

    DEAR ALL,
    I NEED TO SEND MAIL FROM FORMS WHEN I PRESS THE MAIL BUTTON.
    I HAVE NO IDEA FOR THIS CRITERIA. IF ANY ONE EXPERIENCED WITH
    THIS CRITERIA, PLS HELP ME AND GIVE ME THE CODING FOR THAT.
    AND ALSO PLS EXPLAIN EACH LINE OF CODING, WHICH U POST.
    THANKS IN ADVANCE
    S.BERNANDAS

    Your requirement can be done in forms. Good amounts of advice here. There 244 messages this year alone that fit the search criteria in the Oracle Forms forum.

  • Need to send mail & upload files using JSP

    hi, got a lot of issues,.. just starting out as a developer.. so here goes.
    1st Need to send mail & upload files to server using JSP(tomcat).. an example to demo it would be nice.
    thanx in advance

    Look at this for email:
    http://forum.java.sun.com/thread.jspa?forumID=45&threadID=285950
    and go to:
    http://servlets.com/cos/
    for a package to upload files.

  • Need to send mail using apex

    Hi,
    I am using apex 4.2 and oracle 11g XE. I need to send mail so I used the following code:
    HTMLDB_MAIL.SEND(
          P_TO       =>  '[email protected]',
          P_FROM     =>   [email protected]
          P_SUBJ     =>  'Data in TECHNICAL_DETAIL edited' ,
          P_BODY     =>  'Please click link below for affirmation/rejection of changes' ,
          P_BODY_HTML=>   '<p><a href="http://localhost:8080/apex/f?p=109:25:12079147455079">link</a></p>'
    It is going t apex_mail_queue successfully. Then I used the following code:
    which one i should use:
    1.
         wwv_flow_mail.push_queue(
            P_SMTP_HOSTNAME => xxx
            P_SMTP_PORTNO => 'yyy
    or
    2.
         APEX_MAIL.PUSH_QUEUE(
            P_SMTP_HOSTNAME => xxx
            P_SMTP_PORTNO => yyy
    Also what else I need to send mail and what should i  ask DBA to provide me so that mail can be sent successfully.
    Please give some idea.
    Thanks,
    Chandra Bhanu

    Hi,
    You should use APEX_MAIL.PUSH_QUEUE witch is documented
    APEX_MAIL
    Parameters
    Description
    p_smtp_hostname
    SMTP gateway host name
    p_smtp_portno
    SMTP gateway port number
    Note that these parameter values are provided for backward compatibility, but their respective values are ignored. The SMTP gateway hostname and SMTP gateway port number are exclusively derived from values entered on the Manage Environment Settings when sending email.
    Regards,
    Jari

  • Need to Send Mail from JSP...

    Dear Team,
    I Need to Send Mail from JSP, have Designed user Interface to enter
    to, from, subject, and message text .
    Have Downloaded mail.jar and activate.jar file..... and placed in tomcat lib directory and WEBAPPS/WEB-INF/lib Directory too
    How do i send a mail to user ?
    do I require something else apart from things that i have mentioned?
    do i have to Configure SMTP, POP3 or Something like this....
    Now If I Create a object of Type MimeMessage and Set Recipient, from, subject and if i say transport.send(message) will this do My JOB???

    Dear Team,
    I Need to Send Mail from JSP, have Designed user
    Interface to enter
    to, from, subject, and message text .
    Have Downloaded mail.jar and activate.jar file.....
    and placed in tomcat lib directory and
    d WEBAPPS/WEB-INF/lib Directory too
    How do i send a mail to user ?
    do I require something else apart from things that i
    have mentioned?
    do i have to Configure SMTP, POP3 or Something like
    this....
    Now If I Create a object of Type MimeMessage and Set
    Recipient, from, subject and if i say
    transport.send(message) will this do My JOB???Yup! in addition to all the above i need to know my mail box outgoing mail server. and that's enough...... i am able to do that.
    Regards,
    Jagadeesh HS.

  • When I try to send mail to multiple addresses, it tells me it cant send with selected server.  It sends mail to one address fine.

    When I try to send mail to multiple addresses, it tells me it cant send with selected server.  It sends mail to one address fine.

    contact your email service provider and ask them (it might treat multiple e-mails as SPAM)

  • Send mail with attached file without using Repository

    Hello,
    I want to know if have a way to Send mail with attached file without using Repository.
    Regards
    Elad

    Elad,
    Check this article where a image has been picked by the file adapter and sent as an attachment to the mail adapter.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816">Sending an Image File Through XI in a File-to-Mail Scenario</a>
    For how to proceed without integration repository content look into this blog,
    <a href="/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository">How to send any data (even binary) through XI, without using the Integration Repository</a>
    Combining these 2 you have the solution.
    Regards
    Bhavesh

  • TS4268 I need help getting my face time and imessage to work.

    I need help getting my face time and imessage to work. It is saying wating for activation. I just got my iphone 5 2 days ago. I have reset it from the phone and from itunes on the computer, made sure I'm attached to wifi.

    The 3 basic troubleshooting steps are these in order: 1. Restart your iphone  2.  Reset your settings/iphone  3.  Restore your iphone.  Since your iphone is only a couple of days old, you should backup your device before restoring.  If you don't have anything on your iphone that you care to lose, then simply restoring without a backup is fine.  A quick reset of pressing the sleep/wake button (top of iphone) and your home button simultaneously and holding it until the silver Apple logo appears. 

  • I need help with fp, i cannot get it to work. have tried everything

    i cannot get fp to work.  I have uninstalled and installed so many times.  I use IE9....it worked two months ago.

    thank you for your reply.  I am using Internet Exp. 9 and McAfee software.  It states it installs and when I open a video, receive message I need to upgrade.  I followed the directions for 32 bit vs 64 bit.   Adobe FP is under my programs????
    > Date: Thu, 8 Sep 2011 05:17:21 -0600
    From: [email protected]
    To: [email protected]
    Subject: I need help with fp, i cannot get it to work. have tried everything
    It won't work or just won't install?
    Which OS, browser(s), and anti-virus software are you using?
    If you're using the free Avira AntiVir(us) Personal software, then deactive the Webguard feature first before installing the Flash Player.
    >

Maybe you are looking for