E-mails in Workflows

Hi All,
Can anybody point me to some example or some sample code, showing how to use email feature in Wokflows.
Thanks!!
Shalu

Hi Mark,
can you pls tell me in more detail? Where do we specify this preference n what is wf_role.email-adress ? I was going thru the 'requisition' demo, it sends notifications not e-mails, let me know if I am missing something.
I don't have email configured in my WF schema. What do I need to do to configure it ? I believe it has something to do with wfmail.csh and wfmail.cfg files. Pls can u point me to the steps for these ?
Thanks,
Shalu

Similar Messages

  • How to send a mail in workflow keeping 1 receiver in CC and the other in TO

    Hi,
    Can anybody tell me how to send a mail in workflow keeping 1 receiver in CC and the other in TO.
    I need to send a mail to an employee keeping his/her manager in CC through workflow.
    Regards,
    Lavanya

    Hi Lavanya,
    I dont think its possible using Send mail step type.
    But it can be done by using the FM SO_NEW_DOCUMENT_SEND_API1. Just create a method and Call this FM accordingly.
    Thanks,
    Viji.

  • How to change the text mail of Workflow Notification?

    Hi all,
    I would like to change the text mail of workflow notification. I took a look at the Help Sap and saw how to customize the text mail notification. Unfortunately, I could not found the text for workflow Notification at “notificationTexts_<language>.properties”.
    Is possible to change the text mail of Workflow Notification?
    Thanks in advanced,
    Alcides Flach

    Hi Alcides,
    Please refer to the following link.
    https://www.sdn.sap.com/irj/sdn/thread?threadID=40700
    Rajiv

  • 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

  • Reminder mail for workflow approval

    Hi All,
    We have a scheduled task which sends Reminder mails for workflow approval which has been pending for more than 5 days.
    Recently I created new workflow definitions and reminder task stopped sending mails.
    I checked task and it has IapiTaskIfc Class com.frictionless.custom.wkfreminder.sendWorkflowReminder.
    How to check this class and do i need to make changes somewhere else to send reminder mails?
    Regards,
    Prabhat

    Hi Prabhat,
    I am working on creating a scheduled task for sending reminder emails. I need help on IapiTaskIfc Class com.frictionless.custom.wkfreminder.sendWorkflowReminder. Can you please share sendWorkflowReminder class to me, so that I can get idea about the code written for sending reminder emails? It would be great help.
    To check the class, you need to get the jar from server and decompile it. You can get some idea by looking at the java class file then.
    Thanks,
    Saloni

  • 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

  • Cancelling notification from Mailer notification workflow

    Hi,
    can a notification be cancelled from Mailer notification workflow based on item_key or notification_id?
    thanks,
    Durga

    can a notification be cancelled from Mailer notification workflow based on item_key or notification_id?yes,
    Workflow Adminstrator --> Status Monitor --> Provide 'Internal Name'(check wf_notification table to get it against nid) and Item Key
    Click workflow Detail tab and if workflow is active then you will see cancel workflow tab at bottom left.
    Thanks,
    JD

  • 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

  • HTML E-mail through workflow.

    Hi all,
    Can any one please tell me how we can send an HTML e-mail through workflow.
    The E-mail should be having a link, so that when the user clicks on that link it must take the user to the specified website, say http://www.google.com.
    My Tools version is 8.48 and the application is 8.8.
    I could send the e-mail with a link through sendmail function in peoplecode. But i want it through Workflow.
    Please help me.
    Thank you,
    Bye.

    This is a repeated question in the forum, refer to "http://forums.oracle.com/forums/thread.jspa?threadID=620087&tstart=0" for solution.
    Jayaprakash Tedla

  • 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

  • How to find the list of Forwarded mails in Workflow

    Hi Guys ,
    How do I find in SAP which inquiries I have forwarded to a particular group? I have forwarded a few cases over the last months but now I want to do a follow-up, but since I haven’t written down which inquiries it involves I want to find them somehow. How do I do that?
    please suggest me some solution , points will be awarded surely for any guess from your side.
    BR
    Abhijeet

    HI
    Yes i have checked the Outbox in SWBP, but i want to find is there any method or transaction by which i can find which and how many mails i have forwarded to a particular workflow group.
    BR
    Abhijeet Chitale

  • How to use variables in the mail text while sending mails through workflows

    Dear All,
                   I had prepared a workflow in which i am sending mail to a administrator if personnel data of any employee is changed.But i want to send the personnel no of employee whose data have been changed.How can i send this personnel no in the mail.
                  Points will be rewarded for useful answer.

    Hi Anand,
    You have the "EmployeeNumber" field in the event container. Pass this into the workflow container by defining a Workflow Container element and subsequently use this container as a variable in your email using insert fields option and you will have the PersonNumber visible in your mail sent to the administrator.
    Regards,
    Karthik

  • Mail from Workflow to external system with mail text in body of mail

    Hi All,
    I have extended workflow WS12300111 to send mail to external system. But in external system mail text is coming in attachment & without formating (Multiple lines are coming in single Row).
    I want to know how to send text in body of mail (instead of attachment)  to external system, when we are sending mail using Send Mail option in Workflow.
    Thanks & Regards,
    Rajesh

    Thanks Rick, I am aware of this function module - but trying to use workflow tool - "Mail Send" option. I need to send text & link to my portal application.... Now I can send text in body of mail... but how can we provide link in mail to open portal application to make user to perform required action (Leave approve or Reject etc)..
    I am new to Workflow soo learning thru my errors and from queries on SDN
    -Rajesh

  • How to send an external mail from workflow.

    Hi,
    I have created a send mail in my workflow but it isnot sending the external mail
    Any guesses?

    Check the status in SOST . If not ask ur BASIS guys to work on SCOT.
    Richard A

  • External mail for workflow of release strategy for PO

    Dear All,
    I have configured the workflow of two step release strategy for purchase order and the internal mail is getting generated in the sap business workplace with the error message SWF_RUN 594 this i have taken care with SWE2 with changing the settings of "Behaviour upon error feedback" from "default" to "do not change linkage"
    Now the requiremnt is that the message has to be send to first level releaser through external mail and once first level release the PO external mail should be send to second level releaser.
    Please help me with the configuration step that is to be done
    Thanks in advance
    Naveen Singh

    Schedule the report Rswuwfml2. this will send workitem from sap inbox to respective user external mail id maintain in user master.

Maybe you are looking for