Email to the user

Hi,
I have a senario where i need to send the mail to the user in his outlook express.
At the time of creation/change of the PO i need to triger the message to the outlook express.
I have the user exit at which trigers at the time of the save of the PO.
I need to take the EKKO-ERNAM to get the persons username.
How can i send the mail to the user based on the ERNAM ?
Can any one pls advise.

Hello,
There is a exit for this.
Exit Name: MM06E005
Fm Name: EXIT_SAPMM06E_012
Include: ZXM06U43.
Inside this inlude you will get the value of EKKO and EKPO.
With tzhis u can send the mail.
Chk this sample to send mail.
REPORT ZV_EMAIL_TEST .
TABLES: KNA1.
* data for send function
DATA DOC_DATA LIKE SODOCCHGI1.
DATA OBJECT_ID LIKE SOODK.
DATA OBJCONT LIKE SOLI OCCURS 10 WITH HEADER LINE.
DATA RECEIVER LIKE SOMLRECI1 OCCURS 1 WITH HEADER LINE.
SELECT * FROM KNA1 WHERE ANRED LIKE 'C%'.
  WRITE:/ KNA1-KUNNR, KNA1-ANRED.
* send data internal table
  CONCATENATE KNA1-KUNNR KNA1-ANRED
  INTO OBJCONT-LINE SEPARATED BY SPACE.
  APPEND OBJCONT.
ENDSELECT.
* insert receiver (sap name)
REFRESH RECEIVER.
CLEAR RECEIVER.
MOVE: SY-UNAME TO RECEIVER-RECEIVER,
'X' TO RECEIVER-EXPRESS,
'U' TO RECEIVER-REC_TYPE.
APPEND RECEIVER.
* insert mail description
WRITE 'Sending a mail through abap'
TO DOC_DATA-OBJ_DESCR.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
     EXPORTING
          DOCUMENT_DATA              = DOC_DATA
     IMPORTING
          NEW_OBJECT_ID              = OBJECT_ID
     TABLES
          OBJECT_CONTENT             = OBJCONT
          RECEIVERS                  = RECEIVER
     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.
write:/ 'Hi'.
If useful reward.
Vasanth

