Two level approval in workflows

Dear All,
I am making a workflow which trigger when the Maintenance Order get RELEASED, the functionality of the workflow is as follows :-
1. A recipient should get workflow in his/her SAP inbox for Approval or Rejection of maint.  Order. release.
2. When  he approves then the maint. Order should go to Second Recipient for firther Approval.
3. After the second approval the workflow Initiator get the main that his request has been  approved.
4. At any point if the approver rejects his Request the application should get back to Workflow Initiator.
Now my first problem is that how can i make the logic for the two level approval.
What i have done is that i have taken one decision Step with the Outcomes
Approve
Reject
On the approve outcome i have added another Decision Step for second approval but htis is not working.
My Second Problem is how can i know that the request has been approved or not. Is there any status Field from where i can know that the request has been approved or not so that i can use condition step.
Please help as i m struck beacause of these two problems.
Thanks!!!!

> On the approve outcome i have added another Decision Step for second approval but htis is not working.
>
Up until this point I was very happy with your explanation, it was thorough, and included the functional need. However, it is quite important to know <u>how</u> 'it is not working'. Are you getting an error when you try to activate the workflow? Is the workflow going to ERROR status during runtime after the first approver has approved? Is there perhaps an error message? Someone might recognize that error message and say 'yes, I had this problem once, and here's how you fix it'.

