Sending mail from workflow

I am using 2-level approver ESS Leave workflow .I need to send mails to outlook from workflow .
I am successfully able to send mail to 1st approver AGENT_001.AGENTS , but not to 2nd approver.
But I am choosing 2nd  approver through rule 00000168 .
There is no rule kind of thing in send mail step . Also if I send mail through a activity step and set it as background task , it does not allows me to choose agent through rule .
is there any other though which i can choose 2 approver and its mail id .
Points will be rewarded

Hi Sahiba,
You have to get the agent 2 before the task and put  his id in task.
You can create a custom method for it or you can insert this logic into an exitisting method which is calling before the taks.
Thanks & Regards,
Malpani

Similar Messages

  • Sending Mail from workflow or updating container elements

    Dear friends,
    I'm new to work flow.
    My requirement: <b>send mail from workflow to a user after dead line is missed</b> I do not want to use messages in 'Latest end' tab. I want to send mail.
    The mail id of the user is determined in the previous step using a FM. How do I use this mail id to send the mail. I thought of using 'Rule' option in 'Send Mail' (and use same FM)but thats not possible. In that case how do I pass the mail id value to the WF container from the FM?
    I also tried this idea:
    created a task with BOR object SELFITEM, method 'SENDTASKDESCRIPTION' .
    *in an activity step used this task and filled the 'Rule' option in notification tab appropriately
    *in this case the WF goes into an error '.....error executing 'sendtaskdescription' .....'
    *i would prefer using the activity step because, the mail has to be sent after a delay
    Is there any other simple method to do this?
    My problem would be solved even if someone can show me how to transfer values from a FM into a WF container.
    Can someone please explain?

    Reposted under different thread

  • Sending mail from workflow or Updating container from FM

    Dear friends,
    I'm new to work flow.
    My requirement: send mail from workflow to a user after dead line is missed I do not want to use messages in 'Latest end' tab. I want to send mail.
    The mail id of the user is determined in the previous step using a FM. How do I use this mail id to send the mail. I thought of using 'Rule' option in 'Send Mail' (and use same FM)but thats not possible. In that case how do I pass the mail id value to the WF container from the FM?
    I also tried this idea:
    created a task with BOR object SELFITEM, method 'SENDTASKDESCRIPTION' .
    *in an activity step used this task and filled the 'Rule' option in notification tab appropriately
    *in this case the WF goes into an error '.....error executing 'sendtaskdescription' .....'
    *i would prefer using the activity step because, the mail has to be sent after a delay
    Is there any other simple method to do this?
    My problem would be solved even if someone can show me how to transfer values from a FM into a WF container.
    Can someone please explain?

    Hi,
    => To get the deadline worked via programming, you can write your own logic. In current case,
    1. Create a custom function, having proper input and output parameters like End Time to wait if in case you have maximum of 2 days of wait.
    The total wait time is calculated from the Endtime, which is input to function module.  From the Endtime, the start date and end date are calculated and then the difference between the two dates is counted as total wait time.
    Here at the most 2 days of wait time is calculated.
    * Local parameters
      DATA: LV_UTCSTART TYPE /SDF/CMO_TSTMP,
            LV_UTCEND   TYPE /SDF/CMO_TSTMP,
            LV_SECOND   TYPE /SDF/CMO_SEC,
            LV_ENDDATE  TYPE SY-DATUM,
            LV_STR TYPE STRING.
      IF ENDTIME >= SY-UZEIT AND ENDTIME <= '235959'.
    *   Today's date
        LV_ENDDATE = SY-DATUM.
      ELSE.
    *   Tomorrow's date
        LV_ENDDATE = SY-DATUM + 1.
      ENDIF.
    * Get the Start Time for function module
      CONCATENATE SY-DATUM SY-UZEIT INTO LV_STR.
      MOVE LV_STR TO LV_UTCSTART.
      CLEAR LV_STR.
    * Get the End Time for function module
      CONCATENATE LV_ENDDATE ENDTIME INTO LV_STR.
      MOVE LV_STR TO LV_UTCEND.
      CLEAR LV_STR.
    * Get the total wait time in seconds
      CALL FUNCTION '/SDF/CMO_TIME_DIFF_GET'
        EXPORTING
          UTC_START = LV_UTCSTART
          UTC_END   = LV_UTCEND
        IMPORTING
          SECOND    = LV_SECOND
        EXCEPTIONS
          PARAMERR  = 1
          OTHERS    = 2.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Wait for total time
    WAIT UP TO LV_SECOND SECONDS.
    2. Now, create one method in the BOR object whose event triggers your workflow.
    3. Use this method in an activity step in you workflow where you want to wait on some given conditions.
    => You can use the email ID which was given by earlier step in Send Mail step. Just make your email id field as Export/Import <i><b>AD_SMTPADR</b></i> type of parameter. In the send mail, use this Id in Email Address input.
    Hope this helps your.
    PS If the answer solves  your query, plz close the thread by marking it Solved and rewarding each reply.
    Regards

  • Sending mail from workflow inbox to outlook,when idoc error occurs

    Hi All,
    I tried to send a mail to outlook from workflow by giving the email address in the step mail, but it was not working.
    i am getting the workitem in the sap inbox so tried setting the automating forward which we can forward from the sap inbox to outlook.
    Searched in SDN , but my issue was not solved..
    Could you please help me out with this issue to get the mail from workflow to outlook inbox.
    Thanks,
    Praveena

    Hi Praveena,
    Please check if the necessary SCOT settings have been made in your system to send mails outside SAP box. Check with your basis team if the SMTP connection between external system (Outlook, Lotus, etc) has been maintained or not.
    Then check in t-code SOST if you are getting the mail here when sent from workflow.
    Hope this helps!
    Regards,
    Saumya

  • Send Mail from workflow with a Long URL

    Hello,
    My problem is that when an email gets generated from the workflow in my application, the generated url is quite long. As a result the link is not completely underlined in the email. I know there are limitations discussed in SAP note 363986. But does anybody know a workaround using aliases for the URL? and an example for the same would be great.
    Regards,
    Manoj.
    Message was edited by:
            Manoj Vudathala

    Hello!
    I had the same requirements a while ago and even sent OSS note because customer insisted - even though I informed about the known restrictions.
    Well, SAP replied back that the restrictions are still valid and we tried to use alias and splitting email to multiple container elements but still did not work!
    Using send mail step will simply not work with long URL's!
    But there is a work around if the requirement is business critical - you can create a smartform that has the email text and then pass the URL to the smartform. Smartforms can handle the long URL. You can then trigger a method in your workflow that will send the smartform as email. Hope that gives you an idea!
    Harald

  • SCOT don't work correctly when I send mail from Workflow

    Hi.
    I setting from SU01 the mail of users. I send an email from Workflow, I find this mail in SCOT.
    But the SCOT don't send the mail to user.
    Can I solve it?
    Regards
    Angela

    Hi Angela,
    I don't think your problem lies in SAP. You need to check with the exchange guys to see if the e-mail you send is relayed in the exchange server. Depending on your sending address it is possible the exchange server will not send it on. Depending on the place the exchange server is, there is a possibility there still is a firewall which blocks smtp communication.
    Regards,
    Martin

  • Logo in send mail step - workflow

    Dear Experts,
    I'm using send mail step for sending mails from workflow to external mail id's in workflow, i need company logo in the same is it possible to do, or suggest me how to do on this issue.
    Thanks and Regards,
    Thirukumaran. R

    Hi Sunil,
    I assume that the login ID is SUNIL and the expression is fetching the 'US' appended value as USSUNIL.
    Please check the datatype of the fetched value. It should be WFSYST-AGENT.
    Regards,
    Saumya

  • Can not send mail from PR Workflow to the approver

    Dear all,
    I have issues about send mail from PR Workflow to the approver.
    Now when user create PR and the corresponding user can receive the workflow items in SBWP.
    But no email from the user to approver.
    If I assign authorization SAP_ALL to the user that create PR. The approver can recieve the workflow item PR in SBWP and email to their mail
    Can you tell me about the authorization that can allow the user to send the workflow item PR in SBWP and email to the approver?
    Now user can send mail to external and internal mail and I also configured the mail server in SCOT and can successfully send a mail to users in SO01 by manually creating a message.
    Now the approver not receive any email but can receive a workflow item in SBWP
    Regards,
    Pannee

    Dear all,
    Thank you for all suppport, Now I can solve issues.
    Regards,
    Pannee

  • Problem in sending mail through workflow

    Hi All,
      I am trying to create a workflow. I created a workflow and once document is made, this workflow trigerrs and i am able to get user decision to my user id. once if i click on approve, mail should be triggered to my mail id. but mail is not coming to my mail id. i checked in SOST transaction, <b>mail status set to Transmitted.</b>, and not as sent .
    But i tested a sample test message from sbwp to my mail id and it is working fine. Only through workflow, sending message to outlook is not working. i checked my user in the system in SU01 transaction also, there also mail id is mentioned. what could be reason for not able to send mails through workflow.?
    Its urgent.
    Points will be awarded to all.
    Regards,
    vinoth

    Hi,
    Check that all the bindings have been done in proper way as it is configured.. Try to do the binding manualy..This could also be the problem..
    thank You

  • Mail from Workflow to Outlook: Incorrect Subject

    Hello,
    I have the problem, that if I send Mails from a sap workflow to outlook for certain notifications
    the subject of the mail is not correct. The subject contains the description of the workflow task
    and not the workitem text. For all other notifications the subject is correct. The notifications,
    for which subject is not correct, were created by a function module. The mail body is in all cases correct.
    Any ideas??
    Regards,
    Mario

    Hi Mario,
    Check the FM you are using. If it is SO_NEW_DOCUMENT_SEND_API1, check if you are passing the subject line correctly or not by debugging the FM.
    Also state what exactly is the difference between the subject passed and what is recieved in the mail i.e. how is it incorrect.
    Regards,
    Saumya

  • Cannot send mail from mac mail or Entourage

    Hi guys,
    Wondered if anyone out there can shed some light on this little problem.
    I use Entourage for my emails & all was working fine until yesterday. I can receive mail from all and sundry but I can't send anything. I subscribe to ntlworld internet service and if log onto my email through their webmail, then it's fine. I've tried sending mail from mac mail and I get the same problem. I've been onto microsoft support & gone through all the troubleshooting with Entourage. The Entourage techy suggested it was my internet provider blocking my emails as they think I'm a spammer?? I phoned ntl & they insist it's nothing to do with them as I can send/receive from the website. (If I send an email with the address @ntlworld it's fine, but any other address i.e. all my clients/mates etc just stays in my outbox.
    Nothing on any of my settings has changed so I'm at a loss what to do next.
    Any suggestions greatly appreciated.
    Thanks, Mel

    it may be that your server (internet provider) has just started blocking outgoing mails not authenticated by them.
    Go to your account set up...
    and fill in the following details.
    SMTP SERVER: smtp.mac.com
    then click on advanced sending otions...
    click on override default SMTP port... type 587
    click on SMTP servber requires authentication...
    use same setting as receiving mail server.
    try this...

  • Cannot send mail from my ipad

    I cannot send mails from my ipad, I have checked settings with my mail server and they tell me that everything is OK, they don't know what may be causing the problem, any ideas?

    TBS2.
    There is no way for anyone to know if your problem is identical to the problem reported by maria_diaz. She didn't mention anything about getting the "relaying" message. I suggest you start a new question that gives a good title to a specific problem. Then in the body of the thread describe the problem in detail, tell us what steps you have tried so far to correct the problem, what happened, and what error messages you received.

  • Cannot send mail from any mail account

    I have a Mac Mini, late 2014 model, running OS X Yosemite version 10.10.2.   I have constant difficulty sending mail from any of my mail accounts; these are iCloud, Googlemail, Yahoo and a personal one which uses 123-reg.co.uk.  I am currently located in Greece, but have been having trouble for ages, even in the UK.  I can receive mail, but I don't seem able to send it.  Error message is usually simply cannot send mail using this server, select a different server.  However, when connection doctor is run, all servers appear to be connected and I am logged in.  Any ideas please?

    rosiehwilson wrote:
    Hi, not sure why that is relevant, but we arrived at the end of January this year.  Here is a screen shot of a recurring problem, although in this case Gmail is not connected to the internet, which it usually is.  Hope this helps.
    Your outgoing Gmail servers not working, everything else seems OK.
    So, what is not working for you (other than Gmail Sending)

  • Unable to send Mail from POP account

    I have an Iphone 4 and have upgraded the IOS from 5-1 to 6.1.3. Since then I have been receiving all my mails but i have been unable to send mails from my POP account. the notification "Cannot Send Mail. A copy has been placed in your Outbox. The receipient, "xxyyzz @ gmail . com " was rejected by the server" displayed. Please Help. the same thing happens when I configure my POP account on my Son's Iphone4, and there is no problem in receiving and sending mails from my Outlook. Please Help!!!!!
    Can i revert back to IOS5.1.1?????

    Contact your email provider and get the correct settings to use for the outgoing mail server (SMTP) on a mobile device. If it's email provided by your ISP, they have likely blocked email from outside their network from relaying to prevent spam.

  • Cannot send mail from .mac account in Entourage

    I am a new mac user so my troubleshooting skills are very weak. Until about one week ago, i was able to send mail from both my hotmail account and my .mac account. Now, i get this error (just on my .mac account):
    An operation on the server timed out. The server may be down, overloaded, or there may be too much net traffic.
    i read through much of the support articles, but did not find my specific error. can anyone help??
    thank you
    mknz
    MacBook Pro   Mac OS X (10.4.7)   new mac user
    MacBook Pro   Mac OS X (10.4.7)   new mac user

    it may be that your server (internet provider) has just started blocking outgoing mails not authenticated by them.
    Go to your account set up...
    and fill in the following details.
    SMTP SERVER: smtp.mac.com
    then click on advanced sending otions...
    click on override default SMTP port... type 587
    click on SMTP servber requires authentication...
    use same setting as receiving mail server.
    try this...

Maybe you are looking for

  • A better way to organize my case of SetAttribute?

    Hi, I am developing a JSP page that handles saving. It handles multiple page status. Depending on the status, the page needs to save a certain set of fields in the database table. In my JSP submit page, i have put 3 clusters of jbo:setAttribute comma

  • Need some Big help pro-100

      Hello, everyone first time here, but i have been reading the forums for the past 2 weeks.   My wife just bought a Pro-100 printer 2 weeks ago, and we are haveing nothing but problems setting this thing up.  I'v been on youtube, and different forums

  • Replacing SuperDrive in a PowerMac G5

    Just a quick follow up question. Thanks in advance for any assistance. I recently purchased a new Samsung drive that I haven't been able to install yet because apparently I need a hex head to remove the screws at the bottom of the original. My questi

  • HT204267 My 2012 15" retina macbook pro won't turn on, sporadically

    My macbook pro will go through phases of working fine, and not turning on AT ALL. I have reset the SMC, pRAM, bought a new charger, etc. But sometimes, I'll close my computer (which has excellent battery life, mind you) and it will, seemingly, die. N

  • Backend settings for ESS

    Hi Experts, I like to know about the backend settings for ESS. If possible provide some links about "ESS backend settings". Regards, Krishna Balaji T