Not able to send a mail through  BADI using FM ' SO_NEW_DOCUMENT_SEND_API1'

hello friends,
The below code work perfectly in a report but it does not work with BADI .
The mail needs to be sent to an internet user ,this is the code i am using.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = lx_docu_data
document_type = 'RAW'
commit_work = lc_checked
TABLES
object_content = li_docu_content
receivers = li_receiver
Am able to send mail directly from SE37 to Transaction SCOT and here i need to start the send process and mail is sent sucessfully. But from the code its not working.
li_receiver -> lw_receiver-receiver = useratdomain.com
lw_receiver-rec_type = 'U'.

Hi Sheel,
It wont work in a BADI since COMMIT WORK is not explicitly recognized.
Put the FM in a separate report program with COMMIT WORK and call the report using SUBMIT from the BADI. I hope this definitely works!
Let us know how it goes.
Vijay

Similar Messages

  • HT1277 all of a sudden I am not able to send out mail. I have checked and rechecked my account information including incoming and outgoing server info.

    all of a sudden I am not able to send out mail. I have checked and rechecked my account information including incoming and outgoing server info. Does anyone know what the problem might be? Thanks

    If you're having trouble sending mail, then either the SMTP (outbound) mail server settings — the server, the port, the user, the password, and whether SSL is in use or (unlikely) not — are incorrect, or the mail server is offline or has been reconfigured. 
    The SMTP (outbound) settings are in Preferences, but are buried rather deeply.  Select Preferences > Accounts > select the account > switch the outgoing mail server (SMTP) to Edit SMTP Server List... and then select the SMTP server from the list, and verify that the settings are correct with your ISP, and that your username and password are correct.
    The required settings vary by your particular mail ISP; you'll have to check with the ISP for the server and login details.
    To test settings, select Window > Connection Doctor > then (when the tests fail) show the details, and (if you can't sort out what happened) sanitize the settings and post the output here.
    Caveat: do not repeat password tests with the mail server, as various mail providers can be configured to assume these are a password brute-force attack, and lock out repeated login attempts.
    Caveat: never, ever, ever, ever, ever, ever, ever not-at-all enter a password when Mail pops up a dialog box with the "OMG YOUR PASSWORD IS WRONG!!!!!!!!!!! PLEASE ENSURE YOU CANNOT LOG IN AGAIN!!!!!" dialog box.  (I'm paraphrasing that error dialog box slightly.)  The correct answer to that Mail.app password dialog box is almost always "cancel" button.  Passwords stored in Keychain generally don't get lost or corrupted, and trying random passwords as that dialog box encourages just gets you locked out of various servers, and...

  • Could not able to send email notification through approval workflow

    Hi,
    I am trying to send an email notification to the requester and approver on request creation and when the approver approves the request then an email should get triggered to the request with approve/reject outcome. All the SOA configuration has been done and also able to send test email through SOA console but could not able to send email through SOA composite.
    For configuring an email notification, I am using notification tab in ApprovalTask, but still problem is not resolved.
    Please help me in resolving the issue.
    Thanks.

    Use this link to check again whether you have configured the Email driver properties properly. http://www.iamidm.com/2012/09/oim-11g-r2-lab-6-managing-notifications.html
    Also check whether any firewall issue is there which is preventing OIM to contact the email server in sending out emails. Check the logs if there are any issues.
    Also check this system property 'RequestNotificationLevel'. This property indicates whether or not notification is sent to the requester and beneficiary when a request is created or the request status is changed. If the value is 0 for this system property, make it 1.
    I was facing a similar type of issue due to two reasons:
    1. System property
    2. Firewall
    Check both of them and try again.
    Edited by: Durgaprasad on Apr 15, 2013 2:08 AM

  • Not able to send e-mails from iCloud

    Anyone have solutions to not being able to send e-mails on icloud on Mac Book Pro. This just started in the past week. Not sure what happened.

    I am having the same or a similar problem. When I open iCloud in system preferences and tick on Mail I get the message 'mail can't enabled at this time - Wait a moment and then try turning on Mail again'. I did this several times and it didn't work. I then completely turned off iCloud completely and restarted it, but I was still unable to access mail using iCloud (I was, however, able to access all of the other iCloud services). I then waited three days, to see if the issue would resolve its self, but it hasn't. Any suggestions as to how I can resolve this would be appreciated.

  • Not able to send yahoo emails through 'Mail' with attachments size 5 MB or more.

    Hi all,
    I am not able sent mails though 'MAIL' with attachment size more than 5Mb or more. I am using macbook pro and 10.8.3 OS X. Can anyone tell me how we can sent mails with resonable size? pls note that I want to send mails with actual size.
    I am using yahoo for sending mails.
    Regards,
    Amit

    All email service providers have a size limit on sending an email.  See the following link for info on yahoo mail's file size restrictions, and ensure you are within this restriction.
    - http://answers.yahoo.com/question/index?qid=20100326083940AAQgBa5.

  • Not able to send instant message through CLP

    Hello All,
    I am a beginner in portals.
    I am doing a test assignment on collaboration.
    1.I have enabled the Collaboration Launch Pad.
    2.Now when I click on the link, CLP opens. I have added some contacts to it.
    3.Then I tried to send an instant message and then I get the error:
    Could not open a new instant-messaging session. All invitees are offline. Try again later.
    I know that some configurations need to be done to be able to send the instant message.
    Please let me know the configuration steps for the same or any relevant document.
    Please help me with this.

    Hi Radhika
    Please check the collaboration contacts is portal users.
    Make sure that other portal user also logged in the portal for sending instance message.
    OR you can try to loging with two differnet portal userid and try to use instant-messaging functinality by sending message.
    [Instant Messenger |http://help.sap.com/erp2005_ehp_04/helpdata/EN/d3/9621af15024274afacfe874d5798b8/content.htm]
    Hope it helps
    Regards
    Arun

  • User not able to send the mail from other mail box on outlook 2007

    In my outlook(2007), i am using my mail box to send the mail and receiving the mail every thing working fine, now what happened , i am adding one of my users mail box to my outlook profile,and trying to send the mail from that mail box,when ever
    i am trying to send its give me the message called message undelivered  and permission error. as i am full permission on that users mail box. but still getting that issue.
    My lab info
    Exchange server 2010 sp3
    outlook 2007

    HI Paul,
    In exchange, you have something called Send as permission as well. Try to give send as permission to your self from the user's mailbox.
    In exchange> Reciepient config> Mailboxes> user mailbox> right click> Full Send as permssion
    or,
    Add-ADPermission -Identity "user1" -User "[email protected]" -ExtendedRights Send-As
    After you add your self in send as permission you need to wait for some time to propagate the settings or you can forcefully reset the information store services
    That should solve your issue.
    UMESH DEUJA MCP,MCTS,MCSA,CCNA

  • I am not able to send outgoing mail on my ipad. i keep getting there is an error on relaying

    Is anyone having this problem on with theie ipad?

    Try turning the server off and then see if you can edit the settings. If you can't - back out of the setting - turn the mail account off - then come back in and try to edit again.
    I found this from an old discussion ... If it is not an AOL issue - go through the whole discussion - there were a number of things to try
    https://discussions.apple.com/thread/2582847?start=0&tstart=0
    If this is an AOL issue try this:
    On your iPhone:
    -Select Settings
    -Select Mail, Contacts, Calendars
    -Select your AOL.com account
    -Select SMTP from the Account Info Page
    -Select SMTP from the SMPT Page
    -From the smtp.aol.com page
    -Check that the Server is ON
    -Check that the Host Name is smtp.aol.com
    -Check that your User Name is correct
    -Check that you Password is correct
    -Check that Authentication is set to Password
    -The Server Port should be 587
    Try this as well - go down to the next set of smtp servers in the setting - under Other smtp servers - tap the first one in there and turn that one on - or make the changes in there and turn it on.
    Message was edited by: Demo

  • Not able to sending the Mail using java mail utility

    Hi, I am new to java mail utility and written first time for sending mail. If any body an help me out in resolving the problem I would be thankful to him/her........below is the code which I m trying......
    package test;
    import javax.servlet.http.HttpServlet;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.AddressException;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    /*import javax.mail.Address;
    import javax.mail.Authenticator;
    import javax.mail.MessagingException;
    import javax.mail.NoSuchProviderException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.Message.RecipientType;
    import javax.mail.internet.AddressException;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;*/
    * @author chauhasd
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    public class SendMailServlet extends HttpServlet{
         public SendMailServlet(){
         public void sendMail(){
              java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
              Properties props=new Properties();
              props.put("mail.transport.protocol", "smtp");
              props.put("mail.smtp.host","pcsttc.patni.com");
              props.put("mail.smtp.port","25");
              props.put("mail.smtp.auth","true");
              props.put("mail.smtp.starttls.enable","true");
              Session session=Session.getDefaultInstance(props,new MyAuthenticator());
              session.setDebug(true);
              MimeMessage message=new MimeMessage(session);
              try{
                   message.setContent("Hello....","text/plain");
                   message.setSubject("Testing Mail");
                   Address strTo = new InternetAddress("[email protected]");
                   Address strFrom = new InternetAddress("[email protected]");
                   Address strReplyTO = new InternetAddress("[email protected]");
                   message.setFrom(strFrom);
                   message.setReplyTo(new Address[]{strReplyTO});
                   message.setRecipient(Message.RecipientType.TO,strTo);
                   Transport.send(message);
              }catch (AddressException e)
    //               TODO Auto-generated catch block
                   e.printStackTrace();
              }catch (NoSuchProviderException e){
    //               TODO Auto-generated catch block
                   e.printStackTrace();
              }catch (MessagingException e){
    //               TODO Auto-generated catch block
                   e.printStackTrace();
         protected PasswordAuthentication getPasswordAuthentication()
              return new PasswordAuthentication("[email protected]", "sid35789");
         public static void main(String [] args){
              new SendMailServlet().sendMail();
    ERROR :
    DEBUG: setDebug: JavaMail version 1.3.1
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth true
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
         class javax.mail.AuthenticationFailedException
         at javax.mail.Transport.send0(Transport.java:218)
         at javax.mail.Transport.send(Transport.java:80)
         at test.SendMailServlet.sendMail(SendMailServlet.java:59)
         at test.SendMailServlet.main(SendMailServlet.java:81)

    Sangyesh wrote:
    In my application,we already implemented it so we cant go for javamail.That does not make sense. Your 'implementation' does not work so you have not yet fully 'implemented' it. Using Javamail takes about 4 lines of code to do what you have done so far and it will work.
    Please suggest me regarding this,so that I can go ahead and resolve it.Use the Javamail API.

  • Not able to send e-mails from Pre

    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

    Hello!
    For your charter email account you could be using smtp.charter.net BUT charter, like virtually all other ISPs providing email service, blocks access to their outgoing server if your trying to connect to it outside their own network.  If you connect via WiFi throught your home internet it will work fine.  Their are only 2 options to combat this limitation:
    1.  Use authenticated SMTP (ESMTP)
    2.  Use a different SMTP server.
    For your outgoing mail settings for the charter account, use the smtp.charter.net with no SSL and yes for Use Authentication option.  Use the SAME user/password you do for the incomming.  If this doesn't work then either you subscribe to charter business class or skip to option 2.
    Option 2 is using a different server.  Typically you would just use the SMTP server if you device's ISP (Sprint) but Sprint is discontinuing their SMTP service and is only avail for long time legacy customers.  Google may not smile on this but for the outgoing mail server settings for the charter acct you can use the same settings from your gmail acct:
    smtp.gmail.com (use authentication)
    Use Authentication: Yes (use the user and password FOR YOUR GMAIL ACCT, not charter email here)
    Use SSL
    Port: 465 or 587 
    This option is giving mixed results but these are the options when working with an email provider that blocks access of their smtp server from other ISPs. 

  • I am not able to send my mail

    When going into my email to retrieve my mail I can open and receive email but I am unable to reply it is being rejected by my server and asks me to try later. What do I have to adjust to get it working again. Thank you.

    Mail>Preferences>Accounts. Make sure you have the correct Outgoing Mail Server info per your ISP's requirements.

  • I am using i pad mini. I am going through a issue in which i am not able to send mails to my work email add wherein i am able to receive emails from same email id.

    i am using i pad mini. I am going through a issue in which i am not able to send mails to my work email add wherein i am able to receive emails from same email id.

    With one mailbox server in the production site and one in the DR site, you do not have high availability.  If the main site goes down, the cluster loses quorum and all databases dismount.  You must then force quorum or move the file share
    witness to restore quorum.
    I can't tell you why what you observed happened.  At the time of the problem I would have been looking at the transport queues to see what's queued and to where.
    I recommend you look at the configuration of your send connectors to ensure that none of them are dependent upon the DR site server.
    To send mail outside, you must allow relay.  To do this, I recommend you create a new receive connector that's configured to allow relay and restrict access to the application server to keep anyone else from using it to relay.  There are plenty
    of articles on the Internet that describe how to configure a relay connector.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • I am not able to send mails through Yahoo APP.It gives me an error msg :"the sender address has ben rejected by the server ".I tried adding username and password in the SMTP server settings,But those optiopns are greyed out.

    I am not able to send mails through Yahoo APP. It gives me an error msg :"the sender address has ben rejected by the server ".
    I tried adding username and password in the SMTP server settings,But those optiopns are greyed out.
    So, i am not able to enter anything in fields under SMTP server settings

    You probably have changing settings disabled in Restrictions.

  • I have an iphone 4s. able to receive all the incoming mails but not able to send mails through this iphone 4s. please help.

    I have an iphone 4s. able to receive all the incoming mails but not able to send mails through this iphone 4s. please help.

    delete and reinstall the email account.

  • If I click on an e-mail address link in a web page instead of a blank message opening I always get a pop up screen with a log-in for googlemail. I do not have and do not want a googlemail account. I just want to be able to send e-mails using Outlook.

    If I click on an e-mail address link in a web page instead of a blank message opening I always get a pop up screen with a log-in for googlemail. I do not have and do not want a googlemail account. I just want to be able to send e-mails using Outlook.

    OUtlook was already set as the mail client for FF, and is my operating system (XP)'s default mail programme. therefore problem not solved at all. what I get whenever I follow a link in a webpage to send an e-mail is a little pop up window asking me to sign in to gmail or open an account. any other suggestions?

Maybe you are looking for