Similar Messages

  • Two level approval workflow  not working

    Hi Experts,
    I am making a workflow which have two level approval , now the problem is that the first level approver is going only to workflow initiator and if I use any other ID it is not working , it just hangs there.
    Secondly if I send the first approval to workflow Initiator and it approves it then it hangs with second decision step.
    I have made the agent assignment as general task. I have also checked SWU3 and all the things in that are activated.
    Kindly help me in this issue.
    Edited by: Rachit Khanna on Aug 19, 2009 9:51 AM

    Dear Rachit,
    There is a dedicated forum for Workflow i.e. SAP Business Workflow
    Post your thread there, you will get fast response.
    I can suggest you one thing check the agent assignment is done or not
    Regards,
    Chandra

  • OIM 11g r2: SOA  workflows for two level approval.

    HI Experts,
    I am using SOA workflows in OIM 11g r2. The requirement is to have a two level approval for a role (which provisions Oracle DBUM connector at present) : first for Manager and second for the Role owner.
    I have created and deployed the composite with name AddAccessApproval but need to find how to use this for two level approval.
    There is option for serial approval but how to pass it to Role owner.
    Any help in this regard is appreciated.
    Many Thanks,
    Arvind

    I've run into the same error with oim 11gr2 bp04:
    <Mar 18, 2013 11:07:09 AM CDT> <Notice> <Stdout> <BEA-000000> <<Mar 18, 2013 11:07:09 AM CDT> <Error> <oracle.soa.services.identity>
    <BEA-000000> <<oracle.tip.pc.services.identity.jps.AuthenticationServiceImpl.authenticateUser()> authentication FAILED>>
    <Mar 18, 2013 11:07:09 AM CDT> <Notice> <Stdout> <BEA-000000> <<Mar 18, 2013 11:07:09 AM CDT> <Error> <oracle.soa.services.identity>
    <BEA-000000> <<.> Identity Service Authentication failure.
    Identity Service Authentication failure.
    Either the user name or password is incorrect. Check the error stack and fix the cause of the error. Contact Oracle Support Services if error is not fixable.
    ORABPEL-10528
    Identity Service Authentication failure.
    Identity Service Authentication failure.
    Either the user name or password is incorrect. Check the error stack and fix the cause of the error. Contact Oracle Support Services if error is not fixable.
         at oracle.tip.pc.services.identity.jps.JpsProvider.authenticateUser(JpsProvider.java:2337)
    Caused By: javax.security.auth.login.LoginException: [Security:090304]Authentication Failed: User SOAAdminPassword javax.security.auth.login.FailedLoginException:
    [Security:090302]Authentication Failed: User SOAAdminPassword denied
         at oracle.security.jps.internal.jaas.module.authentication.JpsUserAuthenticationLoginModule.login(JpsUserAuthenticationLoginModule.java:71)
         ...Did you find what the issue is? I'm finding scant information about this user named "SOAAdminPassword" (who makes up these usernames :-/).

  • N Level approval custom workflow

    Hi, I have a requirement to implement N-Level approval custom workflow.
    I am aware that there is standard SRM N-Level approval but I need a customized one.
    Could you please provide any documentation/inputs on this.
    Regards,
    Prasad

    Hello,
    Documentation on how to implement an N-level approval workflow? That's very generic; just what are you expecting?
    What have you tried?
    Make a workflow with a loop that checks if any further approval is needed.
    regards
    Rick Bakker
    hanabi technology

  • Two level approval in Cats

    Is it possible to have two level approval of timesheets in cats? If yes How to do that?

    Hi,
    Its not possible to have multi level approval process in current set up of SAP.
    If you look at the current process flow time entry>approval> transfer (depending on the time entry profile some profile does not require approval level and direct transfer to receiving objects).
    considering the present flow, approved time is waiting to be transferred to receiving objects. it means only one level was set up.
    If you want to go for two levels please develop custom transactions from beginning of time entry to transferring. Else you can raise OSS note to have such functionality.
    Thanks,
    Sudhakar

  • Two level Approval WorkFlow

    Hi.
    I have this problem:
    Have two Approval WF which a re triggered deppending on the user type
    The first WF is a one level approval WF, and work Very fine,
    i'ts assigned to a group using an adaptor and when it's approved, the provisioning process is assigned to SYSTEM ADMINISTRATORS and executed success.
    The second WF is a two level (secuential) WF, also is assigned to a group using an adapter and when first level is approved, the Second level task is executed (also assigned to a group via adapter), but when the second level task is approved, the provisioning task is assigned to the same user which approved the second level and the provisioning process involves add/delete values from a lookup, then I receive an "ACCESS DENIED" error.
    I've been thinking about adding a third level and assign it to XELSYSADM, but think that is not a pretty standard solution.
    a way to draw the second WF is:
    task 1 Response = Approved then execute Task 2
    Am I missing something?
    Should I use Task Dependency instead Executing the second task basen on the first Task Response ?
    Thank You.

    That's correct.
    The first approval level appears to be finished by XELSYSADM even if its approved by another person (ie: User1)
    The second approval level appears to be finished by "User1", but User1 can be one of aproximately 50 people, and do not want to give object write access to so many.
    So opted for add a third level of approval and add a TCCompleteTask and assign it to XELSYSADM.
    So XELSYSADM now executes all the Provisioning process .
    Thank You Very Much.

  • User as two level approver

    Hello all,
    I have a problem where user is holds first and second level approval position in hierarchy. Shopping cart with two step approval (WS10000031). Starting condition is that user do not belongs to approver group.
    Example:
    ORG1 - approver USER1
    subordinates of ORG1
    ORG2 - approver USER1, requestor EMP1
    ORG2 - approver USER2, requestor EMP2
    Case1:
    requestor is EMP2 approvers are:
    frist step USER2
    second step USER1
    Case2:
    requestor is EMP1 approvers should be:
    first step USER1
    second step USER1 (again).
    Of course workflow cannot set USER1 as second step approver in case2.
    How this can be achieved, or is there any other solution (i.e. change in starting conditions)
    TIA
    Gordan

    Hello Pierre,
    I am aware of limitations in note 683782, and this is not possible if you are trying to do it manually. But I made it possible via ALE with HR. I do not know if this is bug or feature in the system :o))).
    In HR it is possible that user belongs to several positions (based on percentage) and this is correctly transferred to SRM 4.0 (EBP 5.0).
    I can even post a picture somewhere if you would like to see or mail it to you. :o)))
    We are starting with HR integration which will send positions and users with infotype 0105/0001 to create BPs and EBP users.
    For now, with manual org structure, we are using copied users as forwarding agents, but after integration start this will not be possible anymore because all of the settings coming from HR to SRM.
    Gordan

  • 2 level approval for workflow

    Hi all,
    I am supposed to make an EP workflow for 2 level approval for absences or leaves. I am using a copy of workflow WS12300111. I am able to get the single level of approval, but not the second level. When the request goes to the second approver ( which is the supervisor of first approvar), it shows the leave requests of the first approvar and when I check the workplace of the employee who applied for the leave, his leave has the status 'approved'.
    In other words, when the first supervisor or approvar approves the request, it gets approved and second approvar has no option to approve it again.  Please suggest what to do?
    In my tasks for approval, I am using the class - CL_PT_REQ_WF_ATTRIBS and the method APPROVE. Is that correct???
    Is there any other standard workflow which I can refer to?
    Thanks

    Dear Raja Sekhar,
    I create a sampel program with the following code in SE38 and put in the following code. However, it seem that it does not work and the status did not get updated.
    Do you know what is the problem?
    DATA:
    request TYPE REF TO if_pt_req_request,
    event   TYPE tim_req_xfer_event VALUE cl_pt_req_const=>C_REQTRANS_APPROVE,
    req_id  TYPE PTREQ_HEADER-REQUEST_ID value '48561480F033007EE1008000C0A8D282',
    status  type TIM_REQ_STATUS.
    CALL FUNCTION 'ENQUEUE_EPTREQ'
      EXPORTING
        mode_ptreq_header = 'E'
        request_id        = req_id
      EXCEPTIONS
        foreign_lock      = 1
        system_failure    = 2
        OTHERS            = 3.
    CALL METHOD ca_pt_req_header=>agent->get_request
      EXPORTING
        im_request_id = req_id
      IMPORTING
        ex_request    = request.
    CALL METHOD request->initiate_state_transition
      EXPORTING
        im_transfer_event    = event
       im_event      = event
       IM_RET_VALUE  = 0
      IMPORTING
        ex_new_status = status.
    CALL FUNCTION 'DEQUEUE_EPTREQ'
      EXPORTING
        request_id = req_id.
    Thanks
    Regards,
    Bryan

  • How to retrieve comments from one OfficeTask activity and use them in another OfficeTask activity for Multi level Approval sequential Workflow

    I'm designing a sequential site workflow using Visual Studio 2010 for Project Server 2010. In my case, I have following 6 stages in the workflow:
    1. InitialProposal Stage
    2. Approval Stage1 -- Needs approval from Approver Project Security Group Members1
    3. Rejection Stage
    4. Approval Stage2 -- Needs approval from Approver Project Security Group Members 2
    5. Execution Stage
    6. Completed Stage
    Requirement is workflow should move to Approval stage2 from Approval stage1  if approved by all members of Approver Project Security Group1and it should move to Rejection Stage even if a single member rejects it.
    Workflow should move from Approval Stage2 to Execution Stage if approved by all members of Approver Project Security Group2 and it should move back to Approval Stage1 on rejection by a single member of the group.
    I'm using inbuilt PSWApproval content type and OfficeTask activity for creating approval task for the group members at both stages.
    On task rejected in Approval stage2, task will be assigned again to Approval Stage1 and I want to show comments given by members of Approver Project Security Group2 to the members of Approver Project Security Group1 with this assigned task
    but I'm not able to retrieve comments from officeTask activity.
    My question is where exactly these comments are saved? how can we retrieve them and use them in another officetask activity? If this is not possible then what is the possible solution for meeting above mentioned business requirement?

    Hi Paul,
    Thanks for your suggestion.
    By comments field I'm assuming OfficeTask.Comments field. Problem is, this field is always null. I tried accessing this field in CheckExitCondition activity as well as in OnTaskCompleted but in both the cases, it was null only(I wrote comments while approving
    the task).
    I used a code activity within OnTaskCompleted activity and following code for accessing Comments and Description fields:
    public string officeComments;
            public string officeDescription;
            private void TaskCOmplete(object sender, EventArgs e)
                CodeActivity Sender = (CodeActivity)sender;
                Microsoft.Office.Workflow.Actions.OfficeTask ofctask1 = ((CompositeActivity)Sender.Parent).Parent as Microsoft.Office.Workflow.Actions.OfficeTask;
                officeComments = ofctask1.Comments;
                officeDescription = ofctask1.Description;          
    Please tell me if I'm doing anything wrong here, I'm very new to Workflows. Also, do I need to set any specific property of officeTask for retriving comments?
    Thank you

  • Two level approval in CCM

    hello all,
    we would like to have approval of the same item from two different persons (i.e. procurement and financial department) in catalog before publishing.
    Is that possible in CCM 1.0? or CCM 2.0?
    TIA
    Gordan

    Hi,
    If you want to split approve authorization on different catalog type (01 : procurement and 02: supplier), one way is to duplicate /ccm/catalog_approver role and define in
    authorizations:
    Cross-application Authorization Objects -> Access Restrictions for Catalog Design Center -> Access Restrictions for Catalog Design Center -> Catalog Type
    instead of * value set manually 01 or 02.
    Dunno if it works but i hope so
    Regards,
    Bertrand

  • Two level workflow approval

    Hi Experts,
    I am making a workflow which have two level approval , now the problem is that the first level approver is going only to workflow initiator and if I use any other ID it is not working , it just hangs there.
    Secondly if I send the first approval to workflow Initiator and it approves it then it hangs with second decision step.
    I have made the agent assignment as general task. I have also checked SWU3 and all the things in that are activated.
    Kindly help me in this issue.

    How are you giving the ID , I mean are you trying to specify the SAP username, if this is the case then try to append US to the user name.
    I mean if you like to send the wokritem to User ABCD then the expression should have the below value USABCD

  • 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

  • ESS leave request two-level workflow

    Hi All,
    We have a requirement for a two-level ESS leave workflow and need to know what would be the approach which can be taken to modify the standard 12300111 workflow.
    The status should be as follows
    STATUS                                                STATUS                                                  STATUS
    (SENT)                      Approves              (PENDING)                 Approves                (APPROVED)
    First Level approver -
    >   Second level approver -
    >
    As we can see, we need to add a new status namely, PENDING to the backend PTREQ tables. Can anyone please provide some kind of leads/info on this.
    Thanks and Regards
    Reshma

    Hi,
    You can take a copy of that standard workflow 12300111 and build your logic accordingly.and give that workflow number in SPRO settings.
    Kind Regards
    Hari SankarM

  • Invoice Parking - 2 Level Approval Workflow not working

    Hi,
    I am having trouble making the two level approval work for invoice parking functionality. I have maintained Release Level = 2 and Sub w/f = WS10000053.
    Rest I have configured as detailed in this link http://www.thesapconsultant.com/2008/09/simple-sap-workflow.html
    When i test the above workflow from SWDD it is working fine. i.e., first one user gets the workitem and after he approves/rejects, it is going to second user. This proved that the user assignment i have maintained is correct.
    But when I park the invoice (using "Save As Completed" button) using FV60, it only going to one user. After he/she approves/rejects it is not going anywhere. I checked in SWI1 transaction where no open tasks (error or hanged etc) are seen.
    Can anyone please advise if i am missing anything?

    Dear Rachit,
    There is a dedicated forum for Workflow i.e. SAP Business Workflow
    Post your thread there, you will get fast response.
    I can suggest you one thing check the agent assignment is done or not
    Regards,
    Chandra

  • Multi Level Approval Workflow in OIM 11g R2

    Hi everyone,
    I want to develope a two level approval workflow in OIM 11g R2.
    When I intent to provisioning a resource or an entitlement, this workflow will be executed.
    This workflow is two level (serial approval)
    First approver is manager of user, second approver is a custom group.
    Is there any sample workflow like this?
    How can I develope this?
    Thanks.
    Best Regards.

    Hi, you can find the same in oracle assets link.
    Download the guide for 11GR2.
    http://www.oracle.com/technetwork/middleware/id-mgmt/overview/workflow-development-1868162.7z
    Thank you,
    Shashi

Maybe you are looking for