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.

Similar Messages

  • 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

  • Workflow stopping @ beginning of sub workflow

    Guys,
    I am calling Sub workflow from MAIN workflow.
    Processing of Main workflow stopping @ the STEP, wherein i trigger sub workflow.
    The status is : In process. (it is a background task to trigger sub workflow)
    If i process it manually with SWIA t-code , it is porcessing further.
    But, it is not processing automatically.
    Please guide.......
    Regrads.
    santosh.

    Hi Arghadip,
    Design Description of MAIN WF.
    BO: ZBUSECM(original: ECM).
    1)WF get triggered by ECO(CC01).
    2)ACTIVITY STEP to extract fields for both (Material & BOM ).
    3)2 level FORK to trigger BOM & Material WF.
    4) CONDITION to check flags for both BOM & Material.
    5)  BOM : if yes, reset flag to space & proceed. if no, no action. proceed further. till end of FORK.
    6) MATERIAL :if yes,reset flag to space
    6a)BLOCK to trigger material WF.
    6b)STEP to Trigger material WF(This will  call sub workflow).
    6c)WAIT step to receive material WF "COMPLETED" event.
    6d)ENDBLOCK to trigger material WF.
    7) END of 2 level FORK.
    8) ECH: Release ECO.
    9) WAIT step to ECM Close.
    10) Send mail for ECM Closure Notification.
    11) WF Complete.
    Design Description of Material(SUb) WF.
    BO: ZBUS1001(supertypel: BUS1001006).
    starting from 6b above.
    1)WF get triggered by 6b event "INITIATE".
    2)ACTIVITY STEP to send the material for editing to  MM COntroller agent.
    3) ACTIVITY STEP to send material for editing to fianance agent.
    4) ACTIVITY STEP to complete the  sub flow by triggering custom event "ZMANITRIGGERMATWFCOMPLETE" , which further calls the "COMPLETED" event by function module to hand over the control back to MAIN WF.
    Now, the above mentioned step(4) is not handing over the control to main WF........
    & also matnr is not being passed to sub flow now........
    Regards  & thanks.
    santosh.
    Edited by: santosh koraddi on Jun 22, 2010 7:22 PM

  • Workflow stops going ahead

    Dear all,
    I created a very simple workflow. Besides the "start" and "end" step, there's only one step, which just writes a record into DB table. This step has no agent. I tested it via transaction SWUS but found the status is always "in progress". The progress stops at the step which should write to DB table. Can you help to solve this problem?
    Thanks + Best Regards
    Jerome

    Hi Jerome,
    did you mark your task as a background task?
    And check the protocol of your WF in TA SWIA. It may give you a clue...
    Peter

  • 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

  • Error in the workflow which executes background synchronous webservice task

    Hi,
    I am very new to SAP Workflows. I created a workflow with one activity step in it. The activity step actually executes a task TS77000300 (synchronous calculation - its an SAP task). When I test it. I get an error "Error when starting the service" with exception 8987, area SWF_HTTP and message 125 - Object WEBSERVICE method PROCESSBATCH cannot be executed.
    I checked in WF_EXTSRV tcode, there is an entry for the background synchronous webservice task.
    I checked in SWLWPTSSID table, there is an mapping between task-id and service id from WF_EXT SRV.
    I am not sure where its going wrong. Any help resolving this issue is appreciated. Thanks a lot.
    Regards,
    Raja

    Gurprit/All
    Thanks Gurprit for the direction.
    Even if I execute the the workflow( WS77000647 from SAP). The first step invokes Process Dialog which asks for three numbers and two operands. When I input all the input params and click calculate button, the second step which is actually the background synchronous task, results in the same error in the workflow log and in the Process Dialog page browser it says "Entries sent for calculation" with the same input screen.
    Am I missing anything here to run background synchronous task? Any help regarding this is appreciated.
    Thanks & Regards,
    Raja

  • Pop up Box while workflow executes an activity step

    Hi Folks!
    I dont know whether this is feasible or not, but please shoot your suggestions.
    I want to display a pop up box in SAP GUI when a workflow executes a particular step. Basically, once my workflow starts, I have included a condition step (it checks the document type). So if the document type is 'X', then the workflow should proceed as usual. However, when the document type 's 'Y', the workflow should throw a pop up message over the screen and the workflow should terminate.
    Now the reason why we want the pop up screen rather than an email/workitem is because we have two workflows that utilize the same business object (FIPP). There was a situation where an end user manually started *(thru 'services for object'-> start workflow) the wrong workflow for a document, due to which the document got posted without getting any approvals.
    So what we would like to achieve is when the user manually starts the wrong workflow, the workflow should proceed and then when the check condition fails the user should get a pop up box immediately in SAP itself saying that the wrong workflow was started.
    Your inputs/comments are most welcome.
    Regards,
    Anwar.

    I am sorry but it is not possible to throw pop up every time, actually workflow consists of background task which got executed without user intervention and in those cases no pop up will come up.
    You can get pop up box for dialog task (such as user decision etc)you have to write down business object method code for that.
    there are many ways you can handle your situation:
    1. Write down the Check FM for FIPP-Posted Event where you can check it whether it is approved or not, If not then do not complete the workflow and start some dialog WI and send across to approvers
    (It is just outline, you have to formulate the solution around this outline).
    2. Also you can check for BAdi or user Exit and directly can write down message for that, It seems more easy.
    Cheers
    Jai

  • Workflow Error In Foreground Step?

    Hi all,
    I have developed workflow in which i am using ZCASH  BOR object to trigger the WF.
    i have used it in WF and Its working fine.but now i want to rename the ZCASH to ZABC.
    I have done it but the problem is in foreground step and in the method with Dialog.
    I have one task(foreground) in which i am calling that dialog method ZDISPLAY of new BOR ZABC.
    When i triggered the WF rest of the background steps are working fine.
    the problem is WF goes to error at ZDISPLAY step.It is showing in log that
    ZCASH->ZDISPLAY method is not defined.
    but there is no ref to old BOR object ZCASH.
    I have checked binding also.it fine.
    Thanks,
    Arpita

    Thanks........
    I have tried this in test wf its working fine..
    Is this because of this is a foreground task?because all other background steps are working fine.
    the workflow generates a Wi and whenever agebt tries to execute the WI it throws an error.
    Thanks.
    Arpita

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

  • How to stop the background job "Sap_collector_for_job_statistic"

    Dear All,
    Kindly let me know how to stop the Background job "Sap_collector_for_job_statistic" which is running everyday.
    We want to stop this background job.
    Kindly suggest.
    Regards,
    Mullairaja

    Select the Job using SM37 transaction. In the Menu Choose
    Job ---> Cancel Active Job.
    Before you do this it may be good idea to check the pid using SM50.
    It will be using a Background work process. Check the pid and the status.
    Select the same and in the Menu Choose Process --> Cancel with Core.
    Refresh and check in SM37 for the Active and Cancelled Jobs.

  • Workflow stopped working when we added new person to dummy HR position

    Hi,
    We have a third party expense reporting system which apparently sends some sort of IDOC to our SAP system.  This uses a HR dummy position in a dummy org to which users have been assigned.  These users are supposed to receive workflow emails that are expense reporting related.
    In August we added a person to this HR position and there were no issues.
    In October we added a person to this HR position and workflow stopped working.  We tried taking the person back off who was last added and workflow will not come back on.
    How do we get the workflow to process again?  We can figure out why that one person didn't work if we can get the workflow working for the other 5 people going again.
    Sorry for the high level details of the issue.  I haven't worked all the parts of it and am just pulling info from people to try and help find a solution.
    UPDATE:
    Here is the problem as described by my colleague.
    For the Concur expense reporting system, the data from the Concur system is communicated as IDOCs to SAP through the PI middleware.  When these IDOCs fail during the inbound processing (status 51) emails will be triggered and sent to the org unit (position - 50003828).  A change was made to the position by the HR team on Oct 7th (a new user was added and one was removed).  Since then the users have stopped receiving emails.  The workflow has stopped.
    We tried to take that new user back off and the email did not start back up.  We would like to get it started again and then figure out how to add that new user without an issue.
    Thanks,
    Wendy
    Edited by: Wendy Miller on Nov 11, 2011 11:59 AM

    Hello,
    "A change was made to the position by the HR team on Oct 7th (a new user was added and one was removed). Since then the users have stopped receiving emails. The workflow has stopped."
    The fact that the users have stopped receiving emails does not mean that the workflow has stopped. Ask your colleague why he thinks that.
    My guess: a change was made to that position, for example it was date-delimited so that it's no longer valid.
    As suggested above, look in SWI1. It'll be very easy if you know what the workflow number (WS....) is.
    Is it absolutely certain that it's a workflow sending these mails? If you look at an example of a mail, who was it sent by?
    Applying SWI1_RULE would only help if there was just one new user not receiving emails.
    regards
    Rick Bakker
    hanabi technology

  • How to stop browser background image from scrolling?

    So is there a way (an easy way) to stop browser background image from scrolling with the page?
    Thanks
    m

    If it's a single image, add this code to center the page horizontally:
    parent.document.body.style.backgroundPosition='50% 0%';
    http://www.wyodor.net/_Demo/tmf/Duckmenu.html
    http://www.wyodor.net/_Demo/duckmenu/duckassets/Spoorbackground.gif

  • Workflow stop at container operation

    Hi,
    I have problem in workflow.
    My workflow stop at container operation and i don't have any idea why it could happend.
    [Workflow Stop|www.freeimagehosting.net/uploads/4132b300f6.gif]
    Thanks,

    Hi,
    Can you check the workflow log with technical details.
    I think it would give you better idea what is happening?
    Try refreshing the buffer.
    Regards,
    Raj

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

