on 02-26-2009 8:45 AM
Hi,
I am trying to send an email through ABAP code using FM "SO_DOCUMENT_SEND_API1" to the SAP Inbox to a user.
In the recipients table I am passing the below parameters:
wa_reclist-receiver = sy-uname.
wa_reclist-express = c_flag.
wa_reclist-rec_type = 'B'.
Please guide me how to proceed.
Thanks & Regards,
Namrata
Solved! Use FM SO_DOCUMENT_SEND_API1 to send email. If email has to be sent to teh SAP Inbox then use B elseif it has to be sent to webmail then use U.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I do not want to send mail to outlook. Infact I want to send it to the SAP Inbox of the user.
Below is the code that I'm currently using:
* Recipient List
wa_reclist-receiver = sy-uname.
wa_reclist-express = 'X'.
wa_reclist-rec_type = 'B'.
wa_reclist-notif_del = 'X'.
wa_reclist-notif_ndel = 'X'.
wa_reclist-com_type = 'INT'.
* Target Recipients (To) details appended.
APPEND wa_reclist TO i_reclist.
But the above code does not work. I am still receving the mail in my Outlook instead of my SAP Inbox.
Also, I'm working in 4.6C version and there is no 'O' option available in the rec_type.
Please advise what to use.
Thanks & Regards,
Namrata
for the email to go to Outlook or the SAP inbox is dependent on the Config in your organization.... in Tr. SCOT double click on SMTP and check the mail server and the port name you use... that need to pointed to your SAP server...rather than Outlook mail server. Your need to co-ordinate with your basis before making changes...
Hi Guys,
I have tried using the FM SO_OBJECT_SEND but its of no help. Please suggest how to proceed. The mail continues to go to the Outlook of the user.
Only if I go to SU01 and remove the SMTP from the comm type the mail goes to the SAP Inbox. But users here have there mail id, so we cannot do that. Also I need to send the mail to both the SAP Inbox and Outlook.
Also, in case there are any config settings that can be done, please guide me.
In case there is any other FM that can help or the same FMs that I have used (SO_OBJECT_SEND and SO_NEW_DOCUMENT_SEND_API1) but with some parameter changes, please let meknow.
J@Y - I went to SCOT but could not find SMTP anywhere. Please guide me withteh complete steps. The baiss people here have no knowledge about this. Also I have to send the mail to both (SAP Inbox and Outlook).
Thanks & Regards,
Namrata
hi,
/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Refer to this link..
[Send Message to External email id and SAP Inbox via ABAP |https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/sendMessagetoExternalemailidandSAPUseridvia+ABAP]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use rec_type = 'O'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
DATA : it_objpack TYPE STANDARD TABLE OF sopcklsti1 ,
it_objtxt TYPE STANDARD TABLE OF solisti1 ,
it_objbin TYPE STANDARD TABLE OF solisti1 ,
it_reclist TYPE STANDARD TABLE OF somlreci1 ,
wa_doc_chng TYPE sodocchgi1,
wa_objhead TYPE soli_tab,
l_attachment TYPE i,
l_testo TYPE i.
DATA: wa_objpack TYPE sopcklsti1,
wa_objtxt TYPE solisti1 ,
wa_objbin TYPE solisti1 ,
wa_reclist TYPE somlreci1 .
CLEAR: wa_reclist,
wa_objhead,
wa_objtxt, it_objtxt[],
wa_objbin, it_objbin[],
wa_objpack, it_objpack[].
CLEAR wa_objbin.
REFRESH it_objbin.
it_objbin[] = gt_mess_att[].
DESCRIBE TABLE it_objbin LINES l_attachment.
LOOP AT it_message INTO wa_message.
wa_objtxt = wa_message. APPEND wa_objtxt TO it_objtxt.
ENDLOOP.
DESCRIBE TABLE it_objtxt LINES l_testo.
wa_doc_chng-obj_name = ''xyz'.
wa_doc_chng-expiry_dat = sy-datum + 10.
CONCATENATE 'Amex Settlement' ' '
INTO wa_doc_chng-obj_descr .
wa_doc_chng-sensitivty = 'P'.
wa_doc_chng-obj_prio = '1'.
wa_doc_chng-doc_size = l_testo * 255.
CLEAR wa_objpack-transf_bin.
wa_objpack-head_start = 1.
wa_objpack-head_num = 0.
wa_objpack-body_start = 1.
wa_objpack-body_num = l_testo.
wa_objpack-doc_type = 'RAW'.
APPEND wa_objpack TO it_objpack.
CLEAR wa_reclist.
wa_reclist-copy = 'X'.
IF wa_email IS NOT INITIAL.
wa_reclist-receiver = wa_email-value1.
wa_reclist-express = 'X'.
wa_reclist-rec_type = 'U'.
wa_reclist-notif_del = 'X'.
wa_reclist-notif_ndel = 'X'.
APPEND wa_reclist TO it_reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_objpack
object_header = wa_objhead
contents_bin = it_objbin
contents_txt = it_objtxt
receivers = it_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.
WRITE 'Cannot send email'.
ENDIF.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.