Skip to Content

Send e-mail on ME21N

Hi people,

I have to send a e-mail to the supplier after creating the Purchase Order on me21n.

But I think that I can only do that after the approval of the PO on the workflow.

So, can I use the function to send the e-mail right after save the PO on me21n or I have to wait all the way..?

I don´t know anything about workflow, so that is the problem...

I think I can use the "messages" button and, put0 my e-mail there, so it will be send just after the approval..

what do u think?

tks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 18, 2010 at 06:33 AM

    Hi dear Bovo

    try use exits ME_PURCHDOC_POSTED

    and put your e mail code here

    this link will give you a better solution

    link:ME21N / ME22N SAVE Userexit

    Edited by: Nelson Rodrigo on Nov 18, 2010 1:35 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 18, 2010 at 06:39 AM

    hi ,

    i got this requirement once . i used ME_PROCESS_PO_CUST for sending mail . u can use this.

    Regards,

    karthikeyan k s.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 18, 2010 at 02:04 PM

    Hi Marcelo Marinho Bovo,

    PO should be sent only when it gets approved. You can use customer exit MM06E005. Use function exit EXIT_SAPMM06E_013 to write the code to trigger email to the Supplier/Vendor. Function Exit EXIT_SAPMM06E_013 will get triggered just before saving.

    To find whether PO got released or not, check field I_EKKO-FRGKE = 'R' , then send the mail.

    Thanks & Regards,

    Faheem.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Max, Brad

      I could change NAST on the first custom-function i found.

      I used (SAPLV61B)XNAST

      Just Added a line into that table and it went right to the NAST table and messages...

      Now, I´m going to creat the pop-up in this customer-function, and depending on user decision, I´ll create a mail, fax or print line into the NAST...

      One thing I´d like to know is if there is a way to change the mail body, like including a signature...

      Can you help me with that?

      tks