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

Similar Messages

  • ESS Auto Approval Leave Request

    Goodday all,
    I'. trying to create a WF which will have a step tp auto approve a leave request after 5 days of submission to the approver. I have made a copy of the standard WF12300011 and have included 'modeled deadline monitoring' step just before 'request approved?' step. This is where i'm stuck, once teh deadline is obsolete, i will need to create a new step to automatically change the REQ.STATUS to 'Posted' OR 'Approved'. How do i do this step? or is there a better way to do things? Thanks in advance
    Regards

    Try Like this
    1. As you said that you hvae a copy of the standard workflow so when the Modeled Deadline monitoring is reached any ways a outcome will be included in the WF template , so what you can do is in that outcome you include a Activity which uses the method of conatiner element REQ  which will have the current request instance
    REQ type is cl_pt_req_wf_attribs so in this class you hvae a method with name APPROVE so use this mehtod in the Activity that you will create in the modeled deadline monitoring outcome. this will approve the request and when ever the report RPTARQPOST is executeed the approved request will be posted into the respective infotypes.
    If you hvae any more queries plz let me know, because i also had the same issue and i fixed that in the above mentioned way.

  • PO in Held Status after SC got auto approval

    Hi All,
      We have a strange requirement where   customer want  for couple of vendors SC to be created  for Zero value and auto approval. We are able to do it but after the SC get auto approved PO is going for Held status.We tried it to do it by ZReport to make its status "Orderd" ,even we are successful here also,but the PO is not triggering to any vendors.
    Can any one have idea how to resolve it ?
    thanks in advance.
    CB

    you mean to say after PO orderd did not find any Vendor in PO diplay from SRM ?
    please check in RZ20 for this PO if there are any logs recorded

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

  • 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

  • Leave Auto Approval

    Hi All,
    We have the following requirement :
    1) Leave should be auto approved after 7 days.
    2) Leave should be posted to R/3 as per standard process after document is approved.
    3) Workflow should be completed after posting to R/3.
    Please guide us how we can achieve this. or is there any other way to do this ?
    Regards,
    Kamal

    Hi Kamal Rawal
    1) Leave should be auto approved after 7 days.
    Ans : Use deadlne monitoring. After the reach of modeling path change the status of the leave sent to approved. If you dont no about deadline monitoring search the forum lots of thread has discussed about it.
    2) Leave should be posted to R/3 as per standard process after document is approved.
    Ans: Use the std program RPTARQPOST. Schdule this program every half an hour for posting.
    3) Workflow should be completed after posting to R/3.
    Ans: This is done automatically once posting is happened.
    Regards
    vijay

  • Journal shows Approval "In Process" even after Approvers approves it

    Dear All,
    The Approver gets a notification to approve a Journal Batch. He opens the notification and approves by clicking on the Approve button on the notification page and the page closes. But when we go and check the Journal details in the GL apps screen, the Approval status still says 'In Process'. Also the SYSADMIN gets a notification saying "No approver for employee SGL99 was found to approve XX HLA 8-1 2 only 9953 01-AUG-2006 09:04:12. Please correct the error and respond to this message."
    Where is the process stuck? What's wrong?
    Thank you for your help in advance.
    Harish Amble.

    What notification are we talking about? Is it the self-service notification accessed through worklist or e-mail notification that available from the user's e-mail Inbox?
    Self-service notification
    The notification is rendered by the Application Server over HTTP and the user's response is submitted back to Oracle Workflow using HTTP request immediately upon clicking on the Approve button. When the notification page returns after Approve button is clicked without errors, it means that the notification is responded to successfully.
    E-mail notification
    The e-mail notification is detached from the Oracle Workflow instance in the sense that when the response is submitted as an e-mail, unless and until the e-mail reaches the Notification Mailer's inbox and the mailer has successfully processed it, the notification response is not really applied. You need to make sure that the mailer's Inbound and Outbound processing is enabled and that the mailer is able to process e-mail responses successfully.
    For both the cases above, you might want to go the Status Monitor/Process Monitor/Find Processes and search for that instance of Journal Workflow and view the diagram. You should be able to see the notification activity and the current response for that notification activity. If the notification is still in NOTIFIED status, that means the response is not yet applied.
    If you want to troubleshoot the notification mailer, please search in Metalink for notes on Troubleshooting Java Notification Mailer. This helps for 11.5.9 or after.
    Hope this helps.
    Vijay

  • Approval process should proceed if deadlins is missed

    Hi all,
    In the workflow WS10400002 (One-step approval) in SRM, when the deadline had exceeded the approval should happen automatically.
    While checking in the latest end tab, an alert mail can be triggered. but how do we make sure that the approval process happens automatically if the deadline is missed.
    Thanks and regards
    Kishan

    In the Latest End tab you need to make a Modelled deadline not a Display Text. If modelled deadline is done you have to name an outcome that branches out from the task where deadline is set. Now you use this step to complete the approval step automatically and after that create a Process control step that will complete the Workflow. 
    Just follow the steps
    1)You can use Latest End Tab in a Step which is attached to a task. Use Modelled deadline. Using this another branch is created from the step.
    2)Activate the Outcome Processing obsolete for the Step that needs to be sent to the Manager.
    3) Now put a process control in the branch that has been created due to modelled deadline. Use "Set Workitem to Obsolete" in the Function and provide the Step number in which the deadline step is incorporated.
    4) Now create another step at the branch Processing obsolete of the step that has the deadline and copy the above step with deadline removing the deadline part. This step is only for manager.
    use this accordingly in your Workflow.
    <b>Reward points if useful</b>

  • Auto Approval Rule Isn't Approving Several Updates

    New to Intune, so probably have something configured incorrectly....
    We set up an auto-approval rule and machines received the updates that were needed.  After the next check for updates, 5 more were found as needed.  These 5 are not yet approved, and the rule is not auto-approving them.  We tried running the
    rule manually and it isn't approving them.  We assume that we don't have either the Category or the Classification set up correctly.  However one of the updates that won't approve automatically is Silverlight, and it is checked in both.
    Is there a way to tell why that is happening?  We can easily approve them, but are wondering if we will have to do this regularly once we start getting a lot of machines connecting.
    Thanks for any help you can provide.

    Is there anything specific that would give you a better understanding of what we are seeing?
    We have an auto-approval rule set up with some, but not all, products selected.  We then have the update classifications configured as all but "Feature Packs" and "Tools" selected.  In this instance, Silverlight is checked in
    the products.
    The update for Silverlight showing as needing approval is KB2977218.  It has a classification of "Update Rollups", which as I mentioned above we have that checked to be included.
    In the documentation we see that when you create an auto-approval rule it only applies to new updates.  However if you want to apply it to older (existing) updates, you can run it manually.  Running manually isn't having any effect on the
    approval of the updates.
    Thanks!

  • Impact on Timesheets (CATS) Auto Approved.

    Hi Experts,
    We are implementing timesheet(CATS) auto approval, please share your views on changing the status (20 to 30) by a batch job in CATSDB table.
    Thanks and Regards,
    Venugopal.R

    Hi,
    Normally the purpose of following the "Approval Process" in time sheet is; so hat the Manager / Supervisor can validate his subordinates time and then accordingly Approve / Reject it. Now I believe the batch job which you mentioned is going todo the approvalinstead of a Manager. If so then i would suggest to put in some validation before approving the time sheet entries. If your business case does not require any validation then you have another option wherein in the data base profile you can select the option of "Approve up on Save". This will automatically bring the status to 30 in CATSDB as soon as the user puts in his time sheet entries and saves it.
    Regards
    Sreekanth

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

  • Need "auto approve" for an auto blanker release

    Hi Folks,
    We are using 11.5.10.2 ver.
    I need auto approve functionality while creating Blanker Auto release for a approved blanker purchase agreement.
    I am able to create "auto release" for a BPA, but still it need to approve by manual. So, we need to avoid manual approve functionality here.
    Can any expert help me out in this issue?
    Thanks in advance.
    Surya

    Hi,
    Could you please check below query :
    select rtrim(w.name) name,
    w.text_default Value,
    rtrim(w.item_type) item_type,
    'Is Automatic Approval Allowed?' Attribute
    from wf_item_attributes w
    where w.NAME = 'AUTO_APPROVE_DOC'
    ====================
    workflow setup to be verified
    Is Automatic Approval Allowed?
    AUTO_APPROVE_DOC Indicator of whether the purchase order approval workflow is initiated automatically after this workflow.
    Default value: N
    Please change to Y
    Hope this will help.
    Regards,
    S.P DASH

  • Auto Approve PO

    How can be a PO auto Approved, after it gets created from requisition ?

    You can consider using ASL and setting approval method = automatic release.
    See http://docs.oracle.com/cd/A60725_05/html/comnls/us/po/autorel.htm
    Sandeep Gandhi

  • 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

Maybe you are looking for

  • Possible to import iMovie HD to iMovie '08?

    I made a video in iMovie HD (not, I believe iMovie 6) on a PowerBook G4. We got this new computer as it has enough memory etc for Final Cut Express. My problem: Ultimately I would like to have the movie in Final Cut Express. I cannot seem to import t

  • MP3 files do not appear in Library

    I am having a problem with windows media player.  I am running Windows 7 and media player 12.  I have wav recordings of Swing Shift which I have converted to mp3 files and then used a tag editor to fill in the Artist and Album fields.  I included the

  • Possible to use iPad as a display for iPhone?

    i have a wifi-only iPad 3 and an iPhone 5 (no tethering plan).  i'm wondering if it is possible to connect the two via cable and use the iPad as a display for the iPhone while i am driving.

  • J1IEX: Balance in Transaction Currency ERROR

    All SAP Gurus, While doing J1IEX: Balance in Transaction Currency ERROR occurs. This happens only when figures are not even in case of capital goods credit. Which SAP Note to be applied so that, system will accept odd figures too. Regards,

  • Safari dosen't open ymail ???

    I can't open may email