Auto Approve of Workflow in Seconds

Hi Experts,
I want to auto approve workflow based on certain conditions.
But the approval should be in seconds instead on MIN.
please guide me.
-Regards
Rohit

Hi,
What is causing the delay? If approval is done through an event and you have the event queue active, you might consider not using that functionality (I have stopped using the event queue for some time now)
Also you cannot auto approve workflow, that doesn't make sense. You can only control the proces flow of tasks used in the workflow.
Kind regards, Rob Dielemans

Similar Messages

  • How I can auto approve pending workflow process, once month end proces

    I have created workflow process for timesheet approval.
    I want to auto approve all pending timesheet (i.e (default notification timeout is 7 days) notification send to approver, but still not approved) in Oracle workflow Process, when Month end process started
    Month end process will initiate a flag in pending timesheet header table with process started

    I am not sure if I understand your requirements completely.
    1) If your requirement is that all the pending timsheets have to be approved by month-end (not really when month-end process starts) then set the Timeout of the notification to Absolute Time of end of that month... so that by the end of the month the background engine will pick it up.
    You may design the approval notification within a Sub-process with RESULT attribute of Approve / Reject. Design a Timeout transition for the Notification Activity within the sub-process that will go to an END activity that has Approve result. Thus once the notification times out, the sub-process will complete with result APPROVED.
    2) One other way is to respond to OPEN notifications using APIs.
    WF_NOTIFICATION.SetAttrText(nid, 'RESPOND', 'APPROVED');
    WF_NOTIFICATION.Respond(nid);
    You should have queried up all OPEN notifications for Timesheet approval and do this in a loop... which could be time-consuming sometimes.
    Thanks

  • Auto Approval Workflow for leave request Management.

    Hi Guru's,
    I am working on leave request Workflow i.e WS12300111.
    Now i have to implement the auto approval of workitem if the approver doesnt take any action in 3days.
    1. i have implemented deadline monitoring i.e in Latest end tab
    refer date/time :- Expression Date : %DATUM% Time : %UZEIT%    3 days Action : Modeled  Display test
    Outcome : Reminder Mail
    In outcome tab i have activated Processing obsolete.
    i have created an activity if the deadline is reached so that it should auto approve the workitem.
    in that activity i have created a copy of class CL_PT_REQ_WF_ATTRIBS created 1 method auto_approve. and used function module PT_ARQ_REQUEST_EXECUTE so that it will change the status from SENT to APPROVE.
    But when i apply leave in portal , workflow starts but it doesnt reach to branch auto approve after the deadline is reached.
    Please suggest is the deadline monitoring implemented correctly or not .
    whether the auto approve method used is correct or not
    or there is another solution to this
    I have checked the SWU3 setting and it is green.
    Please Advise
    Thanks in Advance
    chitis

    Hi Rick ,
    Thanks for the Reply.
    But is there something wrong in deadline monitoring i have maintained for the task.
    could you please share the procedure for implementing deadline monitoring specific to auto approval of the workitem.
    thanks in advance
    chitis

  • Sharepoint 2013 designer workflow auto approve task after due date is passed

    sharepoint 2013 designer workflow auto approve task after due date is passed.
    Could we approve the task automatically once due date is apssed?
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    If your task is created by a workflow (first) and stored in a separate task list, you can create another workflow on this particular task list, then each workflow instance would check if current task is expired (not approved/rejected), then
    determine if update current task's "Task Outcome" as approved (and update task status as complete), and then create a retention policy on this paricular task list to trigger the workflow on due date .
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
    Daniel Yang
    TechNet Community Support

  • Auto approval process in workflow

    Hi,
    We are implementing customized workflow with approval/rejection process
    There should be a auto approval process when agent does not complete task within 3 days.
    When the approval is done then we are sending emails and performing some actions.
    When the auto approval happnes after 3 days we do not want the workflow to terminate but it should end.
    Kindly suggest if it is possible.
    Thanks & Regards
    Rahul

    Rahul,
    You can use a 'modeled deadline' to set the original workitem to obsolete after (say) 3 days.
    There is a wizard available to help you with this (in ECC 6.0).
    Then, on the obsolete outcome branch, you can add a new (background) step that approves
    the item automatically. (This is assuming you have an 'approval' method available for the object).
    hope this helps
    Paul Bakker
    Hanabi Technology

  • Problems with Auto approval workflow (WS 10000060) for shopping carts

    Hi SAP Network community,
    I have got a problem with the auto approval workflow for shopping carts.
    Basically the workflow approves the shopping cart once it was created.
    But then the related Purchase Order remains in Status held. If the PO gets ordered manually then it is not transferred to the R/3 backend system.
    For testing purposes also the one step approval workflow was activated. If the shopping cart gets approved by clicking into the detail approval screen (not by approving through the green tick box in the shopping cart overview) then the PO gets ordered and transferred to the backend system as normal.
    But if the shopping cart gets approved by using the green tick box in the shopping cart overview then the same problem occurs as described for the auto approval workflow.
    The system version is SRM 4.00
    Did anybody have the same or similar problems with the auto approval workflow and what could be the reason for this problems.
    Thanks in advance,
    Robert

    Hi
    Which SRM Workflow Scenario are you using (IS it Item level workflow or Shopping cart level Workflow) ?
    Are you using customized SRM Business workflow or Standard SRM Workflow ?
    <u>Please go through these links as well.</u>
    http://help.sap.com/saphelp_srm50/helpdata/en/2c/e68d406b305537e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/eb/289f4099852e54e10000000a1550b0/frameset.htm
    Incase you are using Standard SRM Workflow, please raise an Customer OSS message with SAP at the earliest.
    Regards
    - Atul

  • Code for Custom Workflow to auto approve the task

    Hi All,
    Can any body help me with the java code to complete the Auto Approval Task.in OIM 11.1.1.5.
    Thank you

    1. Get the requester information from the payload. (In the Oracle sample the request Id is brought from the payload, similarly you can get the requester id and etc).
    2. Get the target user information from the payload along with target user's manager.
    3. Set the data from the two above into global variables and copy them into your .task variables.
    4. In the task use two serial stages and inside the stage use the skip rule condition with the variables from step 3.
    -Bikash

  • Auto Approval EBP Purchase Order is not updating the status at the header

    Hi There ,
    We are facing an issue in EBP auto approval PO ,
    The process level schema is set to Auto Approval  (Standard 9CBUS2201_EX01_55)
    During the PO creation , the standard schema is triggered and it gets approved .
    The status of the PO in the Approval Tab is showing as Approved .
    But in the docuemnt level the status is still Awaiting Approval .
    While checking in SWI1 we came to know that an error has happened in the Task TS40007972
    and the Guid ID of SRM Purchase is initial that has made the status(EV_STATUS) as initial .
    The ERROR is from the below class & method.
    Class: /SAPSRM/CL_WF_PROCESS_MGR_SBWF
    Method:GET_PROCESS_DECISION_STATUS
    Can anyone suggest to overcome this issue .It will be very usefull if anyone could suggest debugging possibility if any .
    Regards,
    Arun.

    Have you tried notes?
    1625513 - Workflow without approval is Awaiting approval status
    1724251 - Workflow log error: CREATE_DECISION_SETS cannot be executed

  • Approval Notification getting auto approved.

    Oracle Gurus,
    I am stuck with this workflow and need you urgent help. Below is the problem description:
    I have created a custom workflow to send notification to certain level of approvers for there approval. Attached is the screenshot of the workflow. Let us say there are 5 approvers: MGR1 -> MG2 -> MGR3 -> MGR4 -> MGR5
    When the workflow is invoked the notification goes to MGR1 correctly, when MGR1 approves it goes to MGR2 notification gets auto-approved (skips MGR2) and goes to MGR3. When MGR3 approves it goes to MGR4 and gets auto approved as before and goes to MGR5.
    It's skipping alternative approvers by auto approving the notification!!! Any idea as to why? The notification's "On Revist" property is set to "Loop".
    Any kind of assistance is greatly appreciated.
    Thank you.
    Regards,
    Rakshith [https://lh3.googleusercontent.com/-FwWw20hnUWo/TtZYrOM4_yI/AAAAAAAACFQ/nBN2dtiWbZc/s912/WF.jpg]

    This is related to either your setup or an extension. There must be a hole in your logic if you are using an extension. If not, your Workflow may be setup to do "Go One Stop, then Go Directly." This flow will check for an approver, if it does not exists at the immediate supervisor level, it will autoapprove the Expense report and then flow directly to AP.

  • Auto Approval in PO

    If you have setup PO Workflow approval. Is it possible for a user, if setup as an approver, any PO that he creates can be auto approved? Considering that the amount is within his limits.
    Thank you.

    Hi,
    It's possible by using user ID as one of the determining factors in release strategy setup.  However, I am sure, it is against audit practice and could be even a SOX issue.  Are you sure if this came up from your business team?
    Regards

  • Expense's getting Auto Approved and Invoiced.

    HI
    Few of the Expense report/s are getting Auto Approved and Invoiced in the system.
    Due to which a valid GL accoutn combination is not generated.
    Regards,
    V.

    This is related to either your setup or an extension. There must be a hole in your logic if you are using an extension. If not, your Workflow may be setup to do "Go One Stop, then Go Directly." This flow will check for an approver, if it does not exists at the immediate supervisor level, it will autoapprove the Expense report and then flow directly to AP.

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

  • Auto Approval by WF-BATCH after deadline

    Hi All,
    I am working on following SRM version
    SRM_PLUS 702 0006 SAPK-70206INSRMPLUS SRM_PLUS for mySAP SRM
    SRM_SERVER 702 0006 SAPK-70206INSRMSRV SRM_SERVER
    And am using process controlled workflow.
    My SC workflow has two level.
    I have a requirement where for a SC for first level, after the deadline has reached i have to auto approve the SC level and SC should move to level 2.
    I have written Pre exit in class /SAPSRM/CL_WF_EVENT_ADAPTER, method TRIGGER_EVENT.
    To achieve this i tried many options :
    1. Using FM SAP_WAPI_EXECUTE_WORKITEM, SAP_WAPI_DECISION_COMPLETE
        Result: Work item complete , workflow level still not completed
    2. Use FM BBP_PD_SC_STATUS_CHANGE_WF
         Result : No impact on SC workflow
    4. Use method /sapsrm/cl_wf_process_mgr_sbwf=>system_decision                                                       
         Result  No impact on SC work flow
    5. Used sc_adv class to set the decision
        Result : No impact on SC workflow
    lo_pdo_bo_sc_adv ?= /sapsrm/cl_pdo_factory_sc_adv=>get_instance(
                    iv_header_guid    = iv_document_guid
                    iv_mode           = /sapsrm/if_pdo_constants_gen_c=>gc_mode_approval
                    iv_user_id        = sy-uname
                    iv_user_language  = sy-langu
                    iv_wiid           = lv_workitem_id
                  lo_pdo_bo_sc_adv->/sapsrm/if_pdo_do_approvalstat~set_item_decision( it_item_status = lt_item_approval_stat ).
                  lo_pdo_bo_sc_adv->/sapsrm/if_pdo_adv_base~submit_decision(
                    CHANGING
                      co_message_handler = lo_pdo_msg_consumer    " Methods for message handling
    Can anyone suggest an option which i should try?
    Regards,
    Ashish Shah

    No.that doesn't exist.I will ask the developer if he requires it and then create it.
    but in my system few more jobs are getting cancelled.Their details are:
    1) job cancelled : SLCA_LCK_SYNCHOWNERS
        job log:
                   Step 001 started (program SLCA_LCK_SYNCHOWNERS, variant , user ID BASIS)     
                    liveCache lock server is not installed                                    
                     Job cancelled after system exception ERROR_MESSAGE                 
    2) JOB : SAP_REORG_UPDATERECORDS,
        JOB LOG:
                  Step 001 started (program SLCA_LCK_SYNCHOWNERS, variant , user ID BASIS)        
                  liveCache lock server is not installed 
                 Job cancelled after system exception ERROR_MESSAGE                    
    3) JOB : SAP_WP_CACHE_RELOAD_FULL
        JOB LOG:
                       Job started                                                                               
    Step 001 started (program RWP_RUNTIME_CACHE_RELOAD, variant SAP&RELOAD_ALL, user ID BASIS)     
                      No component system chosen                                                                               
    Job cancelled after system exception ERROR_MESSAGE                                                  
    Please help in these cases also.
    regards,
    Priya

  • PO Auto approval not working when PO is edited

    Hi all,
    PO are getting created in SRM and we have an automatic approval. When PO is created it is automatically approved and works fine, but when we edit the PO it goes to automatic approval and does not get ordered even though it is auto approval. Is there any configuration that need to be done. we are in SRM 7.1 and this is a testing client and other clients are working fine.
    Your inputs would be much appreciated,
    Thanks.,

    Hello,
    did you really order the PO after being in change mode or did you hold it?
    What are the PO status and the workflow status after PO was edited?
    Do you use version control for PO?
    Regards.
    Laurent.

  • 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

