How to do 2nd level workflow

Hi Experts,
                I have done one workflow of first level. Now if approver approves then it needs to be sent to the 2nd approver based on first approver's action. If 1st approver approves it has to go to 2nd level otherwise it has to go to initiator.
    Please guide me how can achieve this 2nd level process.
Thanks
G.s.naidu

Hi,
Generally in standard workflow on reject action workflow will be closed. so in standard workflow u wont get this functionality.
For this requirement,
1. First do looping on Approver 1 user decision task by creating loop step.
2. If Approver 1 approves the request, then set one flag = 'X' by providing container operation step.
3. Create termination condition flag = 'X' and two outcome 'true' and 'false' in loop step. if flag = 'X' ( Approver 1 approves the request ) then loop step terminate and outcome will be 'true' and it will come out of the loop and goes to approver 2.
4. If Approver 1 reject the request then this time flag value is not 'X' means it will check termianting condition in loop step and follow output 'False'.  Now in this branch provide one activity or mail step as per your requirement & in which assign initiator as an agent. so it will goes to initiator if Approver 1 reject the request.
Hope this will help you now.
Smit

Similar Messages

  • How dynamically get an agent f a level-by-level workflow after PO changed

    Hi  all:
         I'm trying to create a level-by-level workflow after PO  changed, but how dynamically get an agent and how assign it to
    task dynamically?
        Thank you very much!!!

    Hi Sony,
    There are diffrent ways to get agent level by level....it depends from where you are getting the agents.
    1>Suppose you have 2 level PO worklfow and my agents are stored in some custom table:-
        level1 -- agent1
        level2 --agent2
    2> You can create two attributes in your BO i;e zgent1& zagent2.
    3> Inside the attributes zagent1 u will get the actual agents from custom table by putting code
       i.e select agent1 into zagent1 from zcus_tab where level = 1.
    4> Inside the attributes zagent1 u will get the actual agents from custom table by putting code
       i.e select agent1 into zagent1 from zcus_tab where level = 2.        
    5> Now generate the BO...and test it ..u will se the user id of agents in the attributes populated.
    6> Now bind these both attributes to workflow container.
    7> Use attribute ZAGENT1 for level 1 approval task in worlfow.
    8> Use attribute ZAGENT2 for level 2 approval task in worlfow.        
    The values will comes dynamically from custom table...which u will maintain.

  • How to restrict from creating the  Network for  1st & 2nd level  WBS

    Hi All,
        In our project structure we have up to 5 levels of WBS, In some cases we have creates  3 level also . Now we want to restrict creates Network for first two level WBS  , actually we want to restrict user to Create PR for those WBS so if we restrict them from creation of Network for 1st &  2nd level then they not able to create PR for same  .
    Thanks,
    Virendra

    Hi Virendra,
    I can suggest you other way round solution.
    If you are sure that those two WBS will not take any actual or commitment cost, then its better to NOT to mark those WBS elements as Account Assignment Element. I mean, if you do not set the indicator of Acct. Assignment Element (Untick Acct Assignment Element) on those WBS, then user will not be able to create Networks on those WBS Elements. Try this on your development or quality client and let me know if it works.
    If it works, then you just need to disabled the Acct. Assignment Element indicator for those two WBS element and you can achieve that through substitution and field selection of WBS as well.
    OR
    Just look at OPSG settings at tab component. Just look if that can solve your purpose because your requirement is to stop PR from those WBS element. (I am just wondering if you can stop user from creating/change material components from those WBS-Networks)
    OR
    Go for User Status and set it to on those WBS Elements. Object Types will be Networks and Network Header.
    OR
    Try to achieve a validation or substitution where in you can mark Res./Pur. Req as 1 (Never) only for those two WBS elements. In this way user cannot create PR on those two WBS elements.
    Regards,
    Amit

  • Link between Delivery Header & Sales Order Item for extraction to 2nd level

    Hi Guys ,
    I am having a requirement that need to pull the following data to 2nd level DSO
    1.  Delivery Header Data
    2. Sales Order Item data. ( Sales Document, Item, Item RDD, Material)
    So I am planning create a 2nd level DSO on top of Delivery header and need to pull the sales order ITEM level data ( Sales document , Order ITEM, ITEM RDD date , Material)  through start routine u2026
    How can I pull the Sales Order Item data through start routine?  i.e I need the link between Delivery Header & Sales Order Item Data .
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).
    Thanks
    Edited by: krismady on Sep 22, 2010 2:26 AM
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).

    Hi Krish,
    You can use VBLEN (Sales Document) to link Delivery header DS (2LIS_12_VCHDR) and Delivery item DS (2LIS_12_VCITM). Now In delivery item DS (2LIS_12_VCITM) you have VGBEL (Reference doc.) and VGPOS (Reference item) which is nothing but sales order document number and sales item in Order item DS (2LIS_11_VAITM) .
    So you need to link in above way to get other values in your DSO.
    It is proven method.
    Thanks,
    Uday Shankar.

  • Issue in N level workflow of shopping cart

    Hi all,
    SRM5.0 and ECC5, using ECS scenario
    We are using the N level workflow ( SC approval workflow and not item level workflow) with the BADI for determining the approvers of the shopping cart.
    The following are issues faced during rejection:
    1. When the 1st approver rejects some of the line items and approves others, The SC is sent back to the requester or. the requester accepts the changes, the SC instead of going to the next level of approvers gets approved.
          I have debugged and found that the actual index is set to 2 and the next level of approvers are determined correctly in the BADI, once it is out of the BADI, something happens and the SC is approved and it doesn't go for approval.
    2. When the 1st approver approves all the line items and the 2nd approver does a partial rejection, the SC is sent back to the requester and once the requester accepts the changes, the workflow restarts and the approvers are redetermined again.
    For the 2nd issue, if its a standard process, Can onyone provide me with a document or a OSS note which can be used for substantiating it. Does this behavior correspond to the back and forth process of N level workflow?
    Thanks and Regards
    Kishan

    Hi Munna,
    The code just determines the approvers for each level, this works fine when I debug but it changes after the control comes out of the N level BADI.
    Is there any other check which I need to do?
    Regards
    Kishan

  • How to get ProcessInstanceId after Workflow KickOff. Am able to get the InvocationId

    How to get ProcessInstanceId after Workflow KickOff. Am able to get the InvocationId.
    This is the Snippet :
    InvocationResponse response = myServiceClient.invoke(request);
    invocationId = response.getInvocationId();
    System.out.println("ClientParams="+response.getClientParameters());
    System.out.println("OutputParams="+response.getOutputParameters());
    System.out.println("invocationId="+invocationId);
    JobManager jobManager = new JobManager(myFactory);
    JobStatus jobStatus = null;
    JobId myJobId = new JobId(invocationId);
    jobStatus = jobManager.getStatus(myJobId);
    System.out.println("Job Status: " + jobStatus.getStatusCode());
    if (jobStatus.getStatusCode()==JobStatus.JOB_STATUS_COMPLETED)
    System.out.println("INVOCATION COMPLETED SUCCESSFULLY!");
    InvocationResponse jobResponse = jobManager.getResponse(myJobId);
    jobManager.terminateJob(myJobId);
    jobResponse.getInvocationId();
    Process id need to be fetched after Workflow Kickoff
    Can anyone please help me..?

    There are 5 process level variables that get populated when you invoke a process. They are
    /process_data/create_time
    /process_data/creator_id
    /process_data/id
    /process_data/status
    /process_data/update_time
    Within the xPath builder you can differentiate them from other process variable because they are italicized.
    Now you can create your own process variable - let's say called pid - and have it contain the process id which is stored in /process_data/id.
    The xPath would look something like
    /process_data/@pid = /process_data/@id
    If the pid variable is marked as an 'output' variable, then it will be returned as part of the InvocationResponse.
    Jasmin

  • 2nd level of Drill Down

    Hello,
    I am making the Drill Down configuration.
    1st Level is
    - Area
    2nd Level is
    -Branch
    3rd Level is
    -Shops
    After I make above configuration, I test this on the BI Answers.
    ex)
    Area
    New York
    Tokyo
    Paris
    1. I click the column "Tokyo".
    2. Then the report will show like this
    Area   Branch
    Tokyo  Asakusa
          Ginza
    and I can click "Tokyo","Asakusa" and "Ginza".
    But at this point, I don't want to let users click the "Tokyo" column , but only "Asakusa" and "Ginza" columns.
    Is it possible by the configuration of the BIEE Repository or Answers ??

    Hi,
    I dont think so it is possible.
    But If you click "tokyo" only you can see "Asakusa" and "Ginza".How would you stop user to not click tokyo if you want to get to other step to "branches".
    If you want to achieve that directly create a dimension for Branch and shops.So user will see branches and shops and make it as a separate sheet for that specific user and give him permissions.
    Hope it helps you.
    By,
    Kranthi.

  • SP2013 VS State level Workflow error

    Hi All,
    I have my application running smoothly which uses 2 stage state level workflow, in workflow some basic calculations happening and assign tasks to users as task progress, after first stage of workflow i get this error message in log file on button click, 
    Stack trace:   
    at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(SPWeb web, Boolean bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames,
    Object& objAttachmentContents)   
     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean
    bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents, String filename, Boolean bPreserveItemUIVersion)   
     at RedMills.Intranet.Workflows.Layouts.RedMills.ExpenseManager.ExpenseApprovalForm.Submit_Click(Object sender, EventArgs e)   
     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)   
     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
     at System.Web.UI.Page.ProcessRequest()   
     at System.Web.UI.Page.ProcessRequest(HttpContext context)   
     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   
     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)   
     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)   
     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)   
     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)   
     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   
     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   
     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)   
     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)   
     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   
     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
    could not figure out what the error is , please help 

    Hi,                                                             
    If you want to know more about how the error occurred, it is recommended to debug the workflow to get more details about the error.
    Here are some links about how to debug workflow in SharePoint 2013 for your reference:
    http://www.c-sharpcorner.com/UploadFile/shyjumohan/how-to-debug-workflow-with-workflow-manager-1-0-and-visual-s/
    http://ranaictiu-technicalblog.blogspot.in/2013/03/sharepoint-2013-workflow-debugdiagnosis.html
    http://www.andrewconnell.com/blog/SP2013-Workflow-Advanced-Workflow-Debugging-with-Fiddler
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to Implement N-Level Approval for Bid,Live Auction,PO,Contract ?

    Hi Experts,
                  I am new to SRM 5.0. My requirement is how to implement N-Level Approval for Bid, Auction, PO and Contract? Which steps should I follow for        N-Level Approval? Can any one send me sample code and name of BADI where I have to implement the code.
    Abhijeet Panse

    Hi
    Please check for <b>BBP_WFL_APPROV_BADI</b> using SE18 transaction for relevant Code as well and standard SAP documentation.
    Related sample code and other useful pointers ->
    WS14500015 is not working for Multilevel approval
    Re: SRM / Shipping cart
    Re: N Step Approval BADI - BBP_WFL_APPROV_BADI
    Re: N-step BADI workflow
    http://help.sap.com/saphelp_srm50/helpdata/en/8b/4fa9585db211d2b404006094b92d37/content.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/2c/e68d406b305537e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/17/40a86c773d6c41801d78af1a34b90f/frameset.htm
    Multiple Implementation For BBP_WFL_APPROV_BADI
    Re: Help needed on N-Step Approval WFL for SC
    Re: N-Step 14000109 workflow - Unable to identify Approvers
    Do let me know.
    Regards
    - Atul

  • How to add Navigation Level to the Portal?

    Hi All,
    How to add Navigation Level to the Portal?
    for example:
    1st Level is the Role
    2nd Level is Worksets/Folders
    I want that the 3rd Level will contain more Worksets/Folders and will be under the 2nd level and not in the "Detailed Navigation".
    I tried to change the "Number of display levels" in the framework page but it didn't help.
    Attached a picture with the required result (of course, for my roles)
    http://img457.imageshack.us/my.php?image=toplevelnavigation7xy.jpg
    Thanks, Omri

    Hi Omri,
    in fact, almost one year ago we did something similar on a project basis, but as already stated here, this was done by modification. What we did was providing a dropdown box within the masthead, containing the first level, and the second and third level now have been displayed where normally the first and second level are. That was a ten days solutions, some very fine granulated work. But nice
    Anyhow, nowadays this can be more easy using the LightFrameworkPage (if that's OK for your purpose) and the Navigation Tag Library, see http://help.sap.com/saphelp_nw04/helpdata/en/42/f35146a7203255e10000000a1553f7/frameset.htm for details.
    Hope it helps
    Detlev

  • N level workflow. item level approval

    Hello,
    How does item level approval work in N level workflow ?
    1) Suppose the shopping cart has 3 items then does the workflow proceed only after all the three approvers approve their items ?
    2) Does the approval workitem stay in the approvers inbox will the time all are approved ? and if yes does the approved workitem appears differently ?
    3) Does the approver see only his item or all other items too? if he does then are the other items greyed out?
    4) What happens if or more of the approvers changes the contents of the item or rejects the item? Does the entire shopping cart again goes to the requestor and what happens to the other approver workitems ?
    5) Is it possible to have shopping cart level approval workflows as well for N level workflow ?
    Where can I find this information in sap help?
    Kindly help its urgent !! thanks !!

    Hi Rita,
    Please see the links,it will help you.
    http://help.sap.com/saphelp_srm30/helpdata/en/8b/4fa9585db211d2b404006094b92d37/content.htm
    This will answer most of your questions
    http://help.sap.com/saphelp_srm30/helpdata/en/5a/af5eff85d011d2b42d006094b92d37/content.htm
    Regards,nishant

  • Limited view on 2nd level Navigation Bar

    Hi
    Is there a way to assign permission on a page on the 2nd level navigation?
    I explain:
    First level has teh Entry Point "MY Work".
    Second Level has the pages assigned to My Work
    "Page A"   "Page B"   "Page C"
    Currently, I assign My Work role to everyone, so they will view all 3 pages.
    PROBLEM:... I want "Page C" to be under "My Work" BUT only be viewed by selected users.
    Can this be done?
    How else can I do this?
    Help needed urgently!!
    Appreciate any info
    Thanx
    RD

    Hi RD,
    two possibilities:
    a) By merging roles (the standard way). See http://help.sap.com/saphelp_nw04/helpdata/en/53/89503ede925441e10000000a114084/frameset.htm for details. Experts would have roles "Everyone" as well as "Expert".
    b) By delta links: You create a workset as entry point "MyWork" containing Pages A and B; this workset is assigned to Role Everyone. Than you create a Role "Expert", assign the workset "MyWork" as deltalink (already containing pages A and B), now adding page C. Experts would have Role "Expert" only.
    Hope it helps
    Detlev

  • 2nd level navigation

    Hi Community,
    we have a fpn working here with RRA. Filter_id's are implemented in the consumer portal desktops. Navigation is built by roles
    RoleA (Entry Point, Filter_id = A, Merge_id = x)
    - RoleB(Entry Point, Filter_id = A, Merge_id = x)
      - FolderA
      - FolderB
    - RoleC(Entry Point, Filter_id = A, Merge_id = x)
      - FolderC
    If i call a desktop which has no elements with the filter_id all entry points appear, which means 1st, 2nd level and detailed navigation (correctly). So i guess its no permission problem. But if i call a desktop with filter id "A" only first level appears.
    I tried
    - different merge id's to merge all under RoleA (e.g. RoleA merge_id = x, RoleBC merge_id = xd)
    - not to filter second level
    - defining folder as entry points and roles not
    Someone knows how to merge and filter them correctly? Help please.
    Thanks & Regards

    Hi,
    Check this weblog.
    EFP: Working with the new Taglibs - Part 3
    Reward useful answers
    Regards,
    Ganesh N

  • Installer (2nd level) hangs at 7% then quits

    I've recently updated to X.8.3 (from X.6.8) via a complete erase and install. When I go to a web page with Flash, I'm told to update my Flash. I download the installer and then start the installer up. The Flash window shows that the 2nd level installer is downloading and quickly goes to 7% then hangs. After a few minutes, the windows goes away, no message, no nothing.
    When I go to the Adobe help pages, they tell you to uninstall what you have (I can't uninstall what hasn't been installed), it tells me to be sure I'm downloading the latest version (I have), and as I keep on trying to dig deeper into adobe support, I keep on getting turned right back to the same page that isn't helping me at all. I feel like I'm in an old Twilight Zone episode.
    So how can I install Flash on my Mac Pro running X.8.3 into Safari and FireFox?
    Thanks,
    Gary

    Is it possible the directory was corrupted so the Mac can't access the drive?
    That is a definite possibility. If that is so, the latest version of Disk Warrior should be able to rebuild and replace your directory.
    How could aborting the upgrade when I did cause a HDD failure?
    I don't think I said that it did. It may be just coincidental. HDDs do fail in time. The average life is 3 to 5 years with 1 to 3 per cent failing in year one. The platters on these drives have a thin coat of lubricant which, with age and heat thickens and becomes gummy, and spin out to the edges of the platter with centrifugal force causing sticking heads. In addition the high rotational speeds and the fact that the bearings are literally floating in lubricant leads to wear and instability. So, replacing an HDD after three or four years even if it is not troubling, may not be a bad idea, although many of us wait until we need to do it.
    I've ordered the latest version of Disk Warrior... and I pray it launches without a kernel panic.
    I hope that it does, too, and that it is able to rebuild and replace your directory.
    Other than that do I have any other options?
    Archive and Install or a complete reformat, erase and reinstall.
    cornelius

  • ESS leave request 2 level workflow??

    Hi friends,
    Does anyone know how to create a 2 level workflow in ESS leave request?? im not able to find any solution for this.
    looking forward for your reply...
    thanks in advance
    sudhir

    Hi Sudhir,
    You dont have to create a new status for such scenarios. The Java WD Leave Application lists all the Leave Requests that are in SENT status. So after the first approval is done, the status is set to APPROVED in case if it is approved. Now, we have to reset it to the status SENT if you have one more level of approval.
    This can be achieved in 2 ways.
    1) Changing your Standard Class's coding as suggested by SAP in the above thread.
    2) You create one custom BOR with one method - RESETSTATUS - Which resets the status of the Leave Request back to <b>SENT</b>. You can get the required coding from <i>APPROVE</i> method of the above mentioned class.
    I followed the second method.
    I hope this should clear our problem.
    Regards
    <i><b>Raja Sekhar</b></i>

