Mail step should be sent to all the users in multiple condition

hi experts,
                  I have a requirement on invoice posting.Say if invoice amount is 1000 then person A can post the invoice.
if >= 1000 person B can post the invoice.
If >=2000 person C can post the invoice.
                                                                  what i have did is, created a multiple condition and then based on the inv amount assigned 3 methods for invoice posting.My problem is if a person posts an invoice amount of 1000.A mail has to be sent to Person B and C informing that an amount of 1000 is posted with user id.Same for person B, ie mail should be sent to person A and C informing regarding invoice posting.Now inside the multiple condition i cannot assign mail step.Coz based on the condition it will go to a particular user for invoice posting but where as mail should be sent to all the users.So how can i achieve this??.

Hi Priyanka,
I am getting 1 thing why you need need multiple conditions. No need to create any multiple conditions.
1. Create a rule using transaction PFAC. (you can use the example as Rule: 0000168).
    a. Create an function module with table parameters as ACTOR_TAB (type SWHACTOR) and AC_CONTAINER (Type
        SWCONT). You can aswell copy the FM used in 168 rule and change it. check the logic mentioned below.
    b. In PFAC transaction, go to container tab and create 2 container elements.  For amount and Mail_indicator (type should be
        same as that of the amount field in your workflow) .
2. Use this Rule in your workflow to send mail.
Logic:
""Lokale Schnittstelle:
*"       TABLES
*"              ACTOR_TAB STRUCTURE  SWHACTOR
*"              AC_CONTAINER STRUCTURE  SWCONT
*"       EXCEPTIONS
*"              NOBODY_FOUND
  INCLUDE <CNTAIN>.
  DATA BEGIN OF ORG_OBJECT OCCURS 0.
          INCLUDE STRUCTURE SWHACTOR.
  DATA END OF ORG_OBJECT.
  DATA: BEGIN OF NEW_AC_CONTAINER OCCURS 3.
          INCLUDE STRUCTURE SWCONT.
  DATA: END OF NEW_AC_CONTAINER.
  DATA: V_AMOUNT TYPE <AMOUNT FIELD>.
  DATA: V_MAIL_INDICATOR TYPE <FLAG>.
  REFRESH: actor_tab.
Get the org-object under consideration. AMOUNT is the container name defined in your PFTC transaction
  SWC_GET_ELEMENT AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
Get the org-object-type and the org-object id.
  SWC_GET_ELEMENT AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
Pass the org-object, the org-object-type and the org-object-id
to a new container.
The org object get a new name: ORG_AGENT.
  SWC_SET_ELEMENT NEW_AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
  SWC_SET_ELEMENT NEW_AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
check for V_AMOUNT and V_MAIL_INDICATOR.
if the v_amount = 1000 .'
  if  v_mail_indicator = ' '.
    actor_tab-OTYPE = 'US'  .
    actor_tab-OBJID = 'SAPUSER1'.
    append actor_tab
  else.
    actor_tab-OTYPE = 'US'  . 
    actor_tab-OBJID = 'SAPUSER2'.
    append actor_tab
    actor_tab-OTYPE = 'US'  .
    actor_tab-OBJID = 'SAPUSER3'.
    append actor_tab
  endif.
endif.
Similarly write the logic for other conditions.
This way you can use same for different purposes.
If you pass the indicator that means you are sending mail to other approvers for information.
Revert back if u need more help.
Regards,
Gautham