Similar Messages

  • 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

  • Sending an email to the user if the WEBi scheduling failed in CMC

    Hello Everyone,
    Current scenario :
    I am scheduling WEBi report through CMC and the report is going to end user email as an excel attachment.
    Desired Functionality :
    What happens is if the scheduling fails due to some reason. The email does not go to the end user on a particular date and then he complaints.
    What i need here an email sending option that if the WEBi scheduling has been failed in CMC an email should go to the user saying : " The WEBi scheduling has failed. The team is working on it " . (This is just a sample message)
    So the idea is to send an email to the user when the WEBi scheduling fails in the CMC. How to achieve this ?
    Regards,
    Ashutosh Singh

    Hi Ashutosh,
    You can send an alert email to a group when the schedule fails to run by choosing the "A job has failed to run" option under notification.
    You can see this option only if you schedule the report through CMC.
    Regards
    Sunil

  • Bdc is completed in background i have to sent email to the user how..?

    hi
    could anybody tel me
    bdc is completed in background i have to sent email to the user how..?

    Hi Kalyan,
    You could send a mail via the BDC program (Zprogram) itself to a SAP user or to an external mail id (some configurations need to be carried out)
    prasanna

  • Managing spam email on the User's Mailboxes

    Hi,
    i would like to ask if there's a way where I can delete spam email (actually it was detected as trojan by our current AV but failed to delete), residing on some of the user's mailboxes.
    i think this can be down via powershell but my concern is I can only do it on my Win7 machine. 
    is it possible to enable the Get-Mailbox cmdlet on Windows 7?
    many thanks.

    Hi,
    If you want to use Windows PowerShell remoting to remotely manage a server running Exchange Server 2010, you need to run the following cmdlet to create an implicit remote Windows PowerShell session.
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri
    http://exch4-cu1.cu1.com/PowerShell/ -Authentication Kerberos
    import-pssession $session
    Note: Please change "exch4-cu1.cu1.com" to your Exchange server name.
    For more information, here is a blog for your reference.
    Learn How to Use PowerShell to Run Exchange Commands Remotely
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/23/learn-how-to-use-powershell-to-run-exchange-server-commands-remotely.aspx
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Send Email to the User

    Hi experts,
    A very good morning.
    I am dealing with an object, in which I have to send a mail to the User.
    The mail should contain the Data that has posted to the Smartform.
    But I have to the send the smartform as it is, but not as a PDF attachement.
    Please clarify the following questions:
    1. Where I have to specify the E-mail parameters in the Tcode smartforms.
    2. How to send it to the Web user id, after I populate  the Smart form with the data.
    3. How to track the status of the mail, whether it has successfullt delivered or not.
    I am new to Smartforms, and I have only the basic knowleg\dge on them.
    Please guide me in this regard.
    ( if possible, with an example).
    Thank you in advance.
    Best regards,
    Naveen G

    Hi Naveen,
    You cannot send smartform as it is coz its in OTF formate,you have to change it to PDF formate.
    After the FM 'SSF_FUNCTION_MODULE_NAME' and fm_name,
    Change smartform preview formate(OTF) to PDF . call FM.
    *---Function module to convert OTF data to PDF data format
    call function 'CONVERT_OTF'
    exporting
    format = 'PDF'
    max_linewidth = 132
    importing
    bin_filesize = l_v_pdf_size "l_v_pdf_size type i,
    tables
    otf = l_it_otf_data "l_it_otf_data type standard table of itcoo initial size 0,
    lines = l_it_pdf_data. "l_it_pdf_data type standard table of tline,
    then
    *---Function module to chnage width of PDF file to 255
    call function 'SX_TABLE_LINE_WIDTH_CHANGE'
    exporting
    line_width_dst = '255'
    tables
    content_in = l_it_pdf_data[]
    content_out = l_it_pdf[]
    exceptions
    err_line_width_src_too_long = 1
    err_line_width_dst_too_long = 2
    err_conv_failed = 3
    others = 4.
    and finelly.
    *---Function module to send mail in attachment formate.
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    *---Function module to send mail in without attachment.
    call function 'SO_NEW_DOCUMENT_SEND_API1'
    exporting
    document_data = l_wa_doc_chng
    put_in_outbox = c_check
    commit_work = c_check
    tables
    packing_list = l_it_objpack
    object_header = l_wa_objhead
    contents_bin = l_it_pdf
    receivers = l_it_receivers
    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.
    Thanks.
    Mona.

  • TS3899 comcast told me I needed to change my password for my comcast account.   I changed my password on my DESKTOP computer.   Now on my iPad, when I click on email, everything is received and read perfectly but I cannot send an email.  The user name or

    On my desktop computer, comcast requested that due to a problem, I needed to change my comcast PASSWORD.   I did so and everything was fine.   That evening I was working on my iPad and was reading all my emails that I had received during the day and tried to respond.   It came back and told me the username or password was not correct.   I immediately went to SETTINGS on my iPad and changed the mail password.   I have been working on this for two days and cannot SEND emails.  Otherwise, everything works perfect.   Everything I try to send gets put in my DRAFT file with a red triangle in the corner.   HELP???????

    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.

  • Email of the Purchase Order to the User

    Hi,
    Currently, I am able to send the email of the purchase order to the vendor mail address, which is mentioned on general data tab of the vendor master.
    In addition, the requirement is that the purchase order also to be emailed to the User, who has created it.
    I have added the VU in NACE settings for application EF, output type NEU. The payment medium I have used is 5 (external send).
    However, when I try to add the VU and the user name to the vendor master partner details tab, the system is not taking in.
    Please let me know how can I email the purchase order to user.
    Thanks in advance for your time.
    Thanks,
    Ravi

    Hi,
    1) Add the user email address also in the vendor master.
    2) Verify all settings in condition records.
    3) Check tcode sost for any waiting send requests.
    Regards,
    BK

  • Email ID of the user in the Workflow

    Hi all,
    There is workflow available in one transaction. After releasing the order through VKM1, there is a requirement of sending email to the user. But the system is giving the email delivary failure message for a particular user. Where can i check the email address provided in the workflow for that user? Can anybody help me..
    Thanks & Regards
    shankar

    Welcome to SDN
    First get the address number and pers. number  from table USR21 for a given user
    and then
    go to table ADR6 to get the eamil address of the user.
    Regards
    Raja

  • How to record the users who opened the email?

    Hi,
    After the email reaches the users' mailbox, I would like to record if a user opened the email or not. How can I call back to one of the commands in my server to make the recording? In other words, what should I include in the html or jsp file when I generate the email content in my server? Thanks a lot!
    best regards,
    Jen

    Answer is log files.... develop your program in such a way that it keeps logs for
    events like... sending a email, retrieving emails... which user is logged in and
    so on...
    i think this is the most simple and practical way to do this task
    have fun

  • PO Email to buyer/user creating the PO

    Dear All,
    I am using functionality to send PO to vendor by email and its working perfectly fine. Now I need the copy of same PO to be sent by an email to the user or buyer who is creating that PO. Is there any standard way we can do this.?
    Regards,
    Sachin

    Hi sachin,
    see thread link given below, might help you
    Send PO via Email to the buyer
    Regards,
    Edited by: SAP_01 on Dec 3, 2010 12:35 AM

  • How to cancelling email submission after user clicks "yes/no" button of message box?

    could some one tell me, how can i cancelling the submission event after one user clicks "yes/no" button of message box? The scenario is the following:
    After data input in a dynamic form clicks the user send mail button. Before the email submit, the user has to decide going back to the form and validate the input or continuing to submit email.
    In case of going back to validate input the submission event must not solve. So, how can i implemente it in java and/or form calc script?
    Thanks so much for your help in advance and i am very glad to hearing from you soon!
    Djinges

    Hello,
    The most easy way to solve your problem is to add two buttons, the first should be regular button and the second is submit by e-mail one. Set the
    'presence' property of the second to 'hidden' and add to it your email address. To the first button on 'click' event add the script like this
    form1.#subform[0].Button1::click - (JavaScript, client)
    var answer = xfa.host.messageBox("Send e-mail?","e-mail",2,1);
    if(answer==1){
    EmailSubmitButton1.execEvent('click');
    Hope this helps.

  • ME23N Script convert to PDF and send thru mail to the user created by

    Hi,
    I have created a custom PO SAP scirpt for the tcode ME23N and configured the same in tcode NACE Application 'EF' , output type 'NEU'
    But the client requirement is to send  this SAP Scipt PO converted to pdf & then send thru email to the user who created PO (ME23N)?
    How do u get this functionality please let me know?
    Regards,
    Anil

    Hello,
    that is easy, you only need to keep the steps to do in mind:
    1) find a suitable point to place in your code to do all this for you
    2) create a FM that will convert your form into PDF (search a little, this has been done like zillion times here)
    3) create a FM that will send the PDF stream (hex data which is accepted by the BCS class as the attachment data)
    4) check the email customizing in your system
    5) run and enjoy
    All the parts has been done here many times, shouldn´t be a problem.
    Otto

  • How to terminate remaining Actions in a script sequence if the user presses "Cancel" during SaveAs

    Hello,
    I'm using the following script to email a completed form to a pre-programmed email address and would like a way to cancel remaning in-line scripts if the user cancels teh first Step.
    Basically, after completing the form I cereated, the user would click the submit button and a series of actions will take place:
    1. Execute a menu item: SaveAs giving the user a chance to Save the current state of the form.
    [Here is where I need a Arcobat script that terminates all remaning actions if the user cancels the SaveAs action]
    2. Once the form has been saved (and not canceled), the next action involves prepping and generating an email to send the form using the user's default email client:
    var e = this.getField("ccAdd");  //There is a field on the form that enables the user to enter a CC: address, if applicable
    var cCCAddr = e.value;
       var cSubLine = "Subject goes Here"; //preformatted subject
       var cBody = "File attached." // preformatted Body text
       // Build the e-mail URL
       var cEmailURL = "mailto:[email protected]?cc=" + cCCAddr
                     + "&subject=" + cSubLine
                     + "&body=" + cBody;
    //Before sending, set ALL form fields to "readonly"
    for (var i = 0; i < this.numFields; i++) {
        var fname = this.getNthFieldName(i);
        var f = this.getField(fname);
            f.readonly = true;
    // hide submit display button, so that it doesn’t show on “readonly” version
    var h = getField("Button1");
    h.display = display.hidden;
    //Generate the outgoing email using the user’s default email client. Send attachment as a PDF
       this.submitForm({cURL: cEmailURL, cSubmitAs:"PDF", cCharSet:"utf-8"});
    3. Once the form has been emailed, another SaveAs menu item fires, thereby, allowing the user to save the "readonly" version.  So now, he has a clean "open version"  that he saved before Step #2, and a "readonly" version after step #2.
    The only thing that's causing an issue now is if the user presses Cancel after the Step #1  (where he/she is asked to save the form), the remaining scripts in-line continue to fire, alougth the "Cancel" button was pressed. 
    SO, I need a script that terminates all remaining scripts (i.e. end process) if the user hits cancels during Step #1, thereby preventing step 2 from starting.
    Any ideas? Thanks in advance.
    S

    ok, i've had a play with it . . . and come up with two options, one that breaks attempts to break any code being run if the cancel button is hit.  either way, they need to be added into a document level javascript, and applies the required action to your submit button (trust me, this becomes a lot easier than applying script to buttons directly!)
    i just wrote functions that chain, so the first function calls the second, and the second calls the third.  seemed easier than trying to nest them.  i know the finaliseForm function simply calls the first in the chain, but that's just a matter of personal preference, i prefer to define functions with logical names.  also, that way, you can test each function individually, or all together, and write more code to the finaliseForm function if you need to.
    not sure if you're using acrobat 9 or X, but the document level javascript is in two different places.  in 9 it's under advanced - document processing - document javascripts.  just give it a name, add it, remove any lines in the window that appear and paste in this code.
    so here's the one that continues the script, with prompts, even when the no button is hit. let me know how you go!
    function saveasEditable() {
        //prompt the user to continue save as
        var saveasPrompt = app.alert({
                    cMsg : "Do you want to save an editable version of this file before emailing?",
                    cTitle : "Save As Editable Form",
                    nIcon : 2,
                    nType : 2
        //where 4 is yes and 3 is no
        if (saveasPrompt == 4) {
            app.execMenuItem("SaveAs");
            emailForm();
        } else {
            emailForm();
    function emailForm() {
        //and invoke a second alert to prompt emailing the form
        var emailPrompt = app.alert({
                    cMsg : "Do you wish to email the form now?",
                    cTitle : "Submit form via email",
                    nIcon : 2,
                    nType : 2
        if (emailPrompt == 4) {
            var e = this.getField("ccAdd"); //There is a field on the form that enables the user to enter a CC: address, if applicable
            var cCCAddr = e.value;
            var cSubLine = "Subject goes Here"; //preformatted subject
            var cBody = "File attached."// preformatted Body text
                // Build the e-mail URL
                var cEmailURL = "mailto:[email protected]?cc=" + cCCAddr
                 + "&subject=" + cSubLine
                 + "&body=" + cBody;
            //Before sending, set ALL form fields to "readonly"
            for (var i = 0; i < this.numFields; i++) {
                var fname = this.getNthFieldName(i);
                var f = this.getField(fname);
                f.readonly = true;
            // hide submit display button, so that it doesn’t show on “readonly” version
            var h = this.getField("Button1");
            h.display = display.hidden;
            //Generate the outgoing email using the user’s default email client. Send attachment as a PDF
            this.submitForm({
                    cURL : cEmailURL,
                    cSubmitAs : "PDF",
                    cCharSet : "utf-8"
            saveasReadonly();
        } else {
    function saveasReadonly() {
        //and invoke a third alert to prompt save of the read only form
        var readonlyPrompt = app.alert({
                    cMsg : "Do you wish to also save a read-only copy of this file?",
                    cTitle : "Save As Read-only Copy?",
                    nIcon : 2,
                    nType : 2
        if (readonlyPrompt == 4) {
            app.execMenuItem("SaveAs");
        } else {}
    function finaliseForm() {        saveasEditable();
    //assign all of this to the submit button from the doc level
    this.getField("Button1").setAction("MouseDown", "finaliseForm();");

  • How to have mail server automatically cc all email for a user to other acct

    I have a user on my 4.9 Xserve who wants her email automatically send to another account. I set forwarding first, but her email client keeps asking her for a password (and hers doesn't work) and won't allow her to see past email. Is that normal? Anyway, I've shut off forwarding for now, and am wondering if it's possible to have it automatically cc'd to another account (send a copy, but don't interfere with her ability to manage the email in her normal account with an IMAP client). Any ideas?
    Thanks,
    Mike

    Be aware that you are about to enter the dark zone of Unix file editing. Once there, you may never want to come back. Your friends and relatives will spurn you and you will start to dress in dark clothes and listen to impenetrable music.
    You can also screw up your whole system... but hey, who wants to live forever
    If you have a skateboard, sit it on your desk, then switch off all other lights except for an anglepoise...
    In Terminal, cd to postfix directory, and just for interest, list the files already there...
    cd /etc/postfix
    ls -l
    You should see the main.cf one which you will edit later.
    Create the new recipient_bcc file using 'pico', one of the built-in text editors. This is the easiest to start with because it contains on-screen help. There are others, including 'vi' which I would normally use. You will prefix the command with 'sudo' which temporarily makes you the 'super-user' (root) and needs the admin password. So...
    sudo pico recipient_bcc
    Add the two email addresses, separated by a tab or space, on the left: the local email address, and on the right: the address to send copies to (BCCs). To edit existing text, use arrow keys. Save the file using ctrl-o, confirm filename, then exit (ctrl-x).
    For postfix to be able to read this as a database, you need to 'postmap' it...
    sudo postmap recipient_bcc
    To confirm, list the files and you will see the two new ones (ls -l).
    Before editing the main.cf file, make a backup copy of it...
    sudo cp main.cf main.cf.bak
    If you need to revert to the backup, you reverse the orig/target args...
    sudo cp main.cf.bak main.cf
    Edit the main.cf file (sudo pico main.cf) and either 'next page' to bottom or enter '^_' (ctrl + underscore char) then specify line number 999.
    add the line...
    recipientbccmaps = hash:/etc/postfix/recipient_bcc
    Postfix knows to use the postmaped .db file so you do not specify that one in the line.
    Save and exit file.
    Reload the postfix main.cf configuration file...
    sudo postfix reload
    Test it by sending an email to the user and watch the mail.log in Console app. You should see the BCC being sent to the other email address. If something has gone wrong, replace the main.cf with the backup, issue postfix reload, then try again.
    Once you have confirmed it working, dance around the room playing air guitar and give high-fives to any innocent bystander.
    -david
    Links...
    http://www.postfix.org/postconf.5.html
    http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/pico.1.h tml
    http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/cp.1.htm l
    http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/postfix. 1.html

Maybe you are looking for

  • How to register a pl/sql report as an Oracle report.

    Guru's, I have a requirement to add a Pl/sql report in a shipping document set. Shipping document set can contain Oracle reports only(RDF). Is there a way we can add pl/sql report in a shipping docuemnt set? Thanks -Karthik

  • Passing the values for the tokens in oaf

    Hello, I have an application message with the text as "Employee &ENAME belong to the organization &ORGANIZATION". In framework, i have assigned this application message to a messagestyledtext and i want to pass the &ENAME and &ORGANIZATION values at

  • Cannot create Apple ID

    The address I want to use was once the 'rescue' address for another ID... I have erased it and unlinked it... but now, I cannot create another ID with it so I can use it for FaceTime. My family and friends do not know the old one! It is no longer use

  • IMultiMix8USB and Garageband does not work

    Hi all - I try to record out of my iMultiMix8USB into Garageband. The first minutes all seems very well. Good sound, all as expected. After a while a very noisy distortion suddenly comes up and the good sound disapperas ... So I have the same problem

  • Implementing a drop down menu.

    Hi, I am trying to create a drop down menu on my jsp page which will change a GIF that I send back in the servlet response. Right now I just call a function that encodes the GIF and displays it through the output stream of the servlet response, but I