2005 Dec 07 12:04 PM
I've been trawling the internet and various other sources for hours trying to work out what it is I need to use to get SAP to send an e-mail to an external address for me. So far, I haven't managed it.
I've tried (and failed) with SO_OBJECT_SEND, SO_OBJECT_SEND_REMOTE, and I've gone through debugging SBWP but can't see where it actually sends the e-mail. We've got an external SMTP server which SAP connects to MS Exchange Server (not using the Exchange connector, just using SMTP, which is in the kernel for 6.40).
Has anyone managed to use this functionality successfully in WebAS 6.40 yet? If so, could anyone give any pointers as to what I need to do? I suppose what I'm really after is: what's the correct function module, and how do I use it?
2005 Dec 07 12:14 PM
That function module doesn't exist in our system, I assume it must be part of the Exchange connector (which we don't use - we use SMTP). I'll have a look at that class and see if I can make any sense of it... if you've assigned points to an answer can you increase them later btw?
2005 Dec 07 12:06 PM
Hi Robert,
1. Use FM
SO_NEW_DOCUMENT_ATT_SEND_MAPI
2. It is quite tricky. Hence, also see the documentaion
and sample program in it.
3. Morever, for sending external emails,
ur basis team will require
to do some minor configuration
using SCOT.
Regards,
Amit M.
Message was edited by: Amit Mittal
2005 Dec 07 12:08 PM
Robert,
If you are on 6.40, why don't you try using the classes provided. Following is the list of methods.
Class - CL_BCS
Methods - ADD_RECIPIENT
ASYNCHRONOUS
CHANGED_BY
CHANGE_DATE
CHANGE_TIME
CONSTRUCTOR
CREATE_LINK_TO_APP
CREATE_LINK
CREATE_PERSISTENT
CREATION_DATE
CREATION_TIME
DELETE
DEQUEUE
DOCUMENT
EDIT
ENCRYPT
ENQUEUE
FORWARD
GET_INSTANCE_BY_OID
IS_EDITABLE
NOTE
OID
ORIGINATOR
PRIORITY
RECIPIENTS
REPLY
REPLY_TO
SEND
SEND_WITHOUT_DIALOG
SENDER
SEND_SCREEN
SET_ASYNCHRONOUS
SET_DOCUMENT
SET_ENCRYPT
SET_EXPIRES_ON
SET_NOTE
SET_OWNER_APP
SET_PRIORITY
SET_REPLY_TO
SET_SENDER
SET_SIGN
SET_SIGNATURE_WORKFLOW
SET_STATUS_ATTRIBUTES
SET_STATUS_RECIPIENT
SET_TRACE
SHORT_MESSAGE
SIGN
SIGNATURE_WORKFLOW
STATE
STATUS_RECIPIENT
SET_SEND_IMMEDIATELY
SET_KEEP_MIME
RELEASE_LINKS_TO_APP
USER_SECURITY_DEFAULTS
SET_MESSAGE_SUBJECT
Regards,
Ravi
Note : Please reward the posts that help you.
2005 Dec 07 12:14 PM
That function module doesn't exist in our system, I assume it must be part of the Exchange connector (which we don't use - we use SMTP). I'll have a look at that class and see if I can make any sense of it... if you've assigned points to an answer can you increase them later btw?
2005 Dec 07 12:19 PM
check out the excellent weblog on this subject by Thomas Jung which talks about starting from configuring SMTP node and the code sample for sending mail.
<a href="/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface">Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface</a>
Regards
Raja
2005 Dec 07 1:29 PM
Amit - the BASIS team is myself and two others. We do absolutely everything!
Durairaj - looks good so far, I'm just implementing all that now (whilst eating a large sandwich, which I have to say is very nice). I have actually already read that article's lesser sibling, but obviously got bored shortly after it said "4.6C" - I never got to the bit where it said there was more than one...
2005 Dec 08 11:15 AM
2005 Dec 10 11:48 AM