Send email from PA30 user exit

When I try to send an email from user exit in ZXPADU02 it never makes it to SOST.  WIll always go to SBWP outbox if I set the flag but never gets sent to receiver address.
If I paste the following code into a report it works fine.  Is there some other parameter for this FM or some additional process needed to send email from a user exit?
    DATA: maildata TYPE sodocchgi1.
    DATA: mailtxt  TYPE TABLE OF solisti1 WITH HEADER LINE.
    DATA: mailrec  TYPE TABLE OF somlrec90 WITH HEADER LINE.
      CLEAR maildata.
      REFRESH: mailtxt, mailrec.
      maildata-obj_name = 'SRVC_EMAIL'.
      maildata-obj_descr = 'Email test'.
      maildata-obj_langu = sy-langu.
      mailtxt-line = 'Test line from user exit'.
      APPEND mailtxt.
      mailrec-receiver = '[email protected]'.
      mailrec-rec_type  = 'U'.
      APPEND mailrec.
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = maildata
          document_type              = 'RAW'
          put_in_outbox                = 'X'
          commit_work                  = 'X'
        TABLES
          object_header                = mailtxt
          object_content               = mailtxt
          receivers                       = mailrec
        EXCEPTIONS
          too_many_receivers            = 1
          document_not_sent            = 2
          document_type_not_exist    = 3
          operation_no_authorization  = 4
          parameter_error                  = 5
          x_error                              = 6
          enqueue_error                    = 7
          others                           = 8.

Put the function call 'SO_NEW_DOCUMENT_SEND_API1'
in a report Program & SUBMIT that report from ZXPADU02.
Arya

