Send email on external email address using sap workflow

Dear All,
I wat to send email( on external email address) to all users on under one position in org unit using sap workflow.
I have retrived all users under given postion using FM   'RH_OM_GET_HOLDER_OF_POSITION'.
Please let me know how to get their email ids.
Thanks & Regards
Rajshree

Hi Rajasree,
You can get the email address by passing the PERNR of employee and read the infotype '0105' (communication) with subtype '0010'.
DATA: lt_p0105 LIKE p0105 OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'HR_READ_INFOTYPE'
   EXPORTING
*   TCLAS                 = 'A'
    pernr                 = pernr
    infty                 = '0105'
    begda                 = sy-datum
    endda                 = sy-datum
*   BYPASS_BUFFER         = ' '
*   LEGACY_MODE           = ' '
* IMPORTING
*   SUBRC                 =
   TABLES
     infty_tab             = lt_p0105
  EXCEPTIONS
    infty_not_found       = 1
    OTHERS                = 2.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
READ TABLE lt_p0105 WITH KEY subty = '0010'.
email = lt_p0105-usrid_long.
Regards,
Pipit

Similar Messages

  • Is it possible to customise the email address used to send iCal invites?

    Hi,
    I am trying to find out if it is possible to customise the email address used by iCal to send an invite.
    i.e. each user would like their email address to be used rather than a generic one.
    Tks
    Ben

    Sorry, that isn't possible. The email address is used as the account name. If you need to change it, a new account would need to be created.

  • SOST sender column is blank using SAP workflow email step

    Hello,
    I used email step in SAP workflow to send emails. Sender is blank in SOST when I tried to see the email processing status. I am not sure, what need to done here to fix this. Can someone please help me on this.

    Hi,
    well yes you can,
    either store your recepients in a container,
    use a loop in ur WF and include your SendMail Activity inside it, and depending on a check variable send your Mails to different recepients.
    else.
    i had a similar case, what i did was i created a DL-List and instead of SendMail i created a task that called my customized method of sending mails (SO_OBJECT_SEND).
    try it and comment,
    if helpful reward
    Cheers,
    Aditya

  • PO sender email address incorrect

    Hi Guru's,
    We are having an issue , where one of our users can send PO  from SAP  in ME9F t-code to the vendor successfully, but the sender email is using the users SAP ID @company.com instead of the outlook address.  When the vendor tries to reply back the email does not get back to sender.  We are wondering if this is a workflow issue and where can and how can we correct this problem.

    Hi Thomas
    Can you please share a screenshot of the user from SU01 / SU01D?
    Also share the details of that email maintained - click on the arrow button (more addresses) in SU01D and see if that email is not set to "Do not Use".
    As per note 191470, it is required to have a vaid email address in there.
    regards,
    Modak

  • Webservice needs sender email address to be that of service user -how todo?

    I host a web service. It is used by merchants in their web sites. My web service sends notifications to the merchants customers. Trouble is the sender email address is my web service email address and not that of the merchant. Some merchants do not like this and they want emails to their customers to be seen to come from them.
    What would I (or the merchant) need to do in order to be able to set the sender email address to that of the merchant. Im assuming I can't just go ahead and set the sender to be any old email address! e.g. Im thinking Id have to use the merchants smtp host or something.

    You can set the sender to whatever you want; that's why there's spam.
    Whether your SMTP server will allow you to send with any arbitrary sender is a different story.
    If you run your own SMTP server, you can control this. Otherwise, yes, you would probably need
    to use the merchant's SMTP server and login credentials.

  • How can i change the name in imessage from the full email address used as apple id on ipod touch?

    I used my full email address to create an apple id - but on imessage it uses my apple id as my name as sender + i dunno how to change it so ppl dont get a messsage showing my full email address!
    Can anyone help?

    Open the Contacts app. List All Contacts and find the email address used by iMessage. Select the email address and tap the Edit button in the top right corner. Add your name to the top two lines. Tap Done.

  • Sender email address verification

    During my recent DNS server outage (caused by XO DSL suddenly turning on filtering of port 53), I noticed something quite interesting with .Mac server and I am wondering if there is a way for Tiger server users to EASILY implement the same feature to reduce the inflow of spam?
    When my DNS stopped, my .Mac account STOPPED accepting email from my work account, essentially saying there was no such account on my work server.
    I obviously do understand that the fact that my DNS was not working and my server could not be verified was the reason for this, but it got me thinking....
    Is there any easy way to put this sort of incoming email verification process on my OWN Tiger server (work)? i.e. Only accept delivery of incoming email AFTER you verify that the sender email address DOES correspond to a valid email account on the senders host?? - which means no bogus email address or hostnames accepted...
    I think this would help cut down on a lot of Spam as these guys often send junkmail via bogus accounts/host names that cannot be replied to.
    Any useful information regarding setting this up would be most appreciated
    Thanks in advance - Rohin

    My question is ... wouldn't it make sense to check whether sender emails are valid before accepting email server connections.
    There's not really any way of doing that, besides, that's not really what you want.
    What you want is to ensure that the email comes from the person that it says it comes from. What you'd get is that the email says it comes from a valid email address. This is not the same thing.
    Even now, 99% of spam emails are sent from valid email addresses - it's trivial to put any email address in the 'from' header.
    Knowing that the From address is valid doesn't actually do anything to say that the person in the From header is the one who actually sent the message in the first place.
    There are several industry-wide attempts and performing validation at the domain level, which is about as good as it's going to get in the near term. For more information check out Sender Policy Framework which defines (via DNS) which IP addresses are permitted to send email for a particular domain, and DomainKeys which uses digital signatures to validate the email.
    Since both models require input from the domain owners, they won't be 100% reliable until all domains opt-in to the schemes. For now it can help validate that an email is from a legitimate domain, but the absence of a SPF or DomainKey doesn't necessarily mean the message is spam.
    The only way to verify that the email comes from a valid user is some kind of confirmation - an email comes into your mail system which doesn't recognize the sender, so it holds the mail and sends a message back to the sender saying 'who are you?" and "if this message is legitimate, follow this link to unblock the message". The message is forwarded only after the sender confirms their identity and that the message is legitimate.
    This has all kinds of issues, though including latency (it takes longer for messages to get to you), delays (what if the sender sends the message right before they leave on a week's vacation?), and not least the complete lack of support for any kind of automated messages, list, etc. that are sent from non-humans.

  • Workflow step - send email - address of sender

    Hi,
    We are using workflow to register travels and leave requests and we are sending emails to the employees about eg. that their document has been rejected/approved. Emails are sent by user WFBATCH. Is it possible to change this user to some other one so that we could change the sender email address?
    Thank you!

    Hello,
    If you're usng a SendMail step then (if I remember correctly) it's always run in background and therefore always WF-BATCH.
    Usually, if I want to do anything unusual with mails from workflow then I create a step which calls a task which calls a new method of my BOR object which calls fm SO_NEW_DOCUMENT_ATT_SEND_API1. See if you can specify the sender there.
    Please let the forum know how you get on.
    regards
    Rick Bakker
    Hanabi Technology

  • Hotmail - Sender email address is invalid

    Hi,
    Ever since I got my new iPhone 3GS, I have not been able to send emails. I had an izymail subscription for hotmail on my original iPhone and it worked fine. I synced everything over to my new iPhone 3GS and also made a new email account as Hotmail is now free to set up using POP3.
    I turned my izymail account off because I was having problems with it fetching old deleted emails once or twice a week. Everything was working as normal until I tried to send an email and the following message appeared: "Sender email address is invalid"
    I've tried switching my izymail account back on and switching my new Hotmail POP3 account off and my emails will send ok...
    So why are my emails not sending with my newly setup Hotmail POP3 account?

    Sender Address invalid is the error message you get when your SMTP (outgoing email) settings are not working.
    Many times this is because you are trying to use an SMTP server on a WiFi network and the ISP is blocking all SMTP connections that are not going to the ISP servers - this is to stop spammers.
    Also, you will get this message when you try to use your SMTP server on 3G or Edge - the ISP sees a connection to their email server (SMTP) coming from AT&T (or your cell carrier) network not their own network and they think it is spammer so they deny the connection.
    Some things to try - turn on the default SMTP server on the ipHone that corresponds to your carrier - when on 3G/Edge you can use this outgoing email server to connect without problems. Or, look to see if your ISP offers an email server on a different port (mine offers one on port 80 - all web browsers use this so other nets can't block it). Look for settings for authenticated SMTP servers - if your mail provider offers this it may be a way in also.
    The search box (top right) will bring you many threads on this same subject.

  • Change sender email address for payment advice

    Hi,
    I used FIBF to activate BTE 2040 to allow me email Payment Advice. This is working well and takes the 'Sender' email address from the user master data. I don't want to use the user master data so does anyone know how/where to change the sender email in the code?
    I have copied SAMPLE_PROCESS_00002040 and can implement 2050 if needed but that seems to only modify the text of the mail - not the sender email?
    Thanks.

    accounting Clerks need to be setup

  • HT201363 I want to change the email address used as rescue email for my security questions. But I can't remember the answers to the security questions and I dont have access to the rescue email anymore. Please help.

    I want to change the email address used as rescue email for my security questions. But I can't remember the answers to the security questions and I dont have access to the rescue email anymore. Please help.

    -If you established a rescue email address, there will be a link on the "Passwords & Security" page of id.apple.com.  Clicking the link will send the reset to your rescue email address (NOTE:  This is not the same address as your Apple ID email)
    -If there is no link on the page, then you didn't establish a rescue email address.  Contact AppleCare at 800.694.7466 (If you are in the US), and ask for account security.  You will need to answer some questions to verify your identity, AND you will need access to a computer to generate a temporary support pin.
    -If you are not in the US, click http://support.apple.com/kb/HT5699 - Apple ID: Contacting Apple for help with Apple ID account security
    HTH

  • Sender email address for Customer Account Statement

    Dear Experts,
    Here's an issue that my colleague and I are currently facing:-
    The Customer Account Statements that are sent via email in the transaction F.27 show that the sender email address is not equals the Accounting Clerk (KNB1-BUSAB) maintained in customer master data (FD03). Instead, the sender email address here is the email address of the person executing the transaction F.27.
    I've looked through some programs (RFKORK00 and RFKORD10), and the variant used (SAPMA). Unfortunately, we still could not determine the root cause for this issue. What should we be looking into, and how can we resolve this issue too?
    Any inputs would be much appreciated. Thanks.
    Regards,
    Deborah

    Hi Ajay,
    Thanks for your input. Really appreciate it. Would you please enlighten me further?
    "The accounting clerk’s name is then printed in any correspondence with the customers or vendors."
    The statement above leads me to think that consequently, the accounting clerk's email address should be the sender email address for the mail that is sent to the customer.
    Also, when I hit the 'F1' key on the Accounting Clerk (in transactions F.27 or FD03), the following texts are shown:-
    "Accounting clerk
    Identification code for the accounting clerk.
    The name of the accounting clerk defined by this identification code can be used in the payment program for correspondence and reporting (for example, open item lists)."
    Again, this leads me to think that the sender email address should be the accounting clerk's email.
    P/S:
    The customer is saying that this should not happen, so my colleague and I are just investigating this issue further.
    Regards,
    Deborah

  • Sender email address in dunning letter

    hi,
    I would like to include the sender email address and phone number (stored in table ADR6) on the dunning Notice sent to the customer.
    I could see somewhere on that forum that there is a SAP note for that but I could only find the note # 1260580 which replaces the Phone from the company by the personal phone number from the sender. But I couldn't find anything related to the email address
    Can someone help me ?

    Thanks for the reply.
    That would be fine! but how do you activate this link with the userid ?

  • Send email without using sender id

    Hi all,
    Is it possible to send email without using sender id?
    Thanks in advance

    nvv wrote:
    I m not asking this for spam. Actualy I m developing software that sends mail to many contacts. If i use sender address then they can use others like gmail, yahoo, or something like that instead.Sounds like spam software to me.

  • How can I make my Kerio WebMail memorize email addresses used previously?

    How can I make my Kerio WebMail memorize email addresses used in the past?

    Have you checked with Kerio support for answers? <br />
    http://support.kerio.com/index.php?_m=knowledgebase&_a=view

Maybe you are looking for