Sending mail and e-mail in the same time

Robert A. Tannert, Jr. tnn at ornl.gov
Tue Aug 15 07:13:21 EDT 2006


Zsolt,

What the code shows is that the parameter TypeID is used in  
conjunction with AddressStrings to append items to the Receivers  
internal table, which is a set of Address objects, each of which has  
its own recipient type.  It is Receivers, and not AddressStrings,  
that is passed on to the SOFM.Send method, which is just a wrapper  
for function SO_NEW_DOCUMENT_SEND_API1.

Instead of using AddressStrings you could populate Receivers before  
you call SelfItem.SendTaskDescription with all of your receivers, or  
you could populate Receivers with the exceptional recipient types and  
let the method use AddressStrings and TypeID to take care of the bulk  
of the recipients for you.  You can review the code in  
SelfItem.SendTaskDescription to see how to populate Receivers.

Rob


On Aug 15, 2006, at 5:09 AM, Mike Pokraka wrote:

> Hi Zsolt,
> You can only send to one address type at a time, so you'll need two  
> steps.
> Cheers,
> Mike
>
>> Hi all,
>> We are in 5.0 ECC and I have an issue, to send a message in the  
>> sap and
>> via email to certain users.
>> Now I'm using the selfitem-sendtaskdescription method and I've  
>> populated
>> the container element AddresStringswith the users.
>> Is this possible to send the mail in the outlook and sap in the  
>> same time
>> or do I need to define another step where the AddressString will be
>> populated with e-mail address?
>>
>> Thanks again
>> Zsolt
>>
>> _______________________________________________
>> SAP-WUG mailing list
>> SAP-WUG at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/sap-wug
>>
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug




More information about the SAP-WUG mailing list