Similar Messages

  • Sending email from a user in another AD Domain

    Hi All
    I have two AD domains, domainA and domainB.  domainA is running Exchange 2010, domainB has no exchange at present. 
    I have users that exist in both domains.  I have setup trusts between domains.
    I want to be able to send emails from an outlook client and user in domainB using Exchange in domain.
    I have the user setup with Outlook 2010 and can see emails coming in but cannot send emails.  I get the message " Delivery has failed to these recipients. You cannot send a message on behalf of this user unless you have permission to do so. 
    Please make sure your sending on behalf of the correct sender or request the necessary permissions."
    As far as I can see I have granted rights to send.  Can anyone give me a step by step guide as to how I can achieve what I'm looking for.
    Thanks in advance
    Darren

    Hi  Ware
    Thank you for your question.
    By your state, I think you can configure exchange 2010 to accept e-mail for more than one authoritative domain ,
    you can refer to the following link:
    http://technet.microsoft.com/en-us/library/aa996314(v=exchg.141).aspx
    you can refer to the following link ,because he has similar error with you.
    https://social.technet.microsoft.com/Forums/exchange/en-US/3b19cc0f-724d-4564-99ed-022db97ef15e/configuring-exchange-2010-to-send-and-receive-email-from-multiple-domains?forum=exchange2010
    If any questions, please let me know.
    Best Regard,
    Jim Xu

  • We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is: Cannot send mail. The user name or password for iCloud is incorrect.

    We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is:>> Cannot send mail. The user name or password for iCloud is incorrect.

    About ~20 hours later, this ended up solving itself. We can send email using the '.icloud' email from both the iPad and iPhone.  Advise would be 'wait' before you start seeking alteranatives like yahoo, hotmail, etc.  This definitely is a convenient way to keep all your 'cloud' information in a centralized place, including the common email...

  • I had a power failure 2 days ago, have power now, but cannot send email from my iPad. Everything was fine before that. The box says cannot send mail, the user name or password for Gmail is incorrect. I haven't changed anything. I need help. Thanks

    Hi
    I had a power failure 2 days ago, my computer is running again, but now I cannot send email from my iPad using Cox or my gmail account. I am receiving mail in my Cox account but not my gmail account.It was working fine until the power failure. It keeps telling me, the user name or password for Gmail is incorrect. I have not changed anything. I don't know what is wrong. Can anyone help me? Thanks

    I agree, unplug and replug your router, then reset your iPad by holding down the sleep and home buttons, ignore the red power down slider, and wait til you see the silver apple. let it reboot and then try your connection.
    Chances are rebooting the router will help. You may also need to talk to cox. They may need to reset something on their end.

  • Unable to send email to the users from Project Server Workflow

    Hello all,
    I am facing issues in sending emails to the users from the workflow in SharePoint Designer 2013.
    I am trying to send emails to valid users in a Project server 2013 Workflow by Email action.
    I have set up the SMTP server successfully, I have configured SMTP server successfully in IIS manager 6.0
    I have configured the outgoing e-mail settings in Central Administration successfully,
    I have configured the SMTP email settings for my web app in IIS manager as well.
    I have configured and synced the User Profile App with the eMail addresses from Active Directory as well.
    I have configured the Alerts and Reminders in Operational Policies of PWA settings as well.
    I can send the emails to the users successfully through Powershell.
    But when I am trying to Start a Task Process with a user in the workflow, the task process starts but it never sent an email notification. So I tested by using the Action Email, that also the user is unable to receive any email. But the Workflow is not giving
    any error also. The email sending is successful, but the user is unable to receive it. The workflow succeeds to next phase without any errors.
    So to cross verify I tried 'Alert Me' option on a list, but that also is not sending(or might be sending but the user is not receiving) the mail.
    What else should I do to solve this issue.
    Please help me.
    Thanks,
    Shanky

    Hello Paul,
    I tried editing the PWA instance as you said, but that also didn't help :(
    I even restarted the Project Server Service, but nothing is changed. 
    I tried creating a new workflow for a List and used send email there, but that also is not sending the mail :(
    How do I check where the issue is from ? I mean, whether the workflow is sending the mail and the mail server is not receiving? or whether the workflow is not sending the mail itself? how do I check this? Is there any way to log these details?
    Please help me regarding this issue, I am totally clueless how to proceed.
    Thanks,
    shanky

  • Outlook 2013 crashed when user sending email from Adobe Writer xi pro ver 11.0.07

    I ask Adobe, but they are signaling to Outlook problem
    PC-HP, Windows 8.1 Pro X64 connected to Windows 2008 R2 DC
    Adobe Acrobat Pro ver 11,x
    When user trying to send email from Adobe direct, Outlook 2013 Pro is crashing
    The only way to send email is to save adobe ( PDF) file and attached to the email
    All patches are installed

    Log Name:      Application
    Source:        Application Error
    Date:          7/15/2014 8:05:38 AM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Liz7PM-HP.armadale.local
    Description:
    Faulting application name: Acrobat.exe, version: 11.0.7.79, time stamp: 0x536b812b
    Faulting module name: SendMail.api, version: 11.0.7.79, time stamp: 0x536b7fd0
    Exception code: 0xc0000005
    Fault offset: 0x0003390b
    Faulting process id: 0x139c
    Faulting application start time: 0x01cfa024deec4218
    Faulting application path: C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
    Faulting module path: C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\plug_ins\SendMail.api
    Report Id: 553a89c7-0c18-11e4-be97-80c16ee27020
    Faulting package full name: 
    Faulting package-relative application ID: 
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-07-15T12:05:38.000000000Z" />
        <EventRecordID>66128</EventRecordID>
        <Channel>Application</Channel>
        <Computer>Liz7PM-HP.armadale.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Acrobat.exe</Data>
        <Data>11.0.7.79</Data>
        <Data>536b812b</Data>
        <Data>SendMail.api</Data>
        <Data>11.0.7.79</Data>
        <Data>536b7fd0</Data>
        <Data>c0000005</Data>
        <Data>0003390b</Data>
        <Data>139c</Data>
        <Data>01cfa024deec4218</Data>
        <Data>C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe</Data>
        <Data>C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\plug_ins\SendMail.api</Data>
        <Data>553a89c7-0c18-11e4-be97-80c16ee27020</Data>
        <Data>
        </Data>
        <Data>
        </Data>
      </EventData>
    </Event>
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Log Name:      Application
    Source:        Windows Error Reporting
    Date:          7/15/2014 8:05:55 AM
    Event ID:      1001
    Task Category: None
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      Liz7PM-HP.armadale.local
    Description:
    Fault bucket 73304412188, type 1
    Event Name: APPCRASH
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: Acrobat.exe
    P2: 11.0.7.79
    P3: 536b812b
    P4: SendMail.api
    P5: 11.0.7.79
    P6: 536b7fd0
    P7: c0000005
    P8: 0003390b
    P9: 
    P10: 
    Attached files:
    C:\Users\ewhitton\Desktop\140.pdf
    C:\Users\ewhitton\AppData\Local\Temp\WER8000.tmp.WERInternalMetadata.xml
    C:\Users\ewhitton\AppData\Local\Temp\WER8BB9.tmp.appcompat.txt
    minidump.mdmp
    These files may be available here:
    C:\Users\ewhitton\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Acrobat.exe_2a26ba191a528da71b85271ed9509f7e426babf8_0d6f35c4_1735c074
    Analysis symbol: 
    Rechecking for solution: 0
    Report Id: 553a89c7-0c18-11e4-be97-80c16ee27020
    Report Status: 4104
    Hashed bucket: f6a7a946597169e4aea5077b3b7f0848
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Error Reporting" />
        <EventID Qualifiers="0">1001</EventID>
        <Level>4</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-07-15T12:05:55.000000000Z" />
        <EventRecordID>66131</EventRecordID>
        <Channel>Application</Channel>
        <Computer>Liz7PM-HP.armadale.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>73304412188</Data>
        <Data>1</Data>
        <Data>APPCRASH</Data>
        <Data>Not available</Data>
        <Data>0</Data>
        <Data>Acrobat.exe</Data>
        <Data>11.0.7.79</Data>
        <Data>536b812b</Data>
        <Data>SendMail.api</Data>
        <Data>11.0.7.79</Data>
        <Data>536b7fd0</Data>
        <Data>c0000005</Data>
        <Data>0003390b</Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>
    C:\Users\ewhitton\Desktop\140.pdf
    C:\Users\ewhitton\AppData\Local\Temp\WER8000.tmp.WERInternalMetadata.xml
    C:\Users\ewhitton\AppData\Local\Temp\WER8BB9.tmp.appcompat.txt
    minidump.mdmp</Data>
        <Data>C:\Users\ewhitton\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Acrobat.exe_2a26ba191a528da71b85271ed9509f7e426babf8_0d6f35c4_1735c074</Data>
        <Data>
        </Data>
        <Data>0</Data>
        <Data>553a89c7-0c18-11e4-be97-80c16ee27020</Data>
        <Data>4104</Data>
        <Data>f6a7a946597169e4aea5077b3b7f0848</Data>
      </EventData>
    </Event>
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Log Name:      Application
    Source:        Outlook
    Date:          7/15/2014 8:06:05 AM
    Event ID:      50
    Task Category: None
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      Liz7PM-HP.armadale.local
    Description:
    The following providers do not implement fast shutdown APIs, but are being shut down using fast shutdown:
    MDConnector.dll (MAPI Store Provider)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Outlook" />
        <EventID Qualifiers="16384">50</EventID>
        <Level>4</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-07-15T12:06:05.000000000Z" />
        <EventRecordID>66132</EventRecordID>
        <Channel>Application</Channel>
        <Computer>Liz7PM-HP.armadale.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>MDConnector.dll (MAPI Store Provider)
    </Data>
      </EventData>
    </Event>

  • General users can not send emails from SAP themselves except sap_all user

    Dear experts ,
    General users can not send emails from T-CODE: SO00 themselves except the users
    which Assigned SAP_ALL Authorization Profiles .
    We hit SAPconnect trace Error : SO_OBJECT_MIME_GET Exception: 2 .
    No MIME Document Received. Error Code: UNKNOWN .
    How to can i solve the problem ?
    Thanks a lot in advance .

    Thanks for your Reply .
    I had set default domain in SCOT ,and email address in su01 .
    we can send email successful only SAP_ALL users .General users can not send emails from SAP themselves
    Is anybody else to help me ?
    Thanks a lot in advance .

  • User´s Full name is displayed when sending email from Blackberry device

    Dear readers
    Im working with BlackBerry_Enterprise_Server_for_IBM_Lotus_Domino and the problem is that  
    When I am sending email to other users outside, the reciver sees the full name not the email adress.
    . I mean, when I am sending email to other people my details goes like Peter White/Director/Company not with my e-mail [email protected]
    Please..can anyone help me
    Best regards

    Right, I may have misunderstood what you meant by download to desktop. When I click the attachment, I can either "Open with: Text Edit (drop-down menu)" or Save. But save doesn't save to desktop. I can "Open with: Microsoft Word" fine.
    When I compose an email, I click attach. I select the file that is in a .docx format. It appears to load to the email correctly, and if I click that extension, it opens correctly in Word out of the pre-sent email. After being sent, it appears in god knows what format and wishes to open from TextEdit.
    Was I doing something wrong when you wanted me to download to desktop?

  • How to send emails to Multiple Users from a Single People Picker lookup field using Sharepoint designer workflow

    Hi All,
    I am working with SharePoint 2013 designer workflow. we are using office 365.
    Our requirement to send email to multiple users, get the user groups from lookup list people and groups column.
    But SP designer sending emails to the first user alone.
    Please guide me to proceed.
    Advance Thanks.
    Regards
    Jenkins NS
    Thanks and Regards Jenkins

    finally I got a solution
     Identified a workaround to solve the issue using SharePoint designer.
    Step 1
    Create a lookup list Example department
    Columns
    Title (by default) – Single line of text
    Users – Person or Group
    Emails – Multiple lines of text
    hidden the Emails column (go to content type and set the column as hidden)
    Create a SharePoint designer Workflow
    Start Workflow automatically when an item is created
    Also Start Workflow automatically when an item is changed
    Workflow Stage 1
    Set Emails to current Item: Users
    The workflow will get all users email ids and add in the Emails column delimiter as semicolon.
    Step 2
    Create a custom list to get the email ids and send email
    Create a lookup column ex: analysis and refer department list, Allow multiple values
    Then Create a SharePoint designer workflow
    full details workflow steps please follow below
    URL
    http://jenkinsblogs.com/2015/04/30/how-to-send-emails-to-multiple-users-from-lookup-list-people-picker-field-using-sharepoint-designer-workflow/
    Thanks and Regards Jenkins

  • How to send email alert to users from the query output ?

    Hi all,
    I intend to write a pl/sql to send email alert to user based on the following query output :-
    Item_______Qty_on_hand________Min_qty______email
    [email protected]
    [email protected]
    [email protected]
    once run, I will like to distribute to those email id. How should I code that in pl/sql ? or any other better idea is welcome. Thanks.
    Rgds
    Lim

    http://asktom.oracle.com/pls/ask/f?p=4950:8:3439330610438686683::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:255615160805,

  • Send email from SAP using SMTP-AUTH

    Dear all,
    I would like to send email from SAP to external SMTP server using authenticated method.
    Can I set up this scenario with SAPConnect?
    Or are there any other methods to set up this scenario?
    Thanks, Regards,
    Fendhy

    Hi,
    You dont need anu authentication to be set :
    Just follow below steps :
    Simple steps to do the SMTP configuration :
    1. Use transaction SCOT
    3. Double Click on SMTP
    4. You will get a window and fill in description
    5. Tick the "Node in use" box
    6. Enter the hostname of the email exchange server
    7. Mail port will be 25
    8. Click on the button next to Internet called "Set"
    9. You will get another window, in the "address area" box, enter *
    10. Click the green check button to exit the second window
    11. Click the green check button to exit the main window
    12. From top menu: Settings -> Default Domain
    13. in the small box that appears enter the domain name which is the last part after the @ sign. The domain name would be company.com
    14. You need to define a job to process the email, from top menu: View -> Jobs
    15. From top menu: Job -> Create
    16. Enter a name
    17. Click on "INT" in the list then "Schedule job" button
    18. Enter start date and time, then click on "Schedule Periodically" button
    19. Enter something like every 10 minutes.
    20. the configuration is now complete. To test it, you need to have an email defined in your user id properties. Use SU01 for that.
    21. Use transaction SO00
    22. Put Title, and text in the body, then enter your email address below, the recepient type would be "internet address"
    23. After a maximum of 10 minutes you should get the email address.
    Regards,
    Nirmal.K

  • Cannot send email from an iPhone to a Outlook group.

    Hi,
    My question is simple and I'd like an exactly same answer : Can iPhone users send emails from their iPhone's to one or more groups created in Outlook?
    This is my situation: our organization is using iPhone to provide email, calendar, contact, task etc. to some of their employees. We are using Airwatch MDM Agent on user's iPhone because we have an Airwatch server in place. I have an user and she has an iPhone 5 and she has created some groups in Outlook but these groups are not reflected in her Contacts in the iPhone. I have update her phone with the latest update, although I was almost sure that this was not the issue, then I've found some interesting posts on internet saying that this was a known problem for the users with the previous iOS but I thought this might has been corrected with the iOS, apparently not.
    Also I've tried ''the trick'' that is posted on several forums with the iCloud but neither so it's working. I am looking for a straight answer, if this works or not on iPhone's?
    Thanks,
    Sebastian.

    There indeed ARE apps in the app store that will do what you want.  Just search and find the one that best fits your needs.

  • Cannot send email from ipad?

    I can receive, but cannot send emails from my iPad. Always get message that I have wrong user name or password.

    Then make sure that the settings are correct in your email account.
    Check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • Cannot send email from Exchange 2007 to Exchange 2013 - Coexistence

    Existing Exchange 2007 SP3 1 MBX, 2 CAS/HT, 2 ET servers.
    I have added an Exchange 2013 server with MBX/CAS role.
    Email will flow from Ex2013 server no problem.  Mail from Ex2007 systems cannot deliver to Ex2013 boxes, it dies in queue with a 4.4.7 expired message after issuing a delay message.
    I can telnet to ports 25, 587,717,465,475, and 2525 from Ex2007 HT role to new Exchange 2013 server.  I can send email from Ex2007 HT role server to new Exchange 2013 server using telnet to port 25.
    A ‘get-mailbox’ from the Ex2007 HT role server returns the server and database properly on the test users on Exchange 2013 server.
    The only strange thing I am seeing is from the Ex2007 systems, a ‘get-exchange server’ command shows the new Ex2013 server as role ‘16439’ which looks to perhaps be normal.
    Why is email not flowing to the new users on Exchange 2013?

    You should have exchange server authentication ticked in Default Receive connector in Exchange2007.
    Exchange 2007 and Exchange 2013 in the same subnet/network. if not please check any spam agent running between the networks. Are you running antispam on Exchange2013 ?
    MAS

  • Cannot Send Email from SAP Business One

    Hi Experts
    I have configured SAP Email Services from the Mailer Service and Customer can send emails all the while,
    Now I have an Issue for One User,
    Iam using the Same Machine, Same Database with Manager Login, I can send Email from SAP with Attachments
    But When I use another Super user the system is not delivering the Email and it Goes to the Sent box (but not delivered)
    Have anyone encountered the Issue before
    Please hep to solve this issue permanently
    Thanks and Regards
    Vinodh Kumar Mohan

    Hi Vinodh Kumar Mohan,
    If the email can be found in Sent box, it must be delivered already.
    The problem could be on the email recipient side. It may go to the junk mail.
    Thanks,
    Gordon

Maybe you are looking for

  • Vendor Status

    Hi Experts... I am Tech. person i dont know about following.. Is there any thing like we can set Vendor status into SAP... Like 'Black Listed' , 'ACTIVE' etc... if it is there ... then in which tables the status is stored

  • How to populate the Poplist dynamically

    Hi, I need help in the following. I am populating the first poplist named Poplist1 from the FND_Lookup table. So based on the values selected in the first poplist1 the value in the second poplist, poplist2 should show different values. Say we select

  • Weeks in a Year

    Hi guys. Hope you can give me a heads up here. I have the year as the only input, how can I produce all the weeks for that year....lets say for 2007 week 1 = Jan 6 - 12 week 2 = jan 13 - 19 week 3 = jan 20 - 26 week 4 = jan 27 - feb 2 etc...

  • WLSE 2.9 and WDS AP's stuck in "Security Keys Setup"

    Hey all, I had to rebuild a WLSE, did a restore from a 2.9 CD. Restore went great, rediscovered all the devices. I am not however getting any rogue or adhoc detection. I've found that all the WDS servers are stuck in "Security Key Setup". I've tried

  • Bluetooth Mouse Clicks Not Responding.

    I have charged my batteries they are 100%, the mouse moves around but clicks do nothing.  Went from intermittant to no click response now. I've disconnected it, reconnected it, checked the batteries, checked my settings, restarted my iMac, looked in