N-step BADI approval SRM workflow

Hi,
I am implementing N-step approval badi for SC approval using header level workflow (WS14000133) in SRM 5.0. My requirement is to determine the financial analysts responsible for each line item and then the mangement approvers based on their approval limits. Financial analyst need to approve the SC concurrently before the management approvers receives the SC. I developed the code in the BADI to populate the approval table. First time when the SC is created the approval table looks as follows,
Index    Branch    Approver
1         1        FA1
1         2        FA2
1         3        FA3
2         1        MGMT approver1
3         1        MGMT approver2
FA1, FA2 and FA3 recieves the SC. The approval preview looks great. Since this is not item level workflow, FA will approve the SC at the header level.
Here is the Issue--
When FA1, FA2 or FA3 approves the SC, the approval index is incremented by 1 in the workflow, the SC is sent to MGMT approvers based on he index by skipping all the FA approvers.
In this scenario, how to develop logic to send the SC to MGMT approvers only after the FA approvers approves it. I mean how to control the index and branching in BADi. I am using header level workflow.
Any suggestion would be highly appreciated.
Thanks
Venkat

Hello,
You won't like my answer, but this behaviour is not possible with standard workflows.
First WS14000133 does not handle parallel processing with badi.
You could try the template WS14000141 that was at a time handling the branch number in approval table, but it is not officially support. I mean this is obsolete.
This only parallel processing is provided with template WS14000015, but it's at item level: separated item can be sent in parallel, but it's not working well if you try to send the same item in 2 branch.
You cannot send the same object in a parallel process, the reason is that the application layer cannot properly handle this.
Rgds,
Pierre