Maybe you are looking for

  • Queries for current Qtr and prior quarter

    If I select one date in dashboard prompt in one column I want to display current quarter revenue and prior Qtr revenue. Could anyone give me the queries for the current Qtr and prior Qtr? So I will going to use presentation variable from the dashboar

  • Calendar syncing Iphone/Entourage/Ical/Lion OX 10.7.2

    Ok - so this is driving me a little crazy. I upgraded from Leopard 10.5 to Snow Leopard 10.6 and finally to Lion 10.7.2. Upgraded my iphone to IOS 5.0 I use Entourage as my primary email and calendar. I clicked the synchronize contacts and also calen

  • How do I recover files from a Toshiba Canvio Hard Drive?

    I have been backing up my computer with a Toshiba Canvio Hard Drive. My hard drive failed and I had to buy a new computer. I would like to save my data to the new computer, but I don't want to do a complete system backup because it would overwrite my

  • I Cant Repair/Uninstall iTunes On My Windows 7

    Hi There! Can Someone Help Me Regarding My iTunes? When I Try To Open It, It Doesn't Work. Even If I Try Repairing/Uninstalling it. It Just Hangs. Can Some Help Me, Please? I Just Really Wanna Fix My iTunes.

  • How do I get "Vanishing Point" to work properly on iMac Retina 5k

    How do I get "Vanishing Point" to work properly on iMac Retina 5k? When I "render grid to photoshop" the grid is not in right place and scale. I'm using latest version of CC.