‎2007 Jul 26 1:14 PM
is there any function module to send a file directly to sap inbox?
SO_NEW_DOCUMENT_SEND_API1s the file to sap outbox...i can chk it in sbwp.
2 question is there any fm to collect the mail from inbox??
3 question can anyone send how to configure email setting in sap?
‎2007 Jul 26 1:21 PM
Hi
check the fun modules
MESSAGE_SEND_AS_MAIL
UWSP_SEND_MAIL_TO_WEB
ISU_CIC_INBOX_EMAIL_CREATE
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 26 1:21 PM
Hi
check the fun modules
MESSAGE_SEND_AS_MAIL
UWSP_SEND_MAIL_TO_WEB
ISU_CIC_INBOX_EMAIL_CREATE
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 26 1:24 PM
Hi,
once the config is done, you can use the following FM to email ABAP list out put
Regards
‎2007 Jul 26 1:26 PM
Hi,
You have to check ur server name & System Alias name.
E-Mail Configuration
configuring send e-mails you dont need an Exchange server but a SMTP server.
You need to create a Java Mail transport. Navigate to
System Administration -> System Configuration -> Collaboration -> Groupware Transports ->
Mail Transport. Create a new instance of this transport and provide your
SMTP server name here.
http://help.sap.com/saphelp_nw04/helpdata/en/7c/6a469702474146a8ef2f97fe880b2f/frameset.htm
<b>Reward points if useful</b>
Regards
Ashu
‎2007 Jul 26 1:32 PM
Hi,
i think that SO_NEW_DOCUMENT_SEND_API1 puts the mail in sap outbox and also sends the mail automatically.
What is your requirement?
‎2007 Jul 26 1:34 PM
i think so ,.,,,but my mail only sits in outbox.... it doesnt send to the recepient...any suggestion???
i want to send a mail to email...
i think few things are not configured , so it send send an email
‎2007 Jul 26 2:17 PM
Hi,
try this(i'vd just tried this and it works), if the following doesn't work then there must be something missing within configuration as you said.
&----
*& Report ZDEP_TESTS5
*&
&----
*&
*&
&----
REPORT ZDEP_TESTS5 .
DATA: lv_sent_to_all LIKE sonv-flag.
DATA: li_OBJECT_CONTENT LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: li_reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
DATA: lwa_doc_chng LIKE sodocchgi1.
CLEAR:lwa_doc_chng,
lv_sent_to_all.
REFRESH:li_OBJECT_CONTENT,
li_reclist.
*---Creation of the document to be sent
Object Name
lwa_doc_chng-obj_name = 'SENDFILE'.
Mail Subject Line
lwa_doc_chng-obj_descr = 'SUBJECT LINE ' .
li_OBJECT_CONTENT-LINE = 'test content'.
append li_OBJECT_CONTENT.
Target recipents
CLEAR li_reclist.
li_reclist-receiver = 'devil_dev7@hotmail.com'.
li_reclist-express = 'X'.
li_reclist-rec_type = 'U'.
APPEND li_reclist.
copy recipents
CLEAR li_reclist.
li_reclist-receiver = ''.
li_reclist-express = 'X'.
li_reclist-rec_type = 'U'.
li_reclist-copy = 'X'.
APPEND li_reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = lwa_doc_chng
DOCUMENT_TYPE = 'RAW'
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL = lv_sent_to_all
NEW_OBJECT_ID =
tables
OBJECT_HEADER =
OBJECT_CONTENT = li_OBJECT_CONTENT
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = li_reclist
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
.
IF sy-subrc = 0.
IF lv_sent_to_all = 'X'.
WRITE:/ 'email sent'.
ENDIF.
ELSE.
WRITE:/ 'error'.
ENDIF.
regards.