‎2006 Aug 23 8:06 AM
can any one explain the diff between these two fuction modules used for sending the mail from sap to external
so_obiect_send & SO_DOCUMENT_SEND_API1
‎2006 Aug 23 8:29 AM
Hi,
SO_DOCUMENT_SEND_API1 is used for
SAPoffice: Send new document with attachments using RFC
but so_object_send is used for
Send in SAPoffice and Externally(no attachments)
Regards
vijay
‎2006 Aug 23 8:30 AM
‎2006 Aug 23 8:35 AM
thanks vijay
but my reqirement is to send the layout to sap mail
seperately and the layout to external mail seperately
so what are the prarameters should i use
‎2006 Aug 23 8:38 AM
Hi,
read the follow . you have to specify ADR_TYPE parameter of RECEIVERS table parameter
<b>o ADR_TYPE
Type of RECEIVER entry.
The following values are permitted:
- 'B' : SAP user name
- ' ' : SAPoffice name
- 'C' : Shared distribution list
- 'F' : Fax number
- 'U' : Internet address
- 'R ' : Remote SAP name
- 'X' : X.400 address
</b>
itab-receiver = 'TESTUSE'.
itab-express = 'X'.
itab-copy = ''.
itab-rec_type = 'B'. "SAP USERNAME
APPEND itab.
itab-receiver = 'abc@yahoo.com'.
itab-express = 'X'.
itab-copy = 'X'.
itab-rec_type = 'U'. "Internet address
APPEND itab.Regards
vijay
‎2006 Aug 23 8:49 AM
*-popualate email ids
IT_RECLIST-RECEIVER = 'USER@YAHOO.com'.
IT_RECLIST-REC_TYPE = 'U'. "INTERNET ID
*-append receiver table
APPEND IT_RECLIST.
CLEAR IT_RECLIST.
*-popualate email ids
IT_RECLIST-RECEIVER = sy-uname.
IT_RECLIST-REC_TYPE = 'B'. "sap office mails
IT_RECLIST-EXPRESS = 'X' . " user will get a popup when ever he receives a mail.
*-append receiver table
APPEND IT_RECLIST.
CLEAR IT_RECLIST.
and other stuff will be the same like mail body,subject etc..
if you want to keep them in BCC column,instead of TO field, that also you can do. check the options available in IT_RECLIST.
Regards
srikanth