Mail Sending On PO Release

Hello,
Earlier i made enhancements in user exit ZXM06U44 for sending mail to vendor when PO is made.
In that mail i am sending the PO data to vendor including Line item data also.
Now user wants the same only when PO is released and not on PO Creation.
I made the respective changes for the same.
Now the data in the mail is not comming and now i came to know that when we use Transaction ME29N to release PO, the user exit is triggered but as does not contains any line item data, it contains only Header data.
Thats why it is sending mail but with no data.
Now how could i get the data since my loop is on line item.
Can i make one Z Table and on PO creation, insert the data into that.
When ME29N Transaction triggered, get the data from that Z Table and put in ASN File and send that through mail.
Any other solution for this?
Please help in solving the problem.
With regards,
Nitin Malhotra

Hi Nitin Malhotra,
I have a better method to solve it.
You can use BAdi ME_PROCESS_PO_CUST ~ POST,
When your's user to release PO and save the data ,this BAdi will been used.
you can call function ,'SO_NEW_DOCUMENT_ATT_SEND_API1' or 'SO_DOCUMENT_SEND_API1'
to send the mail to vendor.
Below information from SAP .
This function module enables you send a new document including any existing attachments. The document and the attachments are transferred in the same table. They are created when sent and can also be placed in the sender's outbox.
It is necessary to distinguish between the document and its folder entries. The document itself only exists in the database once. It is a template for the folder entries and can be addressed via its object ID. Any number of folder entries can belong to the document. The folder entries contain the attributes of the document as well as some additional attributes relating to the folder entry itself. (Send priority and expiry date of the entry, for example.) Folder entries are created when a document is resubmitted, referenced or sent as well as when a new document is created.
Regards,
Alex
Edited by: alex yang on May 26, 2009 8:01 AM
Edited by: alex yang on May 26, 2009 8:02 AM

