Change Approval Agent in Workflow WS10400002 (SRM)

Hi Gurus,
My expertise in Workflow is very low and I have a requirement where I need to copy standard Workflow WS10400002 to a Z one and change the Approval Agent Determination. They do not want to use the Organizational Structure or Roles for this but instead they would like to have a Z table with the different users and determine the agents using ABAP. Is this possible? If so, how can I achieve this (I am not interested in the ABAP Code itself, but how can I call a routine or FM or program from the Step)?
I searched the Web and SDN but only found explanation on how this works in standard workflow.
Any help will be much appreciated.
Regards,
Ernesto.

Hi Ernesto,
You might get more help by posting your question in the workflow forum:
SAP Community Network Forums » SAP NetWeaver » SAP Business Workflow
Brenda

Similar Messages

  • Approving Agent in workflow.

    Hi Guys,
                 My workflow sending a mail to get approval of Pre-Invoice.
    The agent  to be send is assigned in a container operation task. Its assigned to an Business Object type VBRK and a table in the Business object. But I am not sure where its getting a value for this agent. The data type is WFSYST-AGENT.
    If I want to change this agent into different one through coding, how to do this.
    Cheers
    S Kumar

    I post this in Workflow forum.

  • N level-Approval for contract workflow (WS14000148) in SRM

    Hi SDN'rs
                  I want to activate N level-Approval for contract workflow (WS14000148) in SRM  
    When I am creating the contract in SRM I can see the approvers in the approval preview.
    But when I release the contract and look at the approval privew there are no approvers
    and the status of the contract is released.
    We are on SRM Server 5.5 and SP 07.
    Here what I did
    1. I implemented the BADI 'BBP_WFL_APPROV_BADI' using the sample implementation and populated the approvers.
    2. I activated events SAVED,CHANGEVERSIONSAVED for WS14000148 in OOCU transaction.
    3. I see event linkages for WS14000148 for both events SAVED,CHANGEVERSIONSAVED in SWE2 transaction.
    4. I assigned role SAP_EC_BBP_PURCHASER to for subworkflow N step for contract WS14000147.
        ( User who is creating contract has this role)
    5. Consistency check for WS14000148 is green and WS14000147 is yellow in SWUD
    6. Event simulation for BUS2000113 and events SAVED,CHANGEVERSIONSAVED shows WS14000148 successfully started.
    I see dump in ST22 with errors TSV_TNEW_PAGE_ALLOC_FAILED and SYSTEM_NO_SHM_MEMORY with WF-BATCH is this any thing to do with that?
    If any one know what are the steps I am missing please let me know.
    Thanks
    A S

    Hi
    Please refer to these OSS notes which might help.
    <u>Refer to following OSS Notes -></u>
    Note 735026 - Memory problems at BBP_GETLIST_INDEX_FILL
    Note 932836 - BBP_GETLIST_INDEX_FILL: Activation not possible
    879528 WS14000148: Send mail to initiator incorrect
    901200 WS14000148 dia wrk item despite NO_FURTHER_APPROVAL_NEEDED=X
    879873 BUS2000113: The Object_ID attribute may be empty
    903015 BAdI Workflows: Events and parallel steps
    901068 BAdI Workflows: Enhancement of Note 896556
    769458 Dynamic workflows: No adjustment after document change
    972757 Occurence of the SYSTEM_NO_SHM_MEMORY runtime error
    741864 FinBasis: Termination TSV_TNEW_PAGE_ALLOC_FAILED
    864473 Deactivating the shared memory when searching by prefix
    928642 Container factory: Shared memory dump update
    Refer to these links.
    <b>http://help.sap.com/saphelp_srm50/helpdata/en/2c/e68d406b305537e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/26/0f8b41ed891609e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/6b/eca441eea7ef0be10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/f7/a6a3415e34b05fe10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/6b/eca441eea7ef0be10000000a1550b0/frameset.htm
    </b>
    <u>Also raise an OSS message with SAP as well.</u>
    Regards
    - Atul

  • The approval of the single step SRM workflow : WS10000129 ????

    Hi,
           I am using single step SRM approval workflow :WS10000129 for shopping cart creation, After creation , the work flow is getting triggered and The Problem is becuase of Agent (in workflow log, it is saying that , Agent determination for step '000000023' failed ).
    I activiated all the subworkflows also.Customization ie..General Task is maintained also.
    I feel,  it is failing to reach a agent ..plz Help me regarding the Issue to go to an agent .
    How do we customize the agent for Particular task.
    plz Help me..
    Balaji.

    Hi Balaji,
    In addition to disha's remarks also look at the following poibnts which may help you in resolving the issue.
    Check in SWDD txn. (Work Flow builder) check whether the agent assignment is proper or not for one step approval work flow.You can manually assign the agent there if required.
    Also check whether the person approving the shopping cart has been made as the Head of the department or not  in the Org. Structure using PPOMA_BBP txn.Please make the person approving the cart as Head of the department.
    Please verify the above points and run a cycle and let us know about the outcome.
    Hope this helps in resolving your issue.
    Award points for helpful answers.
    Rgds,
    Teja

  • Is N level workflow in SRM suitable for BRF rather than the two step approv

    Could anybody give some information about N level workflow in SRM abt whether it is more suitable for BRF (business rule framework) for agent determination rather than the two step approval workflow ?

    Hi Rita,
    BRF is process level configuration.  You will have to define a schema and it will be tied to a Business object (say BUS2121).  Schema consists different process steps.  Each process step can be tied to a work flow (Task id).  So, it doesn't matter whether 2 step or N step WF in BRF for the process step.  Agent determination will happen regardless.
    Regards,
    DV

  • Conditions for contract workflow approval  agent.

    Y'all,
    I would like to know if its possible to have conditions in the WS14000088 contract workflow to assign the approval agent/user depending on contract values, for example i mean:
    "if the contract has an specific value at item level then assign the approval to the business unit manager... or if the contract has an specific value at header level then assign the approval to the category manager..." etc.. etc..
    Is it possible? if yes, how do you commit it into the system?
    Regards,
    Gerardo.

    Hi Jerry,
    Yes it is possible to have a conditions to assign and determine the approval agents depending on the value of the contract.
    Goto tcode SWDD and for the appropriate task in the workflow 'WS14000088' create the condition. The work item for this step can be executed when this condition for work item generation is met. If there is a requested start for this work item, this is checked separately when the condition is met.
    Reward points if the answer is helpful.
    Regards,
    Andy.

  • SRM: "Purchase Order Change Approval " and "Invoice Approval"

    Hi,
    I would like to know the availability and details of the backend services for "Purchase Order Change Approval " and "Invoice Approval".
    Any pointers ?
    regards
    Sachin

    I want to know what are the Backend services exposed for the following processes :
    Purchase Order Change Approval in MM
    and Invoice Approval.

  • 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>

  • N-step approval process for PO in SRM 7

    Here are a couple of questions I have regarding N-Step approval configuration for PO in SRM 7 Process Controlled Workflow:
    1) It's our business requirement that the last-change person of the PO is defined as the first approver in the chain. I tested with RR_EMPLOYEE and a hard-coded user BP number (my own), but got error "Strategy RR_EMPLOYEE did not determine any approver". Changing to any other user's BP number worked. So I am guessing the buyer himself can not be an approver. Since this is a business requirement, we wouldn't mind developing enhancement to work around this restriction. If you could point me to the place where this is checked, that would help me.
    2) I have set up the process level configuration as such:
    100     ZEV_PO_SL_APPR_001     PO  approval level 1     RR_EMPLOYEE     Specify Employee for Approval
    200     ZEV_PO_SL_APPR_002     PO  approval level 2     RR_MANAGER     Get Creator's Line Manager for Approval
    300     ZEV_PO_SL_APPR_003     PO  approval level 3     RR_MANAGER     Get Creator's Line Manager for Approval
    The corresponding expressions are simply checking against the PO total value, such as -
    0V_PO_POTOTALVALUE >= 0 AND 0V_PO_POTOTALVALUE < 1,000
    0V_PO_POTOTALVALUE >= 1,000 AND 0V_PO_POTOTALVALUE < 25,000
    0V_PO_POTOTALVALUE >= 25,000
    But when I checked the Approver list with a PO with total value > 50,000, only the first level is triggered and listed. And once approved, the PO went into "Ordered" status. But it should have gone through 3 levels of approval. I'd greatly appreciate it if you could point out what might have been wrongly defined in my configuration.
    Thanks!

    Hi,
      1) It's our business requirement that the last-change person of the PO is defined as the first approver in the chain. I tested with RR_EMPLOYEE and a hard-coded user BP number (my own), but got error "Strategy RR_EMPLOYEE did not determine any approver". Changing to any other user's BP number worked. So I am guessing the buyer himself can not be an approver. Since this is a business requirement, we wouldn't mind developing enhancement to work around this restriction. If you could point me to the place where this is checked, that would help me.
    SAP recently released the consultant OSS note to handle this issue.. when the release the SRM 7.0 , SC requestor or PO creator ( Buyer ) cant be in the approval list.. later on they release a OSS note to handle this issue.. 1551561\
    2) I have set up the process level configuration as such:
    100     ZEV_PO_SL_APPR_001     PO  approval level 1     RR_EMPLOYEE     Specify Employee for Approval
    200     ZEV_PO_SL_APPR_002     PO  approval level 2     RR_MANAGER     Get Creator's Line Manager for Approval
    300     ZEV_PO_SL_APPR_003     PO  approval level 3     RR_MANAGER     Get Creator's Line Manager for Approval
    The corresponding expressions are simply checking against the PO total value, such as -
    0V_PO_POTOTALVALUE >= 0 AND 0V_PO_POTOTALVALUE < 1,000
    0V_PO_POTOTALVALUE >= 1,000 AND 0V_PO_POTOTALVALUE < 25,000
    0V_PO_POTOTALVALUE >= 25,000
    But when I checked the Approver list with a PO with total value > 50,000, only the first level is triggered and listed. And once approved, the PO went into "Ordered" status. But it should have gone through 3 levels of approval. I'd greatly appreciate it if you could point out what might have been wrongly defined in my configuration.
    once you implement the OSS note Q1, you can build the custom RR resolver to handle this issue with in one process level.. but you have to implement the process level BADI as well.. please refer /SAPSRM/BD_WF_PROCESS_PO badi for more details
    Saravanan

  • Back and Forth Logic in process-controlled (BRF) workflows in SRM 7.0

    Hi all,
    I am using the process-controlled workflow in SRM 7.0.
    The approval itself works ok, but now I am trying to set up the back-and-forth functionality (similar to how it worked for the Badi in SRM 5.0) as default:
    This is what happens:
    Requester creates shopping cart.
    Shopping cart goes for approval.
    Approver rejects SC.
    Back at the requester the SC can only be displayed, but not changed.
    As far as I can tell this happens for any kind of decision set (as long as all items are rejected).
    This is what I am trying to set up.:
    Once the SC is back at the requester, he can either accept the rejection OR change the SC and 're-order' it ie send it back to approver again.
    I know if the requester checks the flag 'Work Item to Requester at Process End' this can be done, but I need the system to have this functionality automatically without setting a flag manually.
    I really appreciate any suggestions on this issue.
    Cheers
    Ulrike

    Dear Masa,
    thanks for your helpful answer. I have an better idea now, but I am still not quite able to set it up.
    I have applied note 1296209.
    When i tried to set up this step I did the following:
    level type of that step I used 'Approval with completion'.
    Created Expression of type SAP Formula Interpreter, with return type Boolean, and use formula:
    0V_WF_CURRENT_DECISI = 'REJECTED'
    linked the evaluation id to above expression.
    Task id for the step is: 40007994 - Accept Decision / Adjust Document
    When i do this and create a SC, my system dumps after clicking on describe requirement::
      The following error text was processed in the system SR7 :  The method could not be found at dynamic call.
    The error occurred on the application server SAP01_SR7_07 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
          Method: CALL_RFW of program /SAPSRM/CL_WF_RULE_CONTEXT====CP
          Function: /SAPSRM/WF_BRF_0EXP000 of program /SAPSRM/SAPLWF_BRF_DATA
          Method: PROCESS_SPECIFIC of program CL_CALL_FUNC_METHOD_BRF=======CP
          Method: IF_RULE_COMPONENT_BRF~PROCESS of program CL_EXPRESSION_BASE_BRF========CP
          Method: GET_RESULT of program CL_EXPRESSION_POOL_BRF========CP
          Method: IF_EXPRESSION_BRF~GET_SUBEXPRESSION of program CL_EXPRESSION_BASE_BRF========CP
          Method: IF_FOEV_CONNECTOR~EVALUATE of program CL_FORMULA_BRF================CP
          Method: EVALUATE of program CL_FOEV_FORMULA===============CP
          Method: EVALUATE of program CL_FOEV_FORMULA===============CP
          Method: EVALUATE of program CL_FOEV_FORMULA===============CP
    What I don't understand about your explanation is what you mean by "Acceptance by Contact person". I don't have that option anywhere in my BRF? Is that supposed to show up under Resp. Resolver Name (like RR_MANAGER)?
    Also where did you add that step in Process level configuration? I have 2 approval steps (just approval, without completion) and then i wanted to enter this step after those levels before the automatic system decision.  But i wasn't able as the system doesn't allow you to add a completion step after a 'normal' approval step.
    Cheers for your help
    Ulrike

  • Restarting workflow in SRM 7.0

    Hi,
    In SRM 5.0, we could restart workflows manually with triggering an event of the BOR object manully.
    Is there any similar way of doing it in SRM 7.0? This is sometimes required, for example why the approver rules are changed and some more reasons. The first level does sometimes delete the active workflow and starts a new one.
    I tried triggering the event "READY_FOR_WORKFLOW" of class "SAPSRM/CL_WF_PDO" by passing the GUID of the shopping cart and also passing event container value of Initiator. the workflow is started and it is going to error.
    Can anyone help in this case ? Any other way of doing it?
    Thanks,
    Sivagami

    Hi,
    We have some custom code to restart workflows in SRM 7.0. But I believe the standard must offer a standard tool to restart workflow instances for technical administrators. All workflow I know can be restarted with standard tools. In most cases this is possible with triggering an event.
    For example a new Shopping cart workflow could be manually triggered in SRM5 with the standard report u201CBBP_PDH_WFL_DB_UPDATE_BACKu201D. I believe trigger a bus2121 is also possible in the meantime. What program should a customer use in SRM70?
    Thanks,
    Sivagami

  • How to change the recipients in workflow?

    I'm not  a workflow expert. Please help me how to change the recipients in workflow.
    The approver already resigned and we would like to change it to a new approver.
    We already deactivated the user and I stiil see him in SOST.
    In some releases, he is the approver and we would like to change it.
    Hope you can help me. Just kindly let me know if you still have queries.
    Thank you!

    Ask your workflow admin to define a substitution and/or forward the workitems.

  • How to find the recent changes done in the workflow by user id ?

    Hello all,
    How to find the recent changes done in the workflow by user id ?
    I have made changed in Production system .
    Like changing the status ,
    changing the agent ,
    but for these it will , not ask for any request .
    So i want to know is there any method to find what are the changes done by me ?
    Thanks and regards
    Prem

    Hi,
    This is caused by mandant settings in scc4. It's better not to make changes in PRD, because then your DEV en QA systems differ.
    Kind regards, Rob Dielemans

  • BPM and Workflow for SRM 7

    Hi
    Does anyone know if BPM (Business Process Management) supports SRM and specifically SRM 7.0?
    Is it possible to create the workflow in BPM and then transfer it to SRM 7? Will that work flow be a "developed" workflow from SRM point of view?
    Sincerely
    Anders

    Hi,
    In that case, I would use BPM for MDM and SRM workflow for SRM document approval.
    For SRM ESOA, please visit ES Workplace.
    http://www.sdn.sap.com/irj/sdn/esworkplace
    http://esoadocu.sap.com/socoview/render.asp?packageid=DE4157EA06BD7BF1A3C7001A64D3F462&id=9E7765056D1C49FF9F433B406D1C70DD
    Regards,
    Masa

  • Disable "Change approver" in shopping cart approval

    Hi all,
    I need to deactivated "change approver" in shopping cart approval process, I'm working in SRM Server 550, it can be controlled trough an authorization objet in role or a configuration?
    Regards,
    José Luis D.

    Hi,
    Please check  the BADI BBP_CHNG_AGNT_ALLOW.
    Regards,
    Masa

