Changing senders mail address in 'SO_NEW_DOCUMENT_SEND_API1'

Dear All,
I am using the function module 'SO_NEW_DOCUMENT_SEND_API1' for sending mail to the vendors.
The problem is when the mail is sent from this function module it takes the name of the user logged in in the senders address.
I want to send the mail by some other mail id, so is it possible to change the senders address in this function module.
If not , then is there any other way by which we can send mail and can change the senders addess .
Thanks and Regards
Manik L Dhakate

Hi,
*--Method 1--*
CALL FUNCTION 'SUSR_USER_ADDRESS_READ'
        EXPORTING
          user_name              = wf_user
        IMPORTING
          user_address           = it_address
        EXCEPTIONS
          user_address_not_found = 1
          OTHERS                 = 2.
      IF sy-subrc = 0.
        wf_addr_no = it_address-addrnumber.
        wf_pers_no = it_address-persnumber.
        SELECT SINGLE smtp_addr FROM adr6 INTO wf_addr
        WHERE persnumber EQ wf_pers_no AND
              addrnumber EQ wf_addr_no.
        IF sy-subrc = 0.
          p_add = wf_addr.
        ENDIF.
*----Another metheod -*
PARAMETERS: p_add(50) TYPE c.
Data: it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
IF p_add IS NOT INITIAL.
      CLEAR it_receivers.
      IF p_user = c_x.
        it_receivers-rec_type = 'B'.  "SAP-Username
      ELSEIF p_dl = 'X'.
        it_receivers-rec_type = 'C'.  "Distribution list
      ELSEIF p_int = 'X'.
        it_receivers-rec_type = 'U'.  "Internet Address
      ENDIF.
      it_receivers-receiver = p_add.
      it_receivers-express = 'X'.
      APPEND it_receivers.
    ENDIF.

