2006 Sep 18 3:24 PM
Hai ALL,
iam facing problem with sending mail to external id from user exit exit_saplebnf_005 , this user exit for ROLE Determination of releasing of PO .
in this user exit i passed a user name for this role from one z table.
through workflow the mails are send to workplace of resposible person maintained in ztable.
now user requirement is they want some intimation in their outlook for they got mail in workplace .
can anybody help me.
Thanks .
sushmita.k
2006 Sep 19 5:30 AM
Hi SK ,
yes u can send Alters to Outlook thru Mails , Just Go thru this FM and its Documentation.
SO_NEW_DOCUMENT_ATT_SEND_API1.
u have to put code like this.
if sy-subrc eq 0.
call SO_NEW_DOCUMENT_ATT_SEND_API1.
this will send mails to outlook .
endif.
let me know if ur required more info.
Hai ALL,
iam facing problem with sending mail to external id from user exit exit_saplebnf_005 , this user exit for ROLE Determination of releasing of PO .
in this user exit i passed a user name for this role from one z table.
through workflow the mails are send to workplace of resposible person maintained in ztable.
now user requirement is they want some intimation in their outlook for they got mail in workplace .
can anybody help me.
Thanks .
sushmita.k
2006 Sep 19 5:30 AM
Hi SK ,
yes u can send Alters to Outlook thru Mails , Just Go thru this FM and its Documentation.
SO_NEW_DOCUMENT_ATT_SEND_API1.
u have to put code like this.
if sy-subrc eq 0.
call SO_NEW_DOCUMENT_ATT_SEND_API1.
this will send mails to outlook .
endif.
let me know if ur required more info.
2006 Sep 19 5:42 AM
Hi susmitha,
Are you sending Mail through WOrkFlow, then you can get the EmailID and Pass the Container element in MAIL STEP TYPE with EMAIL Option Chosen.
If you need it to be sent through A Program then you can use 'SO_NEW_DOCUMENT_SEND_API1'.
here you need to Provide Receiver id (EMAIL ID) and Receiver Type as 'U' and don't forget to set commitwork as 'X'. Once Executed goto Transaction SOST select your mail and Execute this will send your mail immediatly.
I hope this might have helped you.
Cheers,
Prashanth
Message was edited by: Prashanth KR
2006 Sep 19 5:47 AM
Check the below code it may help u.
FORM send_mail USING p_y16m_rcp_par STRUCTURE y16m_rcp_par.
Have a subject for the mail
g_s_document_data-obj_name = text-t02.
g_s_document_data-obj_descr = text-t03.
Fill receiver information
g_s_receivers-rec_type = p_y16m_rcp_par-rec_type.
g_s_receivers-rec_id = p_y16m_rcp_par-rec_id.
g_s_receivers-express = 'X'.
APPEND g_s_receivers TO g_t_receivers.
Call function to send mail
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = g_s_document_data
document_type = 'RAW'
PUT_IN_OUTBOX = ' '
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
OBJECT_HEADER =
object_content = g_t_object_content
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = g_t_receivers
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.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " SEND_MAIL
This p_y16m_rcp_par should be maintained for the purpoes of ID.
Regards
2007 Nov 15 10:46 PM
2007 Nov 15 10:46 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |