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

report issue for mail to multiple vendors

Hi all

There is an zreport which does the work of sending mail single vendor when the grn process done.

But now i have to do the same process for the multiple vendors means mail should have to be gone to

multiple vendors as well. So please suggest any solutions.

Thanks

regards

Abhijeet

Moderator message: not enough research before posting -> question status removed

Message was edited by: Thomas Zloch

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 05, 2012 at 12:59 PM

    Hi Abhijeet,

    Which method are you using to send mails?

    if you are using SO_NEW_DOCUMENT_ATT_SEND_API1 function, it will be enough adding new reciepents to receivers parameter of function.

    loop at it_vendor_mails.

    it_receivers-rec_type = 'U'.

    * it_receivers-copy = 'X'.

    it_receivers-receiver = it_vendor_mails-email.

    APPEND it_receivers.

    endloop.

    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

    EXPORTING

    document_data = _document_data

    put_in_outbox = 'X'

    commit_work = 'X'

    TABLES

    packing_list = _it_packing_list

    contents_bin = _it_contents_bin

    contents_txt = _it_contents_txt

    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.


    Add a comment
    10|10000 characters needed characters exceeded

    • if i am getting you right , then you have to use your F.M. to send email in a loop (as you mentioned that vendors have different data , so different mail needs to be send to them) ...
      something like..
      loop at vendor_data.

      fill your receiver with his email id ..

      fill your data with vendors data or body whatever..

      call your F.M.

      Clear all your variables.

      Endloop.

  • Posted on Dec 06, 2012 at 06:11 AM

    Hi,

    What do you mean by the below line.

    "But now i have to do the same process for the multiple vendors means mail should have to be gone to

    multiple vendors as well"

    I mean You need to send the same mail to different vendors or different mails to different vendors? Also are you using the FM 'SO_DOCUMENT_SEND_API1' or cl_bcs class?

    Thanks ,

    Vijay.

    Add a comment
    10|10000 characters needed characters exceeded

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.