Maybe you are looking for

  • OK_CODE of Double Click Event

    Hi all, I have created one module pool ... Now when i check OK_CODE of double click event ( By debugging /H ) ,its showing SV. So is this Fix? means all program having same OK_CODE for double click because in my second module pool also it showing SV

  • How to display entire name (0calmonth2) of a filter value into my workbook

    Hi people: I have 0calmonth2 filter value at the begenning of my query. When interval period is selected, in my query displays the abreviation of the period ("Jan-Jul").I have filled the text values for 0calmonth2, but the problem stills. How can I m

  • Problems with capturing in adobe premiere 6.5

         I am using the following PC: Intel P 4 2.8 Ghz, XP professional SP 3, 1.5 GB RAM, HDD SATA 500GB 7200rpm, GPU NVidia 5200, capture device Pinnacle DV 500DVD, and using Adobe Premiere 6.5 software.      Thus, while capturing the uncompressed digi

  • Camera Updates

    Hello Adobe world, With the use of LR I am a new member of the Adobe family. So I really don't know the answer to this question, please bear with me.... Thanks. How does Adobe roll out new camera support for ACR and now LR? Is it with program updates

  • Quick Q - disable distinguishing of the case in letters (such as a vs A)

    Quick Q What's the easiest way of disabling character register recognition (I want a999 return a999 as well as A999)? Thanks something like - Strong Datatype enforced setting - i remember seeing it either in xml or in connection pool settings Edited