Maybe you are looking for

  • Can no longer print wirelessly

    Hi All,  I have an Office jet 6310 AIO printer (not a wireless printer) which is connected by Ethernet to a wireless router. I used to be able to print wirelessly (Win7) and now for some unknown reason I can't. If I attach the laptop (Win7) to the pr

  • Track changes for Standard Heirarchy Cost Center details( Tcode: OKEON)

    Hi all, I have a requirement to track the changes for <b>Standard Heirarchy Cost Center</b> data and whenever it change i need to initimate with email to certain group of people in organization. Transaction code : OKEON . Whenever standard heirarchy

  • Diagnostic tools for MacBook Pro?

    Hello! I recently bought a refurbished 3rd party MacBook Pro. I am a little skeptical about buying it be because it was refurbished. Is there any type of software that can go through a process of diagnosing the internal parts to make sure that they a

  • How do I transfer music from my Ipod touch

    I have an ipod touch and want to transfer my music and files to a new pc. If I don't have access to the old pc where my original library was, can I still save these files of music without losing them?

  • Using JSLink overrides or sets chosen view style (shaded or newletter) to the default view style

    I am trying to apply custom JavaScript via JSLink to change how the data is shown on the Listview page.  The JavaScript works fine, however my chosen view style (shaded and newsletter) either gets overridden or set to Default.  I've been searching fo