Wait statement stuck in Invoice workflow BUS2081

Hi,
I have a problem in invoice workflow where it sends a mail and waits for 8 Hours for GR to be created.
These steps are called in loop. After 8 hours it compares PO quantity with GR quantity and when GR is complete, it exits the loop. If GR is not complete till 120 hours (i.e. 5days) it sends mail to Superiors.
In order to wait for 8 hours I have a step with one line code.
WAIT UP TO 28800 SECONDS.
On some given dates, for all the workflows this step gets stuck and for more than a month it shows status “In process” in workflow log. On other days it runs fine.
Please help me find what could be the reason for this .

Hi Bhavin,
WAIT for 8 hours is a bad idea to start with. There are couple of other alternatives:
1) Configure an Event for GR Completion and have your workflow react to the event. You can use Modeled Deadline to send the email when the GR is not completed in 5 days. This would probably mean considerable change to your WF.
2) Use Requested Start for the GR completion check Step and Modeled Deadline to send the email when the GR is not completed in 5 days. You need to compute the Date & Time for the Requested End before the loop start and use the Expression Option.
For both the options, you need to have the Deadline monitoring job running.
If you want to continue with your WAIT UP TO 28800 SECONDS, you will have to ask you Basis folks to investigate your problem as this is not a Workflow issue.
Cheers,
Ramki Maley.

