Next level Approval....

Hi ,
<b>i am working on N-step Item level approval workflow.
i am facing a problem.
up to first level approval is working fine.
when two approval come to picture , workflow doesn't work.
my problem is , say for example. SC has two items, first item needs to be approval by 'A', second item needs to be approval by 'B' up to here my workflow is working fine.
after here i got the problem, when 'A' approved the first item and 'B' won't approve the second item means , that first item should go to 'C' for value approval. here is the problem. when 'A' approved and 'B' won't approve , the work item won't go to 'C'. the moment 'A' Approved and 'B' rejected follow-on document gets create in Back-end system , instead get approve by 'C', the follow on document should create after 'C' approve.</b>
please give me a soluction.
thanks,
Durai.

Hi Durai,
I worked on this Workflow and it is working fine.
Basically, the whole workflow is driven by the approval objects, which you need to define within your BAdI.  The three tables you need to populate works like this:
Approval_table:
This table contains the list of approvers who will need to approve a given shopping cart.  Each approver needs to be linked to an approval object (approval object guid)
Item_approval_table:
This table links the item guid to the approval object guid.  It is possible to have more than one approval object for on line or more than on line for a given approval object. 
Item_approval_object:
This table should contain a definition of each unique approval object which needs to be approved in a given shopping cart and the relevant guid.
This workflow works very different from any other workflow in SAP.  The shopping cart transaction will trigger and update the workflow containers directly when a shopping cart is ordered or changed. 
The three main workflow containers Approverlist, ApprovalItemList and ItemAppObjTable more or less correspond to the three tables listed above. These containers are usefull to look at when you want to analyse a given workflow. 
I suggest that you implement the logic for population of the three tables in a function module instead of directly in the BAdI.  This will make it easier to develop, analyse and debug if you have any issues.
Hope this will help.
Please reward few points, if this answer is helpful.
Regards.
Pras