Similar Messages

  • Workflow mails going to all the Users Maintained in the System

    Hi Everyone,
    I have a Purchase order workflow which gets triggered through ME21, when the PO need to be approved at every level based on the amount of PO , mail need to be sent to set of users.
    We have a step in workflow , where we have created a rule and we pass the current level( eg, L1, L2,L3,L4) to the FM and this FM provides the List of Users for that level and the mail need to be sent to them.
    I checked the FM that is working fine but when the workflow gets triggered it sends to every user .
    Please let me know what possibly has gone wrong.
    Regards,
    Raj

    hi,
    As suggested, did you check in the rule definition, there is an option called  "Terminate if Rule resolution without result" , enable and this should resolve the issue.
    Since the task is defined as general task, the work item can be executed by all users. And if the rule fails, the above option is not enabled, hence it sends it to all valid users in the system.
    Please try this out.
    Best Regards,
    Saujanya

  • SUS - MM Scenario: notification mail not sent to all Supplier Users

    Hi,
    we're in a SUS-MM scenario and we publish Purchasing documents (PO and/or SAR) to SUS portal.
    The notification mail for new published documents are sent only to the e-mail address of the Supplier (imported from SAP to SUS) which is in the SAP Supplier Master data. But if the Admin supplier creates other users for the supplier (F1 / F2 / F3), the notification mail for new published PO/SAR are not sent to the mail address of F1 / F2 / F3 users. Is it the standard behavior or is there some missing customizing setting missing?
    Our customer wants that notification mail are sent to all the mail addresses of the Supplier Users.
    Has someone had this kind of requirement? and, if it is not achievable via standard customizing, which could be the right solution to meet this requirement?
    Thanks in advance

    Hi,
    This is a standard SAP process which SAP has provided,
    The other way is to develop a custom program,
    1) Select the Supplier.
    2) Check the available contact persons of the Supplier.
    3) When a document is created in ECC (Hope you are in MM-SUS), select the list of contact persons for Supplier. (I assume need a RFC FM to develop to SUS)
    4) Send a e-mail to all users linked with this Supplier.
    You can find the linked Contact persons in BP transaction and Table BUT000.
    Please change the Status of the Issue once your problem solved, other will get benefitted. If possible post the soulution.
    Thank you,
    Anil

  • HT201342 will my e-mail address be automatically sent to all my contacts?

    will my e-mail address be automatically sent to all my contacts?

    No.
    If you choose to start using the optional @icloud.com email address, you will have to notify your contacts of the change.
    You'll still get all emails sent to your @me.com addresses regardless.

  • Fire Fox sent not all the data in text form. Reached only piece of information. Where can I find the cache of sent text?

    Fire Fox sent not all the data in text form. Reached only piece of information. Where can I find the cache sent the text?
    For example, I posted an article on a news site, but found that only a small part of my article was posted.

    I'm not sure whether Firefox saved that information. There is a chance that it is in the session history file, especially if you haven't closed that tab yet. To check that:
    Open your currently active Firefox settings folder (AKA your Firefox profile folder) using
    Help > Troubleshooting Information > "Show Folder" button
    Find all files starting with the name sessionstore and copy them to a safe working location (e.g., your documents folder). In order to read a .js file, it is useful to rename it to a .txt file. Or you could drag it to Wordpad or your favorite word processing software.
    The script will look somewhat like gibberish, but if you search for a word in your article that doesn't normally appear in web pages, you may be able to find your data.
    Any luck?
    For the future, you might want to consider this add-on, although I don't know how long it saves data after you submit a form: [https://addons.mozilla.org/en-US/firefox/addon/lazarus-form-recovery/].

  • IPad- on Yahoo pages the mail icon with the red number indication shows email.  When I tap, it asks me to sign in again. I do. It takes me to yahoo mail but there is nothing.  All the folders are emptied. All mail is either read, trash, or deleted.

    iPad- on all Yahoo pages the mail icon with the red number indication shows email.  When I tap, it asks me to sign in again. I do. It takes me to yahoo mail but there is nothing.  All the folders are emptied. All my mail is either read, trash, or deleted. Also, when I tap on the mail app on iPad home page, gmail is no problem but for yahoo I get error: no password for yahoo. Go to Mail Account Settings and enter password.  I'm stuck. Suggestions?  Thank you.

    Ask and you shell receive.....lol
    Go to your Gmail account in the browser.
    Hit the folder icon that brings up the folder selection.
    Scroll down to the bottom and select desktop version.
    The broswer will refresh and bring up your gmail account as though you were looking on it on the computer.
    The go to the upper right corner and select settings.
    Then go to forwarding and pop/imap
    Go look at pop download
    There you'll find 3 numbered lines
    Go to 1. Status
    And select enable pop for all mail
    Then save the settings
    Once you have done that you can go back to BlackBerry device settings and sync your mail or wait for it to sync it's self.
    Let me know how it works out.
    I just did it and it sync within minutes.

  • How to store the data, which should accessed by all the users

    I want to store some data into some variables, which has to be accessed by all the users on the webserver. i think it has to be stored in the application memory but if any body gives the code it will be clear to me .
    Thank Q
    K.Srinivas

    if it is for the same webapplication you can keep it in static attributes in a class which can be loaded at the time of server startup

  • HT1529 I have multiple users on my Mac and I was wondering how you tell the system to retain all the user names so they don't have to enter their email addresses every time ???

    I have multiple users on my Mac and I was wondering how you tell the system to retain all the user names so they don't have to enter their email addresses every time ???

    Email addresses into what?
    Each user should have their own account and password to log in.  Each is independent of the other.  So for Mail each has their own Mail account if they set one up in Mail. 
    That's the way it should be set up.  Are you using a single account and allowing multiple users to use that one single account?  If so then in Mail at least you could set up individual mail accounts.  But everything else in the system is shared.

  • How can i get all the users from weblogic server?

    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

    BTW, i use weblogic platform 8.1
    "Daniel" <[email protected]> дÈëÓʼþ
    news:[email protected]..
    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

  • Query regarding the fields details in particular form for all the users in

    Dear All,
                  I have one query regarding the fields details in particular form for all the users in company.
    Let take an exapmle if i had created Purchase Order having fields in content tab as 1.Item No. 2.Quantity 3.Unit Proce   4.Total   5. Location.
    While Login in User manager i set these fields only for Purchase order , but when i login from other user and open the similar purchase order the defaults fields are also seen including  above 4 fieds .
    Now my question is how to set the User choice fiels for the particular form that are common to all users.
    Means whenever i login in any user and opens the same document the same fields should be seen....Thanksssss.........

    You have to login with each and every user and do the Form Settings of every forms, so that all the forms look same for all the users.
    This is a manual job and you have do do it with every user login.
    Alternately, you can try out this link that explains
    [How to Copy One Screen Layout to Another User|http://www.sbonotes.com/2008/03/how-to-copy-one-screen-layout-to.html]

  • Images should grow or shrink when the user chooses a larger or smaller font size in ADE.

    Hi All,
    I use percentage values (in "width" attribute within "img" element) for image that should grow or shrink when the user
    chooses a larger or smaller font size. The adjustment affects not only the size of the text but also images but the images
    are getting distorted or blurred when user chooses larger font size in Adobe Digital Editions.
    Can anyone, please guide me; how to get non-distorted and non-blur images in epub package?
    If I directly use images, without svg format i.e. png or jpg files, then images get overlapped on body-text in two column display in ADE.
    OR
    if I directly use jpg or png with width attribute varying in percentage value then image shrinks and grows as user chooses smaller and larger font size but the problem of distorted image remains as it is
    <div class="media-group"><img src="images/pa0000016g26001.png or jpg" alt="Image" width="60 or 70%" /></div>
    Attached is the package (Book.epub) which has test cases.
    ========================================================
    Please find below sample coding used in attached epub package;
    In XHTML:
    <div class="media-group"><img src="images/pa0000016g26001.svg" alt="Image" width="100%" /></div>
    In SVG:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448)  -->
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
    <!ENTITY ns_svg "http://www.w3.org/2000/svg">
    <!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
    ]>
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
    width="386px" height="554px" viewBox="0 0 386 554" enable-background="new 0 0 386 554" xml:space="preserve">
    <image overflow="visible" width="772" height="1108" xlink:href="pa0000016g26001.png"  transform="matrix(0.50 0 0 0.50 0 0)">
    </image>
    </svg>
    ========================================================
    Cheers
    Vikas

    Hi DenisonDoc,
    There is no option right now to set properties globally primarily for Text fields. You may make sure fields doesn't contain anything.
    Select all the text filed from the form and right click any of the selected field make sure all of them are selected choose properties --> Appearance there you can choose Font Size and Font type.
    - End users cant change size and type of font. It is up to designer.
    Regards,
    Ajlan Huda.

  • Assigning View permission to all the users that have been selected in contact selector - SP 2010, InfoPath 2010

    I have a SharePoint InfoPath 2010 browser form with item level security. Only submitter
    and approvers has access to the form.  This form contains a people picker that is populated with the names of attendees
    for the meeting they attended (which
    I am able to store in Field2 below). I want to allow attendees to be able to view (grant view permission) the InfoPath form. Field 2 has the users in form of domain\user1;domain\user2; etc. Following the below step, I am getting error when I ADD or REPLACE
    permission on current item. How do I go about assigning view permission to all the users that have been selected in contact selector?
    Jitu

    Hi ,
    i understand that the text box and the people picker hold multiple user names and you want to grant user permission based on the user in the text box.
    I have a test based on your description,the results are: When there are multiple users in the text box, the workflow will throw an error'Error Occurred'.It is the same with the people picker column.
    You need to limit the peopel picker to only allow to select one user,in this way the text box will only hold one user.Then you can use the people picker or the text box to grant user permission.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • Application should start automatically as soon the user logs into windows.

    Hello All,
    I have a requirement.
    I am developed a time sheet application using web dynpro. This application is configured on the portal & is working fine. Now, I want to make some changes, may be at Portal Content side or Application side, but want this -
    As soon as the User loges into the Windows with user id & password, this timesheet application residing on the portal should start automatically and should record the time. Similarly, if the user shuts-down, the application should again record the time. Thus giving the actual time the user worked.
    Please reply. Thanks.
    Best Regards
    Chander Kararia

    Hello Satyajit,
    Below are the comments on your queries.
    1. It would be better if the application starts silently. But, in case, if we choose other way i.e the browser opens automatically and displays the application (expecting the button needs to be clicked by the user) that will also do.
    2. In case of system shut-down, I am still to come up with some materialized concept. But, here are few ideas...
        a). The application should check if the time entry is available for the current date. If so, should display the text for LogOut only. This will make user understand not to hit it.
        b). It should keep on accepting all the sessions (logging & logout) n number of times for the current date.
    I would prefer (b) as a better option.
    If you have some more conceptual idea, please suggest.
    Best Regards
    Chander Kararia

  • Bdc is completed in background i have to sent email to the user how..?

    hi
    could anybody tel me
    bdc is completed in background i have to sent email to the user how..?

    Hi Kalyan,
    You could send a mail via the BDC program (Zprogram) itself to a SAP user or to an external mail id (some configurations need to be carried out)
    prasanna

  • Need JavaScript for Sharepoint Designer 2010, to show a Pop-up to all the users between date range and the redirect the site

    Dear all,
    I am very new to Sharepoint designer 2010. Its better to say, i am just stepping in.
    I have sharepoint site which is accessible for all the users to update few information. But i want this site not to be accessible during a date range, say from 15th to 20th of every month.
    I am planning to have something like this: If any user tries to access this sharepoint site between 15th to 20th date range of everymonth, then the browser must show an pop-up alert saying "This site is not accessible during this date range" and Redirect
    this sharepoint site to someother site (Say http:// somesitename.xx.com) immidiately.
    I know very little about how to add Javascript in sharepoint webpart.
    Please provide the Javascript or any best alternate solution to my concern.
    Thanks in advance.

    Hi,
    From your description, my understanding is that you want to redirect sharepoint site to another site between 15th and 20th every month.
    I agree with what Sudip says. If you still want to use JS code,You could try these steps
    below:
    Open your site with SharePoint Designer.
    Click Master Pages in left navigation.
    Find file v4.master, and backup it(it is very important).
    Right click your v4.master,
    choose "Edit File in Adavance Mode".
    Add the code below into the <head/> tag.
    <script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script><script
    type="text/javascript">
    $(document).ready(function(){
    var today = new Date();  
    var day = today.getDate(); // get current day
    var id = _spPageContextInfo.userid; // get the id of current logon in user
    var boolFlg = false;
    $.ajax({
       url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/SiteGroups/GetByName(\'"+"sharepoint Owners"+"\')/Users", //get users in a specified group can access the sharepoint site from 15th to 20th every
    month
       type: "GET",
       headers: {"accept": "application/json;odata=verbose"},
       success: function (data) {
          if (data.d.results) { 
             var src = data.d.results;
             for(var i = 0; i < src.length; i++){
                if(src[i].userid==id){ //check the logon in user in  the specified group or not
                   boolFlg = false;
                   break;
             if(!boolFlg){
                if(day <= 20 && day >=15){
                    alert("This site is not accessible during this date range"); // alert the message
                    location.href = "http:// somesitename.xx.com"; // redirect to another site
       error: function (xhr) {
          alert(xhr.status + ': ' + xhr.statusText);
    })</script>
    Best Regards
    Vincent Han
    TechNet Community Support

Maybe you are looking for