Similar Messages

  • Parking invoice -- Workflow  -- BUS2081

    Hi,
    I have created a custom workflow that will be triggered as and when a document is parked. I have created a sub type for the business object 2081 to incorporate some custom logic. The name of the std. triggering event is "PARKED".
    When I tested the workflow in SWDD, it is working fine. However, when I try the scenario through MIR7 (Tcode for parking invoices), I'm not getting the workflow triggered.
    I looked into the SWETYPV and found an entry for this workflow. I checked the "Enable event queue" check box and saved the entry.
    I believe, I have to make an entry in BSVW (Customer settings) as well. Am I right? If yes, what should be the value for the column "StatusOT" (Object category).
    Is there anything else that I have missed? Please help.
    Thanks,
    Raj.

    Hi Bhavin,
    WAIT for 8 hours is a bad idea to start with. There are couple of other alternatives:
    1) Configure an Event for GR Completion and have your workflow react to the event. You can use Modeled Deadline to send the email when the GR is not completed in 5 days. This would probably mean considerable change to your WF.
    2) Use Requested Start for the GR completion check Step and Modeled Deadline to send the email when the GR is not completed in 5 days. You need to compute the Date & Time for the Requested End before the loop start and use the Expression Option.
    For both the options, you need to have the Deadline monitoring job running.
    If you want to continue with your WAIT UP TO 28800 SECONDS, you will have to ask you Basis folks to investigate your problem as this is not a Workflow issue.
    Cheers,
    Ramki Maley.

  • Workflow triggering an fm , abap code contains wait statement

    can i write a abap statement .. like wait upto 10800 seconds (3 hours)..I have to use this code  in fm, where it will wait for 3 hours and then it check the status and then if the status is not changed then we have to trigger a mail ,,,
    this fm will be used in workflow ,,, when the support desk mesg is created and the status is not changed in 3 hours(depends on the priority of the mesg) then i have to trigger a mail,
    i am using a workflow to trigger a mail , after triggering i thought of using an activity which uses this fm, to send the remainder mail. is it advisable for writing a statement like ...wait up to 10800 sec.\????

    Using a "WAIT" statement in a workflow background task is fatal! Each active work item using the "WAIT" statement blocks resources for the RFC connection in the background. So, if you have hundred of "waiting" tasks it should be no problem to crash your SAP system... and this will cost you many crates of beer...

  • Logistics Invoice workflow

    Hi All,
              Requirement is for a Logistics Invoice Workflow
              triggered when 1> Price variance block(P) 2>Qty variance block (Q)
                                    3> when GR not found --- dont know which event this raises
              Also 1 invoice can have associated multiple PO's . The PO's can have different buyers . So the buyers should be sent the workitem with only the details of the Po's that he is responsible for  . Also if there is both a qty block and a price block then he should receive just 1 workitem . I don't think they require functionality as in workflow WS20000397 where the workflow automates the change / delete/verify actions and if change is selected then loops through the PO's in the change mode allowing to change price . This functionality will be performed manually , so the workflow itself is more like a notification .
               This is how I was thinking of tackling this .
               1. Get the list of blocked work items for the current invoice into a multiline.
               2. Get the buyers for each invoice line item via the associated PO Litem
                   into another multiline
               3. Get a list of buyers from pt 2 and remove duplicates . move into another multiline .
               4. call a subworkflow ( once for each line of the multine for  buyers ) .
               5. This subworkflow will get the line items belonging to the buyer
                   it will then call a task which will list the line items ( similar to bus2081-LISTBLOCKEDPRICEITEMDATA ). might have to create another method for  LISTBLOCKEDQTYTEMDATA  and call the task based on whichever event is called . I don't know in which category would the no GR created block fall under ?
    The work item can also contain object references for Invoice and each of the PO's so that he can view them as links and display the invoice and PO's .
                   The task will be completed by a invoice.released event , but if so then all the buyers will have to wait for the invoice has been released . maybe I can check if the relevant workitems have been unblocked . If not then send him another workitem . If the user chooses to reject the workitem the requirement is sent to the Accounting clerk which is fine .The workitem will remain in his inbox until he manually completes the workitem .
                   I hope this would work . The only thing I'm not very clear is how I can get a single workitem for both qty & price variances if they occur at the same time as they are 2 different events and will create 2 different workflows ?
    Any ideas let me know .

    Hi Radha,
    You can trigger a single workflow from different events. Even in this case it will create two workflow instances for the different events that are triggered. I guess you will have to wirte a small function module which can check for the PO properties. If it has both then you can run the workflow for any one branch. This is what comes to my mind.
    For the GR not present scenario you can just have a workflow once an Invoice is created and then run the workflow only if the GR is not present. You can have a check function module for that too.
    Hope this helps,
    Sudhi

  • I am having trouble with app updates on my iOS 5 iPhone never getting beyond the "waiting" state.

    I am having trouble with app updates on my iOS 5 iPhone never getting beyond the "waiting" state. I have tried signing out/in of my account, rebooting and removing/re-installing the apps.  This started shortly after going to iOS 5 but I am not certain if that is related.  All updates that I try now are stuck in "waiting".  I also tried removing the apps and then installing via iTunes desktop sync with no improvement.  The only thing that I have not tried so far is a restore to a prior iPhone backup.  I have not been able to find anything to indciate what the updates on waiting on.  There is plenty of space on the iPhone (16gb available).  Any suggestions on what to try next? 

    Hello there, Missy.
    First thing I would recommend is to check your downloads queue to make sure there is not an interrupted download per the following Knowledge Base article:
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/HT1725
    If your download was interrupted using your iPhone, iPad, or iPod touch
    1. From the Home screen, tap the iTunes app.
    2. For iPhone or iPod touch, tap More > Downloads. For iPad, tap Downloads.
    3. Enter your account name and password if prompted.
    4. Tap the blue download arrow to resume.
    If you can't complete the download on your iOS device, you can download it in iTunes on your Mac or PC and then sync it to your iOS device. You can also transfer purchases from your iPhone, iPad, or iPod to a computer.
    For Apps, you can also try tapping on the application icon to resume the download, as outline in this featured discussion:
    App updates won't download on my...: Apple Support Communities
    https://discussions.apple.com/thread/4111336
    Try tapping the App, so that it changes to Paused instead of Waiting, then tap it again to resume the install.
    Make sure you don't have any paused downloads in other apps either, like the App Store or iTunes Store.
    If that doesn't do it, try resetting or restoring the iPhone.
    via whatheck
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Event is in Waiting state.

    Hi,
    The workflow for PR is not getting triggered because it does not recived any event.
    So when i checked for event queue browser it shows an event for the same PR in waiting state.
    Status of event is:
    Bobject     Event               Workflow     Status
    BUS2009     RELEASESTEPCREATED     WS90000057     Waiting because of e     1
    Could any one please tell me what does this status mean.
    Why the event is waiting, any reason behind it?

    Hey thanks for the quick reply.
    Yes these errors are temporary as now all events are getting posted successfully.
    Now i just wanted to know what will be the reason for getting these Events in Waiting state.
    Also what does it mean "Waiting because of e 1" in status fiels of event.
    I just want to know the root cause.

  • Endless Loop in Approval of FI Invoice Workflow

    Hi Everyone,
    I was having a problem with the workflow template WS90400009 - Approval of FI Invoice Workflow.
    When the Proof of Performance approver is trying to approve/reject an invoice, the workflow is getting into an endless loop in the class method CL_SWF_RUN_WFM->CHECK_CB_IN_DEADL_BRANCH.
    This did not occur previously in any of the FI approval workflows and neither is it affecting any other workflow in the system. How could this suddenly happen?
    Eventually, the system times out and the workflow log shows "In Process"...but does not process further!
    Thanks in advance for the help!

    Hi Everyone,
    Thanks for the replies.
    We just corrected the issue with the OSS Note 935994 -
    Symptom :
    In some cases, a timeout that is triggered by an endless loop in the CL_SWF_RUN_WFM->CHECK_CB_IN_DEADL_BRANCH method occurs after you execute a work item.
    The timeout only occurs for workflow definitions with nested loops.
    This issue begun after some modifications were done in a workflow with modelled deadline.
    All workflows were going into a "hang" state.
    Thankfully, issue is now resolved.

  • Blocked invoice Workflow

    Hi All,
    I have a problem with Invoice blocked for Price reasons workflow,I have copied a Standard one and only changed the agent determination.
    When the invoice is executed from the iinbox ,itgives 3 options
    i.e 1) Change Purchase Order
         2) Item list of price to be blocked
         3) List of items not to be clarified,
    The proble is selecting any of the above options does do anything..e.g is I select the first option the it displays an order to be changed but it is not editable and the same applies to the rest.
    Is there a way in the workflow itself where I should make it to be editable on this step..or is there a SAP note that needs to be implemented to solve this.
    Please advise.

    Incoming invoice
    Object type Bus2081 (Incoming invoice)
    Workflow template: WS 20000397
    The triggering event for the workflow template is IncomingInvoice.blockedPrice (Invoice item blocked due to price variance).
    cheers,
    Naval Bhatt

  • How can current task in waiting state till completion of all threads.

    How can we implement the activity which will be in waiting state till all the sub threads initiated from this activity complete.
    I have implemented the workflow as once the flow will reach to an activity after that we are creating the multiple instances of event subprocess. Now i want to force user that he cannot take any action on the activity till all the event subprocess completes.
    Please help me in this scenario.
    Thanks

    Dan,
    I am trying to assign one request as a sub requests to different user. Now, Once all this sub requests complete then only user of main request should allow to action on task. Let me try to explain scenario from business point of view.
    Suppose, an employee is joining an organization. Now, HR is sending the request to different departments to collect the information. First day HR has send request to Finance & HR department, next day again HR has sent request to travel department & resource department. Now, till all this department responds to HR's query. HR should not allow to complete the current task from HR has sent the requests to all department.
    Please note that HR can send the request to all department at the same time or by different time interval.
    I tried to implement the scenario using the event subprocess which is message based & correlation has been set between the main process & event subprocess. But the problem is User is able to take action on the current task even if the subprocesses in running state. I want user should get message that "subprocess task is in running state you can not take action. subprocess task should complete first."

  • Apps are in "waiting" state and battery always reads 100%

    After ios5 upgrade, many apps are constantly in "waiting" state and cannot be accessed.
    Also, battery indicator us stuck at 100%.

    Close all open apps by double-tapping the home button, then swiping up and off the screen with the app window (not the smaller icon).
    Reset your device: hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)

  • Non PO Invoice Workflow - Error while Posting Document

    Hi Experts
    Hope I am posting this in the right forum as I am new to SDN!
    We have customized a multi-level non PO invoice workflow which triggers at the time of clicking 'Save as Completed' in tcode FV60.
    It has been configured to automatically post the document once it is approved at all the required levels. However, the document cannot be posted even after it receives all levels of approval. The status shows as 'Complete' but the error message shown is 'No Amount Authorization for Customer/Vendor in Company Code' in the workflow screen (MSGID F5, MSGNO 155).
    Now as I understand, this is the error for maintenance of user ID in tolerance groups. However, all user IDs have already been maintained and no matter who parks the document, the same error appears in the workflow screen.
    We have no idea whether this is happening due to some missing config from FI side or WF side.
    Regards

    Hi
    Go to Tcode: OBA3 Assign tolerance group under your company code and give all limits for each group. If you done this one your properly your problem should solve.

  • IPad 2/iOS 5.1 app updates hung in a 'waiting' state

    After I upgraded my iPad 2 to iOS 5.1, I cannot update my apps. There are hung in a 'waiting' state. Any ideas how to fix this?  This is the first time I've run into this.  I've upgraded to 5.0, 5.0.1 with no problems whatsoever.  Now 5.1 fails to update apps all the time.
    Brian

    For the last few days, since the worldwide launch of the New iPad, Apple's servers have been overwhelmed.  Give it a few days to settle down as a more reasonable number of users access the store. 

  • Adobe Media Encoder Does Not Get out of wait state

    Processor: Intel Core(TM)2 Quad CPU queue 6600 At 2.40 GH Z
    Memory:  8.00 GB
    System Type:     64 – bit Operating System
    Operating System:      Microsoft System 7 Ultra
    When transferring a 1 min. 11 second video from Adobe Premier Pro 5.5 to Adobe Media Encoder 5.5, the file sits in the Media Encoder for hours in the wait state and never completes.
    All my Adobe software is up-to-date. How can I remedy this problem?

    The status "Waiting" indicates that the job is ready to be encoded. As of CS5.5, AME by default does not start processing the Queue automatically. Instead, it waits for you to start encoding by clicking the Start Queue button in the upper right corner of the window--it looks like the Play button on a media player or editing app. Watch folders are an exception to this rule: jobs that come in via watched folders start automatically by default.
    You have the option of having AME start encoding automatically. To enable this, check the "Start queue automatically when idle for <n.n> minutes" and set the desired wait period.

  • From which table we can find the stuck process in workflow from background

    Hi There,
    from which table we can find the stuck process
    in workflow from background.
    i mean the table which store information about going on process.
    It's Urgent
    Thank's
    Bachan
    Message was edited by:
    Bachan

    You can also run "bde_wf_item.sql" script.
    Note: 187071.1 - bde_wf_item.sql - Runtime Data of a Single Workflow Item
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=187071.1
    "Oracle Workflow Cartridge (WF): Workflow Item Details Data Collection Test" should be also helpful.
    Note: 369576.1 - Oracle Workflow Cartridge Workflow Item Details Data Collection Test
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=369576.1

  • I have been having issues with Firefox lately. A thread is in wait state for minutes eating up CPU. More info available.

    When Firefox seems to hang, I usually cannot do anything else but wait until the process has completed whatever it is doing. I am reasonably sure it is a firefox process as it is reported by the wait state analysis.

    It would help to know more about your iMac.
    What year, screen size, CPU speed and amount of RAM installed?
    How full is your Mac's hard drive?
    How many applications do you run simultaneously in the background while working in another application?
    Do you run any antivirus software on your Mac? Antivirus software can slow down the normal operation of OS X.
    Do you run any "crapware" like Mackeeper or any other type of so called hard drive "cleaning" apps?
    Have you downloaded and installed anything recently that might have caused the erratic behaviour of your iMac?

Maybe you are looking for

  • Windows Vista/iTunes will not recognize 3GS

    I've never had this problem before, my iPhone/Laptop has been working fine for the few years that I've had it. Not only will the iPhone not show up on iTunes, but it's not even showing up on My Computer. I've attempted almost every troubleshooting me

  • Jforum international characters problem

    Hi all, Has anyone used jforum (www.jforum.net)? It is an open source forum software I am having problems with international characters. Please let me know if you have had so I'll post my question. Thank you.

  • ASIO for 5.1 external SB live 24-

    I was hoping that someone could provide me with an ASIO driver for an external SB li've 24-bit. I have been trying to dub 5. surround and have had no sucess due to lack of appropraite drivers. Thanks in advance for your help.

  • Does the new imac support 3D movie play?

    I was wondering if the newest iMac can play 3D movies, like the new 3d blue ray/3D tv can, anyone knows about this?

  • What is the ETA on the production release? Can we pay to remove the graph watermarks?

    I can't figure out the ETA on the production release. Meanwhile, because of the graph watermarks in Beta 3, we have had to stop getting feedback from customers! Anyone from Macromedia please explain what we are supposed to do?