Skip to Content
author's profile photo Former Member
Former Member

sending a purchase order as (external) mail to vendors

Hi,

If I want to send a purchase order as (external) mail, to a vendors(To all mail ids which I maintained in Vendor master)...

I configured as

Medium Program Routine Form

5 External send SAPFM06P ENTRY_NEU ZCMML005_PO

Here my problem is I maintained more than one mail id in vendor master, System sending PO to only one mail id... Means always first one...

Its not sending to all mailids' which I maintained in Vendor master.... How can I solve this....

any user exits available for SAPFM06P....

Could Anybody help me on this....

Rayudu

Message was edited by: rayudu p

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2006 at 03:03 AM

    Hello,

    You have to treat the second email ID for a different partner function such as 'OA' and maintain config setting for the message type/partner function using transaction M/34. In partner determination, this partner should be determined.

    Thanks,

    Venu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2006 at 03:21 AM

    Hello,

    I have similar issue on sending mail.

    Please check the below code.

    FORM send_mail USING p_y16m_rcp_par STRUCTURE y16m_rcp_par.

    • Have a subject for the mail

    g_s_document_data-obj_name = text-t02.

    g_s_document_data-obj_descr = text-t03.

    • Fill receiver information

    g_s_receivers-rec_type = p_y16m_rcp_par-rec_type.

    g_s_receivers-rec_id = p_y16m_rcp_par-rec_id.

    g_s_receivers-express = 'X'.

    APPEND g_s_receivers TO g_t_receivers.

    • Call function to send mail

    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

    EXPORTING

    document_data = g_s_document_data

    document_type = 'RAW'

    • PUT_IN_OUTBOX = ' '

    • IMPORTING

    • SENT_TO_ALL =

    • NEW_OBJECT_ID =

    TABLES

    • OBJECT_HEADER =

    object_content = g_t_object_content

    • CONTENTS_HEX =

    • OBJECT_PARA =

    • OBJECT_PARB =

    receivers = g_t_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.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    ENDIF.

    ENDFORM. " SEND_MAIL

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2006 at 08:22 AM

    Hi Rayudu,

    See the SAP Note <b>191470</b> - Purchase order as an e-mail

    Regards

    Sudheer

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      In Vendor master you can maintain multiple mail ID's , and there is an Radio button as standard, which ever the Mail ID has set that radio button in the vendor master , system will pick that mail ID

      Thanks & Regards,

      G.Sridhar

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.