Assign receiver to the mail event dynamically

Hello gurus,
In ESS/MSS i am using a standard workflow which updates the personal information of employees. In SWEL transaction i figured out the event and the standard workflow which gets triggered. I made the copy of the workflow. Now in the copy workflow, i wanted to add a step of mail before updating. This mail is intended for the HR person.If the HR person approves the changes to be made, then only the database will get updated.
For this, i want the mail id of the HR person to be selected dynamically. How can i do so? Can i write the content of the mail dynamically? If so how?
Regards,
Yayati Ekbote

Hi,
i want the mail id of the HR person to be selected dynamically.
How can i do so
I hope you would be having the PERNR of the HR Person, so by readin infotype 0105 ans subtype 0010 you can get the email ID of the HR Person dynamically.
For this you need to create a bor method and call the function module HR_READ_INFOTYPE and pass the infotype as 0105 and subtype as 0010, if the email ID is maintained then it you have to read it and pass it back to the task container and then to workflow container ...
so in the mail step choose the recipient type as EXPRESSION and choose the element in which you populated the email address.
Can i write the content of the mail dynamically?
yes of course you need to populate the entire mail body into a multiline container which should be of type solix.
and choose this multiline container element in the mail body .
Regards
Pavan

Similar Messages

  • When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does nog display my name or e mail address. This only since upgrading my iPhone5 to iOS7

    When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does not display my name or e mail address. This only since upgrading my iPhone5 to iOS7. I've checked all settings etc. anyone have a solution please?

    Rectory wrote:
    Please can someone tell me how  I can change this so when I send a mail from my phone and from the IPad that it reads from me.
    You need a separate email address but you've already ruled out that solution.

  • Firing the custom event dynamically

    Hi All,
      is it possible to fire the cutomevent IWDCustomEvent dynamically.Basically i have 2 buttons with their actions, on clicking  buttonA it does some logicA and when somecondition is met it should also do buttonB Action without userinteraction on buttonB
    public void onActionButtonA(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionAddPlan(ServerEvent)
        wdComponentAPI.getMessageManager().reportSuccess("button 1 clicked:");
      if(conitionismet)
         it should dynamically call the onActionButtonB, for this how can i pass IWDCustomEvent  instance
        //@@end
    public void onActionButtonB(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionAddPlan(ServerEvent)
        wdComponentAPI.getMessageManager().reportSuccess("buttonaction);
        //@@end
    i cannot put the same LogicB inside the condition of if(conitionismet) of onActionButtonA.
    So is it possible for fire an event onaction of a button dynamically without user interaction.
    Thanks,
    pkv

    Hi,
    You can just execute your function inside the "IF" clause:
    public void onActionButtonA(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionAddPlan(ServerEvent)
    wdComponentAPI.getMessageManager().reportSuccess("button 1 clicked:");
    if(conitionismet) {
    onActionButtonB(wdEvent);
    //@@end
    public void onActionButtonB(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionAddPlan(ServerEvent)
    wdComponentAPI.getMessageManager().reportSuccess("buttonaction);
    //@@end

  • How do I register for the timeout Event dynamically

    hello,
    I found this example:
    http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/dynamic_modifying_reg/
    I want to do the same thing, except that it's not the mouse move event that I want to toggle (register/unregister) but the timeout event.
    The timeout is in the drop down list of events I can register for, but it is greyed out.
    How can I do this?
    thanks
    Solved!
    Go to Solution.

    Use a shift register to hold what your timeout should be.  Use -1 for never time out.  Wire the value in the shift register to the timeout input on the Event Structure.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to receive all the GUI event

    Hi, Expert
    Is it possible to catch all the UI event? For example, input something in which input field; click any tab, click any button.
    Background: customer would like to develop to tool to guided end user to do several sequence sctions:
       for example, 1) input a value into which  input field
                            2) click one button
    so after end user finished the 1st step, system should tell customer to click the button in the next step.
    Any comment is welcome.
    Thank you in advance
    Barton

    Hi,
    As a developer we have to do it manually., 
    let say, the user enter in the input field and press Enter,
    In PAI or AT Selection screen event,
    Check if the value is initial or not. ,
    if lv_value is initial.
    message 'Please Enter Value' type 'E'.
    else.
    message 'Please press submit button now' type 'S'.
    endif.
    hope this help u,
    even if you capture the events also you have to write the code as above.
    to provide the user manual for user you can put the same in SAP iTutor.
    Thanks & Regards,
    Kiran

  • How do you send a video via Gmail? Since upgrading to ios7 on my Ipad, ican't send .can only receive on the Mail.Can do both on Gmail but when I go on attatch it only accesses my pics not my videos

    Since upgrade to ios7, I have not been able to send messages via Mail. I can only receive.I can do both on Gmail but when I try to attatch, it only accesses photos not videos,any idea how I can attatch a video?

    Here's a troubleshooting article from Apple:  iOS: Troubleshooting Mail
    It doesn't seem to cover your specific issue, but have you tried using a different network (either a different wi-fi network, or switching from wi-fi to cellular or vice-versa if you have a wi-fi+cellular iPad)?
    For GMail, iCloud and Yahoo, copies of messages are stored on their respective servers, so you could try deleting the account on your iPad, then re-adding each account one at a time to see if that resolves the issue.

  • Java mail with Dynamic attachment?

    Hi :-)
    How to send the mails with dynamically created attachements..
    The attachments may be a Excel file created dynamically according to the user inputs on the webpage. Is there any way to send those attachments to the receipients with out storing those attachements anywhere(server)?
    Give me some tips to take my next step...
    Thanx in advance
    Krishnakumar S
    (+919847706611)

    You should take a look at Sun's JavaMail site. It has quite a bit of info on JavaMail, located here: http://java.sun.com/products/javamail/.
    See the FAQ here: http://java.sun.com/products/javamail/FAQ.html, it has questions dealing with attachments.
    There is a tutorial here that covers sending and receiving attachments: http://java.sun.com/developer/onlineTraining/JavaMail/index.html. Specific section on attachments is located here: http://java.sun.com/developer/onlineTraining/JavaMail/contents.html#JavaMailAttachments

  • Two bugs when trying to mail events

    Bug #1: When I right click on an event and choose "Mail Event", the mailed event attachment (.ics file) has no time information in it, which means that it is completely useless to anyone. This happens for any events I create in iCal.
    If I open the .ics file in a text editor, this is all it contains:
    BEGIN:VCALENDAR
    *X-WR-CALNAME:ASMGCS My Meeting*
    *PRODID:-//Apple Inc.//iCal 3.0//EN*
    CALSCALE:GREGORIAN
    VERSION:2.0
    METHOD:PUBLISH
    END:VCALENDAR
    Bug #2: Also when mailing an event, the email body message reads: "(null) informs you of the event: My Meeting, scheduled for 21 April 2008 at 08:00. To add it to your calendar, click the link below".
    Why does it start with "(null)" instead of my name (or at least something appropriate) and why is there no line break before the attachment. The attachment icon immediately follows the message, without even a space, which looks really ugly.
    Are these actually bugs, or have I got some settings wrong somewhere (in which case, I'll get ready to eat some humble pie)?

    Bernard Harte wrote:
    #1 May be a bug as mine works as expected.
    #2 The null may be because you don't have your card selected in Address Book: select it and choose Make this My Card from the Card menu. The attachment icon is where you describe it to be. If you don't like it, the only option would be to send feedback to Apple. Actually, this is not quite true: there is likely a way of altering the AppleScript that iCal is using to control Mail, but this would get overwritten each time iCal was updated and is probably not worth messing around with.
    See if my suggestion to #2 works. If it does, but the .ics still doesn't contain full data there are some further steps that I can suggest.
    Wow. As soon as I read your reply, I knew it was going to fix bug (or rather, issue) #2, but in fact it solved the whole thing! I just switched to a new iMac recently and had never spotted that I hadn't set a "My Card" in Addressbook.
    Thanks!

  • ICal auto e-mail event

    Is there a way that iCal can automatically e-mail any new event created in a particular calendar(s) to a person immediately after it is created? (Like can be done through the Mail Event contextual menu, only automatically.) I'm thinking perhaps this would be better put in a thread about AppleScript or maybe Automator, but I thought I would start here.

    Never answered. Would be nice though.

  • How to send mails to "CC" and "BCC" using receiver mail adapter dynamically

    Hi,
    Due to business requirement PI need to send mails dynamically to u201CCCu201D and u201CBCCu201D using receiver mail adapter.
    We have an option to send mails to u201CTou201D dynamically, but are there any option to send mails u201CCCu201D and u201CBCCu201D dynamically.
    Please some help to resolve the issue. Thanks
    Regards,
    Sreeramulu Konjeti.

    Hi Sreeramulu,
    As mentioned by Lucas, you can use the UDF. Inn addition to that, you need to define the Variable Headers under Variable transport binding after enabling the Adapter Specific Message Attributes.
    For the Enabling ASMA, follow the below steps and check for the variable attributes.
    Select the Advanced  tab page.
       To save adapter-specific attributes in the message header of the XI message, select Use Adapter-Specific Message Attributes and Variable Transport Binding.
    The following attributes in the message header are then available for processing:
    ○       User: (technical name: TServerLocation)
    ○       Authentication key: (technical name: TAuthKey)
    The following mail header fields are available for processing:
    ○       From: (technical name: THeaderFROM)
    ○       To: (technical name: THeaderTO)
    ○       Cc: (technical name: THeaderCC)
    ○       Bcc: (technical name: THeaderBCC)
    ○       Subject: (technical name: THeaderSUBJECT)
    ○       Reference to the mail that is to be replied to: (technical name: THeaderIN-REPLY-TO)
    ○       Reply to: (technical name: THeaderREPLY-TO)
    ○       Mail client program: (technical name: THeaderX-MAILER)
    ○       Send confirmation of receipt: (technical name: THeaderDISPOSITION-NOTIFICATION-TO)
    ○       Priority: (technical name: THeaderPRIORITY)
    ○       Importance of message: (technical name: THeaderIMPORTANCE)
       To transfer further header fields, set the relevant indicator for Variable Header. The technical names for the fields are XHeaderName1, XHeaderName2, and XHeaderName3.
    The parameters are included in the mail header under the names specified here.
    The attribute namespace for the adapter is http://sap.com/xi/XI/System/Mail.
    Thanks,

  • How to set dynamic name of the mail attachment according to source file ?

    Hi,gurus:
    Our scenario is like below:
    Sending files from an FTP server to another FTP server without using the integraiton repositary,and the file name is not changed .Now, we want to also send the file to some with by mail adapter.The scenario  now works by using two business services in receiver determination.But the name of the attachment is "untitled.xml".We know how to set the file name staticly,but how to set the name dynamicly according to the source file name ?
    I have checked miachel's blog "XI: Dynamic name in the mail attachment - pseudo "variable substitution"(/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution),but how can I get the source file name?
    And another question:Must we restart the adapter or j2ee engine to make the user defined module work?

    Hi,
    >>>but how can I get the source file name?
    form dynamicconfiguration (ASMA)
    >>>And another question:Must we restart the adapter or j2ee engine to make the user defined module work?
    no need for a restart
    Regards,
    Michal Krawczyk

  • Can't edit events received by e-mail

    I just realized that I can no longer edit an event which I received by e-mail. I get the message "Invitation error, only the organizer can change this event". Until a few days ago changing events received by e-mail was always possible. My wife has the same problem with iCal on her machine. Does anyone experience the same problem or have a suggestion how to solve that?

    I have THE EXACT SAME PROBLEM. Just started a few days ago....it's ******* me off....none of my other friends are having this problem. I have an iPhone 4 also...here's a picture for anyone who wants to contribute a resolution...
    http://img824.imageshack.us/img824/8850/photot.png

  • Setting from address on linux to receive the mail after shell script ran

    Hi,
    I scheduled some shell scripts on Linux as cronjobs. Once the shell scripts are executed at the scheduled timings i am receiving the mails as shown in the below. PRDORA, TSTORA, DEVORA are my environments.
    From     Subject     Size     Received     
    oracle     dbora01cocen.corp.psi:PRDORA RMAN Archive Completed using Control file     11 KB     Wed 8/13     
    [email protected]     TSTORA:[14]ORA-12012: error on auto execute of job 854     10 KB     Wed 8/13     
    [email protected]     DEVORA:[7]ORA-12012: error on auto execute of job 1524     68 KB     Wed 8/13
    In the FROM address:
    I should receive the mail format: oracle@hostname in the FROM address like shown below.
    From     Subject     Size     Received     
    [email protected] PRDORA01 RMAN Archive Completed using Control file     11 KB     Wed 8/13     
    [email protected]     TSTORA01:[14]ORA-12012: error on auto execute of job 854     10 KB     Wed 8/13     
    [email protected]      DEVORA01:[7]ORA-12012: error on auto execute of job 1524     68 KB     Wed 8/13.
    Rightnow this dbora01cocen.corp.psi is mixing up with the subject in PRDORA instead it should in the FROM address. Can anyone please guide where i am suppose to make modifications in order to get this change.
    Thanks

    Sorry for the Late Reply.
    What does:
    $ /bin/hostname
    return for each of these environments?
    FOR DEV:
    [email protected][DEVORA01]% /bin/hostname
    devora01coden.corp.psi
    FOR TEST:
    [email protected][TSTORA01]$ /bin/hostname
    testora01coden.corp.psi
    FOR PRD:
    [email protected][PRDORA01]$ /bin/hostname
    dbora01cocen.corp.psi
    Are you using a local DNS or /etc/hosts entries to assign host names to IP addresses?I am not sure about this but i looked at /etc/hosts in each server and found the entry of the individual server on all the 3 servers.
    Thanks

  • How to raise mail notification when ever the new event is added to calendar list in sharepoint 2010?

    Hi experts, I need guidance or the way how we can raise mail,
    When ever the new item is added / updated / deleted / cancelled to a calendar list in SharePoint 2010.
    Shall we achieve it through using SharePoint designer 2010.
    If its help to fix the requirement.
    Thanks and Regards,
    Dhayanand Kalimidi

    >I need to send the mail before 1 week from the date
    This is different requirement. Initially you said you want send email when item is added / updated / deleted in list. For this you can use default alert to send instant email as  suggested before. 
    Now if you want to send reminder email then you can use designer WF and calculate the due date by using variable. Refer this link for your ref:
    http://mysharepointchronicles.wordpress.com/2012/11/05/sharepoint-list-with-workflow-email-reminder-set-to-send-30-days-from-created-date/
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3211ee00-92de-47f1-b611-4c9609f92ab7/how-do-i-set-sharepoint-2010-to-send-a-reminder-email-a-month-after-a-date-already-listed?forum=sharepointdevelopmentlegacy
    Remember event receiver can not send reminder email or scheduled email so for this either use designer WF or create timer job.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Send mail through dynamic action, but the subject line and content is blank

    Hi all,
    I'm facing one problem on sending mail throught dynamic action.
    Whenever a new employee is hired, the system will trigger a mail to the administrator.
    The mail can successfully reach the email address. But the title and the content of the mail are missing. I can receive an email with a PDF attchment. But when I open this PDF file, it's blank inside.
    In t-code "SO10", I created a new mail text with name of Z_MAIL, for my mail, insteading of using the SAP standard one.
    When I using the SAP standard mail text, it works and I can see the content. But even I copy and paste the exact the content of the standard one to my own new mail text, it will not work.
    And I have to use my own customized mail text. So, is there any one knows about this issue? Any more setting I should do? Or is there some tricks?

    Hi,
       I feel that something will be misiing in the coding.Even i faced the same problem earlier.for me it was text file as an attachment ,file was receiving but no data...the problem was i forget to add one option in objpack-head.
       R u using the FM - SO_NEW_DOCUMENT_ATT_SEND_API1??
    If so pls C the below codes for text file as an attachment.
    DATA: objpack LIKE sopcklsti1 OCCURS  2 WITH HEADER LINE.
      DATA: objhead LIKE solisti1   OCCURS  1 WITH HEADER LINE.
      DATA: objbin  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
      DATA: objtxt  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
      DATA: reclist LIKE somlreci1  OCCURS  5 WITH HEADER LINE.
      DATA: doc_chng LIKE sodocchgi1.
      DATA: tab_lines LIKE sy-tabix.
    Creating the document to be sent
      doc_chng-obj_name = 'MESSAGE'.
      doc_chng-obj_descr = 'ZHRI_GARN_EPC_COMM'.
      objtxt = 'Program ZHRI_GARN_EPC_COMM has been executed successfully'.
      APPEND objtxt.
      objtxt = 'Error records passed to BDC session XPHRGARN01'.
      APPEND objtxt.
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ TABLE objtxt INDEX tab_lines.
      doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    Creating the entry for the compressed document
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num   = 0.
      objpack-body_start = 1.
      objpack-body_num   = tab_lines.
      objpack-doc_type   = 'RAW'.
      APPEND objpack.
    Entering names in the distribution list
      LOOP AT se_tech.
        reclist-receiver = se_tech-low.
        reclist-rec_type = 'U'.
        APPEND reclist.
      ENDLOOP.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc_chng
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = objpack
          object_header              = objhead
          contents_bin               = objbin
          contents_txt               = objtxt
          receivers                  = reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
    Hope this will help u.
    Regards,
    Manoj.

Maybe you are looking for

  • Snow Leopard on an external hard drive; sign-in issues, Snow Leopard on an external hard drive; sign-in issues

    I have an older (circa 2006) MacBook running Tiger. I've been able to install Snow Leopard on an external hard drive and when I restart, it seems to boot from the external drive. However, it asks for a user name and password and the combination I use

  • Weird iTunes connection problem.

    Hi. Lately i haven't been able to connect to the Apple iTunes store. It just suddenly occured like a month ago, and it's kinda ******** with the release of iOS and stuff. Let me post a log, which will explain why this is a little weird. Microsoft Win

  • Problem with the expose

    Sometimes when I use it (expose) I am not able to see the all the windows in the usual way, I can just see the icons. That happens very rarely, but has been happening for quite a long time (more than 4 months). I initially thought that it was because

  • Use addChild to create a text field but cannot get its height

    Hi, I am using addChild to dynamically creat text components Text() . But I when I access its height property, it is always 0 even though the text is wrapped around. Has any one seen similar things and have a solution? Thanks!

  • Will my iphone work in france

    I will be in Paris and the south of France. Will my iPhone 4s work - do I need an adaptor??