Maybe you are looking for

  • Itunes doesn't finish loading

    I am using the latest iTunes (10.5.1) on a ThinkPad X220 Windows7-64bit. It has been running fine for ages, working with an iPhone 4S and iPad 2 now. Today, it will not complete loading. The program starts, uses around 47MB of memory, and then freeze

  • After re-installtion of Windows 7 Ulitmate, problems with the re-installtion of Adobe

    Why can not I install my Adobe X Pro, existing Lizence for 9 and Upgrade 10, the CDs are still available. CD installtion and also Download didnot function

  • Want to separate Portal into 2 part in one Server (1 for Dev,1 for testing)

    Hi. We have 1 server for Portal development (Oracle Portal 9.0.2.0.1 R2). The spec is -SunFire280R. -2 Gig Memory -2 Processor We install everything in one server (portal,database,iAS) The Problem is, we also have to use the Server for Testing and Pr

  • Premier Pro CC 2014 - Strange duplicating sequence bug

    Hi First post on the forum so sorry if I have done something wrong! Currently working on a projection project and have a really strange aspect ratio sequence 3840 x 1080 (Twice as wide as 1080P). I have a central 1080P video clip and then have create

  • Where's a magician when you really need one?

    Recently did a re-install of 10.3.9, but now it's not much fun because Sherlock doesn't work. No matter what I enter into the search field, the response of "no results found" stays there. It's almost as though it loads the internet, but can't access