Similar Messages

  • Workflow not move to next level approver...

    Hi Friends,
                           I have developed workflow for appraisal. Employee enter his appraisal ratings and submit  and then first,second,third level approvers enter their ratings one after another submit.
                            whenever one level approver submit,i have updated th status in our customized table and pass the status to workflow method through Set Parameter command. For example ,when employee enter his rating and once submit, i have update the status field in table with value 'Pending with First Approver' and pass the status 'pending with first approver' through Set Parameter command to workflow method. In workflow methods , I receive status value using Get Parameter command and based on tht value respective workflow item will moved to inbox of First level approver.
                      Its working fine. But  SOME TIMES status updated in table properly and workflow item keep retain in same level inbox even after submit successfully,instead of move to next level approer.
                      For example, once employee submit his appraisal rating,status 'pending with first level approver' updated in table properly. But workflow item still keep retain in employee inbox only and first level approver do not receive workflow item in his inbox.  I  tried to refresh that variable which i used in set parameter/get parameter command . but same proble continue.Could you please suggest me what will be reason for this issue?. Thank you.
    Regards,
    Hockteck..

    Hi Rick,
                           Thanks for your response. I am using Z table for reporting purpose. In Z table I update status like 'pending with employee','pending with first approver',etc. If the end users wants to know the status of apprisal for a particular employee,they can use this report and react according to the updated status.
                                               I have mentioned in this thread about  both this Z table update and pass status using set parameter id, because both these statment executed after employee or approvers submit. But Z table updated successfully and set parameter not passed successfully.
                         In my workflow I am using Loop step and this loop will continue to run  till the status become 'Completed'. when third level approver submit his appraisal details that time i pass the status 'Completed' to complete the workflow .For employee,first and second level approvers I pass the status like 'Pending with Employee','Pending with First','Pending with Second'.
                       Whenever I pass the status to workflow,using Function Module i find the next level approver based on the status. For example If the status is 'Pending with First' then in the function module I find the first level approver and pass his UserId as current agent name. Whenever this issue happen I debug and check the current agent id . But it shows only Employee ID.If the status 'Pending with First' passed to workflow properly then FM could have pass the First level approver ID. But since current agent id shows Employee Id, workflow keep exist in Employee inbox ,even after he submit successfully.
                         If 10 employees submit his apprisal ratings,for one or two employees this issue happen and for rest of the emplyess workflow completed successfully with all  approvers submissions. Any suggestions?.
    Regards,
    Hockteck.

  • Next level approver in ESS leave request

    hi friends
    Am working in ESS leave request workflow. In my scenerio there are 4 level approver. I have function module SWX_GET_MANAGER  i have copied and customized to ZSWX_GET_MANAGER with my logic to get the next level approvers. If i entered the PERNR it return all the approver for that employee. How do the workflow know he is the 2nd level approver, he is the 3rd level approver. How can i achieve it. kindly help me...
    Regards
    vijay

    Hi Vijay,
    I think you will need to use a loop and a counter so you know the approval level. You can use this to get the manager who belongs to the level.
    Regards,
    Martin
    PS I hope you will show in the thread which solution you got so others will benefit. This forum is about sharing knowledge and one way is to give the solution in your thread, or value the appropriate answers.

  • Workflow is not moving next level approver

    Dear all,
    We are in the upgrade from 4.6c to ECC 6.0. When I am executing the workflow it is going successfully to the first approver, depends up on the decision of the approver it should process any one of the four braches. But here my problem  it is not perocessing the approve branch after approval of request.
    It is working fine in 4.6c.
    Please help me.
    Thanks and Regards,
    Ravi

    helpme please

  • Determining second level approver for travel expense claim workflow

    Hi Experts...
    In Travel Expense claim workflow,we are using two level Approval.The employee has to enter his data for expense claim through ESS..Then expense claim is submitted and sent via workflow to the Travel department. Travel Dept verifies the expenses against the bill and approves the claim by selecting the next level approver and attaching the scanned copies of the bill.
    I made copy from the standard workflow WS20000040.
    How can i select the next level appover in first level approval step???
    Is there any FM or BAPI or BADI???
    Please help me ...
    Thanks in Advance
    Regards,
    Hemalatha.

    Hi Hemalatha,
    I have small tricky workaround to find out the second level of approver.The Standard Rule available can reused again by passing manager's Position.i.e
    After first level completed , store manager position in container variable and pass it to the same task rule so the task is sent to the manager's approver .
    Message me if needed more details.
    **Award Points if useful

  • How to forward the workitem to next level on Missed Deadline?

    I have enabled Latest End Deadline on a particular task. The requirement is to forward the workitem to the next level approver once the dead line is missed.
    I have tried to use Workflow Wizard Modeled deadline monitoring. It creates few additional steps but it just sets the workflow to obselete. I need to forward the workitem to next level. What needs to be done after the above step so that the work item is sent to the next level.

    Hi Workflow learner,
    I am also learning workflows and I have been asked to create a workflow deadline which will escalate the workitem to the next level approver once the deadline is missed.
    I too created a deadline using the workflow wizard. Next I created a step in the obsolete outcome identical to the main step.
    In this step do I user the rule 168? And how does the workflow look for the superior of the manger who has missed the deadline and not the workflow initiator.
    Thanks
    Forhad

  • DUAL LEVEL APPROVAL

    Hi
    I have a ess landscape wherein,the employee reports to manager and both are in one organizational unit.The manager reports to his superior who is in a different organnizational unit.In the present scenario,the manager only handles the requests from the employee.
    The workflow used is:WS12300111.
    So the requirement is after the manager takes a decision on the employee leave request,the next agent who should handle the request is the superior of the manager.
    So how should the workflow template be modified to incorporate this extra step?
    Regards
    Deb

    Hi Andy,
    Thanks for the information.
    I have a couple of queries on that.
    1).I have tried to add the extra approval step in the initial workflow.But upon raising the leave request by the employee and after approval by the first level manager,it is not proceeding to the next level approval or to the next level manager.
    In the second level approval, the workflow is taking the first level manager as the agent.So how do I set the agent for this extra step?In the first level approval,the agent is agent+0001.agents .
    Apart from this in transaction pp01,the employee reports to first level manager in A003 and first level manager reports to second level manager in A003.
    2).How do I make a copy of this workflow?
    Regards
    Deb

  • Requestes are not forwarded to next level after approval

    Hi all,
    Apps version 11.5.10, Solaris 10
    we have modified a user name in apps after that what ever that particular user has approved is not going to next level. Is it not recommended to update a user name?
    Hope some one can help me fix the issue
    Thanks in advance
    uns

    Hi Bob,
    I am running AE 5.2 but do not use the "forward" feature. For request that require "role approvers" I have set up a seperate initiaor that includes the additional Stage for Role approval.
    I have initiators for 1) New User w/ no role approval 2) New User w/ role approval 3) Change User w/ no role approval 4) Change User w/ no role approval
    My "no role approvals" go through three stages 1) security initial review 2) Internal Control review 3) Final security provisioning; my "role approvals" go through four stages 1) security initial review 2) Role Approval Stage 3) Internal Control review 3) Final security provisioning
    If a request has roles that require approval and some that do not, the request will take the two seperate paths based on the roles defined for each; the provisoning will complete once both paths have completed all stages
    This allows us to treat the role approval just like any stage with assigned approvers and if multiple approvers allow for any one approver to complete the stage
    This is different from your approach of forwarding for role approval; I define the roles to the initialtors that require role approval, but gives you another perspective of doing it
    Jerry Synoga
    Ryerson,Inc.
    630-758-2021

  • I have a workflow transaction which got timeout and escalated to the next level. The comments in the approver's notes are just changed by the system in doing so.  For eg: "Moving John under Michael" gets changed into "Moving+John+under+Michael" during the

    I have a workflow transaction which got timeout and escalated to the next level. The comments in the approver's notes are just changed by the system in doing so.
    For eg: "Moving John under Michael" gets changed into "Moving+John+under+Michael" during the timeout/reminder notification. Any idea ?
    -Thanks,
    Arun

    I have recently started having this problem in PSE8. The Adobe workaround
    did work, but I don't fancy having to re register each time I use it.
    What I have discovered is that it's nothing to do with the image metadata as it occurs before any image is opened.
    It SEEMS to only occur if you use file/open with to open an image in the editor - IE start PSE with that command.
    If you close elements down, and start it using programs/PSE/Elements (or your desktop shortcut) - the panorama feature magically works.
    Each time I've opened the editor 'automatically' using image/open with, it seems to create the problem.
    Hope this helps

  • Purchase Order Workflow message for previous level approver

    Hi folks!!
    We are implementing PO workflow through which we want to notify the next level releaser as well as we also want to notify the previous levels releaser as well as Purchase requisition creator (if PR has been used as reference document to create PO).
    I have already successfully implemented the workflow, in which next level of approver gets the notification in his/her SAP Business Workplace as soon as the PO gets approved by the previous level.
    But my requirement is on final approval of PO, notification should also send back to the previous levels approver of PO and Requisition creator.How can I achieve it, please help.
    Best regards

    Hi,
    A check can be made during final level of approval for which e-mail will get triggered to the previous approver and the requisitioner. you would need to provide a Logic to your developer with the message body whihc will trigger an e-mail during final approver and mail recipients will be the previous approver and the Requisitioner which can be picked from Line item in Purchase Order.
    Prashant

  • Issue with PO release (multi level approval)

    Hi,
    Need help regarding PO release. I am working with 4 level  approval process.
    Information:
    it is sequential release as I can see in workflow log, a new workflow gets generated for next level only after previous level executes the workitem.
    Facing following issue at 2nd Level :
    Level 2 releases item and it goes to Level 3, but workitem doesn’t disappear from inbox.Once Level 3 releases item, an acceptance mail goes to Level 2. But along with the mail, updated workitem (i.e. showing release by 3rd level) also appears in inbox of Level2. Now two work items appear in Level2 Inbox.
    In Workflow Log, this is how its behaving:
    WORKFLOW STARTED-->
    1st WF appears in WF log.
    Level 1 releases WI ->
    2nd workflow appears in WF log +
    1st workflow with (in process status)
    Level 2 releases WI ->
    3rd WF appears +
    2nd workflow with (in process status) +
    1st workflow with (in process status)
    Level 3 releases WI ->
    3rd WF appears +
    2nd workflow with (in process status) +
    1st workflow with (in process status)
    ISSUE: As soon as Level 3 sends back acceptance to Level 2, updated WI item appears( i.e. with latest release status which in this case is: released by level1, Level2 and Level3) along with the mail.
    Level 4 releases WI ->
    4th WF appears +
    3rd WF appears (in process status) +
    2nd workflow with (in process status) +
    1st workflow with (STATUS COMPLETED)
    ISSUE: As soon as Level 4 sends back acceptance to Level 2, updated WI item appears( i.e. with latest release status which in this case is: released by level1, Level2, Level3 and Level 4) along with the mail.
    Result:
    PO gets released.
    In workflow log 2nd, 3rd and 4th workflow appear with IN PROCESS STATUS. All of them show process stopped at LEVEL2.

    Hi Kjetil,
    Release strategy is being used. Configuration for release strategy is given as following.
    RGroup Rcode   Workflow     Agent
    Z6          R1         1                Blank
    Z6          R1             1                Blank
    Z6          R1             1                Blank
    Z6          R1             1                Blank
    Release is sequential.
    For column 'Agent' mentioning position or User is not really useful because we are getting agents through Z table. Reason is: current org structure supports 1 position with multiple users from same department. In our scenario we need to find initiators department then find relevant approval levels for that departemnt. So I cannot mention any position in 'Agent' Column as release code will be locked against one position and one departetment.
    Agents picked through Z table. Table has fields  Agent/ UserID , level, department.
    Logic to pick agents( Object and method created ): 
      When workflow starts, it finds department of the initiator.
      For that department-> find approval levels available(L1, L2,  L3).
      For these levels -> Find Agent mentioned for that level.
      Onece Agents are found for all levels -> Pass them to WF  container.
      In task activity, These agents are passed back to the rule and  the task comes to know which agent it should go to.
    Result : Four workflows start in sequence. When last level releases, only 1st workflow shows COMPLETED status. Rest three hang at level 2. If I see Me29N , release for that item is shown completed. To me it seems triggering of only first workflow is enough for release. Is there any way I can avoid trigerring of other three workflows?
    Edited by: User112 User112 on Jan 25, 2008 6:30 AM
    Edited by: User112 User112 on Jan 25, 2008 6:31 AM

  • Task not forwarded to the next level

    Dear All ,
    I am having an issue in SRM Shopping Cart approval workflow. The scenario is that the SC has to be approved at 3 levels and after getting approved at the first level the task does not get forwarded to the next level and its unable to fetch any , whereas there are users mainateined and i can see the approvers being fetched when I tried executing the BADI ( BBP_WFL_APPROV_BADI),unfortunately this is the isolated case as its working fine for all others. I guess this rules out oll other poosiblities of agent determination logic, task's agent assignment, swu_obuf , or swi1_rule. I am sure something is wrong with the user attributes but not able to zero to the root cause. Any help will be highly appreciated.
    regards
    C S Anand
    Edited by: Santosh Anand on Oct 1, 2010 8:11 AM

    Hi,
    Search this forum for answers: SAP SRM: Workflow & User/Vendor/Org Management
    Also, if you can replicate it on the dev environment.Change the WF-BATCH user temporary to dialog and place an external break-point in the badi implementation for WF-BATCH user.
    Now create a shopping cart and check in debugging what causes it to not retrieve agents.
    Kind regards, Rob Dielemans

  • How to Skip agent to next level?

    Hi All,
    I am stuck in workflow. need to skip agent to next level so that other person can able approve the order.
    We have created order type ZXXX for Credit memo req AMR 6XXXXXX8. In Netweaver it is assigned to ABC USER. It is not his area. I think he forgot to cancel assignment. Now he is on vacation for two weeks.
    Urgently we need to skip him and assign to some other user , how can we do this in workflow.
    Regards,
    Subhanshu Shrivastava

    Hi Subhanshu,
    As told by Bikas you can forward work item through SWIA if you want to forward it to person whose id is different than the id through which you are forwarding. In case you need to forward it same id through which you have log in , you can make use of FM SAP_WAPI_FORWARD_WORKITEM just pass workitem id to be forwarded in work item id and and user id in user id.
    Regard
    Ajit C

  • PR release workflow - issue in mulitple level approval

    Hi Experts,
    I have developed a new workflow for PR release strategy.
    Business object: BUS2105 ( Purchase Requistion )
    Triggerring event: ReleaseStepCreated
    Step1: Workflow started ( Releasestepcreated)
    Step2: Approve PR ( Agent1)
    Step2a
    If yes --> Released to next level (Agent 2 )
    Step2b
    If No --> Rejected and notified initiator
    If Yes --> Notify intiator and exit
    Step3b.
    If no --> based on next release code and release
    group get the next level agent and go to
    step2
    Step4: Workflow ends.
    Issue:
    For single step PR release, workflow is working fine.
    When PR created with multiple level release, a workflow triggers and notifies the 1st level agent, when the agent releases the PR at 1st level and saves it , workflow is not proceeds to further steps to find the next level agent.
    Here i am using the FM to fetch the approvers and assigning the same for release codes.
    Please guide me...

    Hi
    ''workflow is not proceeds to further steps''... do you mean that RELEASESTEPCREATED event is not triggered for next step ?
    you can check this in SWEL that whether event is getting triggered after first release.
    If yes then the issue is in configuration of release strategy where for all release code you need to mark workflow parameter 1.

  • PR transfer to SRM at second level approval

    Dear Experts ,
    we have classic schenario of SRM 7.0 , we want to transfer PR to SRM before final release from ECC.
    can anybody suggest where it is decided that at this particular level of approval PR got transfer to SRM
    we have badi ME_REQ_SOURCE_CUST implemented to send PR to SRM , but this is happening at final release after all the approvals .
    can we trigger this transfer at second level of approval. we have six level of approvals
    is it poosible

    Hi Muthu ,
    Thanks for the response .
    We are on Classic Scenario SRM 7.0.
    We do not want any approvals in SRM ,  we are carrying out Bidding for the PRs created in ECC through SRM. Our Business requirement is as below -
    PR is created , will trigger 8 levels of approval /Release depending on the configuration set up.
    The level 2 approver will decide whether it is to be transferred to SRM or not. Its a manual decision and we have done development for this and it works fine.
    But, by the approval at level 2 itself, system should trigger the XML i. e Transfer PR to SRM.
    And the next levels of approval should be blocked.
    In SRM, we carry out biddng and quote comparision and after that the level 2 person will initiate the next level of approvals.
    My Business wants ,the quotes ,vendors etc when the PR is getting approved by the SCM Heads i.e. Level 3 approver.
    Appreciate your response on this.
    Regards,
    Akash.

Maybe you are looking for

  • How to handle RFC exception in XI

    We have developed a proxy-> RFC scenario. But its not able to handle the RFC exception. In case of an exception the response payload is as below <rfc:Y_BAPI_GET_POSTING_PERIOD.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><Name>RFC_ERR

  • Urgent question on styling forms and best approach to building them in BC

    Hi I need some guidance on forms and adding the styling to them Thsi page I have created in reflow http://www.beadmanso-LS_LP/assets/spstudioslf1.html Here is the same page were I have added a BC Form http://www.beadmansolutions.co.uk/SPStudios_2LS_L

  • Error Message launching lightroom 3

    Help! I had a trail of an earlier version of lightroom. I had to purchase 3.4.1 for my son for school. while waiting for approval, i downloaded trail version of 3.4.1. When it opened up, it contained pictures that are no longer on the computer, I tri

  • AMF Error

    Hi, i have a small flex application, but today not work and show me this error, yesterday was working good, somebody know what happend..? Using : PHP5 AMFPHP MySQL FLEX 2 Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.Ba

  • On my iTunes page it keeps telling me there are updates available but there are not.

    In my iTunes account it tells me i have updates available however when i go to do the updates there is nothing to update. Finding this really annoying and would like to get this fixed. Anyone got any tips?