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

sending mail

Former Member
0 Likes
857

Hi,

I was sending a report output via mail.

The mail will be sent by the name of the user id in which we log in to SAP.

But the name of the sender needs to be changed.How to change the name of the sender while sending mail.

Anyone help me to overcome this problem.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
832

hey pass the variable value as sy-uname for the variable user-id

it will solve your problem

cheers

s.janagar

note: before searching SDN just search for SDN

Hi,

I was sending a report output via mail.

The mail will be sent by the name of the user id in which we log in to SAP.

But the name of the sender needs to be changed.How to change the name of the sender while sending mail.

Anyone help me to overcome this problem.

6 REPLIES 6
Read only

Former Member
0 Likes
833

hey pass the variable value as sy-uname for the variable user-id

it will solve your problem

cheers

s.janagar

note: before searching SDN just search for SDN

Read only

0 Likes
832

When i change the data for sy-uname also,the value again converting to the original username when it getting passed to FM

Read only

Former Member
0 Likes
832

Hi Ramya,

For what you are sending mail,

Is it for PO or PR or Delivery,,,! depends upon that we have different Function modules & Created by

& Modified & Changed by... Name fields

Check where the presend name is passed,, and you can even hard code a name or you can pass a new name to that field as required.

Thanks & regards,

Dileep .C

Read only

0 Likes
832

Hi,

change the name of the user while sending data to FM.

Regards,

Jayaram

Read only

0 Likes
832

When i change the data for sy-uname also,the value again converting to the original username when it getting passed to FM

Read only

Former Member
0 Likes
832

Hey Ramya,

Is this problem solved?

I am facing the same issue.

Regards,

Ravi