PO Automtica Sending E-mail to Vendor and sender

When sending purchase order via E-mail to vendor,
SAP only take  E-mail adress of vendor.
What can do to send the purchase order to all E-mail adresses defined for a vendor?
I already read OSS note 786847. But I didn`t yet know how to define Z* table. and 
where to change program logic to in place of ADRC* table.
thanks
Shi Chun Qing
Edited by: SHI CHUN QING on Jul 2, 2008 10:27 AM

Hi
First you need to Create a New program Copying the Standard Program used for Printing SAPFM06P, make the Changes as per your requiremnt.
If the Vendor has 10 mail addresses , retreive the same from the Address tables & Create a Z table which is a copy of NAST, Table NAST stores the First message, make a copy of that in ZNAST & replicate the same with the Different mai Id's
All the Logic should be included in the Print Program.
Create a Copy of the ME_PRINT_PO & maintain the logic.
Thanks & Regards
Kishore
Edited by: Kishore Kumar Chiluka on Jul 2, 2008 11:11 AM

Similar Messages

  • Need an enhancement after releasing a PO Need to send a mail to vendor

    Hi all,
              I am having a requirement that, need to send a mail and attachment whenever a PO get released.
    Can anyone help to find the enhancement for to write the code to send a mail to vendor.
    Regards.
    Ranganadh.

    Hi,
    To send a mail when a new PO is created.
    can be achievd by using  class cl_bcs and BADI method
    IF_EX_ME_PROCESS_PO_CUST~POST of BADI ME_PEOCESS_PO_CUST.
    We can aslo configure the OUTPUT TYPE as MAIL in transaction NACE. This is usually doen by the Functional consultant.
    Pls look into these exapmles which clearly explains abt the process of sending a  mail-
    Sending Mail using class cl_bcs
    Re: Mail sending program
    Re: SCOT and FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • BADI for Vendor Invoice after Posting to send a mail to vendor

    Hi,
    My requirement Is like this.
    I have to send a mail to vendor after the Invoice for vendor is Posted.
    For dat I am searching for a badi to implement after the invoice is successfully posted.
    Please give some solution about this.
    Regards,
    Jyoti..

    if it is F-43 . check out the following
    BAdI Definition      Description                                                                               
    AC_QUANTITY_GET      Transfer of Quantities to Accounting - Customer Exit       
    BADI_ENJ_ALT_ADR     Go to alternative vendor/customer data                     
    BADI_F040_SCREEN_600 Screen Enhancement on F040 0600 Document Header            
    BADI_FDCB_SUBBAS01   Screen Enhancement 1 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS02   Screen Enhancement 2 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS03   Screen Enhancement 3 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS04   Screen Enhancement 4 on FDCB Basic Data Screen (010, 510)  
    BADI_FDCB_SUBBAS05   Screen Enhancement 5 on FDCB Basic Data Screen (010, 510)  
    BADI_PRKNG_NO_UPDATE BAdI for Deactivating Update of Parked Documents           
    F050S008             FIDCC1, FIDCC2 Inbound IDoc: Update Comparison Ledger      
    FBAS_CIN_LTAX1F02    Tax interface                                              
    FBAS_CIN_MF05AFA0    EWT - Downpayment Clearing - Tax transfer for CIN          
    FI_AUTHORITY_ITEM    Extended Authorization Check for Document Display (FB03)   
    FI_GET_INV_PYMT_AMT  BAdI for determining the payment amount for an invoice     
    FI_HEADER_SUB_1300   Screen Enhancement for Document Header SAPMF05A            
    FI_PAYREF_BADI_010   BAdI: Payment Reference Number                             
    FI_TRANS_DATE_DERIVE Derive BKPF-WWERT from Other Document Header Data          
    INVOIC_FI_INBOUND    BADIs for Inbound IDoc INVOIC FI (Vendor Invoice)          
    RFESR000_BADI_001    BAdI for Own Processing of POR Item                        
    otherwise - find out the package of the program of the transaction.
    go to se84 - enhancements- business add ins - definitions - enter package and execute - you will see all the definations.

  • TS3276 Help in setting Apple Mail to receive and send mail via Yahoo mail service

    I would appreciate help in setting up Apple Mail to receive and send e-mails via Yahoo.   Thank you

    Sorry,
    Have you tried the connection doctor? In Mail menu bar under Window connection doctor, this will usually let you know where the problem might be.
    http://support.apple.com/kb/TS3276  Read thru this as well.

  • Send E-mail to Buyer and Requisitioner while doing GR for a Purchase Order

    Hi All,
    I  would like to send automatic notification messages to buyers and Requisitioners when goods receipt is completed for Purchase orders (Document type ZE). Notification should be sent only for the purchase requisitions that are created manually.
    Notification message should contain the following info:
    u2022 Purchase order number
    u2022 Purchase requisition number
    u2022 Purchase requisition line item number
    u2022 Vendor
    u2022 Material Number
    u2022 Short Text
    u2022 Goods Receipt quantity
    u2022 Batch number
    u2022 Storage Location
    Notification messages should send to an email address, requisitioneru2019s SAP address and e-mail address that was maintained SAP user profile.
    If goods receipt document contains more than one line and those lines related to more than one requisition the system should generate one message per requisitioner.
    There is standard fonctionality in message determination that enables sending a message to the buyer when GR is performed on a PO. But not to requisitioner.
    would this require Worfklow or is there a user exit available at Goods Receipt time to do this kind of notification?
    Please let me know
    Thanx in advance.

    Hi,
    You can send the mail in the BADI MB_DOCUMENT_BADI.
    But i suggest to check with your functional consultant to set up a routine in output determination.
    In this routine you can add the code to send the mail.
    Regards,
    Ankur Parab

  • Mail.jar is locked when sending a mail using servlet and not releasing

    Hi everybody,
    The mail.jar is locked in tomcat while sending the first message and not released until the tomcat get restarts.
    the problem is not recorded in any logs.
    1. Please create a servlet that sends mail
    2. Send a mail to any mailid
    3. then after the mail is send please try to delete the mail.jar or please deploy the same servlet again with some small changes (for redeploying take place only a few changes is there - please change any strings a little bit)
    then try to send mail using this servlet will not send mail becoause it will not redployed correctely.
    when i removed Transport.send(msg); from code it works fine. but ??
    please help me to recover from this issue. i don't want to turn on tomcat antiJarlocking and antiresourcelocking to true, becaouse this craete many other problems.
    please help me to recover from this issue.
    Thanks,
    Prasad.N

    hi friend
    I am using advanced version of jdk. i i have used many other jar files like mysqlconnector, logging, commonhttpclient, etc.... the only problem is with mail.jar. that locks are released when its use completed, but the lock holds until tomcat shutdown in mail.jar.
    what may be the reason?
    Thanks,
    Prasad.N

  • Mail created with "Send to Mail Recipient" disappear and are not sent

    I have a small setup with a SBS 2011 server (Exchange 2010) 10 users with Windows 8.1 and Outlook 2013.
    One user is trying to send mails with attachments to his college´s
     but they are never send, are not shown in sent items and can not be found on the server.
    The user right click on a PDF file and press "Send to Mail Recipient" Outlook opens his mail is entered into the receiver (internal receiver) and press send. The mail do not show up and as mentioned even in sent items.
      I then try to do the same but send through the address book in Outlook / Exchange and these messages appears as they should.
    One week later, the disappeared mails suddenly appears in the college’s mailboxes and it turns out there are some mails to external addresses as well, which were not sent until a week. All messages are now in sent mail but they have not
    appeared anywhere else before.
    I did some tests with the "send to" function which also had the mails disappearing - those mails has not turned up until now. (a week ago)
    Now the user (AND all colleagues)  are very nervous that something is wrong with their system and the mail does not arrive.
    It is only 1 user this has affected but he is responsible for the majority of sales in this company and they are very afraid that they are not responding correctly to large customers.
    Is there anyone who can help with debugging in such a case?
    I have tried repairing Outlook, started in safe mode, checked the mail server for hanging mails but nothing shows any errors.
    Thanks in advance.
    Michael Grøn
    Michael Gron

    Hi,
    Have the user logon OWA and send the attachment, will this issue persist?
    Please also confirm if the issue exists when inserting an attachment when composing a new email isntead of using the "Send to Mail Recipient" function.
    Since only one user has been affected, use MFCMAPI to find if the message is stuck in the user's mailbox:
    https://mfcmapi.codeplex.com/releases/view/118446
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Problem while sending a mail with smtp and ssl

    Hi all,
    I am new to java mail . I have downloaded one java program to send the mail. I have configured smt and port address.And my System firewall is also in off mode
    Still i am unable to send the mail
    The following code is my program import java.util.Properties;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.URLName;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    import com.sun.mail.smtp.SMTPSSLTransport;
      To use this program, change values for the following three constants,
        SMTP_HOST_NAME -- Has your SMTP Host Name
        SMTP_AUTH_USER -- Has your SMTP Authentication UserName
        SMTP_AUTH_PWD  -- Has your SMTP Authentication Password
      Next change values for fields
      emailMsgTxt  -- Message Text for the Email
      emailSubjectTxt  -- Subject for email
      emailFromAddress -- Email Address whose name will appears as "from" address
      Next change value for "emailList".
      This String array has List of all Email Addresses to Email Email needs to be sent to.
      Next to run the program, execute it as follows,
      SendMailUsingAuthentication authProg = new SendMailUsingAuthentication();
    public class SendMailUsingAuthentication
    //private static final String SMTP_HOST_NAME = "smtp.mail.yahoo.com";
         private static final String SMTP_HOST_NAME = "smtp.gmail.com";
      private static final String SMTP_AUTH_USER = "admijn.ramd";
      private static final String SMTP_AUTH_PWD  = "hairamu";
      private static final int SMTP_PORT  = 465;
      private static final String emailMsgTxt      = "Online Order Confirmation Message. Also include the Tracking Number.";
      private static final String emailSubjectTxt  = "Order Confirmation Subject";
      private static final String emailFromAddress = "[email protected]";
      // Add List of Email address to who email needs to be sent to
      private static final String[] emailList = {"[email protected]", "[email protected]"};
      public static void main(String args[]) throws Exception
        SendMailUsingAuthentication smtpMailSender = new SendMailUsingAuthentication();
        smtpMailSender.postMail( emailList, emailSubjectTxt, emailMsgTxt, emailFromAddress);
      public void postMail( String recipients[ ], String subject,
                                String message , String from)
           try{
        boolean debug = false;
         //Set the host smtp address
    //  Set the host smtp address
         Properties props = new Properties();
         props.put("mail.transport.protocol", "smtp");
         props.put("mail.smtp.port", SMTP_PORT);
         props.put("mail.smtp.starttls.enable","true");
         props.put("mail.smtp.host", SMTP_HOST_NAME);
         props.put("mail.smtp.auth", "true");
          props.put("mail.smtp.socketFactory.port", SMTP_PORT);
         props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
          props.put("mail.smtp.socketFactory.fallback", "false");
          SecurityManager security = System.getSecurityManager();
         Authenticator auth = new SMTPAuthenticator();
         Session session = Session.getDefaultInstance(props, auth);
         session.setDebug(debug);
         // create a message
         Message msg = new MimeMessage(session);
         // set the from and to address
         InternetAddress addressFrom = new InternetAddress(from);
         msg.setFrom(addressFrom);
         InternetAddress[] addressTo = new InternetAddress[recipients.length];
         for (int i = 0; i < recipients.length; i++) {
              addressTo[i] = new InternetAddress(recipients);
         msg.setRecipients(Message.RecipientType.TO, addressTo);
         // Setting the Subject and Content Type
         msg.setText(message);
         msg.setSubject(subject);
         msg.setContent(message, "text/plain");
         Transport.send(msg);
         }catch (MessagingException e) {
              // TODO: handle exception
              e.printStackTrace();
    * SimpleAuthenticator is used to do simple authentication
    * when the SMTP server requires it.
    private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication()
         try{
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    System.out.println("username "+ username+" Password"+password);
    return new PasswordAuthentication(username, password);
         }catch (Exception e) {
         return null;
    And i am getting the following exceptions
    javax.mail.MessagingException: Exception reading response;
      nested exception is:
         javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
         at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1611)
         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1369)
         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
         at javax.mail.Service.connect(Service.java:310)
         at javax.mail.Service.connect(Service.java:169)
         at javax.mail.Service.connect(Service.java:118)
         at javax.mail.Transport.send0(Transport.java:188)
         at javax.mail.Transport.send(Transport.java:118)
         at com.FutureSoft.org.SendingMail.SendMailUsingAuthentication.postMail(SendMailUsingAuthentication.java:123)
         at com.FutureSoft.org.SendingMail.SendMailUsingAuthentication.main(SendMailUsingAuthentication.java:70)
    Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
         at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
         at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
         at java.io.BufferedInputStream.fill(Unknown Source)
         at java.io.BufferedInputStream.read(Unknown Source)
         at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:88)
         at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1589)
         ... 9 more                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    hi neuro11
    the following code is for sending mail its is working fine in my system, just change the
    SMTP_AUTH_USER = "tina.numi"; with u r email user name
    SMTP_AUTH_PWD = "abdcde"; u r gmail password
    emailFromAddress = "[email protected]"; ur gmail addres
    emailList = {"[email protected]"}; receipient list .
    and u must sure that u r internet is on and firewall should be off . some times firewall restricts you to communicate with gmail port number
    Please make u r firewall off and source code is
    package com.FutureSoft.org.SendingMail;
    Some SMTP servers require a username and password authentication before you
    can use their Server for Sending mail. This is most common with couple
    of ISP's who provide SMTP Address to Send Mail.
    This Program gives any example on how to do SMTP Authentication
    (User and Password verification)
    This is a free source code and is provided as it is without any warranties and
    it can be used in any your code for free.
    Author : Sudhir Ancha
    import java.util.Properties;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.URLName;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    import com.sun.mail.smtp.SMTPSSLTransport;
      To use this program, change values for the following three constants,
        SMTP_HOST_NAME -- Has your SMTP Host Name
        SMTP_AUTH_USER -- Has your SMTP Authentication UserName
        SMTP_AUTH_PWD  -- Has your SMTP Authentication Password
      Next change values for fields
      emailMsgTxt  -- Message Text for the Email
      emailSubjectTxt  -- Subject for email
      emailFromAddress -- Email Address whose name will appears as "from" address
      Next change value for "emailList".
      This String array has List of all Email Addresses to Email Email needs to be sent to.
      Next to run the program, execute it as follows,
      SendMailUsingAuthentication authProg = new SendMailUsingAuthentication();
    public class SendMailUsingAuthentication
    //private static final String SMTP_HOST_NAME = "smtp.mail.yahoo.com";
         private static final String SMTP_HOST_NAME = "smtp.gmail.com";
      private static final String SMTP_AUTH_USER = "tina.numi";// gmail username
      private static final String SMTP_AUTH_PWD  = "abdcde";// gmail password
      private static final int SMTP_PORT  = 465;
      private static final String emailMsgTxt      = "Online Order Confirmation Message. Also include the Tracking Number.";
      private static final String emailSubjectTxt  = "Order Confirmation Subject";
      private static final String emailFromAddress = "[email protected]";// gmail id
      // Add List of Email address to who email needs to be sent to
      private static final String[] emailList = {"[email protected]"};
      public static void main(String args[]) throws Exception
        SendMailUsingAuthentication smtpMailSender = new SendMailUsingAuthentication();
        smtpMailSender.postMail( emailList, emailSubjectTxt, emailMsgTxt, emailFromAddress);
      public void postMail( String recipients[ ], String subject,
                                String message , String from)
           try{
        boolean debug = false;
         //Set the host smtp address
    //  Set the host smtp address
         Properties props = new Properties();
         props.put("mail.transport.protocol", "smtp");
         props.put("mail.smtp.port", SMTP_PORT);
         props.put("mail.smtp.starttls.enable","true");
         props.put("mail.smtp.host", SMTP_HOST_NAME);
         props.put("mail.smtp.auth", "true");
          props.put("mail.smtp.socketFactory.port", SMTP_PORT);
         props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
          props.put("mail.smtp.socketFactory.fallback", "false");
          SecurityManager security = System.getSecurityManager();
         Authenticator auth = new SMTPAuthenticator();
         Session session = Session.getInstance(props, auth);
         session.setDebug(debug);
         // create a message
         Message msg = new MimeMessage(session);
         // set the from and to address
         InternetAddress addressFrom = new InternetAddress(from);
         msg.setFrom(addressFrom);
         InternetAddress[] addressTo = new InternetAddress[recipients.length];
         for (int i = 0; i < recipients.length; i++) {
              addressTo[i] = new InternetAddress(recipients);
         msg.setRecipients(Message.RecipientType.TO, addressTo);
         // Setting the Subject and Content Type
         msg.setText(message);
         msg.setSubject(subject);
         msg.setContent(message, "text/plain");
         Transport t = session.getTransport("smtps");
         try {
              t.connect(SMTP_HOST_NAME, SMTP_AUTH_USER, SMTP_AUTH_PWD);
              t.sendMessage(msg, msg.getAllRecipients());
         catch(Exception e){}
         finally
              t.close();
         }catch (MessagingException e) {
              // TODO: handle exception
              e.printStackTrace();
    * SimpleAuthenticator is used to do simple authentication
    * when the SMTP server requires it.
    private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication()
         try{
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    System.out.println("username "+ username+" Password"+password);
    return new PasswordAuthentication(username, password);
         }catch (Exception e) {
         return null;
    try this . all the best

  • Send PO PDF to vendor and ALSO to others

    Hi,
    I have a custom Ouput Type, ZNEU, that sends our custom PO form via email to the vendor by using SAPFM06 and routine ENTRY_NEU at PO save. Works fine.
    Also at PO save, a new requirement is to send an email with the PO attached to two other other recipients: the requisitioner (eban-banfn) and a custom field (eban-zuname). I created a second custom Output Type, ZNE2, that gets the recipient values and their email addresses and sends the email, but how can I attach the PDF as well. At the time the output message is being created, the spool file doesn't exist yet. I considered modifying our custom output type ZNEU to also send to the additional recipients, but can't figure out where to enhance the code.
    Any suggestions on how to meet this requirement will be greatly appreciated. Yes, I reward all helpful answers.
    Beth

    Lakshmi,
    I suggest you make yourself very familiar with the SAP code that does this automatically. Once you understand the processing sequence SAP uses, it is much easier to add your customization and insert your enhancements. To debug it and step through the code, but a breakpoint in ENTRY_NEU, and process a PO. If you're sending your messages using a scheduled job, you'll hit the breakpoint when you process the message using RSNAST00. That's how I did it.
    I can tell you what I did to meet my requirements. You can change to meet your needs. It required a custom program, to use instead if ENTRY_NEU, and 3 enhancements to SAP code using the Enhancement Framework. You need to know how to use the framework.
    1. configure your output type ZNE2 to to run a new program ZMRP_OUTCTRL, to run form routine ENTRY_ZNE2, to create form Z_PURCHASE_ORDER.
    2. In ZMRP_OUTCTRL, call standard function modules, ME_READ_PO_FOR_PRINT and ME_PRINT_PO.
    3. Drill down into ME_PRINT_PO to PREPARE_FORMULAR function module. Create new enhancement, and if NAST-KSCHL = ZNE2, then lookup the recipient's email address. Pass it as parameter to ADDR_GET_NEXT_COMM_TYPE.
    4. Still in ME_PRINT_PO, PREPARE_FORMULAR, add another enhancement to set the value of itcpo-getotf to u2018Xu2019, to enable CLOSE_FORM to capture OTF data for PDF. Only set this OTF flag when the output is being run by RSNAST00, not when a user is simply previewing the printout. Sy-ucomm will be blank when RSNAST00 is running.
    5. In  ME_PRINT_PO, drill down to ENDE, and add an enhancement to check for NAST-KSCHL = ZNE2, and if so, call standard SAP function modules to END_FORM, START_FORM, WRITE_FORM, and END_FORM. Next call the function CLOSE_FORM, and set table parameter to capture the OTF_DATA as a table parameter OTF_DATA.
    6. If OTF_DATA is found, then:
    If nast-kschl = 'ZNE2'.
        if NOT otf_data[] is initial.
        gs_OTF[] = otf_data[].
        CALL FUNCTION 'CONVERT_OTF'
             EXPORTING
                  format                = 'PDF'
             IMPORTING
                  bin_filesize          = v_len_in
             TABLES
                  otf                   = gs_otf
                  lines                 = gt_pdf
             EXCEPTIONS
                  err_max_linewidth     = 1
                  err_format            = 2
                  err_conv_not_possible = 3
                  OTHERS                = 4.
            IF SY-SUBRC <> 0.
              p_retco = '1'.
              PERFORM protocol_update USING '303' 'OTF Conversion failed.' 'Output Message Cancelled.'
                    space space.
              IF 1 = 2.
                MESSAGE S303(me) with 'OTF Conversion failed.'.
              ENDIF.
              EXIT.
            ENDIF.
    CALL FUNCTION 'QCE1_CONVERT'
      TABLES
        T_SOURCE_TAB               = gt_pdf
        T_TARGET_TAB               = outbin.
            IF SY-SUBRC <> 0.
              p_retco = '1'.
              PERFORM protocol_update USING '303' 'PDF Conversion failed.' 'Output Message Cancelled.'
                    space space.
              IF 1 = 2.
                MESSAGE S303(me) with 'PDF Conversion failed.'.
              ENDIF.
              EXIT.
            ENDIF.
    *get email recipients (this is specific to my requirements)
      select single banfn ernam zuname1
        into (lv_banfn, lv_ernam, lv_zuname )
        from eban
        where ebeln = nast-objky.
            IF SY-SUBRC <> 0.
              p_retco = '1'.
              PERFORM protocol_update USING '303' 'Requisition Data not found.' 'Output Message Cancelled.'
                    space space.
              IF 1 = 2.
                MESSAGE S303(me) with 'Requisition Data not found.'.
              ENDIF.
              EXIT.
            ENDIF.
    8. Build your OBJPACK and OBJBIN parameters:
    describe table mail_content lines lin.
      read table mail_content index lin.
      mail_data-doc_size = ( lin - 1 ) * 255 + STRLEN( mail_content ).
      clear objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num = 0.
      objpack-body_start = 1.
      objpack-body_num = lin.
      objpack-doc_type = 'TXT'.
      APPEND objpack.
      describe table outbin lines lin.
      read table outbin index lin.
      objpack-doc_size = ( lin - 1 ) * 255 + strlen( outbin ).
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 0.
      objpack-body_start = 1.
      objpack-body_num = lin.
      objpack-doc_type = 'PDF'.
      objpack-obj_name = 'ATTACHMENT'.
      objpack-obj_descr = l_descr.
      APPEND objpack.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA                    = mail_data
        PUT_IN_OUTBOX                    = 'X'
      TABLES
        PACKING_LIST                     = objpack
        CONTENTS_BIN                     = outbin
        CONTENTS_TXT                     = mail_content
        RECEIVERS                        = 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.
            IF SY-SUBRC <> 0.
              p_retco = '1'.
              PERFORM protocol_update USING '303' 'Send Email function failed.' 'Output Message Cancelled.'
                    space space.
              IF 1 = 2.
                MESSAGE S303(me) with 'Send Email function failed.'.
              ENDIF.
              EXIT.
            ENDIF.
    9. Call function CLOSE_FORM, and end enhancement.
    That's everything. I hope it works for you.

  • Receive a mail with attachment and send it as it is via Mail-receiver

    Hi,
    we have PI/7.0
    I have a scenario with a mail-sender.
    I get mails with attachments and depending on the subject I have to send some mails to an other mail-address via mail-receiver-adapter.
    My problem is, that I have to send it "as it was" - with all attachments (and the correct attachment names) and the original mail-body.
    I tried to check the checkbox "keep attachments": I got all attachments but the original mail-body was now an extra attachment (with the extension .xml).
    I don't wanna have this new attachment!
    What can I do?
    Thanx a lot!
    Regards
    Wolfgang

    Hi,
    I think quite simple
    message protocol: xipayload
    Use Mail package: NO
    Keep Attachments: YES
    Content encoding: <nothing>
    No extra modul
    I entered all address-informations (from, to,...) in the fields displayed after the checkbox for "use mail package".
    that's all.
    regards
    Wolfgang

  • RFQ send by mail to vendor automatically

    I have got the requirement for sending the RFQs to vendors. RFQS
    to be sent to vendors with attachment through mails.RFQs needs be
    converted to PDF, after converting to PDF it  has to be sent to the vendors as an attachment through E-maiil.
    So, Can you please tell me the procedure to send RFQS as an attatchment through E-mail.

    Hi raguveer,
    Hope this link will help you RFQ send by mail through SAP server
    Regards,
    Pravin

  • My phone won't send outgoing mail.  Won't send some text messages and now when it's not on wireless and only 3g the internet won't load.  Help!

    These are ongoing problems.  I really want to go back to my android.  This moring the problem was sending outgoing mail.  I have done a restart.  I have cleared my cookies.  Some text messages I have to send twice to non-apple phones.  When I'm not on wireless and I'm on 3g there is no point in even trying the internet.  Very disappointed in this phone. 

    if your having issue with your 3G service, then you should contact your cell phone provider as they handle cellular networks.
    in the mean time you can try a reset, hold down the home/power button together until you see the apple logo and then release, then wait for you phone to boot back up.

  • How to automatically send the mail without popping for send

    Hi,
    I am providing proper values in system parameters of report6. viz.
    Desformat=pdf
    Destype=mail
    mode=bitmap
    desname=Valid email id
    I am using MS MAPI (Microsoft Outlook)
    When I run the report, I get the composed mail with the pdf attachment. When I press the SEND button of the composed mail, I shall be able to send the mail.
    Is there a way to SEND the mail automatically through reports?
    Regds
    Prakash H L

    hi ,
    Try running your report in batch mode, provide batch=yes on the command line for your report. This will suppress any user interaction and will mail the report without the need for the user to click on the send button of the mail composer.
    Regards
    Oracle Reports Team.

  • Send e-mail to Vendors when Close Bid Invitation

    I have a issue with SRM.
    In Process BID Invitation, when the Bid is close by the button action "Close", Is possible to send an e-mail to the selected vendors, advising them about the closure of the BID invitation? Can I do this thru any BADI or another solution?
    I think that in Auction, when I CLOSE them, an email is send to the vendors. Am I correct about this?
    Can anyone please tell me how I can solve this problem?
    This problem can be the Configuration? Is a SRM Problem or ABAP Problem?
    Modaration Please, if this question is an incorrect forum, check and move to the appropriate.
    Regards and tks a lot!
    Edited by: Edgard Henrique Balam on Oct 29, 2008 8:21 PM

    Hi Henri,
    This blog may be useful for you.
    I think it is possible if you have event which you desired
    Bidder Alert Notifications
    You can try.
    Muthu
    Edited by: Muthuraman Govindasamy on Oct 31, 2008 5:55 AM

  • Send Auto mail to Vendors for Pending Delivery of Purchase orders

    Hi Gurus,
    I want to send an Auto Mail to my vendors according to their products as a reminder for the delivery of items of Purchase Order .
    Please give the configuration changes required for the same
    Thanks a lot in Advance
    Sam

    the message determination has to be customized, and the purchasing value key should have reminder days.
    everything else is master data maintenance (material master, info record, message conditions)
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/6a/c1041badb111d1b6120000e8a738dc/frameset.htm

Maybe you are looking for

  • Can't Add to iPhoto from Mail - function in Mail.app broken?

    I did try several Emails with different .jpg images attached, the option "Add to iPhoto" is visible in the pulldown menue (click "Safe" next to Quick Look), one can select it, but nothing happens. No difference if iPhoto is open or not. I did do a pe

  • Passing parameters between portlets

    Hi , I have a page with two portlets : one , done with the wizard , is a form , the other one is another form , but is done with a JSP. My trouble is that with the second form , the one done with a JSP , I must insert into the database two values , o

  • Early 08 Mac Pro Airport Trouble

    Hi all, I ran into a slow internet problem on my early 08 Mac Pro (x x 2.8 GHz Intel Xeon, 4 GB DDR2). I've had it hooked up to internet via ethernet cable for about a year now and everything was fine. Last week, I moved the computer to a sunnier roo

  • Customizing Book Of Sales Report

    Hi I am customizing Book Of Sales report which comes with Russia Localization Patch (RLP) The requirement is to increase width of one column. Since this report is in PLSQL whith output as html and its using CSS I am not able to figureout how to incre

  • Cannot COMMIT in a trigger

    I'm getting this error in an After Insert trigger. This trigger is calling a stored procedure which is trying to reindex using "alter index myindex rebuild". This index is on the same table as the trigger. Also, where and how can I find information o