Similar Messages

  • PO mail output sender set as po release person, how to changet mail sender?

    Hi expert
    Now we setup po mail output. But we found when po released, the release person become the po mail sender. this is not we wanted. We checked with sap, they mentioned this is current sap logic. there is one function which need add some program , but sap doesn't support it.
    So we hope to check if there is any user exit, We hope to select purhcase group id 's mail address as po mail sender, But which user exit could work for this po output send? 
    Thanks
    Alice

    Hi....
    Did you get any solution to your problem ? If yes, can you please share the same with me ?
    I have a similar requriement from my customer, but am not able to figure out how to do this.
    Thanks in advance,,,,,Devendra

  • Trigger mail(sending mail to respective person)when budget is release in PS

    Dear Sir,
    I want to trigger mail ( sending mail to respective person ) when budget is release in PS.
    Please help for following :
    Option 1 : User exit
    Option 2: Workflow.
    Regards
    Vinu

    Hi Vinod,
    You can acheive this using a Workflow. What you need to do is set an user status as Rbud-release budget, and when ever you project is set to this status a workflow will trigger to the concerned aggest assigned to workflow task. Here you can provide a user decision as 1. Approve 2. Reject. When ever workflow triggers, approver can see in his inbox the project budget in Cj30 by clicking object link to cj30 and if he feels it is ok then he can click Approve button this will take him to CJ32 screen where he can release the budget. IF the user feels Budget need to be revised then he will click reject this will send an email to the person responsible to revise the budget and at the same time user status will be reset back to previous user status.
    The above  method we have adapted for one of our client. This is done by a workflow consultant.
    Thanks
    regards
    kishore

  • PO e-mail sending in 4.0B

    Hi experts, help needed:
    I configured the automatic e-mail sending for PO in two diferent environments: ECC and 4.0B.
    The only diference between the configurations is the medim, in ECC I used the medium 5 and Comunication Strategy CS01, and in 4.0B the medium 7 (the medium 5 and CS01doesn't exist in this version).
    In the ECC the automatic sending works, but in the 4.0B doesn't work, when I create the PO and enter in the "Messages" option, the system show the message:
    Error when changing mail data
         Message no. VN 362
    Diagnosis
         During the changing of the mail data, an error occured.
         o  a) when changing the template MESSAGE object during the maintenance of
            the condition record with key
         o  b) when changing the MESSAGE object to be sent during output
            processing
    Procedure
         o  a) Delete the condition record with key  and create it again.
         o  b) You cannot display or change the attributes for mail dispatch. The
            MESSAGE object can only be sent with unchanged attributes.
    I found the SAP Note 357137 (bellow) but seems the error is not related to error. Some one can help me?
    SAP Note 357137
    External e-mails from message control
    Symptom - You want to send a message to an external e-mail address. You want to format the message via a SAPscript form.
    As of Release 4.5, this function is available with the 'External send' medium (5) using a communication strategy.
    Prior to Release 4.5, the problem stems from the fact that the e-mail address of the partner was not yet stored in a uniform manner. An individual solution is therefore required.
    Cause and prerequisites Solution -
    Create a copy of the print processing program used.
    In order to be able to access BOR macros later, include Include <CNTN01> in the processing program.
    It is important that the e-mail address of the partner is obtained. You can define this address in an otherwise unused field of the partner master data, for example.
    You can use the attached report ZMAILTEST as a reference for generating the receiver and sender objects.
    It must be possible to read the e-mail address in the processing program. This procedure depends on the specific application.
    Then create a RECIPIENT object with this address. This object is used as a receiver.
    You can use the current user for the sender. A RECIPIENT object is also created from him or her.
    Enter both these objects in the parameters MAIL_RECIPIENT and MAIL_SENDER of module OPEN_FORM.
    So that OPEN_FORM sends a mail, you must also set parameter DEVICE to the value 'MAIL'.
    You can enter a specific title for the mail in parameter OPTIONS-TDTITLE.
    You can include this solution in medium 8 in the table of the processing programs. The form is specified and formatted as usual. The only difference is that calling module OPEN_FORM is modified.
    Edited by: Rafael Rossi on Jan 17, 2010 11:39 PM
    Edited by: Rafael Rossi on Jan 17, 2010 11:43 PM

    cancelled

  • Automator to select e-mail sender and copy text on excel

    I need to use automator to select e-mail sender, extract specific text and append it on an excel sheet. is it possible?
    I have OS Snow Leopard; Mail; a Master Excel 2011 file; several Output Excel 2011 files for the output
    I want Automator to check daily if new mails, on a specific account, have been received that match the mail address with a given list of names and related mail address in the Master Excel.
    If a new mail is present, Automator should: pick up specific text in the mail body; select and open the related Output Excel file (each output Excel file is saved with the name linked with the e-mail address in the Master Excel); append the text on the given worksheet in the Output Excel file; save the output file.
    This should be done with all the received mails that match with the Master Excel file
    Is it possible do this kind of thing with automator? may be with the support of VBA for some parts?
    I would appreciate any suggestion or idea to resources to investigate

    Hi Stephen,
    I had the same problem and it is a software bug.
    SAP release for us a special sap note number 1278473 - "Followup E-mail doesnot contain text of Notes of Activity".
    I dont know if this note was release for all customer, but you can open a message to sap asking help.
    My message at sap was 946981/2008.
    Regards,
    Lalas

  • E-mail sending background job diappeared in the system

    Hello Gurus,
    We have one e-mail sending job in our production system. The frequency of the job is daily. Now we are not able to find the sheduled/Released/Active/Finished/Canceled status for this from the last 2 days.
    Please help me to get back the job in the system.
    Thanks in advance.
    Thanks & Regards,
    ASk

    Hi,
    Logon to the client from which the mails should be send, go to TA SCOT then choose menu: view -> jobs, you can also reschedule if required.
    Or check via utilities when the mails were sent.

  • Status of the mail sending option using SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi experts,
    I m using SO_NEW_DOCUMENT_ATT_SEND_API1 function moduel for sending mails to dealers. That is, whenver i execute a Z transaction, the customer invoice details are getting displayed in report output. At the same time, the same output data is sent as mail to the respective dealers.
    Now teh user is asking whether there is any possiblity for the end users to have a proof of the mail which is being sent from the Z transaction. If the mail is sent, the end user who executes the Z transaction (mail sending transaction) should have that mail in his/her SENT ITEMS. If the mail not reaches the dealer, then the user must identify the mail bounce identification.
    Pls tell me how to achve the same..
    Regards,
    Shanthi

    Hi,
    Yes it is possible..
    Just pass 'X' to the exporting parameter 'put_in_outbox'. The user can check the send mail in 'sost'. All the details of the mail will be there. This will be the proof that the mail was sent.
    Reg the 2nd part of your query, if the mail is not delivered to any reciepent or to particular recipient, the details will be there in the SAP outbox, that also you can see through transaction 'sost'.
    Thanks & Regards
    Rocky

  • Mail Send Functionality using SO_NEW_DOCUMENT_ATT_SEND_API1

    hi,
    i m using Fn Module "SO_NEW_DOCUMENT_ATT_SEND_API1" to send email with attachment.
    I have written  a program which will fetch data in excel format . this excel should be sent as attachment to specified receiver. however i m having difficulties adding attachment to function module.
    I specified under parameter "contents_bin" but its giving some error message related wth structure.
    I chkd SDN and wasnt able to find any resolution yet.
    Any suggestion or idea which can be useful on this.
    Thanks.

    REPORT  zsendemail                    .
    PARAMETERS: psubject(40) type c default  'Hello',
                p_email(40)   type c default 'write email address' .
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *&      Form  POPULATE_MESSAGE_TABLE
          Adds text to email text table
    form populate_message_table.
      Append 'Email line 1' to it_message.
      Append 'Email line 2' to it_message.
      Append 'Email line 3' to it_message.
      Append 'Email line 4' to it_message.
    endform.                    " POPULATE_MESSAGE_TABLE
    *&      Form  SEND_EMAIL_MESSAGE
          Send email message
    form send_email_message.
    Fill the document data.
      gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'SAPRPT'.
      gd_doc_data-obj_descr = psubject.
      gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      it_receivers-receiver = p_email.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      append it_receivers.
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_txt               = it_message
                receivers                  = 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.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.
    endform.                    " SEND_EMAIL_MESSAGE
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
      endif.
    endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM

  • I need an e-mail sending to my macbook, it appears to download but is never in my inbox. It does got to my iphone.  It isn't in trash.  Can anyone help ?

    I need an e-mail sending to my macbook, it appears to download but is never in my inbox. It does got to my iphone.  It isn't in trash.  Can anyone help ?

    I get those all the time. Most annoying. I usually ignore them or mark them as spam.

  • Send E-mail Send E-mail question

    Hi,
    Im trying out the Developers Toolbox and am trying to figure out if its right for me, and have very basic - beginning MySQL and php skills.
    The tutorial at http://help.adobe.com/en_US/Dreamweaver/9.0_ADDT/help.html?content=ch12_send_email_01.htm l is rather sketchy, when I follow the tutorial on that page:
    "The Send E-mail trigger allows the site developer to automatically send an e-mail when a form is submitted. It is an AFTER trigger, and it can be executed after insert/update/delete/custom transactions.
    This trigger is accessible from the Application panel, Server Behaviors > + > Developer Toolbox > Send E-mail > Send E-mail."
    well, when I try that, I get an error on the page which says:
    "There are no insert, update, custom or login or delete transactions on page. Please insert an appropriate transaction first."
    OK I am assuming that I need some kind of an html form open and on a page, however where do I start? Its as if the tutorials left out a huge chunk of the instructions. I realize I am no expert but if someone was buying the toolbox for the first time how would one know where to start? Do I need to create a new database table first? What kind of table? Can it be a table that is part of the site database for the shopping cart database that I already have linked to the store? Or does it need to be a seperate - database, table? Or just a php page with the form in it? Or does the form page need to be .html?
    Or is the toolkit only for advanced developers with advanced php and MySQL skills and should I not even bother buying it?
    Anyway can someone please give me a hint?
    All I am trying to do is construct a simple email form for my web site which I have created in Dreamweaver and I need a php script to process the data inserted into the form and send it off to the mail server to forward to the webmaster's email address. I have the form created and brought up the form page, but then the Server Behaviors > + > Developer Toolbox > Send E-mail > Send E-mail. Tab is not accessible, and I am assuming that it wont be unless I have a .php file open, so I dont have a clue as to where to start.
    So Ive got 27 days left to determine if its worth buying the toolbox, if I cant figure it out by then then I guess Ill buy some easier to use extension or stand alone to create my email form and other scripts.

    Hi DBS,
    just some thoughts:
    So Ive got 27 days left to determine if its worth buying the toolbox, if I cant figure it out by then then I guess Ill buy some easier to use extension or stand alone to create my email form and other scripts
    honestly said: if sending form data via email is about all you want to achieve, buying ADDT or even trying to learn it would be overkill, as it comes with heaps of features which you´ll probably never need -- in this case investing in a stand alone form-to-email script seems a better solution.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How can i read only .txt file and skip other files in Mail Sender Adapter ?

    Hi Friends ,
                       <b> I am working on scenario like , I have to read an mail attachement and send the data to R3.</b>
                        It is working fine if only the .txt file comes.
                      <b>Some times ,html files also coming along with that .txt files. That time my Mail adapter fails to read the .txt file.</b>
                       I am using PayLoadSwap Bean and MessageTransformBean to swap and send the attachment as payload .
                         <b>Michal as told to write the Adapter module to skip the files .But i am not ware of the adapter moduel . If any blogs is there for this kind of scenarios please give me the link.</b>
                           Otherwise , please tell me how to write adapter module for Mail  Sender Adapter?
                      How to download the following
                        newest patch of XI ADAPTER FRAMEWORK CORE 3.0
    from SAP Service Marketplace. Open the file with WinZip and extract the following
    SDAs:
    &#61589;&#61472;aii_af_lib.sda, aii_af_svc.sda
    &#61589;&#61472;aii_af_cpa_svc.sda
                        I have searche in servive market place .But i couldn't find that . Can you please provide me the link to download the above .
                      If any other suggestions other than this please let me know.
    Regards.,
    V.Rangarajan

    =P
    Dude, netiquette. Messages like "i need this now! Do it!" are really offensive and no one here is being payed to answer anyone's questions. We're here because we like to contribute to the community.
    Anyway, in your case, just perform some search on how you could filter the files that are attached to the message. The sample module is just an example, you'll have to implement your own. Tips would be to query the filename of the attachments (or maybe content type) and for the ones which are not text, remove them.
    Regards,
    Henrique.

  • Mail Sender adapter issue in PO7.4

    Hello Experts,
    We are migrating from PI7.0 to PO7.4, where in we are struck up with an issue of Mail Sender Interface.
    Here we have a scenario of Mail to Proxy where we are processing attachment(CSV file). But here when I we run the interface mail body is being processed not the attachment. Also could nt see the Payload as when I click on the Attachment payload a pop up is coming and closing automatically.
    Can someone please suggest where it went wrong as this is working in existing PI7.0 version.
    Thanks.
    VR

    Hi VR
    Have you tried swapping by Payload name?
    Please try it out with the following configuration, and remove any extra lines - there are duplicate key names and values in your configuration.
    You should be able to see the successfully swap by payload name in the audit log as shown below.
    Rgds
    Eng Swee

  • Mail Sender Adapter - Attachment Handling

    Hello,
    I 'm using XI 3.0 SP 14.
    I have problems with my Mail-Sender-Adapter.
    The mails, I fetch, have an xml-attachment which
    represents an IDOC-structure (ORDERS.ORDERS05).
    I want to sent this attachment as payload to an SAP-System.
    The problem is now, that I have 2 Payloads (SXMB_MONI).
    One for the normal email-body and one for my original
    xml-attachment. See below:
    - <SAP:Payload xlink:href="cid:[email protected]">
      <SAP:Name>MailMessage</SAP:Name>
      <SAP:Description>mail message</SAP:Description>
      <SAP:Type>Application</SAP:Type>
      </SAP:Payload>
    - <SAP:Payload xlink:href="cid:[email protected]">
      <SAP:Name>MailAttachment-1</SAP:Name>
      <SAP:Description>mail attachment</SAP:Description>
      <SAP:Type>ApplicationAttachment</SAP:Type>
      </SAP:Payload>
      </SAP:Manifest>
      </SOAP:Body>
    The XI Runtime Workbench (SXMB_MONI) takes (in my case)
    the wrong one (email-body-attachment) and gives me
    an parsing error. (Error occurs at my IDOC-Receiver-Adapter)
    Now my question:
    Can I remove the email-body-attachment, so that
    the further processing works with my xml-attachment?
    Or how can I resolve my problem.
    best regards
    Marcel Reichert

    Hi Marcel,
    use the PayloadSwapBean module to get the attachment as main payload.
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
    As parameters use:
    swap.keyName = payload-name
    swap.keyValue = MailAttachment-1
    Regards
    Stefan

  • MAIL Sender adapter going in to error

    Hello Experts ,
    We have configured one mail sender adpater with a custom module to read the attachements in the email message. This was working fine before.
    We recently had a restart of the PI servers. After that the channel is going in to error. The first error as per NWA logs is :
    failed to call the adapter engine; caused by javax.ejb.EJBException: Exception in getMethodReady() for stateless bean sap.com/com.sap.aii.adapter.mail.app*xml|com.sap.aii.adapter.mail.ejb.jar*xml|XIMailAdapterBean; nested exception is: com.sap.engine.services.ejb3.util.pool.PoolException: javax.ejb.EJBException: Exception raised from invocation of public void com.sap.aii.adapter.mail.ejb.XIMailAdapterBean.ejbCreate() throws javax.ejb.CreateException method on bean instance com.sap.aii.adapter.mail.ejb.XIMailAdapterBean@243be1e1 for bean sap.com/com.sap.aii.adapter.mail.app*xml|com.sap.aii.adapter.mail.ejb.jar*xml|XIMailAdapterBean; nested exception is: javax.ejb.CreateException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Failed to load messages into Queue AFWSend from database. Reason: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException occurred in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResourceException: Cannot get connection. Reason: the thread of component "ejbContexts/sap.com/com.sap.aii.adapter.mail.app/com.sap.aii.adapter.mail.ejb.jar/XIMailAdapterBean" in application "sap.com/com.sap.aii.adapter.mail.app" is currently associated with a restricted resource set and it is not allowed to get connection within it.
    After that whenever it is trying to process a message its throwing the below error :
    exception caught during processing mail message [588]com.sap.aii.af.lib.mp.module.ModuleException
    Has anybody faced thsi error before? Please help!!!
    Thanks

    Hi VR
    Have you tried swapping by Payload name?
    Please try it out with the following configuration, and remove any extra lines - there are duplicate key names and values in your configuration.
    You should be able to see the successfully swap by payload name in the audit log as shown below.
    Rgds
    Eng Swee

  • Variable Transport Parameters in Mail Sender

    Did anyone ever successfully use the "Variable Header XHeaderName1" in the mail sender adapter (IMAP4)?
    We have two mail sender channels which require a slightly different mapping. My idea was to define a value for the field "Variable Header XHeaderName1" and evaluate that in the mapping. But the value is not passed into the SOAP header, I can configure what I want. I turned on "Adapter spec.attributes" and "Variable Transport...".
    So I cannot access the field value in the mapping.
    Now I evaluate the dynamic configuration field "SUser", that works, but that's only a workaround.
    So either this is a bug in the system (XI 3.0 SP 21) or the documentation is wrong.
    We are using an attachment, is that the problem ? "Use Mail package" off/on does not change anything.
    Any ideas ? No general links to the documentation please.
    CSY
    Edited by: Christian Sy on Aug 15, 2008 8:48 AM

    I think the DynamicConfigurationBean would help in this scenario.
    You can assign a constant value in sender channel and use that constant for the determination of the mapping.
    Regards
    Stefan

Maybe you are looking for