How to evaluate workflow rule for agent determination

Dear All:
It seems there are several types of rules that can be used for agent determination. I am wondering how could I evaluate the rule in coding.
I know for the rule described by a function module, it would be easy to evaluate it because you simply need to call the function module. However, for others, you might have to call the rule according to its definition. Is there a generic method/function to evaluate it?
Thanks & Best Regards,
Haifeng Hu

Hello,
fm RH_GET_ACTORS
regards
Rick Bakker
hanabi technology

Similar Messages

  • How to create new rules for agent assignment

    Hi all,
    I have a situation in which the esclation has to occur to the second line manager . is there any rule avail. for agent assignemnt and if not how I can creaet a new rule
    Thanks in advance..

    Hi,
    One way is you can call SWX_GET_MANAGER function module twice for getting your manager's manger.
    For creating new rule, you can copy any std rule and themn modify the copied rule using txn PFAC. e.g check out rule - 00000168, which uses above mentioned FM - SWX_GET_MANAGER .
    Hope this helps.
    Regds,
    Akshay

  • Rules for Date Determination in Sales Contracts

    Hi everyone,
    I have a need for an "enhanced" rule for date determination to be used in a contract profile for a sales contract.
    In our current system (SAP ECC 6.0) only the following rules are possible to choose:
    01 Today's date
    02 Contract start date
    04 Acceptance date
    05 Installation date
    06 Date contract signed
    07 Billing date/Invoice date
    08 CntrctStDate+contract duration
    09 Contract end date
    In supplement to these I would like to create
    ZZ CntrctStDate+to year end
    This rule should set the end date in the contract according to the following logic.
    If the Contract start date is between YYYY-01-01 and YYYY-05-31 the Contract end date should be calculated to YYYY-12-31 in the current year. Else (if Contract start date is between YYYY-06-01 and YYYY-12-31) the Contract end date should be calculated to YYYY-12-31 in the following year.
    I have searched the IMG and Development Workbench but I canu2019t find any place where it is possible to create own rules like the ones above (that is defined by SAP). Does anyone have a tip on how to proceed?
    Best Regards
    Patrik Bergströ

    Hi everyone,
    I have a need for an "enhanced" rule for date determination to be used in a contract profile for a sales contract.
    In our current system (SAP ECC 6.0) only the following rules are possible to choose:
    01 Today's date
    02 Contract start date
    04 Acceptance date
    05 Installation date
    06 Date contract signed
    07 Billing date/Invoice date
    08 CntrctStDate+contract duration
    09 Contract end date
    In supplement to these I would like to create
    ZZ CntrctStDate+to year end
    This rule should set the end date in the contract according to the following logic.
    If the Contract start date is between YYYY-01-01 and YYYY-05-31 the Contract end date should be calculated to YYYY-12-31 in the current year. Else (if Contract start date is between YYYY-06-01 and YYYY-12-31) the Contract end date should be calculated to YYYY-12-31 in the following year.
    I have searched the IMG and Development Workbench but I canu2019t find any place where it is possible to create own rules like the ones above (that is defined by SAP). Does anyone have a tip on how to proceed?
    Best Regards
    Patrik Bergströ

  • How to define Substitution rule for Businee area

    Hi experts,
    Could you please guide me to define substitution rule for Business are.
    Below is the requiremnt :
    I want to assign different business area for this cost centre.
    While posting document in FB01, we are entering cost centre in line itme. Businee area is picking from cost centre master.
    Example : Cost centre 11310 and businee area Y020.
    Businee area Y020 is picking from cost centre 11310 while posting document.
    I want to assign different business area for this cost centre.
    For that I want to define substitution rule.
    I have defined substitution rule and activated in comapany code but it is not working. Please guide me how to define Substitution rule for the same.
    I have defined prerequisit as Comapny code = 2053 and Cost centre =11310 and transaction code = FB01 then
    Substitute business area with Y045.
    It is not working .
    Please guide me where I did mistake and how to rectify the same.
    Thanks in advance for your quick response and points will also assign for helpfull answer.
    Regards,
    Amar

    Hi Paul,
    Thaks for your reply.
    Yes, you are correct. SAP is changing this back to BA from Cost centre.
    Why can't we use Substitition for the above issue.
    Then what is solution for my issue.Please suggest any alternative solution.
    Thanks in advance for your help.
    Regards,
    Amar.

  • How to set Legislation rule for Enhanced Retro

    how to set Legislation rule for Enhanced Retro
    How can i setup Enhanced Retro for Global HR International.
    Iam implementing HR/Payroll on latest 12i. I am using HR International.
    when i execute the following query , there is no records
    select * from pay_legislation_rules
    where rule_type like '%ADVANCED%RETRO%'
    and legislation_code = 'IQ'
    I have created events, event groups, enable dynamic triggers for my business group and legislation(IQ) and enter the corresponding event group and retro element in the Element screen(retro component).
    And i update one allowance in the back period , and I found one row has been inserted in pay_process_events table. But i am not able to run enhanced Retro Notification report and not able to find any Enhanced Retro concurrent request.
    Any one have any idea?
    thanks,

    There are no specific concurrent programs for Enhanced/Advanced retropay. The old ones still do, and derive under the hood the method of retropay.
    I do not recall by hard the setting to activate enhanced retro (but it is a legislation rule), but it should show already in the element type screen. If you have the retro tab in the screen, and first you have to specify the method (Adjustment, ...) before specifying the retro element type (and time span), then you know that enhanced retro is configured correctly.

  • How to make exception rules for Stylish rules which change fonts?

    How to make exception rules for Stylish rules which change fonts?
    I use [https://addons.mozilla.org/en-US/firefox/addon/stylish/ Stylish add-on] to change specific fonts to other fonts of my choice, but I have a problem. I want to change the font Arial to Tahoma in almost all pages I visit, but with the exception of websites as wikipedia.org. Because of this, I find myself having a very long list of domains to change Arial to Tahoma, only because I don't want that rule to apply to wikipedia.org and additional one or two other websites.
    The current rule I'm using is, (my actual list is a lot longer, but this is just an example):<br/>
    '''''@-moz-document domain("mozilla.org"), domain("thefreelibrary.com"), domain("sil.org"), domain("ethnologue.com") {'''''<br/>
    '''''@font-face { font-family: 'Arial'; src: local('Tahoma'); }'''''<br/>
    I can't use the following rule because I don't want it to apply to wikipedia.org:<br/>
    '''''@font-face { font-family: 'Arial'; src: local('Tahoma'); }'''''

    Try something like this:<br />
    <br />
    <pre><nowiki>@font-face { font-family: 'Arial'; src: local('Tahoma'); }
    @-moz-document domain(wikipedia.org){
    @font-face { font-family: 'Arial'; src: local('Arial'); }
    </nowiki></pre>

  • Unable to evaluate workflow rule - Value too long for field

    Need help with a workflow error for a record update before the record is saved. There are 3 calculations that would be done in a particular order - all on number fields. Each time, I am overwriting existing values. The individual numbers could have up to 6 decimal spaces. When I try to update one or more fields that contain the calculation, I get an error message saying that the system is unable to evaluate the workflow rule - value too long for field (zNum6).
    This same calculation is fine when a new record is entered and the calculation is done as a default field value.
    Any ideas?

    I actually had to use a ToChar function at the beginning of the calculation and #### to indicate the number of digits to make this work. Oracle Help Desk provided the answer - quickly.

  • Function Module Interface for Agent Determination Rule without Tables Param

    Hi,
    I'm currently trying to create an agent determination rule using a custom function module. I know that the function module must have a certain interface consisting of two table parameters to be accepted by the system.
    But since table parameters are obsolete for a few years, what's the solution for this?
    As workaround, I just copied an old function module with the right interface but that's not an ideal solution for me.
    Did anyone else come across this?
    Thanks and regards,
    Max

    Hello,
    "I know that the function module must have a certain interface consisting of two table parameters to be accepted by the system."
    So, you have to use tables. You can't use tables in a new function, but you can copy one that does.
    What sort of "solution" did you have in mind?
    regards
    Rick Bakker
    hanabi technology

  • How to write workflow rules/expressions/SQL

    Hi all.
    We are recent users of CRM onDemand, we would like to write some workflow rules but cannot seem to find any information on how to do this. The help section is limited in answers, and some of the questions here are also not specific to what we would like to do.
    Does anyone have any advice on books, web sites, etc. on where to find the knowledge we need on how to write the workflow rules and use SQL and expressions in CRM on Demand?
    Thanks in advance!!

    For your first case:
    1. You cannot create a workflow in r15 for activity but in R16 you can
    Create new to create a workflow
    Name: Auto email send
    record type: activity
    trigger: when new record saved
    rules: put your rules by clicking on the fx icon i.e this is where you are entering the rule saying the owner is different from the person who is creating the activity or the delegated field is filled (another way of looking at it)
    then save the workflow
    In the actions section
    choose the action "Create Email Notification"
    In the To: Section choose "Relative User on Record" and Choose "Activity Owner"
    Save it. Make sure both the workflow and activity are marked active.
    2. In your second scenario:
    How do you expect to create an account and automatically populate the Sales rep's name - not sure
    But you can create an opportunity and auto fill with the Account Owner's name by using this in the field validation (you do not need the workflow), you can use the FieldValueJoin function.
    Hope this helps - btb there is no book you can go thro the help and you will find some directions

  • How to Increase Time-out for Agent Manager in OLT?

    Hello All,
    When using the Oracle Load Testing Agent Manager for a load test of multiple scripts, I often get time-outs at the start of a test from OLT:
    "Error communicating with.... : timed out after 60 seconds".
    When I check the agentmanager.log file on the remote PC (Win XP SP2) I can see that the communcation started with the last line saying
    "connected to server=......yaddayadda.... queue=queue/AgentPoolNotificationQueue"
    which I assume means there was communication. And there were 2 attempts to start. After the first attempt, the entry:
    05:31:09,513 WARN [AgentProcess] Forcibly terminating process 8041484 for agent agId1530_rndd49ae6b9-a8ec-4a0d-920d-16ee6c7021f4
    The agentmanager_auth.log file show 2 lines near the start time of the test:
    2010-05-12 05:30:18,606 INFO [URL:t3://..........au:8088;Requestor Username: oats;Requestor Key:f6272e33-9428-425b-b52d-c0363f863e43;Requestor Queue:queue/AgentPoolNotificationQueue;Request ID:36;Request:startagent;] - authentication successful
    2010-05-12 05:31:09,513 INFO [URL:t3://..........au:8088;Requestor Username: oats;Requestor Key:f6272e33-9428-425b-b52d-c0363f863e43;Requestor Queue:queue/AgentPoolNotificationQueue;Request ID:42;Request:stopagent;] - authentication successful
    Why was there a 'stopagent'?
    The log from a successful agent show lines after the "Connected to server...." line ( "startAgent( pathTo.....a.. Launching agent.... Launched process 8792944 for agaent agId.....") so something appears to have not happened on the failed agents.
    When starting a test immediately (rather than scheduling it as I want to for off-peak times) and the agents time out, I can stop it & restart test. Usually then they all start successfully.
    Does anyone have any suggestions on failure reasons & possible solutions?
    If there's nothing else that I might have missed, I'd like to trying increasing the time-out to say 120 or 500 seconds.
    How can I do this?
    Is there a way to get the agents to try starting again, or add a new vUser/script instance one the test is running?
    Many thanks,
    Neil
    Edited by: Neil S on May 12, 2010 9:16 AM

    Hi Ramesh,
                          I guess you need to increase the parameter "icm/keep_alive_timeout" value, it's default value is 60. please gothrough the link
    http://help.sap.com/saphelp_webas630/helpdata/en/0b/1c7e7abbc311d5993a00508b6b8b11/content.htm
    To increase this go to RZ10 and add this parameter in Instance profile and modify the value then restart the server to make  the changes effective.
    Regards,
    Hari
    PS: Point's are welcome

  • Apple Mail 8.2: How to make a rule for a domain

    I get many unwanted emails from AOL.com and cannot figure out a way to create a rule that applies to the entire domain. <*aol.com> does not work and the 'sender' name changes with each one.
    How can I create a rule for the entire aol.com domain?

    DenaliDad wrote:
    Correct. That doesn't work and neither does *@aol.com
    It worked when I tested it on my mac (using another domain). The * is useless. "contains" includes any variation on the string.
    Also, there is no need for @, either.

  • How to set up rules for emails to go to junk on iphone 4

    i have an iphone4 that i use for work and a coworker sent out over 40,000 emails which has now overloaded my email to where i cannot send or recieve emails can i set up rules for his emails to go straight to junk? and how my email address is linked to iphone4s and ipad as well.
    ps i did set up the rules on my desktop but it didnt seem to work or flow over to the iphone or ipad or maybe i just need to delete the emails? however theres literally 30,000 of them who do i do that quickly? please

    The Mail app on the iPhone doesn't support filters. You'd need to do that on the server side (not desktop). There is just no quick way to delete 30,000 emails.  At this point, I would remove the email account from your phone, delete the offending emails from your account, then add the account back to the iPhone.
    I would also report the co-worker to your IT department (if they haven't already noticed) for sending that many emails. I'm surprised that it didn't cause issues.
    Best of luck.

  • How to create incident rule for SOA composite faulted instances

    Hi Experts,
    How can I create an incident rule for creating an incident when a SOA composite instance goes faulted. I want to notify the administrator when any of the SOA composite instance gets faulted but I am not able to undestand in my incident rule what type of event should be used,in-short I am not able to understand how can I create a rule for eveluating SOA composite faulted instances.
    I am posting this query third time here. Please suggest me a solution or is this a limitation of OEM 12c Cloud Control ?
    Please help...its eally urgent!!!

    Creating Incident rules is a very simple process as long as you know what event you wanna create your rule one. In your case specifically, its even more simple since you already know your target type and metric name.
    Steps:
    1) Create a rule set.
    2) On the same page hit "Targets" tab and select "All target types" and select "SOA Composite" from the target type list.
    3) Now hit "Rules" tab and then hot "Create" and then select first radio button - "Incoming events" since you wanna wrap SOA composite fault metric alert event into a rule.
    4) Now select "Type" and select "Metric Alert"
    5) Now since you are interested in a "specific event" - SOA composite fault metric alert event, select that radio button and hit "Add"
    6) From the "Target Type" dropdown, select "SOA Composite" target type and type "%Fault%" in the Metric name textbox and hit Search.
    7) Select you Metric name and select you severity as you wish.
    8) Add Actions - create notification, emails etc. (Refer docs to understand how best you can use these options as needed)
    9) Save your rule and save your Rule set.
    You have a rule (Make sure its enabled) that will execute your specified actions when any SOA Composite will breach your the selected metric (Fault metric in your case)

  • How to write a rule for the scnario...

    Hi ,
    Any body please tell me how to write a HFM rule for the following scnario.
    Pull<Parent Currency> value for base members from ACTUAL_EURO scenario and replaces <Parent Currency> value of for base members in ACTUAL scenario. At the end of this process, the actual scenario holds functional currency in <Entity Currency>, EURO in <Parent Currency>.
    It's Urgent.
    Thanks in Advance,
    Mohan

    sub calculate()
    if hs.scenario.member="ACTUAL" then
    Elist=hs.entity.list("","[Base]")
    if hs.value.istranscur=TRUE then
    if hs.entity.isbase("","")=TRUE then
    hs.exp "A#ALL=A#ALL.S#ACTUAL_EURO"
    end if
    end if
    end if
    end sub
    While running the Rule file getting the below error
    An error occurred.
    Error: 800456C8
    Log:
    Load started at: 12:06:02
    Number of Errors: 1
    Number of Warnings: 0
    <?xml version="1.0"?>
    <EStr><Ref>{151D9809-D203-45E2-BA63-EDDF93FF758C}</Ref><User/><DBUpdate>1</DBUpdate><ESec><Num>-2147214193</Num><Type>0</Type><DTime>6/3/2010 12:06:02 PM</DTime><Svr>ALVHYPW05</Svr><File>CHsvCalculate.cpp</File><Line>1773</Line><Ver>9.3.1.0.2042</Ver></ESec></EStr>
    Load ended at: 12:06:02
    Elapsed time: 00:00:00
    Thanks,
    RON

  • How to apply validation rule for View Object (VO) attributes?

    How to add Validation Rules to VO attributes, just like EO Business Rules?
    I got 2 problem with that:
    1. VO can join multiple tables, and the attribute's validation rules may reference to the fields from multiple entities.
    2. Since the EO Validation Rules only execute before the data actually write to entity (Commit operation). But user may need to input data from multiple pages with only 1 commit.
    I am using JDeveloper 11g with ADF BC.
    Regards,
    Samson Fu

    Just something to point out, the EO validation doesn't fire on a commit (if you mean commit as in the database/AppModule commit). You can also access VO information from the EO validation rules by using view accessors.
    Regards
    Grant

Maybe you are looking for

  • Issue  while sending mails using classes

    Hi Experts , i have one issue when i try to send mails using classes cl_document_bcs,cl_cam_address_bcs,cl_bcs etc ISSUE : i put some data in selection screen and i get some output ( say i got 5 records), i select 3 records and press some button to t

  • PDF generation with FOP

    Hello, I'm trying to create a simple XML2PDF generator using FOP but I get the following error after executing: "PDFGenerator.java": Error #: 314 : cannot access class org.apache.avalon.framework.logger.Logger; neither class nor source found for org.

  • Abap objects  ( urgent )

    hi which contents can come under abapobjects? plz explain . regds venky.

  • How to determine the schema name from stored function or procedure

    Hi all I need to find the way to determine the name of shema in which the given stored procedure residing. This SP is created with AUTHID CURRENT_USER what means that expression like SYS_CONTEXT('USERENV','CURRENT_USER') or SYS_CONTEXT('USERENV','CUR

  • I would like to cancel my subscription immediately

    I would like to cancel my subscription because I do not have Word to even export the files. Thank you