Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

print to mail (access method M): several recipients

Former Member
0 Kudos

We are using the "print to mail" (sending a PDF file to an Internet-style e-mail address).

(As a matter oif fact, we have a printer called MPDF.)

We have received the following question: is it possible, within such a print request, to specify several recipients?

I have tried a comma-separated list - that does not work.

I have tried a SAPoffice distribution list - that does not work either.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

be more specific, since there are different methods for sending emails from SAP. I use function SO_NEW_DOCUMENT_SEND_API1 and can add any number of recipients

  • Receiver list:

recvlist-receiver = email1.

recvlist-EXPRESS = 'X'.

recvlist-rec_type = 'B'. " U = Internet / B = SAP User

APPEND recvlist.

recvlist-receiver = email2.

recvlist-EXPRESS = 'X'.

recvlist-rec_type = 'B'. " U = Internet / B = SAP User

APPEND recvlist.

4 REPLIES 4

Former Member
0 Kudos

Hi,

be more specific, since there are different methods for sending emails from SAP. I use function SO_NEW_DOCUMENT_SEND_API1 and can add any number of recipients

  • Receiver list:

recvlist-receiver = email1.

recvlist-EXPRESS = 'X'.

recvlist-rec_type = 'B'. " U = Internet / B = SAP User

APPEND recvlist.

recvlist-receiver = email2.

recvlist-EXPRESS = 'X'.

recvlist-rec_type = 'B'. " U = Internet / B = SAP User

APPEND recvlist.

0 Kudos

Thank you for your reply.

Your approach corresponds to the SAPoffice distribution-list.

Our context is the classic "print" dialog, with a printer like our MPDF printer.

It has room for one recipient. If that recipient is not an Internet-style address (but a SAPoffice DL, for example), processing fails downstram in SAPconnect.

0 Kudos

In order to get past the limitation of a single recipient, we got our e-mail admin to create e-mail distribution groups, such as marketing @ yourcompany.com or fridaydoughnutgroup @ yourcompany.com.

So the solution we took was not in SAP but on our e-mail server.

0 Kudos

Thank you for your reply.

This is more-or-less what I expected: that this is best handled outside of SAP, in the mail system.