Similar Messages

  • HT202667 I switched from att to charter internet and change e-mail address. I keep getting messages telling me my at&t iCloud account is not connected. How do I get rid of the at&t iCloud message?

    I switched from att to charter internet and change e-mail address. I keep getting messages telling me my at&t iCloud account is not connected. How do I get rid of the at&t iCloud message?

    Hi adamsfly,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like you changed your email address and iCloud is looking to sign in with the old Apple ID email. I would recommend that you read this article, it may be able to help the issue.
    What to do after you change your Apple ID email address or password - Apple Support
    Cheers,
    Mario

  • I have change e-mail address after first registration and when I logged in it send new password to my old e-mail address. now I can't use my old profile

    I have change e-mail address after first registration and when I logged in it send new password to my old e-mail address. now I can't use my old profile.
    and I can't install my old adobe X anymore
    what to do?
    Mika

    Change Account https://forums.adobe.com/thread/1465499 may help
    -wrong email https://forums.adobe.com/thread/1446019

  • How to change e-mail address in iCloud IMAP

    how to change e-mail address in iCloud IMAP. i have to change it to another e-mail address.
    please help
    please find in image.

    Welcome to the Apple community usama.butt.
    Unfortunately you cannot change an iCloud mail address once you have created it. You can however use an iCloud alias which you can set up at iCloud.com.
    To create an alias.....
    Navigate to the Mail feature at iCloud.com and click on the gear icon in the bottom left corner. Choose Preferences from the drop down menu, then select accounts from the options across the top, here you can create your alias.

  • HT2204 Changed e-mail address & Apple ID, verified by Apple. Itunes changed but cannot get Messages, Facetime or Icloud. Keep on throwing up old email address & won't accept new or old password.  Help needed!

    Changed e-mail address & Apple ID. Verified by Apple. Itunes & email working but cannot access Messages,Facetime & Icloud. Keep throwing up old email address & wont accept either new or old passwords. Anyone got a solution?

    Welcome to the Apple Community.
    Firstly, you need to change your details with Apple,  Start here, change your country if necessary and go to manage your account.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • How can i change my mail address on the forum?

    Hello, I've allready send a mail to the suportdesk, but in the meantime i can't receive a mail because i have to change that mail address of my on the forum into an other one, but i cant find a link to my personal settings. can any body help me out?! Thanks.
    Fredek.

    Hi Fredek!
    If you click on your name then click on "Resources & Settings" under My Community at the right hand side, it will expand a list of links.  From there you'll want to click on "My User Settings".  On that page is a section right under the search bar titled "Edit HP Passport".  You should be able to click on "Contact Information" and change your email address from there!
    Let us know if you have any troubles!
    KittyK - HP Support Forums Moderator
    Clicking the "Kudos star" to the left is a great way to say thanks!
    When your problem has been solved, accept the solution by clicking the "Accept as Solution" button to help other members in the future!
    Rules of Participation

  • Does moving and changing e-mail address affect connecting to sever to get updates to CS5 and Lightro

    Does moving and changing e-mail address affect connecting to sever to get updates to CS5 and Lightroom? Old address was [Removed personal information], Old e-mail address was [Removed personal information], telephone number was [Removed personal information]. New e-mail address is [Removed personal information], same telephone number, new address is [Removed personal information],
    Thank you for your help
    Message was edited by: sinious

    No. The activation is anonymous as are the updates.
    Mylenium

  • ICloud - change e mail address?

    I had a typo in my e mail address when setting up my iCloud account. Now, I'm unable to verify my iCloud account because the verification e mail is being sent to an incorrect e mail address. How do I change my e mail address? Thank you.

    Assuming you can login, change the email address at appleid.apple.com.
    I have changed mine several times.

  • Need to Change E-mail address - will I lose purchased content?

    Hello:
    I have just switched service providers and need to update the e-mail address tied to my adobe account which I have used to authorise both my eDoc purchases and my Sony Reader.
    My fear is that in doing so, I will lose the ability to read all of my e-Docs authorised to my current e-mail account and I am also concerned about updating my Sony Reader to the new details.
    I am concerned that Adobe has tied username for authorisation directly to e-mail, which is prone to changes when switching jobs or networks and have also been a bit dismayed to not find any details about updating e-mail account in Adobe's documentation - other than a warning that changing your e-mail affects your username and therefore your authorisations.
    Can anyone please provide me with some help on how to switch my e-mail address and still be able to read purchased e-doc content and update my sony reader?
    Cheers,

    Well that is certainly inconvenient.  I'm not sure the reason that you are unable to change your email address.  It might help to contact Spotify by filling out the contact form here:  https://www.spotify.com/about-us/contact/contact-spotify-support/?contact .  They should be able to change your email address for you since you are unable to do so.  Be sure to give them both the old and the new address, as well as any other info they might need to locate your account.  Hopefully they can get your account fixed up for you quickly!

  • Can't change e-mail addresses in Server 4.0

    I have noticed that whenever an e-mail is sent to a user on my server, a response is sent out to the sender from [email protected] saying "Recipient address rejected: User unknown in local recipient table". I went into the open directory tab on Server 4.0, and under each user on selecting "edit user", two e-mail addresses are listed - [email protected] and the alias I configured in server 3.2 on Mavericks. Unfortunately, I can neither add to or remove these, the + and - buttons are greyed out. This leaves me unable to resolve the issue, which is I assume that the aliases are no longer being recognised. I have tried a disk permissions repair, restarting the open directory and even the server but no change. Does anyone have any ideas?
    Thanks!

    Solved the issue... Helps if you click the lock to authenticate first! You need to bing down "Local network users" from the drop down for the lock to appear. I hadn't realised Apple had added this to v4.0.

  • How to change my mail address in Adobe reader

    I register in Adobe reader with an old mail address, I want to change it for the new one. Thank you to tell me how to proceed.

    Are you talking about the subscription information for ExportPDF? Reader itself does not require registration.

  • How to change e-mail address to log on icloud

    How do I change or add new e-mail address on iCloud to log in?

    You can change your primary iCloud email address, if does not end with @mac.com, @me.com, @icloud.com.
    Start with signing out of iCloud on all your devices - iPhones, iPads, Mac etc. - ("Settings > iCloud") and delete your iCloud account from this devices (+ turn off Find My iPhone, but I guess it will ask you that anyway)
    After that open http://appleid.apple.com sign in, and now change your iCloud email address (which is also an Apple ID) to your new email address.
    Finally, set up your iCloud account on all your devices again usin

  • HT201342 unable to change e mail address to new iCloud address. When following change instructions the drop down on the SEND NEW MESSAGES ON does not have the iCloud option.  ( I have mountain Lion)

    attemped instructions in Mountain Lion to change my e mail address to the recommended i cloud.com address.
    The drop down  in the SEND NEW MESSAGES FROM does not have the i cloud e mail option.
    How do I change it??

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    When you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.

  • Need to change E-mail address on my Spotify Account

    I need to change my e-mail address that I used to set up my Spotify account as the e-mail address is no longer active.  When I try to change it within the Spotify account I can't as my password isn't recognized under my new e-mail address, which of course hasn't been set up yet.  Does anyone please have any suggestions on how to change?  I do have the password correct as it accepts my password under the outdated e-mail address.

    Well that is certainly inconvenient.  I'm not sure the reason that you are unable to change your email address.  It might help to contact Spotify by filling out the contact form here:  https://www.spotify.com/about-us/contact/contact-spotify-support/?contact .  They should be able to change your email address for you since you are unable to do so.  Be sure to give them both the old and the new address, as well as any other info they might need to locate your account.  Hopefully they can get your account fixed up for you quickly!

  • Need to change outgoing mail address which is from an old account

    We recently switched to a new internet service provider, but the old address is by default still being sent as the outgoing (from:) address in the Mail application. Is there a way to remove that address? The problem is not with the service provider because I have been able to check the current valid inbox address through the service provider's homepage online. The problem must lie with a setting in the computer that has retained the old address as a default.
    Any help would be greatly appreciated.

    If you're sending from the new account, that address is the outgoing mail address, by default. Did you try deleting the server of the old account? It could be sending mail out through that server instead of the one provided by the new ISP, which would change the outgoing mail address.
    Go to Preferences > Accounts and select the new account; look near the bottom of the window where it says "Outgoing Mail Server (SMTP)" and check to be sure that is set to the server provided by your new mail provider. If it's not, you need to select the correct one from the pop-down list.

Maybe you are looking for

  • Profit center is not updated in a PO Account assignment

    Hi, I have a requirement to change plant and profit center on PO items. I use account assignment category - A - Asset on PO. I was not able to change profit center on PO item even though i changed plant on item. I am using BAPI_PO_change to update pl

  • Authentication for ADS

    hi, I am setting authentication for ADS. When i click on Webservice security, under services, i get "Error while loading service web service security" in visual admin. Can you also add a point as to why do we need ads authentication.

  • Charts - Display Top Percent and Legend Layout Questions

    I have two pie charts with problems. In one, I've set the Options Legend Layout to Both, Top Percent to 85, and the legend displays the top 85 percent with a count for each group, but the total of the count column is still the grand total, not the to

  • Duplicate vendors and customers

    Good morning all. I have a question about unique problem I need to consider. Essentially, I have merged two company codes which resulted in duplicate vendors and customers. At this point, it's easy for purchasing to select the right record, but in th

  • I need Tuxedo Developers and Administrators

    Tuxedo Developer The person will be responsible for Tuxedo middleware development using C/C++, IBM MQ-Series, Sybase and Unix scripting. At least five years of software development experience with C/C++, Sybase and Tuxedo middleware.Development exper