2008 Jun 10 10:04 AM
Hi All,
I am using the function module to send mail
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = lwa_doc_data
sender_address =
sender_address_type =
put_in_outbox = 'X'
TABLES
packing_list = ta_objpack
object_header = ta_objhead
contents_bin = ta_objbin
contents_txt = ta_objtxt
receivers = ta_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.
Here the parameter 'sender_address' takes a default value sy-ucomm. So suppose i have a SAP login id 'vivek123' i am able to send mail from that id.
I am also able to send mail using my collegue's id also using my logon but chenging the value to a different id. But when i am trying to send mail from a id suppose 'customercare.er' i mail is not going.
Do the basis people need to create user with the same name or do they need to do some setting.
Please suggest some way for it or may be an alternative.
Regards,
Vivek Agarwal
2008 Jun 10 10:11 AM
Hi Vivek,
Yes, there has to be a User existing with that User ID for you to send a mail using that ID.
Raghav
Hi All,
I am using the function module to send mail
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = lwa_doc_data
sender_address =
sender_address_type =
put_in_outbox = 'X'
TABLES
packing_list = ta_objpack
object_header = ta_objhead
contents_bin = ta_objbin
contents_txt = ta_objtxt
receivers = ta_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.
Here the parameter 'sender_address' takes a default value sy-ucomm. So suppose i have a SAP login id 'vivek123' i am able to send mail from that id.
I am also able to send mail using my collegue's id also using my logon but chenging the value to a different id. But when i am trying to send mail from a id suppose 'customercare.er' i mail is not going.
Do the basis people need to create user with the same name or do they need to do some setting.
Please suggest some way for it or may be an alternative.
Regards,
Vivek Agarwal
2008 Jun 10 10:11 AM
Hi Vivek,
Yes, there has to be a User existing with that User ID for you to send a mail using that ID.
Raghav
2008 Jun 10 10:26 AM
Raghav,
Thanks , Let me check it with the basis team and then re try my code.....
Regards,
Vivek Agarwal
2008 Jun 10 10:13 AM
Hi,
Please refer the link below:
http://www.sapdev.co.uk/reporting/email/email_sapmail.htm
Thanks,
Sriram Ponna.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |