Dynamic agent rule changement during approval steps

Hi gurus,
my question is based on a customer requirement.
they want a n-step approval with dynamic agent determination: fine.
then they want to maintain the substitutes: fine as well.
But what they want to do is to change the workflow path based on the substitute.
I mean: if the first aprover has set a substitute the first task goes to the substitute, but the following tasks have to follow the substitute hierarchy and not the original workflow path.
So we don't think the standard system way to use the substitute is not enough, but we need to determinate in the beginning if a substitute was set for some approvers.
The thing is that the substitute record is dynamic and has a validity end, and could be set after the workflow is started.
Is it possible at every step recalculate the workflow path and the next approvers (so to discover if a substitute rule has be changed or created or deleted)?
PS: we are using SRM 7.0 and the process controlled workflow.
Thank you very much in advance!
Regards,
Maria

Hi Maria
I mean today the workflow starts and the system calculates the path based on the substitute rules active.
OK with that.
But what if the substitute rule change tomorrow?
    How you are saying the substitute rule change tomorrow?.  You should not assume it. You should confirm it.  You cannot implement a work flow for tomorrow's requirement. Always there will be a change even if you implement for tomorrows change. Never do that. Do only for today's requirement.  
My question is if it's possible to every step of the work flow change the agents.
    I feel that this approach is wrong. simple view i will give u to thing. take only 2 steps
loop.
1) for determining the approver based on business logic in one method.
2) use the expression in the user decision step and send the work item for approval
endloop.
This i have explained for simple logic, create you own logic and apply on loop and endloop. It will work.
Regards
vijay

