ABAP Email Sending Program: Change Display user name in email

Hi All,
I have developed an email sending program using function module SO_NEW_DOCUMENT_ATT_SEND_API1. It is working fine but there is requirement that when the customer receives email, in the display name of sender, there should be some fixed name. But here in this case it is picking the Sy-uname i.e. system user name who is triggering the program.
I also tried the FM SO_DOCUMENT_SEND_API1, but it only changes senders email address, and the requirement is to change the display name in email.
Regards,
Nikhil

You will have to use ABAP class CL_BCS. With it you can specify the sender, both the address and the name.
          lv_smtp_addr = iv_senderaddress.
          lv_smtp_name = iv_sendername.
          call method cl_cam_address_bcs=>create_internet_address
            exporting
              i_address_string = lv_smtp_addr
              i_address_name  = lv_smtp_name
            receiving
              result          = lo_sender_address.

Similar Messages

  • When trying to send photos using iphoto  a window comes up and says that email server did'nt recognize user name /password ...what do i do to correct this please  marie

    hello     when I try to send photos using the iphoto  a window comes up to tell me that my email server didn't rercognize user name /password  how do i correct this .. as i have cganged my email address  but i can't get rid of the old  one    thank you   marie

    Hi Cody\'sgirl,
    If you are having issues emailing photos directly from iPhoto, you may want to double check the email account information that is set in iPhoto. You may find the following article helpful (the section below is about setting up a new account, but it should be the same location to check existing account info):
    To set up a Photo Mail account:
    Choose iPhoto > Preferences, and then click Accounts.If you’re in full-screen view, move your pointer to the top of the screen to make the menu bar appear.
    Click the Add button in the lower-left corner.
    Click Email, and then click Add.
    Choose your email service provider.If your service provider isn’t listed, choose Other.
    Type the requested information.If you use the Mail application included with OS X, some account information might be filled in already. If you’re not sure what to type, contact your service provider.
    You can set up more than one Photo Mail account by repeating these steps for each account. When you send an email, you can change the outgoing account by clicking the From pop-up menu and choosing an account.
    iPhoto '11: Email your photos
    http://support.apple.com/kb/PH2421
    Regards,
    - Brenden

  • We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is: Cannot send mail. The user name or password for iCloud is incorrect.

    We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is:>> Cannot send mail. The user name or password for iCloud is incorrect.

    About ~20 hours later, this ended up solving itself. We can send email using the '.icloud' email from both the iPad and iPhone.  Advise would be 'wait' before you start seeking alteranatives like yahoo, hotmail, etc.  This definitely is a convenient way to keep all your 'cloud' information in a centralized place, including the common email...

  • How do I change my user name in syn? I typed in the wrong email address. And I cancelled syn thinking this may work but no luck.

    How do I change my user name in syn? I typed in the wrong email address. And I cancelled syn thinking this may work but no luck.

    You have to clear saved password for this page:
    # Open you login page (where you have to enter username and password).
    # Right click on page and select '''Page Info''' form context menu.
    # On last tab ('''Security''') there is '''View saved passwords''' button, click it and delete all saved passwords for this page.
    # Also clear all related cookies (just in case) there is button for this next to first one.

  • Changing user name on email account on blackberry curve

    Hi, new to this so excuse me if i'm being a bit dumb.
    My ISP has moved my email account to an imap server. The email now has a different username and password, although still the same email address. the emails are now not coming through to my blackberry curve 9300. I've tried to change the user name (in settings, email, login info) but it won't let me edit the field. Should i delete the whole account and start again? They are coming through on my 02email address but that's not  very useful to me.
    help!
    thanks

    Hi kates123 and welcome to the BlackBerry Support Community Forums!
    I would recommend removing then re-integrating your email account from the email setup.  The BlackBerry® Internet Service will gather the proper information during integration.
    Thanks.
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • We have an itunes account on our desktop and my kids have it on their ipod and iphone. I went in and changed our user name from my old e-mail address which is no longer accessible to my new one and now either of my kids can access the itunes store..

    We have an itunes account on our desktop and both my kids have it on iphone and ipod. I went in and changed out user name from an old e-mail address which is no longer accessible to my one I use now... When the kids try to sign onto the itunes store it tells them they have the wrong user name..
    Can this be fixed??

    Did you change the email address or create a new Apple ID?
    If the email address associated with the account was merely changed, sign out of the Apple ID on the devices and sign in using the new credentials.

  • I can't access my itunes account because my aol account is not active, how do i change my user name using gmail?

    I can't access my itunes account because my aol account is not active, how do i change my user name using gmail?
    I need to change my itunes user name to [email protected] instead of [email protected] AOL account is not active anymore.
    Thanks

    Chill out guys. Clare, I suggest that you try this link below. It might be possible taht the email you are using is not what your Apple ID should be:
    How to Recover Your Apple ID
    http://support.apple.com/kb/HE34
    Recovering a forgotten iTunes Store account name
    http://support.apple.com/kb/HT1920

  • I changed my user name on Yahoo, now all my folders are gone.  How to fix?

    I use ipad mail for 4 email accounts.  In Yahoo, I created personal folders with things I cannot afford to lose.  I changed mu user name & password with Yahoo, so now all those folders don't show up with new user name.  I contacted Yahoo, they said they were able to restore this data.  When I checked on ipad, nothing.  But my iMac showed all my mail accounts correctly, and under Yahoo, my folders were all there.  Now somehow, I've messed it up again.  Can't see those folders on iMac or ipad.  How can I fix this?  I'm not familiar with iMac as much as ipad.  Any step by step instructions would be so appreciated!

    Hello paiglang,
    Thanks for using Apple Support Communities.
    If your administrator password is not being recognized, then you can reset it by following the steps in the article linked to below.
    Reset the user password in OS X Lion, Mountain ... | Apple Support Communities
    Have a great weekend,
    Alex H.

  • Send Program Change bug in Logic 7.2.2

    I recently got a Mac Pro 3.0, and installed Logic 7.2.2. In general things are
    going okay, but I recently found a bug and I wonder if anyone else has run
    into it. I have a fairly extensive studio setup (6 Gigasamplers, some hardware
    samplers, quite a few synths, etc.) and have been working on an older G5
    with few problems, still running 7.2.1. When I open up a sequence on the Mac Pro with Logic
    7.2.2, it checks all the Send Program Change boxes on every midi channel of
    every instrument in the environment. This plays havoc with my studio setup,
    since I don't often use Logic to send program changes. I have since built a
    new environment in Logic 7.2.2 with all the boxes unchecked, and I import
    that to fix the problem, but I have many sequences on the old G5 I will need
    to open on the new machine. Anyone else run into this? Any global fixes?
    Thanks...
    Mac Pro 3.0, G5 2.5   Mac OS X (10.4.7)   Logic 7.2.2, 7.2.1

    I've had strangeness with the global tracks during a mix. I had the "tempo" track causing notes to change pitch and cause midibog. Time signature works ok.

  • I changed the user name and screensaver does not let me enter

    I changed the user name this morning, later the screensaver popped up. The screen shows the old user name and does not accept the password, so i cannot even open the main page.

    Change it back, then:
    How to change user short name or home directory name
    http://support.apple.com/kb/HT1428?viewlocale=en_US
    Also, this might be useful:
    http://www.macworld.com/article/132693/2008/03/changeshortusername.html

  • Change of user name

    Hi all,
    I just bought a Macbook pro. I was wondering if anyone knew how to change the user name of the computer. The one associated to the little house icon.
    I have been trying unsuccessfully to do it!
    A part that I'm really enjoying my new computer!
    thanks a lot!
    t

    If it is new and you haven't added anything to it, just create a new account with the name you want. Make it able to administer the computer and then log in to it. Delete the other one, or keep it for testing and troubleshooting.

  • How to change your user name for the Ipod nano...

    Can anyone please explain how to change the user name on your Ipod nano?

    hiya!
    do you mean the nano's name in the ipod source list?
    if so, select the ipod in the itunes sourcelist. click on it once, and pause for a second or so. you should then be able to type in what you please.
    love, b

  • How to change my user name?

    I want to change the user name in "Users and Groups"
    I changed it so that in the upper right hand corner of the desktop it reflects the new name, but when I open the Users folder, it still has the old name.  I want to change the name of the main users folder.  However, I would rather not change my Apple ID (which is my old user name).

    More Like This ---------------->
    https://discussions.apple.com/message/12135072#12135072

  • How to change my user name in itunes connect?

    hey there! i am iOS app developer and i am looking to change my user name in itunes connect but after even changing it, it still showing me the previous name in app store. Can anyone help me in that? cheers!

    YYou go to settings and scroll down to iTunes and change the e-mail there.

  • Change my User Name?

    I am a brand new Mac user and am trying to learn everything on my own. Among many other questions, how can I change the name of my computer? When I bought the computer, the Geek Squad "optimized" it but they imputed my husbands name on everything instead of mine (since it was his credit account) but I am the primary user. Call me selfish, but I want my name on everything.
    I have changed my User Name under Preferences>Accounts, and I have managed to change info in Address Book. However, in Finder, the name of my "home" is still set to my hubby's name and when I pull up "Get Info" I cannot change it. If you can help, I would appreciate it. It is moderately annoying to me.

    Since you're a newcomer to the Mac, see these for answers:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    MacFixIt Tutorials,
    MacTips, and
    Switching to the Mac: The Missing Manual, Leopard Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist.
    Welcome to the Switch To A Mac Guides, and
    A guide for switching to a Mac.

Maybe you are looking for