Similar Messages

  • N Step BADI Approval Workflow Error in SRM 7.0

    Hi,
    I have implemented SC  Workflow Approval based on line item(sequential approval). I implemented process controlled workflow for this using N step Badi. Necessasy configuration done for each level at schema. All steps are executed per line item and agents determined using N step Badi /SAPSRM/BD_WF_RESP_RESOLVER.
    Even in SC after the document is ordered, in approval overview tab i see the all level sequence with  approvers name for that  line item.
    But when approved by first approver, it doesnot move to the next level for approval and the SC is approved bypassing all approvers in the following levels.
    For example, if there four levels of approvals for one line item. as soon as the first approver approves the SC is approved and in SC Approval Overiew tab that contained four level of approval in it is now reset to one level with SC marked as appproved.
    Have anybody come across this error.
    Not able to figure out why it is happening so... need some expert advice.
    Thanks in Advance.

    Hi Masa .. thanks for your reply.
    Was on vacation so could not reply.
    I have below settings in SRM for SC
    Process Level definition should be like this.
    Level Eva.ID ; Resolver Task ID Decision Type
    100 L100 R100 40007953 Item-Based decision for Partial Doc.
    200 L200 R100 40007953 Item-Based decision for Partial Doc.
    300 L300 R100 40007953 Item-Based decision for Partial Doc.
    I have implemented /SAPSRM/BD_WF_RESP_RESOLVER for R100.
    for grouping we are using line item number ... so each line item is a group.
    Below are issues that i am facing now.
    For say 2 line item in a SC... with 3 level of approvals for each line item. I am not able to approve one line item in a sequence. For example: If for first line item, when I approve level one .. then the workitem doesnot move to 2nd approver's inbox for that line item. Now if second items (asssuming there are only 2 line items in SC) first approver has approved then i see all second level of approvers available for all line item.
    In short system waits for all one level approvers to approver for all line item and when all the line items are approved at one level then the workitems are available for seconds level of approval.
    Is this the standard behaviour?
    As per our requirement we wanted one line item shoudl follow the approveral sequence without being dependent on other items approval.

  • Complexity of using N-step BADI in SRM 7using Process controlled Workflow.

    Hi,
    Just as a big thought,
    I have a Shopping Cart requirement, Here i am asked to develop a Custom workflow for SRM 7.0.
    And the client is looking for us to use Process Control Workflows i.e(BRF integrated one).
    I need to understand the complexity of using a N-step BADI.
    How would be the complexity level if I use a N step BADI( ie Multiple approval levels on Line Item Based).
    Kindly tell me the complexity of Using it and if any one has come across some requirement like this, then explain me that how did you face the situation.
    Expecting an Earliest Response.
    Thanks,
    Shanky

    Hi,
      Is your project SRM 7.0 implementation project then you have to go for Process Controlled Workflow and if your project is upgrade then you can still go with Application Controlled Workflow but down line this has to switch to Process Controlled Workflow.
    Best Regards,
    Saravanan

  • N - Step BADI Approval Flow - Reminders & Dead Line monitoring

    Hi,
    I am on SRM 5.0 and we are using N-step BADI workflow for Shopping cart. We have coded the logic to pull the approvers and we got additional requirement of sending reminders to the approvers multiple time for example: 1st reminder on 3rd day and second reminder on 7th day and finally on 10th day the Shopping Cart should be moved to next level of approval.
    So here there are 2 things that I need to achieve
    1. Sending multiple reminders to approver on different days. 3rd day, 6th day etc..
    2. Moving the Shopping Cart to next Approval Level if the existing approver has not approved it in specific duration of time.
    Your inputs of achieving my requirements would be of more help.
    Regards,
    Satya

    Hi Satya,
    Workflow functionality Deadline Monitoring would be useful to you in such a case.
    You can add a 'Requested End' condition to the workitem you need to monitor.
    When the deadline is reached you can perform the desired operation. I your case you need repeated reminders. For this in the requested end branch, add a Loop step and send reminder mails as desired. Add a terminating condition for loop to say 10 days to stop sending reminders there after.
    I had a similar requirement and this approach worked for me.
    Hope thie helps!
    Regards,
    Saumya

  • Workflow approval - 'n' step BADI, Approval hierarchy problem

    Hi,
    Description of the issue:
    For a shopping cart approval, the approver's list determined by the 'n' step approval BADI does not include the user who is the immediate in the org. hierarchy. Rather the work item goes to the superior authority (say MD) for approval, which must not be the case.
    Pre-requisites checked:
    1. Checked the org. hierarchy - Proper.
    2. Checked the Roles maintainence for shopping cart approval - All is fine
    3. Checked for approval/spend limits also - All is fine.
    4. Tested BADI/Business Object - Approval Table is empty & Approver_administrator is 'WF-Admin was informed'.
    5. Workflow log (technical details) - Checked in the containers for 'Approver's list'.
    6. Checked table HRUS_D2 for any substitutes assigned - All seem fine.
    This is the org. hierarchy,
    (A - Requestor) --> (B - 1st level approver) --> (C - 2nd level approver) --> (D - MD final level approval)
    The approver's list shows two names instead of 3, that is only B & D and not C. Hence the work item goes to D directly than going to C.
    Please suggest.
    Best regards,
    Harsh Dave

    hi,
    Well the approver list is created from the badi for n-step approval in SRM.
    If you say that approver list is empty when testing the badi, then you have to check which workflow is used in your environmennt.
    It could be that  someone decided to create their own logic.
    so start by finding out which workflow template is used in this scenario, also you can set external break-points for users in teh approval badi which would be executed if you you use the approval preview in SRM (I'm guessing it is SRM since it sounds like it)
    Kind regards, Rob Dielemans

  • Debugging N step badi triggering GOA workflow

    Hi Gurus,
    We have a approval workflow which is triggered whenever a GOA document is saved or its change version is saved.
    The BADI is used for determining the approvers and assigning leves as we have multiple level approval process.
    I want to debug this badi whenever i create a GOA document using transaction BBP_CTR_MAINCC.
    I tried using normal session break point technique but it didn't work. I also tried to put infinite loop in the badi and tried debugging using sm50 but without success.
    Request you to suggest how to debug that badi .
    Regards,
    Rohit

    I think you can just debug the badi from SE19.
    1. Create a GOA in the web frontend, but don't do any approval just yet
    2. Write the GOA number down somewhere.
    3. the object type is BUS2000113
    4. Start SE19 and start debugging the BADI workflow
    5. Enter the object id = goa number, object type = BUS2000113
    6. Start debugging
    Regards,
    Robin

  • 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

  • How can we debug an SRM workflow problem?

    Q: How can we debug an SRM workflow problem?

    Hi,
    In SRM system using transaction SWI6 you can troubleshoot the workflow process.
    if you are using N step badi in the workflow process, we can debug the badi BBP_WFL_APPROV_BADI
    method GET_REMAING_APPROVERS
    if required please take a help of Abap consultant to debug...
    Thanks & Regards,
    prasad.s

  • How to use the Validate step for Approve step

    Hi Experts,
       I have modeled a workflow with the steps start,process, validate, approve, process and stop.
    Process is set to owner and approve is set to some other user user1.
       My requirement is as follows :
    1) Approve the records by approver and then it should send it to the next step for further processing
    1.1)  if the approver did not approve the record it should send a error message until the record is approved. So it should not send it to the next step when record is not approved
    I am using a field called item status for approving and disapproving the records. My validation is based on this field only... Validation working fine when i tested it manually.
    But my issue is when am using this validate step in workflow design validation is getting triggered for all the users.as per my requirement only approver should get the error message.But in my scenario owner is getting the error message and approver is not getting any message.
    How can i use the validate step only for particular step say approve in workflow.
    Can anyone please help me out how should use validate step only for approve step...
    Thanks & Regards
    Sireesha.
    Edited by: sireesha esukapalli on Jun 17, 2008 2:48 PM

    Hi ,
      I have set the validation property to "None".
      My design is as follows :
    start->process->validate->approve->stop.
      Owner is assigned to process step and approver is assigned to approve step.
    Now my problem is owner is also getting this error message along with the approver. AS per the design both process, approve users are getting the error message.
    As per my requirement only approver should get this prompt but not the owner.
    How can i restrict only for specifc user to get this message.
    Can anybody please advice how can restrict the owner to not get this error message...
    Thanks & Regards
    Sireesha.
    Edited by: sireesha esukapalli on Jun 24, 2008 2:18 PM

  • BADI n-step SC approval - Approval Index and Data Change Problems

    Dear forum gurus,
    We are implementing SRM 5.0 (SRM SERVER 5.5 SP 9) in Extended classic. I am developing the BADI's to use the n-step SC approval workflow WS14000133.
    Our approval process is as follows:
    1. Cost Centre approver (based on CC with the largest value in the SC)
    2. Financial approver (based on the total value of the SC)
    I have done this now and it works as long as every step is approved!
    I have implemented the BADI 'BBP_WFL_EMPL_WI_BADI' - method 'CHECK_REQUESTER_WI' to send back any changes to the cost centre to the shopper to review. The standard also sends back total value changes to the shopper in the same way.
    My problem is that if the main CC or the total value of the SC are changed, the logic goes back to the shopper and then if the shopper 'Accepts changes', the logic skips the first apporver again and goes directly to the second (financial approver).
    I think there are 2 options:
    1. After the shopper accepts chnages, to restart the WF so a new WF template is generated. Then my logic will show the new CC and FI approvers again.
    2. I change my logic in the 'GET_REMAING_APPROVERS' method so the apporval index is not assumed to be 1 or 2 only. I guess I will have to work with logic to read the history and apporval index, but this seems very complex.
    Option 1 - I can't get this to work. After the shopper accepts changes I can't get the WF to restart in the 'BBP_WFL_SECUR_BADI'.
    Has anyone fixed this?
    Option 2 - The logic for checking apporval index and apporval history tables seems to me very complex. Has anyone done this and can they explain the logic to me if so? The problem here is that the sample code for this BADI assumes the approval indexis always 1 for the first step and 2 for the second step, but this is not the case!
    Thanks in advance,
    Best regards,
    Nick

    Hi,
    I feel setting the parameter BBP_WFL_SECURITY  for the Approver should do the trick.i.e. Restart the workflow adn the same approval process should be followed again.So plese adjust the value of this parameter for the Approver role in trascn PFCG.Also if you want to overwrite the settings of this paramtere(as maintained in PFCG),you can implement the BADI "BBP_WFL_SECUR_BADI".
    For  more info,refer  the foll links:
    http://help.sap.com/saphelp_srm50/helpdata/en/37/830b3b7e7ef74de10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/f7/a6a3415e34b05fe10000000a1550b0/frameset.htm
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • N step SC Approval Workflow - PCW

    Hi Experts,
    I'm new to SRM.
    We have requirment for N-Level Approvals Sequentially at item based for the SC .
    The Approval Level needs to be determined dynamically , by comparing the Total value of the SC with the Approval limit maintined in the Custom Table.The maximum Level of approval is 3.
    Example:
    Workitem Should be triggered Sequentially.
    If the SC has 2 line items .
    First Line item
    When the Ship-to address is maintained,the Total values of SC - 3000£  and the Line item Value is above threshold value.                              
    Workitem reaches Approver1 - Approved then                        
    Workitem reaches Approver2- Approved then
    Workitem reaches Approver3
    Second Line item
    When the Ship-to address is maintained,the Total values of SC - 3000£  and the Line item Value is below threshold value. 
    Workitem Shouldnot Trigger.
    Questions:
    Do i need to maintain 1 or 3 process level at Config?
    is it possible to check the Line item value at the Evaluation ID itself by copying the FM /SAPSRM/WF_BRF_0EXP000
    , if so how to to know the for which line item(item guid) the Process level is been called?
    There are three conditins to be checked for triggering the workitem
    1.Ship to party check
    2.Total value Sc check
    3 Line item value check
    Which conditions can be maintinaed in the Evaluation Id?
    Which conditions can be maintinaed in the BAdi?
    How to Achive the requirmeent.
    Please Let me know how to proceed.
    Thanks in Advance.
    Edited by: srmtech on Dec 19, 2011 11:31 AM

    Hi,
      I got your email..Please refer the below link and close this thread..
      N- step SC Approval Workflow
    Saravanan

  • Offline Approval in workflow - SRM 5.0

    Hi Team,
    I am new to SRM Workflow.
    I have a task of Offline Approval.
    I have one file for which we are developing offline approval process in SRM 5.0
    for that we are developing workflow.
    I know there is a report  in SRM which we can use for offline approval.
    But I am not getting it, from where I need to start.
    How can I cal that report in Workflow.
    How should be my work-flow.
    Please suggest your inputs.
    Thanks & Regards,
    Monika

    Hello Monika,
    Please, read How-To below:
    [Offline approval - general configuration|http://wiki.sdn.sap.com/wiki/display/SRM/Offlineapproval-generalconfiguration]
    Regards.
    Laurent.

  • 1-step SC approval  workflow - error awaiting approval

    Hi all,
    I am configuring 1-step SC approval  workflow but it gives me the status as 'awaiting approval' when i click on check status of SC and the 'Manager'[user] doesn't receive the mail. can someone help me on this?
    Regards,
    roopesh

    Hi Roopesh,
    *) activate SAPCONNECT (Transaction SICF)
    ) Transaction SCON - define node SMTP (specify mail server, port, codepage, internet as supported address, "" as address area
    *) define job for mail sending
    *) assure that all users have e-mail in their master record
    *) maintain domain using transaction SCOT.From menu -> Settings ->Default Domain. ( eg ibm.com )
    *) In the attribute of person in organization structure  FORWARD_WI should be 'X'
    *)Schedule a report RSWUWFMLEC to send E-mail notification for new work item
    this wil help
    smita

  • SRM Workflow configuration step by step guide

    Hi,
    Can you please send me SRM workflow step by step config guide?
    my e-mail ID will be [email protected]
    Full points will be rewarded for the same.
    Thanks in Advance
    Uday.

    Hi,
    Please refer the foll links for the detailed steps:
    <b>http://help.sap.com/saphelp_srm50/helpdata/en/58/c14e3c59bfe747e10000000a11402f/frameset.htm</b>
    http://help.sap.com/saphelp_srm50/helpdata/en/84/0783f35c1e11d2b403006094b92d37/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/ee/8804050393ea4596330fe181092003/frameset.htm
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • APPROVAL_HISTORY_TABLE not getting populated in N step Badi

    Hi Guys
    I have implemented the N step Badi for the contract workflow WS14000148. The approval functionality is fine however the importing parameter APPROVAL_HISTORY_TABLE is not getting populated in the Badi. Appreciate if somebody who has faced the similar situation could let me know the root cause. I am using SRM 5.00 with support pack level SAPKIBKT14.
    Regards
    Rajeev

    This is a known issue, bug 14341496. To avoid it please use java 1.6 on the browser.
    Phil

Maybe you are looking for

  • How do I get my iPad to have the same movies as my mac?

    I just got iMovie for my iPad and I have several movies on my MacBook pro but I don't know how to get them to my iPad. I heard there was this thing with iTunes but I don't know how to use it. Thanks!!!

  • Efficient way of updating data to database table

    what is the efficient way of updating data to database table  . i have huge amount of data in my internal table  , how to use update statement in this case . 1. database table having 20 fields  , 2. one is key field and suppose 20 th field i want to

  • How do I set up the 9 "home" pages on the "New Tab"

    There are 9 "home" squares to pin 9 sites on the "New Tab", for easy access for favorite sites. How can I pin these to stay in place, when I cannot even get them to show up in the blank spot? I know how to "pin" tabs at the top and I know how to "pin

  • Task Manager and/or Grocery List application ideas?

    Looking for Task Manager and Grocery List applications that will sync my Mac with my iPhone. Do you know of any? Zenbe is not really what I am looking for.

  • Upgrading Wireless Infra.

    Hi Experts, I am planning to upgarde current Cisco 5508s and Cisco WCS. We have currently 1142n APs (around 400) and we will be adding 3600 APs to existing network. I am planning to move from current code to the latest code and I would like to know a