Background step in progress

Hi,
A background step to collect the agent was working fine early. Some of the steps in SOST to send mail were pending for 2days. Due to this if run the workflow , it says "INPROGRESS" for long time. I tried to process manually in SWIA . As per the previous thread i used a function module , but it says type F and B. Not able to process.
Since it was working fine early i dont think the problem in workflow. The binding also proper. I am seeing the Actual agent step blank in log???
Help me to solve the problem.
Thanks!
Richard A

Hi Arghadip,
The design was perfect and was working fine before twodays. But i run it today , it goes "Inprogress" state.When i see the log , i could see one of the mailsend step was pending for the last 2 days. I have tried to complete it by using SWIA.  Huv can i kill the pending workitems?
previously the actual agent for the step was filled. But it says no agent? What could be the problem?
I have not changed the design anymore?
Any basic configuration is missing? I have another doubt. What are the basic setting to be maintained in a new Client for workflow ?
Richard A
Edited by: Richard Antony on Jan 17, 2008 8:18 AM

Similar Messages

  • Background step is 'in process' status in PRD system

    Hello All,
    I have a background step which uses function modules 'create_text' and 'SD_WF_ORDER_REJECT' to update the documents.
    This step is in 'in process 'state' for 2 days in prd system. I checked st22 & swu2.
    There is not errors found.
    How do i reprocess this background step in live system.
    In dev system it's working fine.
    Wat could be the reason? Any inputs will be appreciated.
    Thanks...

    OK.  Next step is to work out why.
    1)  Does the issue happen with all workitems, or just the one.
    2)  If just one, look at the container of the workitem and compare the data to what the process actually requires.  Also check if there is a possibility of the document object being locked due to some outside (of workflow) process.
    3)  If all, Try running the method in SWO1 in debug to ascertain what it is which makes the PRD system different to that in which you developed the workflow.  REMEMBER TO EXIT THE PROCESS BEFORE UPDATE as it is a production system.
    If neither helps, please post any messages from the detailed log for both the workflow F item and the background item, along with an extract of the method code where the issue occurs and we will see what else could be the cause.
    Regards
    Gareth

  • Background step in workflow remains in process: Workflow gets stuck up

    Hi Gurus,
    I have custom workflow for organization management. The workflow takes information from e-forms(notifications) and updates the infotypes.
    The step which updates infotypes is run as background step.However in some cases the workflow gets stuck up in this step.
    This happens irregularly (once or twice in a month).
    On processing these workflow instances using SWPC , nothing happens and the workflow remains stuck up in the same step.
    Also checked for dumps but nothing available under WF-BATCH.There is no regular pattern for occurance of these instances.
    Can you please suggest what can be the possible cause of them getting stuck up in the background task.
    Regards,
    Rohit

    Check ST22 shortdumps again. Look not only for WF-BATCH but also look for the intitator or the last processor's ID. Sometimes they would be the assigned the user to execute the step ecven if it's a background task.
    Also, I would suggest looking through the code of the method that is being executed carefully. Make sure there are no 'EXIT' or LEAVE' statements. This could also 'sometimes' cause the background process not to return correctly. In addition, check that you are not executing an ever lasting loop.
    If you have access in PRODUCTION, try to execute the method in debug mode to see where the program is inappropriately stopping (t-code SWO1).
    Derrick
    Banks & Company, LLC

  • Background step in error

    I have a background step at the end of workflow. after execution of dialog step, am using IMAGELINK> ASSIGNMETHOD to attach a scaned document to Business document. Sometimes this background step is in error, not all the times. I reran this step using SWPR. after that it executed successfully, am able to see attachment in the document.
    I do see below error >
    EXECUTE_METHOD_OBJECT_SYNC - Method container for workitem could n't be created
    EXECUTE_METHOD_BOR - Method container for workitem could n't be created
    Executing batch workitem - unable to instantiate object 'OBJECTREF'.
    When i check the log for task container, required all variables are filled. I don't see binding issues also. Not finding a clue, y is it executed when i reran using swpr.
    Inputs are appreciated. am using ECC 6.0.

    Hi Priya,
         As you mention the note NO : 1052861 if you apply , it would resolve the problem , plz update me. Because I am facing the same problem for background activity only.
    Thanks,
    Saurin Shah

  • Background step in 'In Pocess'

    Hi,
    I am facing a problem at Background step, workitem status is not changing , it is in state 'In process'. if i made changes as foreground step it working fine,But not in background. even if i executing from SWI1 also status remains same.
    In the mothod im executing a BDC fun.module.Please suggest.
    Regards,
    Rajkumar.

    ls_opt-racommit = space
    SAP help says that
    " " (COMMIT WORK terminates processing), "X" ( COMMIT WORK does not terminate processing).

  • Workflow stopped at background step

    Hi Experts,
    I have a background step in my workflow , when iam testing this workflow from SWUS the workflow is getting stopped at this background step the workflow is not going forward to next step. the workflow log shows ' task started in background'
    moreover i did't find any errors in the log for the same.and i checked SM37 there the relevent job is finished. please advice what canbe the problem?
    Thanks & Regards,
    Sarath.

    HI Sarath ,
    Just change yuor task from BAckgroung to foreground. Insert a break point in the code of the function module used in the task and execute your workflow. 
    Coz you cant debug a background task , you will never come to know wht is happening inside .
    By debugging get the problem in the code , rectify it and change the task again to the background  .
    Hope this will help.

  • Error while execution of Background step

    HI all,
    I have created a smart form attachment step.The step to be executed in Background.
    According step is set syncronous  with background execution.
    However i am getting folllowing error-
    The information displayed is -Execution will continue in backgroun with Status-Error
    Error details are as follows-
    Message Text         Error handling for work item 000000389208
    Exception            630
    Error Type           0
    Area                 SWF_RUN
    Message              630
    Variable 1           000000389208
    Please guide to resolve issue.

    Hi Sanjay,
      As Rick Suggested check the log, if still problem persists & if possible try making the step to dialog execution and check?
    Regards,
    Narin.

  • FIPP object, getting error while posting document in background step

    Hi Experts,
    Once approval is done we are posting document in background, but getting following error
    No batch input data for screen SAPMF05A 0607
    We have delegeted object FIPP to ZFIPP and added method zpost with same code as post with some initial validations.
    Your help in solving this error would be really appreciated.

    If you really haven't done any relevant changes to the SAP standard post method, I would look for an answer from OSS. And if not found, then ask from SAP. But if you have replaced the standard post method code with for example some BDC code, then you need to check this with your ABAP guys... I don't think that it has anything to do with workflow.
    Regards,
    Karri

  • Explaination for background steps in MRP with example

    Dear SAP Guru's,
      I received the explaination for below steps in MRP.
    But, it wouid be better if i could get the explaination for step 2 with example, step 3 for lot size EX & step 5 also with example.
    1. Check planning File Entry
    2. Net requirements Calculation
    3. Lot size calculation
    4. Scheduling
    5. Source determination
    6. BOM explosion
    1. Check planning File Entry: An entry is made in the planning file as soon as any changes are done to the material which are relevent to MRP. Eg. Changing MRP type, Changing BOM Qty. System checks if there is an entry. chk sample planning file entry in md21.
    2. Net requirements Calculation: It checks the available stock of the materials. Required minus available = net required qty. availability check plays vital role in this.
    3. Lot size calculation: Depending on the lot size maintained in the material master, it groups the materials. eg. If you use lot size as FX(Fixed lot Size) with fixed lot size qty = 100, then system will create pld ord or PR for the material in fixed lot of 100 always.
    4. Scheduling: You can either carry out basic dates scheduling (values taken from MRP 2 view) or Lead time scheduling (values taken from routing) to this the floats are added and scheduling is carried out. By default it is backward scheduling. If the dates are going in past, today scheduling is done.
    5. Source determination: For externally procured materials, you can assign a fixed source (ME01). This vendor is assigned in PR during MRP.
    6. BOM explosion: For dependent requirements calculation, system explodes the BOM and plans the materials.
    Thanks in advance
    Regards
    Kalyan

    Kalyan,
    I do not see a business problem described in your email that I can assist you with.
    I suggest you read the standard SAP online help in this area
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/f4/7d27aa44af11d182b40000e829fbfe/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/4c/420d29470a11d1894a0000e8323352/frameset.htm
    and associated topics.
    Rgds,
    DB49

  • Customizing OI to add step progress bar

    Hello custom RTOI experts!  I am attempting to make a customization to the full-featured LabVIEW RTOI (for TestStand 3.0) in order to provide the seemingly simple feature of a step completion progress bar on the execution page of the tab control.  Let me explain a little behind the concept I'm going for.  There are some steps in my sequences that take a relatively long time (15 minutes or so).  During this period, a requirement of mine is to have a progress bar that gets updates every so often such that by the time the step would ordinary complete, the progress bar is at 100%.  Initial attempts involved a separate VI that managed the progress bars, but having yet another window is not the ideal UI design...  Instead, I was hoping to integrate this functionality into the RTOI so that each time a new step begins executing, additional custom data (the expected step duration) is (optionally) sent to the RTOI providing the progress update portion of the RTOI code the necessary data.
    Is there any sample code out there that performs some similar task so that I can get a better feel for how the pieces fit together?  In particular, there are a few things that are befuddling me:
    1) What is a good way to store this custom information (step duration) in the sequence file?  Should I modify the basic step types to add a new duration field which can be optionally set to something greater than the default, 0?
    2) How should the step duration get passed to the RTOI?  My current thought is to override the PreStep engine callback to send the custom duration field in a custom UIMessage, but that may be partly because I'm not familiar enough with the structure of the data is that is that is accessible via the sequence context...
    3) How do I link the progress bar data to the actual execution page that is currently being viewed.  Up to 4 executions can be running using the parallel model or the batch model in my sequences, so something would clearly need to be done so that when execution 1 is visible, the associated progress bar is shown, etc...  I'm assuming I can trap on some event when the user clicks on an execution in the list bar, but there is no similar code in the out-of-box RTOI - all that appears to be managed automatically by linking the controls to the execution manager.
    Thanks for any pointers or code samples (or even suggested reading) that anyone can give.

    Thanks for the response.
    I may indeed want to use the ProgressPercent message, but I'm not so sure just yet.  I did not want to leave the responsibility of sending UIMessages up to the VIs and other code modules called by the sequence - I was hoping for a simple solution to provide a new field (ExpectedDuration) that can be set for any given step.  In this way, the RTOI can manage updating the progress simply by counting seconds.  Perhaps there is some timer callback that can be leveraged to perform this function?
    What I have so far is as follows: I have a new step type called PassFailTestWithDuration.  It is a copy of the PassFailTest step type with the addition of a ExpectedDuration property and a new PreStep which calls the PostUIMessageEx with a custom event (10001).  The expected duration and the RunState.TestSockets.MyIndex both get passed as parameters.  Inside the RTOI, I have added a UserMessage callback VI which stores the data in the appropriate slot of a global (indexed by socket index).  (The global array is implemented as what I've heard called an action engine - there are init, read, and write actions that it can perform on data stored in the VI, and it is set as non-reentrant so that race conditions cannot occur).  Each entry in the global array has 2 fields - the expected duration, and the current elapsed time.  My idea was to continually update the current elapsed time for all active executions and simply show a progress bar for the "active" execution by displaying its elapsed time/expected duration in each necessary event...
    I think my main question now is - how do you determine the RunState.TestSocket.MyIndex of the active execution in the execution manager (or application manager)?  It seems like such an obvious thing to want to know, but I don't see it anywhere.
    Thanks again for any hints you can provide!

  • Workflow step not executed...

    Hi,
    In my workflow requirement (for VA01), I want to record the status in a custom table as follows;
    Approver id     date   time    status
    ABC                                     Submitted for approval
    ABC                                     Approved (or) Rejected
    So I have created a step called 'update custom status' after the step that sends email to the approver agent whose details stored in another custom table. Then I associated a task with this step which is bound to a custom class / method which has the logic to write the status to the custom table.
    The issue is I do not see this step excuted. I checked in the log.
    What can be wrong ?
    Workflow steps are as follows;
    1. Read the document's net value and store in a variable.
    2. Read the custom table for agents list to whom the doc has to be sent for approval.
    3. Send email for approval.
    4. update custom status.
    In the graphical view, I can see the update custom status step being called (Green link from previous step to this step) but after that no progress.
    Am I missing passing some values ? Or is this step not giving any results ? Whats happening ?
    Details on this update custom status step are as follows;
    A custom task with terminating event set as _WORKITEM defined. (not synchronous)
    A step of type activity defined and bound to the above task with binding done.. (what values should I pass to record the above needed details.)
    In other words, how can I record the status in my custom table ?
    thnks

    Hi
    I think its a background step. If yes, then make it foreground and debug and see what is the problem. Also check for short dumps and turn on the event trace and see the terminating event is getting triggered.
    Vinoth

  • Jerky Background Textures

    Many of my textures jerk when played as LT backgrounds. I choose a Texture movie and create a new track. It appears below the line in the timeline (but the same fault occurs if it is above). I play the texture in the timeline once through (it goes slowly as it is rendered, I suppose) and then on the second pass at full speed. The background does not progress smoothley. This can be seen even more clearly if I step through the timeline frame by frame. Some parts of the image move, for example, more in one frame, less in the next, less in the next, more in the next. This is particularly well seen using the texture Geometrics > Cubes. The square outlines jerk.
    Other testures that I have tried which show this include Space > Womb, Timewarp, Rocket trail, Pharos, Nebula, NDE. Smoke > Cirrus, Contrail. Geometrics > Collograph, Cubes. (I have not tested all textures.) Medley > Mirage is OK.
    The jerking is also seen in the movie rendered by LT and when it is in FCE's timeline. I can get Womb to look smooth by speeding it up (at least it looks smooth to me).
    I have run:
    HD > Library > Application Support > LiveType > Textures > Space > Womb
    in QT Player 7.1.1 at Fit to Screen and it plays smoothly.
    The small movie at the top of LT's Media Browser (which demos testures) is always smooth. My FCE Easy Setup is DV PAL 48KHz Anamorphic and my video in FCE is Widescreen (16:9).
    I have set my LT Project Properties in LT to each of the two settings mentioned at the end and third from the end (SteveKir & Tom) of:
    http://discussions.apple.com/message.jspa?messageID=3009909#3009909
    and there is no difference.
    Could the problem be caused by the fact that the texture movies are essentially designed for 4:3 and NTSC?
    Any ideas?
    G5/2.0 GHz Mac OS X (10.3.9) 1 GB RAM, 150 GB HD, Sony DCR-HC96 mini DV, FCE HD 3.0
    G5/2.0 GHz Mac OS X (10.3.9) 1 GB RAM, 150 GB HD, Sony DCR-HC96 mini DV, FCE HD 3.0
    G5/2.0 GHz Mac OS X (10.3.9) 1 GB RAM, 150 GB HD, Sony DCR-HC96 mini DV, FCE HD 3.0

    If you're not lengthening or shortening the textures and you see this problem I suspect it's a PAL vs. NTSC problem as you suggest. I haven't tested it myself.

  • Stuck with Foreground and Background processing in Workflow

    Hi All,
    I have a BDC that is acting as a method in the Business Object. The requirement is something like this: The scenario is in the Utilities System. When a customer pays a security deposit a PM (Plant Maintanence) Service Order has to get created automatically in the background. I have a BDC for creating the Service Order but the thing is that if I make that task which runs the BDC as foreground and give the agent assignment it works absolutely fine and the service order gets generated, but if I make the same task as background the Service Order does not get created. I am heavily stuck with this issue.
    Has anybody encountered the same issue ?
    Best Regards,
    Sudhi

    Sudhindra,
    Are you checking for errors after the BDC Call Transaction? What I normally do is to use the Messages into option of the BDC call and return the messages to the Task Container in case of errors.
    Reasons why the method does not work in background is possibly due to authorizations or the WF-BATCH user being not known to the PM system. For instance when I create PM notifications in WF in background, I have to translate the WF initiator's user id to their Personnel Number for the Resp. Person field. If in your workflow the prior step to creating order is a dialog step, you can also try the Advance with dialog option on the background step.
    Cheers,
    Ramki Maley.

  • One Step in the Workflow

    Hi,
    When there is a change in the status of my sales order I need to place an entry in my application server.
    An event is triggered but I don’t want to create a workflow as this will be the only workflow in my system and i need to do configurations
    Is there any way I can put the receiver as a Function Module as my step is a background step.
    If so how do I capture the event and BO key .

    business transaction event... i am not sure if there is one for change in status of sales order...
    Well u might get one...

  • Transaction SWPC when scheduled in Background  is not working

    Hi All,
    I have scheduled the program RSWP_CONTINUE_WORKFLOWS_GRID  behind the transaction : SWPC daily at 11 : 00 PM system time.
    The creation date is selected as Creation date GE Sy-datum-1 dynamically and continue immediately option is also checked.
    However the background job is not  picking the list and restarting the workitems that are reported in system crash.
    When executed  the transaction in foreground , list is coming and I can able to restart the work items.
    Is there any other setting which I am missing or Please let me know your inputs  to solve the issue.
    Many Thanks !
    Thanks & Regards,
    Preethi G.

    Hi,
    I have chcked the ST22, there is no short dump and move over the step where the processing is stopped is a backgroung step.
    The same backgound step is execute fine for other workflow instances only few are getting strucked tp at this background  step.
    The Process :
    when MIGO is perfomed,  the euipments will be created.
    once equipement is created, the customer workflow gets triggred and euipment is updated.
    Suppose when MIGO is done 500 equipements gets created  based on the quantity and 500 times the workflow gets triggered for the updation of the equipments.
    sometimes, the backgroung job is working for around 495-497 , for remianing few euipments 2/3 , its getting struked up.
    For few indtances all the 500 euipements gets updated with out any issues.
    Only fews cases its getting down.
    Is this something related to performace of the system or performance of the code which is wriiten for the backgroung job.
    Please let me know your inputs.
    Many Thanks !
    Regards,
    Preethi.

Maybe you are looking for

  • How can you get an applet to obey the CSS z-index attribute?

    How can you get an applet to obey the CSS z-index attribute? I have a DHMTL page with a panel that I want to slide back and forth. But another part of the requirement is to have the panel look like it is sliding under another panel. The problem is th

  • Tasks not displaying in Mail tab

    Have recently started using Thunderbird (been using Outlook 2003) and have installed Lightening add on. I have created a number of tasks (mainly recurring) but they are not displaying in 'Tasks' pane on Thunderbird's main 'email' tab - they all have

  • Not saving preferences after change in music folder

    I've successfully moved the Itunes location (folder) before on my laptop, changing the place where music was stored, but I had major problems getting that IBM Thinkpad to work with my brand new Ipod. So I brought the external hard drive back down to

  • RePost: can't save the changes made on console

    Hi, I am in wls7.0sp1, whenever I change the values and click "Apply" button, the changes are reflected on the console, that means the values of that field changed, and also I can see the "<Configuration changes for domain saved to the repository.>"

  • Not able to download apps on iPhone 3G

    I recently changed my credit card on my iTunes account and now I cannot download any apps on my iPhone. It keeps saying "Your account info has changed. Go to iTunes store on your computer and update your biling info. I have done this like 10 times an