SRM Contract alert management Workflow - WS10400022 Agents determination

Hi Experts,
  I am trying to implement Alert management for SRM Contracts that are expired/ or the threshold is exceeded.
All the necessary configs are done and the event linkage is also done for the workflow Template WS10400022.
The task used in this workflow TS10407926, for agent determination, used the expression &Agents_0001.Agents&
This container value is neither passed from the event linkage binding.
Can anyone explain how this agent determination is done for this workflow?
Your replies are very much appreciated
Cheers,
Prem.

Hello,
OK, i did not see the event linkage between event and workflow...
Currently, &Agents_0001.Agents& is not populated with data coming from the event:
Event is managed by BBP_EV_API_EVENTS_SAVE function modul, and inside this FM by CL_BBP_EVENTS class.
Maybe you should open an OSS message and check all OSS notes dealing with BBP_CONTRACT_CHECK report.
Regards.
Laurent.

Similar Messages

  • User exit for workflow WS20000075  agent determination for PO

    Hi,
    I have requirement to determine agents for workflow WS20000075 for PO from Ztable entry.  Is that customer exit EXIT_SAPLEBNF_005 will work ?

    Hi ,
    Try assigning a new Agent Rule in the Task TS20000166.
    You will have to create a custom rule using transaction PFAC. Choose option "F - Agent dertermination function to be executed" and assign a new Z function module which will determine your agent.
    You can refer to function module ME_REL_GET_RESPONSIBLE while creating your own function module.
    Cheers!!!
    Gautam

  • PO workflow for agent determination

    There are three level of approvers who have to release the PO. configured in SPRO.
    The number of approvers is identified by the net value of the PO. The approvers selection
    is based on the reporting structure in the OM.
    Now how can i determine the agents from OM.

    Hi Sankar,
    You can write your own custom methods & attributes.
    1. I would advice you create a custom virtual attribute which determines the no. of approvals needed, based on the PO value.
    2. Then to determine the agent, you can use the function module adviced by Aditya Varier and populate the outcome of this FM into a method container.
    You can loop at the workflow and call this custom method as the first step within the loop.
    Hope it helps.
    Regards,
    Raj

  • Workflow Error: Agent determination

    I am on release 6.4
    I am building a workflow where the buyer is the agent.
    When I test the rule it picks up the agent but when I execute the workflow i get the following error:
    'Result of agent resolution does not agree with agents of task'.
    I set my task as a general task.
    Is there anything that I need to do to resolve this?
    Points will be awarded.
    Thanks.

    First make the task as ´´General Forwarding not allowed`` . Assign some agents. After assigning agent test your Wflow it will work. After this make your task as General again and now it will serve your purpose. I always follow this funda and it always pays off with dividend:)))
    Assigning agents is bread and butter stuff. You can find a button at the side of task attributes that assigns agents make use of it.
    How you can assign points:)))
    Message was edited by:
            Arghadip Kar

  • Contract Alert in SRM 7.0

    Dear ,Experts :
       I work in SRM 7.0 SP 09 .contract management .
      I do the configuration about the contract alert management .
    1, define the transaction type ,and assign the Event Schema .
    2,Define the "Define Events","Define Event Schema',"Define Recipient of Notifications" under SPRO -Event and Event Schema for Alert Management
    3,And  do the configuration  in SRPO -SAP Web Application Server-Application Server-Generic Business Tools-Alert Management:
       A ,Define Connection to Central Alert Server
       B, Central Alert Server Configuration
       C, Define Alert Categories
    4,Active the workflow WS10400022
      I run the progran :BBP_CONTRACT_CHECK ,and get the expired contract number ,and the   Message type-" NOTIFIC"
    5 ,Active the smartforms :BBP_OUT_EXCEPTION
    But I can't find any mails  in the SOST  , OR there is something wrong with my configuration ?
    BestRegards !
    Alex !

    Hi Alex,
    Have you debugged the BBP_CONTRACT_CHECK program?.
    Also, can you confirm what type of alert category you have used (alert, message or notification) as I have seen it work ok with alert, but not tried the others so they may not work.
    Best regards,
    Nick

  • SRM 7.0 WF: SC_RR_PURCHASING_GROUP Agent Determination

    Does anyone know which set of criteria is used by the SC_RR_PURCHASING_MANAGER Resp. Resolver Name function to determine the agents list?  I am getting mixed results, including non-manager users in different org units appearing in the results list.  The descrption of the RR_PURCHASING_MANAGER function looks more like what I need however the notes say its not for Shopping carts.
    Is it manger of the org unit that is Responsible for both the Org Unit of the originator, and the Product category? (Responsibilty Tab).  Or it is the PRCAT attribute? Or some other combination?  I am not seeing a pattern.  
    What I am trying to accomplish is to have the final approver on the shopping cart be the manager of the purchasing group, I am not concerned with the product category selected as the purchasing agents process by department not product category.
    Thanks in advance.
    J

    I have about 8 levels.  I haven't fully cofigured all of them yet but the core ones are in place.  The RR_MANAGER and RR_MANAGER_OF_MANAGER agent determination based on org assignments work correctly.
    First is Department manager must approve, agent determination via RR_MANAGER (works)
    Next is Purchasing Manager if > 5K, agent determination via RR_ROLE (role assignment, works)
    Next is Director if > 25K, agent determination via RR_MANAGER_OF_MANAGER (works)
    Next is Budget Manager if its an Asset, agent determination via RR_ROLE (role assignment, not working yet)
    Next is Finance Director if > 100K, agent determination via RR_ROLE (role assignment, works)
    Next is IT Asset manager if PRCAT is for computer equipment, agent determination via RR_ROLE (role assignment, not configured yet)
    Next is Fleet manager if PRCAT is for Vehicle, agent determination via RR_ROLE (role assignment, not configured yet)
    Final Approver is the Purchasing Agent,  This should be the agent (Head of Org Unit) of the Purchasing Group that the end user department is assigned under, however using SC_RR_PURCHASING_GROUP, I get the expected purchasing agent, the director of the end user department, the manager of the end user department and an end user in a different org unit as posisble agents.
    When I set the Resp. Resolver Name for the final step to RR_PURCHASING_GROUP, I get the message 'An Exception has Occured' and the cart is lost.  This is the resovler role that is stated as not working for shopping carts.
    Thanks
    Jon

  • Regarding Approver agent determination

    Hi,
            I am new to SRM and i have a requirement to change the Workflow which is trigerred whenever a shopping cart is created and mail is sent to the approver for approval of the same.
           Here on creation of shopping cart i need to do some changes while determining the approver and i dont know exactly in where is this approver determined. Business object BUS2121 has been customised.
           Can any one please let me know the place exactly where this Approver Agent is determined, i need the method and the business object.
    Regards,
    Ravi G

    Hi,
    Whcih Workflow are you using for the Shopping cart approval?Based on the workflow used,teh agent determination varies e.g. for the Std 1step  ,2 step approval workflow,agent assignement is done at the task level but for N step approval workflow the agent determination is done thorugh the BADI "BBP_WFL_APPROV_BADI".
    See teh foll link for more details:
    SRM Business Workflow
    http://help.sap.com/saphelp_srm50/helpdata/en/8b/4fa9585db211d2b404006094b92d37/frameset.htm
    Setting Up SAP Business Workflow
    http://help.sap.com/saphelp_srm50/helpdata/en/ee/277e3c281f1817e10000000a114084/frameset.htm
    Related links ->
    Re: SRM workflow doubts....
    Triggering SRM workflow from a  web-based form (HTML)
    Workflow debugging
    Re: Triggering an alert
    Depending on the Approval Workflow, you are using, there are Binding Events under the Triggering Events tab of the Workflow inside the Workflow Builder (Transactions - SWDM / PFTC ).
    There the event can be defined, depending on the Business Object Type methods avaiable in SWO1 Transaction for BUS2121 in our case. (SAVED => Reqt cov. request Shop. cart created )
    Refer to this link for more details.
    http://help.sap.com/saphelp_srm50/helpdata/en/2c/e68d406b305537e10000000a1550b0/frameset.htm
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • Responsibility rules : Agent determination only works after restarting the WF

    Hi Experts,
    We are facing a very strange issue related to agent determination in one of our custom workflow:
    For agent determination we are using a responsibility rule with two parameters "Company code" and "Plant".
    The responsibility rule works well and returns the agents for all the company code.
    Recently I have added few company codes to this responsibility rule in the same way we used to maintain and simulate it . It returns the correct agent for newly added company codes but at run time the agent determination is getting failed and the WF goes into an error because of it. However when i restart the WF via SWPR it works well and the agent determination works well either.
    This is only happening for newly added company codes the old ones agent determination work well at the run-time.
    Pls suggest what could cause this problem. If there is a problem in responsibility rule then why it works after restarting from SWPR.
    Thanks in advance. The helpful/correct answers will be rewarded.
    Regards,
    Him

    Hi Rick,
    Thanks for replying.
    1. Can you replicate this problem in the test system?
    Yes I could replicate this issue in test system and it works fine there.
    2. Is this a true responsibility rule or does e.g. a function module get called?
    We have a responsibility where several responsibilities have been added with two parameters "company codes" and "plant". Every responsibility has a POSITION assigned into it and this position contains the related users.
    This responsibility rule is getting called in one other rule with FM. Here in this another rule we are calling the responsibility rule by using the standard FM  RH_GET_ACTORS to fill the ACTOR_TAB.
    I have tried to simulate both the rules and it returned correct agents but failing at run time.
    Regards,
    Him

  • Agent Determination - PR Item Release

    Hi All,
    I'm trying to set up standard workflow WS00000038 for purchase requisition release notifications.  I'm having a problem with determining the correct agents.  I receive the following error in the log when the workflow runs:
    Agent determination for step '0000000003' failed
    Error in resolution of rule 'AC00000148' for step '0000000003'
    I am using standard task TS00007986, and rule 00000148.  The configuration for the release procedure is complete and working.  I have maintained values for users in T16FW, and set the release codes to '1' for workflow.  When I try simulating rule 148 in PFAC, I see that it is pulling from table T161E - and the only release code maintained there is a default 01 in german.  I tried creating a custom rule that referenced T16FW, but the simulation failed for it as well.
    I am very new to workflow.  What do I need to do in order to have this event notify the correct user defined in customizing? 
    Thanks,
    J

    Hi,
    The entries in table T16FW are made via customizing for the PR release.  View V_T16FW is empty... I tried entering manually through SE16 and saving, but it would be blank if I looked at it again. 
    However, I don't know if that is the problem.  I cannot get the rule to determine an agent in PFAC.  Currently I have modified rule 00000148 to have the container ReleaseCode look at table T16FW, field FRGCO.  It is also still getting requisition from BUS2009.  When I simulate in PFAC, I cannot get an agent to be determined. 
    T16FW contains a link to usernames which are maintained.  Why is this rule not determining an agent during simulation?  
    Thanks

  • SRM Alert Management does not determine recipient runtime?

    Dear friends,
    We are working on SRM Alert Management, where the business requirement is an alert to be sent to bidder whose bid has been accepted by manager/purchaser.
    We have configured Alert Classification and Category with following setting
    Category Description - Bid approved
    Priority - 2 High
    Expiry time in Min – 1440
    Rule - <blank> ?????????????
    Escalation Active - <my user ID>
    Application Pac - BBP_EXCEPTION
    We have defined Event and Event Schema (with Event - Accepted, Event Category – ALERT, Sub category of Event - Bid approved)
    Event Schema is further assigned in transaction type.
    Now I need to mention to system that if Bid is accepted then system should send an Alert to the Bidder whose bid has been accepted.
    So, where do I need to define this configuration? As it cannot be a fixed recipient or role based recipient, in fact application should be able to determine the recipient runtime.
    We tired with fixed recipient and its works fine. That means Alert is working but its not determining the recipient runtime.
    Do we need to define Rule-based recipients in ALRTCATDEF?
    Please help,
    Regards,
    Sandeep Parab

    Hi,
    You can also use the enhancement spot "BBP_ALERTING".
    Documentation for this enhancement:
    Alerts/Messages and Events in SRM Alert Management
    Use
    Using BAdI BBP_ALERTING you can define your own events for SRM Alert Management and you can override existing (delivered) events. You can also override the standard alert categories and change the links(URLs) that the recipient uses to get to the relevant business object (document). <b>In addition, you can use the document data to determine your own recipients.</b>
    This BadI serves to enhance and/or vary the settings of the IMG activities under
    Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Event and Event Schema for Alert Management.
    The following methods are available:
    BBP_EVENTS_ANALYZE
    Change the standard events and define your own events
    BBP_EVENTS_CATEGORIZE
    Change the standard alert categories
    BBP_EVENTS_DET_RECIPIENTS
    Change the standard recipient
    BBP_EVENTS_DET_FOLLOW_UP_URL
    Change the links contained in the alerts/in the messages, for example, for the link to the affected document
    See also: Release Information SRM Alert Management (new)!
    Requirements
    In order to receive detailed information on documents, document status, and document items, we recommend that you use the following function modules (the document GUID is available as an import parameter in the individual methods):
    BBP_PD_ALL_GET_DIFF
    BBP_PRODOC_GETDETAIL
    BR,
    Disha.
    Pls reward points for useful answers.

  • Need help with agent determination for release workflow

    Hi,
    I am trying to perform a release in the contract(FS-contract management) by using the framework for principle of dual control. When i create a contract, i get a message that says contract created, not yet released. But i am not able to get the work item in my inbox to release the contract. The SWI1 transaction shows 'no agent' for the triggered workflow. I am using the template WS50100021 as there is only one release step. By default there is a rule '50100017' given for the template. But in the customizing settings i have the section called 'assign rule to release steps'. Do i need to assign a rule here for agent determination. If so, what about the rule in the WS50100021 template? Which one should i use? I am able to execute the method 'release' of object BUSISB001 from SWO1 and release or reject the contract creation. But i am not able to get the workitem in my inbox in SBWP transaction

    Hi Suhas,
    The rule used in workflow template WS50100021 is a standard one. So try to find out that on what basis it is fetching the agents. It could be the case that the logic specified in the rule does not fulfill your requirement.
    The other reason could be that you have not specified the task as general. Please check if the agents tab is activated(green) in the task or not. If it is not you need to set the task as general.
    SOLUTION : if you want to get the workitem in your own SAP Inbox for testing purpose, you can set the WFINITIATOR as agent instead of that standard rule. This setting will send the workitem in your own SAP Inbox.
    Regards,
    Guddan

  • Agent Determination error in workflow

    Hi all ,
      We are working on Travel Management workflow ( 4.6 C ) . We have transported the workflow to our quality server where the workflow is giving error .
      The workflow is not able to determine the agent for a task giving an error "no valid agent found" . We then executed the FM which was attached to the role which gave us the desired output .
      Any inputs from your side ?
    Thanks ,
    Sonu M.

    Sonu,
    Task attributes are HR data and have to be moved using a standard HR data transfer program.
    Use program RHMOVE30 - enter object type TS, and your task number.  Use eval path TASKHIER.
    Use the dropdown on the request parameter to create a transport request.
    When you get the result list, make sure your task is selected for transport then use the option to include it in the Transport.
    You should then be able to go to txn SE09 and see your task has been assigned to the transport.
    You can then transport your task.
    Regards,
    Jocelyn

  • Problem in agent determination for custom wf of contracts

    Hi
    I've copied standard wf for contracts i.e. 20000079. In my custom wf the step for release contract I've maintained the standard rule 20000029. bcos this rule is assigned for standard one with task 20000172. Am I correct in agent assignment??bcos my agent determination fails and wf goes into error. But if I simulate the rule separately it works fine. So there is no prob in rule,also i've properly binded it with task passing purchasingContract and releasecode.
    Could u pls help me.
    Thanks

    Check that the binding between the workflow and rule are OK. Maybe your workflow is not delivering all the needed parameters for the rule (the same parameters that you are using while simulating the rule).
    Another thing that you should check is that make sure that this is not an authorisation problem. It is possible that the rule is executed by the dialog user (not WF-BATCH) that doesn't have enough authorisations to do all the necessary rule logic. Just give remporarily SAP_ALL to the user who is executing the test.
    Regards,
    Karri

  • PR Overall Release Workflow - Agents Determination Failed

    Dear All WF Experts,
    I have used the standard workflow WS20000077 for PR Overall Release. I have assigned the agents to the task TS20000159 by position maintained in the Workflow Organizational Management Structure. The agents' names are showing correctly in the task's agent settings.
    However,  when I execute the workflow, the error 'Agent Determination Failed' for that step (TS20000159). I have checked the agent settings in workflow and SPRO, they look fine. Could anyone please kindly give me advices how to solve this error? Thank you so much.

    Hi, to all the experts who have helped me all these while,
    Thank you very much for spending time helping me to go through this issue.
    Yesterday, I ran through the coding for the function module for the rule AC20000026 again. I found out that there is one part of the coding which is causing the failure of determining an agent. The code disregard the company code for overall release of Purchase Requisition while the business requirement involves company codes in every PR created. Thus, by changing that code, the problem is solved.
    The snippet of code of function module (ME_REL_GET_RESPONSIBLE):
       CASE t16fc-frgwf.
    * keine Ermittlung
          WHEN space.
            RAISE nobody_found.
    * Ermittlung ¨¹ber T16fW
          WHEN '1'.
            IF eban-gsfrg EQ space.
    *     Einzelpositionsfreigabe Banf
              SELECT SINGLE * FROM t16fw WHERE frggr = eban-frggr
                                           AND frgco = rm06b-frgab
                                           AND werks = eban-werks.
            ELSE.
    *     Gesamtfreigabe Banf
              SELECT SINGLE * FROM t16fw WHERE frggr = eban-frggr
                                           AND frgco = rm06b-frgab
                                           AND werks = space.
    There is always a value in werks in my business scenario...
    SELECT SINGLE * FROM t16fw WHERE frggr = eban-frggr
                                           AND frgco = rm06b-frgab
                                           AND werks = space.
    So, by changing it to
    AND werks = eban-werks
    it will work, however, I think it's better to just remove the If statement
    IF eban-gsfrg EQ space.
    , since it has no effect anymore.
    I hope this would give a hint to all the rest who might be facing the same problem as well.
    Thank you very much,
    YL

  • Agent determination issue in a workflow

    Greetings everyone!
    I'm configuring some business scenario with the help of a business workflow in SAP CRM 7.0 I'm using activity step and want to determine agents using standard SAP rule 10000162 ("Employees for responsible org. unit"). I've tested the rule outside of the workflow and it's working fine, but  in workflow it fails to determine an agent.
    In a log I see following errors:
    Agent determination for step '0000000023' failed;
    Result of agent resolution does not agree with agents of task;
    I've made some tests depending on what assignment task has:
    1. When it is a general task, work item was created for a workflow initiator even though rule failed to determine an agent.
    2. When it is a task with general forwarding with assigned position(s), which rule will never determine, work item was created for holder(s) of that position(s).
    3. When it is a task with general forwarding with no assignments, workflow could not determine an agent as expected.
    I've also debugged functional module for that rule and it determines appropriate agent but then do some check with the help of RH_TASK_AGENT_CHECK function and returns an error.
    Can someone help me with this problem? Is it some standard expected behavior or not?
    Maybe something wrong with the org. plan?
    All answers are appreciated.
    Thanks in advance,
    Alex.

    Hello Rick and Eddie.
    I've tried to assign user directly instead of position to a task with no help. I get the same result.
    I've tried to set a task as a general task and made the rule to fail if there is no resolution and it fails.
    I've tried to assign position or user directly to activity in a workflow and it does work but that's not what I need in my scenario.
    As I said earlier I've tried to debug that rule invoked from a workflow. I will post some screenshots for you.
    I set a task as a general task and assigned rule 10000162 (ABBR="PARTNER_1", Name="Employees for responsible org. unit") to activity step in a workflow and here is what I get:
    1. Function CRM_ORGMAN_ORGOBJECTS_FIND_2 gets called by the rule and resp. sales org. unit is passed there ([screenshot1|http://www.picdrop.net/?v=debug1.png])
    2. Next function CRM_ORGUNIT_GETEMPLOYEES gets called passing id of a resp. sales org.unit without a type.
    3. Next RH_STRUC_GET gets called and returns result table with position and central person for that position ([screenshot2|http://www.picdrop.net/?v=debug2.png])
    4. In the end of CRM_ORGMAN_ORGOBJECTS_FIND_2 function only central person in inserted to the actor_tab ([screenshot3|http://www.picdrop.net/?v=debug3.png])
    5. After CRM_ORGMAN_ORGOBJECTS_FIND_2 ends we appear in a RH_GET_ACTORS function where we can see that agent check is performed if act_task is not initial. I assume that check is not performed if we do a simulation of a rule ([screenshot4|http://www.picdrop.net/?v=debug4.png])
    6. Then RH_TASK_AGENT_CHECK function gets called for every record in a actor_tab. In out particular case it's one record. ([screenshot5|http://www.picdrop.net/?v=debug5.png])
    7. Inside that function checks act_wi_id (activity work item id?) if it's initial and get exluded agents. It is initial in my case ([screenshot6|http://www.picdrop.net/?v=debug6.png])
    8. Then function tries to read table with keys equal to type and id of found agent and errors there, perhaps because there is no record in that table ([screenshot7|http://www.picdrop.net/?v=debug7.png])
    That error results in overall agent determination failure.
    Hope this screenshots will help to identify a problem.
    Why read table results in an error and because of that all rule fails?
    Regards,
    Alex.

Maybe you are looking for

  • OIM 11g: Adding a new tag to notification template

    Hi: OIM 11g comes with some pre-defined notification templates, like 'Generated Password Template', 'Reset Password Template'. You can see those thru the admin console, System Management, Notifications. I would like to add a new Tag to one of those n

  • How do I copy a spreadsheet/table from one Pages document to paste to another?

    Hello: I am in graduate school and am working on an assignment that requires that I use two different 'templates,' or tables, to analyze data. Instead of filling them in separately and saving as multiple documents, I have created an assignment docume

  • App updates on iPhone won't disappear, etc...

    I get the App update with the number of apps to be updated displayed on my iPhone. Whenever I try to update using the phone it always fails. When I connect to computer and update via iTunes and then sync then I get an error on all apps after they upd

  • Snow Leopard 10.6.8 and Creative Cloud.

    I have a CC membership and would like to put Premiere & After Effects on my older Mac (10.6.8).  I am having issues finding a way to do that.  Any help would be great.

  • RPM: Change DATA at SAVE for ITEM

    Hi all. I must modify a date when SAVE an item (date ACTUAL_FINISH). I have implemented the interface /RPM/IF_EX_ITEM_API, but ther isn't methods for modifiy the datas of item. You have others BADI to suggest to make this? Thanks! Vanessa