Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Urgent...

Former Member
0 Likes
577

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

1 ACCEPTED SOLUTION
Read only

former_member182354
Contributor
0 Likes
560

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

3 REPLIES 3
Read only

former_member182354
Contributor
0 Likes
561

Hi Vivek,

Yes, there has to be a User existing with that User ID for you to send a mail using that ID.

Raghav

Read only

0 Likes
560

Raghav,

Thanks , Let me check it with the basis team and then re try my code.....

Regards,

Vivek Agarwal

Read only

Former Member
0 Likes
560

Hi,

Please refer the link below:

http://www.sapdev.co.uk/reporting/email/email_sapmail.htm

Thanks,

Sriram Ponna.