Similar Messages

  • Dynamic agent rule during approval

    Hi gurus,
    my question is based on a customer requirement.
    they want a n-step approval with dynamic agent determination: fine.
    then they want to maintain the substitutes: fine as well.
    But what they want to do is to change the workflow path based on the substitute.
    I mean: if the first aprover has set a substitute the first task goes to the substitute, but the following tasks have to follow the substitute hierarchy and not the original workflow path.
    So we don't think the standard system way to use the substitute is not enough, but we need to determinate in the beginning if a substitute was set for some approvers.
    The thing is that the substitute record is dynamic and has a validity end, and could be set after the workflow is started.
    Is it possible at every step recalculate the workflow path and the next approvers (so to discover if a substitute rule has be changed or created or deleted)?
    PS: we are using SRM 7.0 and the process controlled workflow.
    Thank you very much in advance!
    Regards,
    Maria

    Hi,
    Yes. Agent is determined in each step right after previous step is completed in SRM70 Process-Controlled Workflow.
    Please check following workflow objects.
    WS40000016
    TS40007943
    Rule 40000138
    FM /SAPSRM/WF_CORE_RESP_RESOLVER
    Regards,
    Masa

  • Approver skipped during approval process in N-step BADI workflow

    Hi,
    I am some problem in n-step BADI approval process. For some reasons one of the approvers is skipping during approval. And later in the approval preview it observes that the approver, who is just above the skipped approver, is appeared twice.
    I am not able to simulate this issue though this is happening in the system frequesntly though it is not for all.
    Can you please let me know what is the problem in the system and how can we rectify this issue?
    Thank You.
    Regards,
    Krish

    Hello
    sorry search for the n-step WS14500015 is the item based...
    Another thing, you can try with testing to restrict the case to special conditions. Are there any added-approver there? Is there any approver who makes some changes to the SC? etc..
    Daniel

  • Changes to shopping cart during approval.

    We are running the N-Step approval workflow WS14000133.
    The issue we are having is when an approver makes a change to the shopping cart during approval (Task TS10008126) we would like this to trigger the step that sends the cart back to the requestor to check/approve(Task TS10008061).
    The desired behaviour occurs if the approver makes a change to the price, but not if other aattributes of the shopping cart are changed such as the vendor or the description.
    The workflow determines if the cart should be passed back to the requestor based on the approve_or_reject flag in the approval task container. This variable is set to 4 when the price is changed, but 0 if other attributes are changed.
    The security level for the approver to 'High' so that the workflow does not restart.
    Is there any way to control what changes to the shopping cart will cause the workflow to create the task for the requestor.

    What I am saying is that I want the workflow to continue and it is. This is not the issue. I am happy with the way that the security level is working.
    The issue is that I would like the workflow to send a task to the requisitioner for ANY change that is made to the shopping cart. The standard solution will only send a notification to the requisition if a change is made to the value of the cart.
    We need to pick up all changes such as the description or the vendor.
    If you look at workflow WS14000134 you will see that after the approval step there is a decision step that will route the workflow to the notification to creator task or by-pass it. This is based on a variable that is set by the approval task. If the value is changed the value is set to 4, but if the vendor is changed then the value remains as 0.
    The question here is 'Can we influence the way that this approval state variable is set?'

  • Update was terminated when Dynamic modification rule is changed

    Hi Gurus,
    When short text is changed manually in Dynamic modification rules (QDR2), I saved it "Dynamic modification rule xxx was changed". Next I got the error message: "Update was terminated".
    Detail:
    System ID....   xxx
    Client.......   xxx
    User.....   xxxxxxx
    Transaction..   QDR2
    Update key...   xxxxxx
    Generated....   06.11.2009, 11:54:46
    Completed....   06.11.2009, 11:54:47
    Error Info...   Processeur ABAP : RAISE_EXCEPTION
    I think there is an incoherence in between tables QDDR & QDDRT.
    How can we fix this error?
    Thanks.
    Stéphane

    Hi
    sometimes it happens that system takes some time to save & update the data in the background.
    so wait for some time & again check .It will work.
    The data which if changes do not have any repercation on existing system  can be changed at any time.
    check the tables
    QDDR & QDDRT again
    Regards'
    Sujit

  • Changes allowed in shopping cart during approval

    Hi all,
    I am on SRM 7 , ECS.
    My reqirements are :
    1. The requisitioner should not be able to change the shopping cart during approval workflow.I have changed the authorization level , BBP_WFL_SECURITY , to  none  " changes are not allowed" in the employee role . But still the requester is able to change the cart during workflow
    2. The approver should be able to change the shopping cart during approval workflow.I have changed the authorization level , BBP_WFL_SECURITY , to low  " workflow is always restarted when changes are made" in the employee role . But the approver is  not able to change the cart during workflow.
    3. If the approver rejects the cart , the workflow should end. what is the way to achieve this?
    can you please advise on all these points?
    Rgds
    Sumendra

    Hi,
    It is called Process-Controlled Workflow. BRF Workflow is not correct term.
    BBP_WFL_SECURITY is for only Application-Controlled Workflow.
    >1. The requisitioner should not be able to change the shopping cart
    Changing SC is available in standard. You can de-activate Edit Button by custom class. Please check "Extension and Field Control (Personalization)" customizing.
    >2. The approver should be able to change the shopping cart
    There are 2 task types, Completion and Approval in #Define Process Level"
    Completion TS40007952  Approver can change SC
    Approval    TS40007953  No chnage is available
    >3. If the approver rejects the cart , the workflow should end
    It is in standard for full reject case. What is requirement for partial reject case?
    >4.all header and item information can be changed by the approver
    Yes
    Team SC concept is also available in SRM 7.0. Team members can edit Team SC before submit.
    Regards,
    Masa

  • How to send workitem to dynamic agents

    Hi all,
    This is my problem, I have to send workitem to dynamic agents (number of agents vary).
    I have the approver details in the workflow container, now i have to send the workitem to the apporvers, since the number of approver varies i am using while loop and i am doing container opreration for each loop. I have the apporvers details in a multiline container based upon this i have to send workitem to the first approver and after his decision i have send workitem to second approver and it goes on.
    Regards
    Balaji E.

    Hi all,
    After struggling for 2 day i found the solution for my problem.
    My Problem:
    I get the approver details from a function module and i call this function module in a method and through a task i pass the multiline container element (which is holding approvers details) to my workflow container. My problem is i dont know how to loop this multiline container element in my loop (while).
    Solution:
    There is a macro to copy one container element to another container element it may a multiline container too.
    SWC_COPY_ELEMENT <SourceContainer> <SourceElement> <TargetContainer> <TargetElement>.
    i used this macro while i run the method at first time and i copy this value to another container (multiline) element at this step itself.
    In my next step i pass only the loop number (i have a workflow container element. and i increment this container element for each loop) to the method and in that method i read the multiline container element based on this loop number and i pass the result value to task-->workflow.
    From here i proceed further.
    Thanks all of you.
    SDN Forum helped me a lot in this issue.
    Regards,
    Balaji E.

  • Regarding Agent Rule GRAC_REQ_MITIG_MONITOR_AGENT

    Can anyone help me in determining if i can make use of agent rule GRAC_REQ_MITIG_MONITOR_AGENT to look for the approver at mitigation monitor stage under process ID SAP_GRAC_ACCESS_REQUEST_HR ??
    SAP has suggested that this agent rule is only specific to process ID SAP_GRAC_ACCESS_REQUEST.. but when i checked in MSMP workflow process ID list, it is very much present in Step 2 - Maintain rules ....
    Also kindly guide me with the steps i should follw to create custom agent rule for the same ....

    Hello,
    This is because agents, rules etc are tagged to "Process Type". Both process IDs SAP_GRAC_ACCESS_REQUEST and SAP_GRAC_ACCESS_REQUEST_HR belong to the same Process Type SAP_GRAC_AR. Thus, the agents that are available for one ideally should be available for the other too. This is not true for other processes as the process type there are different.
    For BRFplus agent rule look at the document below, by Madhu Babu :
    BRF+ Agent Rule based on Role Functional Area field using TABLE OPERATION and LOOP
    Regards,
    Sammukh

  • Adhoc Approval Step

    Running on SRM 7.0 -   Processed Control Workflow.  Is there a way to tell on a current approval step that an adhoc approver has been added.  In the BBP_DOC_CHANGE_BADI  we are wanting to put some automated comments in the approval note, so when the adhoc agent gets the work item they will see the notes.   I know after getting out of the BBP_DOC_CHANGE_BADI, that table /SAPSRM/D_WF_016 gets updated and there are some other tables that have the next level id, etc.. and there are classes and methods that I can use, but I am looking for some type of way to know during the badi, that the next level coming up will now be an adhoc level instead of the next pre-determined level done that was set at the submission of the shopping cart.

    Hi,
    Which SRM version are you using??Please see if the foll notes help:
    1090619 - Problem creating ad hoc agents, no users in wf nodes.
    903200 Note for approval status not getting updated
    910612 additional note fro SC approval BADI's and WF's
    649551 Approval status not getting updated-related note for SP8
    690716 Approval status not getting updated-related note for SP8
    930750 restart of classic WF's(issue is with Support pack 9)
    525577 Approval Preview - Details for approver not displayed.
    Note 999528 - Adding Ad Hoc Approver fails due to comit error
    Note 952108 - Incorrect error message when approvers are entered
    Note 809157 - BBPPREVIEW: Error "Value too large" as of fourth approver
    Note 994735 - All BAdI workflows: ApprovalIndex does not begin with 1
    Note 924064 - FM BBP_WFL_DIN_FILL_APPROVER: Approvers may be incorrect
    Note 983128 - Approval WF Fragment Has No User Assignment
    related links:
    SRM 4.0 : Limit PO not showing Approver in Approval Preview
    After Add Approver by Approver Preview
    Re: SC item approval - Approval preview does not display approvers
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • Making GL Account field editable during Approval Process

    Hi Experts,
    We are in SRM 7.0 and using process controlled workflow.
    As a business requirent,we want the  GL account  field to be editable during the approval process i.e during approval process,approve wants to change the GL account in the shopping cart as the GL account may not be correctly entered.
    Is it possible to make the GL account field editable during approval process?if Yes,please share how it can be done.
    Any pointers will be highly appreciated.
    Thanks & Regards,
    Rupesh

    Hi,
    You can find info in help.sap.com.
    http://help.sap.com/saphelp_srm70/helpdata/EN/5c/b5a6783fc34466834fbc48def23d2d/frameset.htm
    http://help.sap.com/saphelp_srm70/helpdata/EN/01/ad7bc4d66f4bc1a52a0cd21cdfa2ff/frameset.htm
    Level Type: There are 3 possible entries. Approval with completion, Approval and Automatic. Within
    a completion step the document can be changed by the approver if the u2018Changeableu2019 flag is set.
    Within the approval phase, the document can only be approved or rejected but not changed. It is not
    possible to mix the two phases of completion and approval. The completion phase is always before
    the approval phase. The automatic step is a final means of validating the approval process, and to
    verify that at least one step was returned without any error (example: event 0EV999). Depending on
    the task ID assigned to the automatic step, the document will then be either approved or rejected.
    Regards,
    Masa

  • How to change default approval for ResourceAuthorizerApproval ?

    Hi,
    I'am new in OIM and I follow documentation where I found some predefined workflows. I'd like to use them.
    Could you tell me, step by step, how to change default approval for ResourceAuthorizerApproval (only for my new defined resource).
    I'm using OIM 11g and Design Console 11.1.1.3.0.2.0

    Ok, I made new tamplate (copy of existing one), there I changed Template Level Approval Process and set allowed resources. It seems to be ok :)
    If there are other solutions please share with me
    Thanks
    M.

  • I am trying to upgrade EPM 8.9(8.49.23) to EPM 9.1 (8.53.08). During dataconversion step the AE process finished succssfully in few seconds. When i see the log it says "There are no conversions to run for upgrade path PF89 (18028,10003)". Please let me kn

    I am trying to upgrade EPM 8.9(8.49.23) to EPM 9.1 (8.53.08). During dataconversion step the AE process finished succssfully in few seconds. When i see the log it says "There are no conversions to run for upgrade path PF89 (18028,10003)". Please let me know why it didnt do any conversion. Am i missing something?

    yes, that app engine didnt inserted any rows. So now when i tried to drill down i found that there was no data in the "new demo" database on table UPG_DATACONV. That is the reason for all this.
    When i applied required for upgrade patch in demo it said couple of patch already exists so those update i skipped. Now when i check upd877654 has a step which imports the data in this table. my change assistant told that the update is already available in my demo so i skipped. Now i am not sure what to do.
    I tried reimporting the data and running the analyzer again. But worried that there can be any issues due to this.

  • The status of "QUERY_VIEW_DATA_PROVIDER" "DP_1" may only change during comm

    Hi,
    I am facing the below mentioned error while executing a report on the web with a Variable :-
    The status of "QUERY_VIEW_DATA_PROVIDER" "DP_1" may only change during command processing
    (The report was run on web with a recently configured portal)
    Code for Variable Exit :-
        WHEN 'ZZVAR_YS'.  "Yesterday
          CASE P_STEP.
            WHEN 1.
              "Pre Processing
              clear l_s_range.
              clear lv_date.
              lv_date = sy-datum - 1.
              l_s_range-opt  = 'EQ'.
              l_s_range-sign = 'I'.
              l_s_range-low  = lv_date.
              append l_s_range to p_t_range.
            WHEN 2.
              "No After Processing
          ENDCASE.
    Variable  Characteristics at reporting End :
    1.     Optional
    2.     Not ready for Input
    3.     Single value
    4.                  Customer exit Variable
    Pointers will be of immense help.
    Thanks & Regards,
    Rahul

    Thanks,
    That was some useful information.
    Solved using dynamic assignment of Data provider.
    Regards,
    Rahul R Nair

  • Adding system and client specific TMS approval steps

    Hello,
    In defining QA approval steps, how to define a step which is not system and client wide?
    When adding a new step, it is automaticaly defined with * in the client and system fields, and when changing the steps, these fields are not editable. However, there are several approval steps for which a specific system and client are entered, but this was done by a consultant, who was here some years ago.
    Does anyone know how to do this?
    Thanks in advance,
    A

    Hi Aleksandra,
    Did you ever find a solution to this issue.  I too have multiple QA systems in our landscape (4 system landscape), and yet I can not defined system/client specific approval procedures in STMS.
    The system and client options don't even appear when I go into change mode, yet table TMSQASTEPS has the options available.  Direct table update works fine, but it would be nice to know the "SAP standard" way of doing this.
    Cheers
    Shaun

  • Can I create a dynamic number of inputs during runtime?

    Can I create a dynamic number of inputs during runtime?
    Oracle 11g
    Application Express 4.0.2.00.06
    Here is my problem:
    We have a table that holds metadata about files (hardcopy or softcopy files).
    We expect we may need more columns in the table at some point and don't want to modify the table or the application.
    So in order to do this I would like to create:
    A table called TBL_FILE with the columns:
    TBL_FILE_ID               NUMBER                (This will be the primary key)
    TBL_FILE_NAME          VARCHAR2(1000) (This will be the name of the file)
    A second table will be called TBL_FILE_META with the columns:
    TBL_META_ID               NUMBER               (This will be the primary key)
    TBL_FILE_ID               NUMBER                (This will be the forign key to the file table)
    TBL_META_COLUMN     VARCHAR2(30)     (This is what the column name would be if it existed in TBL_FILE)
    TBL_META_VALUE          VARCHAR2(1000) (This is the value that record and the 'would be' column)
    So a person can have as much meta data on the file with out having to add columns to the table.
    The problem is how can I allow users to add as much data as they like with out having to re develop the page.
    Other things to note is that we would like this to be on a single page.
    I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
    however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
    So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
    Any idea's how I could accomplish this? Is there a better way of doing this?
    Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
    I found this method when looking at Oracles Workflow tables.

    Welcome to the Oracle Forums !
    >
    Can I create a dynamic number of inputs during runtime?
    Oracle 11g
    Application Express 4.0.2.00.06
    Here is my problem:
    We have a table that holds metadata about files (hardcopy or softcopy files).
    We expect we may need more columns in the table at some point and don't want to modify the table or the application.
    So in order to do this I would like to create:
    A table called TBL_FILE with the columns:
    TBL_FILE_ID NUMBER (This will be the primary key)
    TBL_FILE_NAME VARCHAR2(1000) (This will be the name of the file)
    A second table will be called TBL_FILE_META with the columns:
    TBL_META_ID NUMBER (This will be the primary key)
    TBL_FILE_ID NUMBER (This will be the forign key to the file table)
    TBL_META_COLUMN VARCHAR2(30) (This is what the column name would be if it existed in TBL_FILE)
    TBL_META_VALUE VARCHAR2(1000) (This is the value that record and the 'would be' column)
    So a person can have as much meta data on the file with out having to add columns to the table.
    The problem is how can I allow users to add as much data as they like with out having to re develop the page.
    >
    Creating Page Items dynamically is not available. You will have to create excess items and hide/show , etc. But you cannot change the Item Type. All in all, too many limitations in this approach.
    >
    Other things to note is that we would like this to be on a single page.
    >
    The 100 item limit will hit you if you go with extra item on page. With Tabular Form that should not be a limitation, unless you are exceeding the 50 item limit of APEX_APPLICATION.G_Fnn items, and the 60 column limitation of Report region with "Use Generic Column Names (parse query at runtime only)" of Dynamic region.
    >
    I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
    however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
    >
    If the type if item is variable it only means you need a way to store the item type. Meta Data of the Meta Data.
    >
    So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
    >
    Yes, you can do it. Updatable report/ Tabular Form query can be constructed from the Meta Data using PL/SQL Function Returning SQL Query . It will be a bit of coding in PL/SQL where you use the Meta Data and the Meta Data of the Meta Data to piece together your SELECT with the right APEX_ITEMs. It might have a performance penalty associated with it, but will not be a serious degradation.
    >
    Any idea's how I could accomplish this? Is there a better way of doing this?
    Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
    I found this method when looking at Oracles Workflow tables.
    >
    I guess that is just a good TNF. It is the Master-Detail Design Pattern, that sound more modern ? ;)
    Regards,

Maybe you are looking for