Background task stuck

Hi All,
In my workflow, a background task is stuck.the task hasnt failed.
When completed manualy from SWIA, task is completed successfully.
I will be thankful for guideing why this task is stuck at runtime and how this bug/prob can be resolved.
Thanks.

Are you saying that the background task fails when first called in the workflow but when resumed it works? You also mentioned that when completed in SWIA it works, please note that when you complete something in SWIA you are not actually running the code; you are merely marking that workitem as completed so that the workflow can proceed. The transactions mentioned above should guide you to the problem. It could be a short dump or a failed workitem.
I've seen some instances where it is the security profile of the WF-BATCH user. This will cause the background task to fail. Then, when you as a workflow administrator go to SWPR and start from there, it will work. So, turn the authorization trace on and see if that's a reason (transaction ST01 can be used for that).

Similar Messages

  • Background Task status is halted in 'In Process'

    Hello,
    The background task in a workflow template is halted in the 'In Process' state and the workflow is not completed. When I tried to execute the method from SWO1 separately, it is working fine.
    Please do let me know if I am missing out something.
    Regards,
    Samson

    Hi Samson,
    You can also check in tx SWU2 if there aren't any local rfc's stuck in there.
    To investigate the problem tx SWPC might help (it is precisely designed to restart workflows with a background task stuck into "in progress" status).
    You can also have a look at [this thread|Workflow hanging - ST22 and SWU2 empty; for more suggestions.
    Cheers,
    Patrick

  • Background Task on Adobe Photoshop Elements and Adobe Premiere Elements Organizer "hangs"

    I recently upgraded my software from Elements 10 to Elements 12 and had a bit of trouble.  Apparently both 10 and 12 have a way of launching an executable in the background which tends to get "stuck" on my system.  I believe the problem may be related to the network configuration and software mix I live with, but I need to confirm my suspecions and find a way to control the problem.  Here is what I know... I have always experienced a lot of problems using Elements with my NAS device which is a 1TB usb 2.0 connected disk system attached to my Linksys  E3000 Router.  When I got the router, the BIOS software did not correctly support NTFS file systems, but subsequent updates eventually made this possible if you formatted the removable drive on a system in NTFS, you could then hang it on the router and "see" the contents, serve them via Windows Media Player, or iTunes, etc., etc. from a computer atteched to the network, or via wirless directly off the router.  I archived all my photos out on this file system and have successfully indexed it for use with Adobe Photoshop Elements and Adobe Premiere Elements Organizer, but...  When I went to install Elements 12 software I tried to install it without first removing Elements 10, and on a system which had run Elements 10 since the last full reoboot.  During the install of 12 under "shared services install" the installation process "Hung" on a background task with a name like "AdobeElementsAnalyzer.exe" which only shows up in Windows 7 task manager as a running process, not as a full program, but because the file was locked by the system, the install hung.  I eventually figured out that I needed to start the install of Elements 12 software immediately after having rebooted so that this program was not present in the background, and succeeded in completing an install of Elements 12 on my Windows 7 X64 system.  This system required a "special" software download for Premiere Elements, but not for Photoshop Elements which is only apparently avaliable under 32bit emulation mode.  I finally got the "shared components" portion of the X64 Premiere Elements to complete an install, and then set about verifying the onversion/upgrade of the indexes to my photos and video stored out on the NAS.  The same rogue task which prevented me from doing the install showed up agian, taking all the system resources away from my dual processor Intel chip and refusing to let go.   I was forced to terminate it from the task manager.  I strongly suspect that my "issues" are in part due to the extrordinary network latency imposed by the drive connection I'm using to index my photos and videos, and I'm looking for a better approach to using the editors against my master catalog of files, as well as figruing out just what I need to do to insure that all the files I have stored on the drive are accessible by the organizer when I need to pull a copy to work on.
    A complication is that I have two "legacy" Windows XP systems on my network, a reasonably fast Windows Vista Business desktop, and the Windows 7 X64 processor system which is the most powerful system I have.  The Windows file security enhancements to NTFS changed from XP, to Vista, to Windows 7, so files which get saved to the NAS disk inherit a variety of different levels of security under windows.  I have occasionally gone to one of my old XP boxes and "wiped" the security settings by resetting everything via Windows XP.  Because the NAS is so slow, this process can take several hours and must not be interrupted by attempts to do anything affecting the NAS by any of my other networked computers.  To avoid problems with my photo archive, it makes sense to me to do all my editing on copies which have been extracted from the NAS archive and stored on the C: drive (boot drive) of my Win X64 system. 
    What I seriously need to know is this:  When/If I define a "watched" portion of my file system, rather than taking the time to manually import every little change to my photo archives, can I expect the Photoshop Elements Organizer to work properly as long as everything stored on the NAS is stored via the same system which runs Elements with the same active "user" in control so that all the windows 7 file security settings putting stuff on the mapped NAS drive remain properly secured under Win 7 X64?  Frankly I don't care if the files appear "read only" to every other system and identity on my network, but I do need to be able to "see" them.  I have been able to view slide shows and movies stored on the NAS via both my networked iPad, my Apple TV, and using Samsung's funky android and Windows compatible software.  Frankly, I doubt that Microsoft or Apple has full understanding and control of the environment where there is no host "server" other than the eprom based stuff my Linksys E3000 loads to emulate early Windows Media Management architecture, but I mange to get it to work as long as I don't try anything sophisticated with the file permissions.   As a fall back, can I expect individual "imported" bits out on the NAS to remain stable if indexed and used only by the Elements Organizer running on my Win 7 X64 system?
    I am seriously considering converting an old WinXP desktop into a UNIX box which could be configured as a "Server" for everything stored on the NAS and be done with my problems in return for the power required to run the server all the time so stuff is there when I need it.  Any recommendations?
    Message was edited by: [email protected]

    Adobe hasn't said whether it officially supports PSE 7 on Windows 7.  But reports are starting to trickle in that PSE 7 works fine on Windows 7 for most people, though a couple people have reported crashes. My PSE 7 seems to work fine, though I primarily use PSE 8 now.  This is all very preliminary, and we'll learn more as more people post here.

  • Background task problem

    Hi have couple of background task in my workflow.My problem is that the task sometimes get stuck or sometimes take a lot of time in processing.I am not able to find out problem why it si happening.
    Can you help me out to drill down this problem.

    Hello,
    You wrote:
    "My problem is that the task sometimes get stuck or sometimes take a lot of time in processing"
    So sometimes it gets stuck forever, and sometimes it just takes a long time? Odd. Any difference between the two cases? Are they both with level 2?
    What does the method do?
    Has it always done this, or did it suddenly start showing this behaviour?
    regards
    Rick Bakker
    Hanabi Technology

  • Background Task running under initiator not under WF-BATCH

    Hi All,
      I am trying to resolve a problem with a Background task running under intiator. Since the initiator does not have authorization to execute the task, it is not working.
    My understanding was, all background tasks will run under WF-BATCH!!. Is it correct?.  in 4.7, it is working this way.
    However in ECC 6.00  the background task before the first dialog work item is executed under 'intiator' in this case.  I have moved the same task after first dialog work item, and it was executed under WF-BATCH.. I cannot move the task after the dialog workitem as the task need to be executed immediatly after the creation of workflow.
    1. How can I run the task in backgroud under WF-BATCH?
    2. Inside the task, I am running a BDC to update a flag in downpayment transaction created using F-47. How can I run the process under batch user to overcome the authorization issue that initiator will not authorization.
    I am running this workflow in SAP ECC 6.0 level 13
    Any help is really appreciated..
    thanks in advance for your help.
    johnson

    This issue can be resolved with triggering the event using the additional flag export parameter 'CREATOR' in function module  ''SWE_EVENT_CREATE_FOR_UPD_TASK' as WF-BATCH. I was not passing this parameter and hence it didn't work in ECC 6.0 as it take who ran the process as creator and ran the background task under that users id.
    Thanks Rachid for your input to resolve this problem.
    johnson zavier

  • Background tasks

    Why don't I have background tasks option in settings on my Nokia lumia 610 mobile phone as my weather app won't automatically update and it says turn on in settings background tasks? Please help

    In settings, left swipe to go to 'applications' ..then the First option should be 'background tasks' ..

  • Function module not working when used with 'In Background Task'

    hi,
    this is my code
    call function 'Z_IBD_FILL_ZINETACT'
                  in background task
                  destination  'SAPD220125'
                  tables
                      it_net1 = it_net1
                      it_net2 = it_net2
                      it_net3 = it_net3  .
    when this code is executed i am not getting any data in my internal tables i.e it_net1, it_net2, and it_net3
    but i changed this code see the below code
          call function 'Z_IBD_FILL_ZINETACT'
                 in background task (THIS IS COMMENTED)
                  destination  'SAPD220125'
                  tables
                      it_net1 = it_net1
                      it_net2 = it_net2
                      it_net3 = it_net3  .
    now i am getting data into my internal tables
    can any one tell me what can be the problem and how to solve it in my case
    its very urgent

    Hi,
    Pls. go through the  docu..
    CALL FUNCTION
    Variant 5
    CALL FUNCTION func IN BACKGROUND TASK.
    Additions:
    1. ... AS SEPARATE UNIT
    2. ... DESTINATION dest
    3. ... EXPORTING  p1 = f1    ... pn = fn
    4. ... TABLES     p1 = itab1 ... pn = itabn
    Effect
    Flags the function module func to be run asynchronously. It is not executed at once, but the data passed with EXPORTING or TABLES is placed in a database table and the next COMMIT WORK executes it in another work process.
    Note
    This variant applies only as of Release 3.0, so both the client system and the server system must be Release 3.0 or higher.
    Note
    qRFC with Outbound Queue
    This is an extension of tRFC. The tRFC is serialized using queues, ensuring that the sequence of LUWs required by the application is observed when the calls are sent.
    For further information about qRFC, refer to the Serialized RFC: qRFC With Outbound Queue section of the SAP Library.
    Addition 1
    ... AS SEPARATE UNIT
    Effect
    Executes the function module in a separate LUW under a new transaction ID.
    Addition 2
    ... DESTINATION dest
    Effect
    Executes the function module externally as a Remote Function Call (RFC); dest can be a literal or a variable.
    Depending on the specified destination, the function module is executed either in another R/3 System or as a C-implemented function module. Externally callable function modules must be flagged as such in the Function Builder (of the target system).
    Since each destination defines its own program context, further calls to the same or different function modules with the same destination can access the local memory (global data) of these function modules.
    Note
    Note that a database commit occurs at each Remote Function Call (RFC). Consequently, you may not use Remote Function Calls between pairs of statements that open and close a database cursor (such as SELECT ... ENDSELECT).
    Addition 3
    ... EXPORTING p1 = f1 ... pn = fn
    Effect
    EXPORTING passes values of fields and field strings from the calling program to the function module. In the function module, formal parameters are defined as import parameters. Default values must be assigned to all import parameters of the function module in the interface definition.
    Addition 4
    ... TABLES p1 = itab1 ... pn = itabn
    Effect
    TABLES passes references to internal tables. All table parameters of the function module must contain values.
    Notes
    If several function module calls with the same destination are specified before COMMIT WORK, these normally form an LUW in the target system. Calls with the addition 1 are an exception to this rule - they each have their own LUW.
    You cannot specify type 2 destinations (R/3 - R/2 connections).
    (See Technical details and Administration transaction.)
    Example
    REPORT  RS41503F.
    /* This program performs a transactional RFC.
    TABLES: SCUSTOM.
    SELECT-OPTIONS: CUSTID FOR SCUSTOM-ID DEFAULT 1 TO 2.
    PARAMETERS: DEST LIKE RFCDES-RFCDEST DEFAULT 'NONE',
                MODE DEFAULT 'N',
                TIME LIKE SY-UZEIT DEFAULT SY-UZEIT.
    DATA: CUSTITAB TYPE TABLE OF CUST415,
          TAMESS   TYPE TABLE OF T100,
          WA_CUSTITAB TYPE CUST415.
    SELECT ID NAME TELEPHONE INTO CORRESPONDING FIELDS OF TABLE CUSTITAB
                   FROM SCUSTOM WHERE ID IN CUSTID ORDER BY ID.
    PERFORM READ_CUSTITAB.
    EDITOR-CALL FOR CUSTITAB TITLE 'Editor for table CUSTITAB'.
    PERFORM READ_CUSTITAB.
    CALL FUNCTION 'TRAIN415_RFC_CALLTRANSACTION'
         IN BACKGROUND TASK
         DESTINATION DEST
         EXPORTING
              TAMODE    = MODE
         TABLES
              CUSTTAB   = CUSTITAB.
    CALL FUNCTION 'START_OF_BACKGROUNDTASK'
         EXPORTING
              STARTDATE = SY-DATUM
              STARTTIME = TIME
         EXCEPTIONS
              OTHERS    = 1.
    IF SY-SUBRC = 1.
      EXIT.
    ENDIF.
    COMMIT WORK.
    CALL TRANSACTION 'SM58'.
          FORM READ_CUSTITAB                                   *
    FORM READ_CUSTITAB.
      WRITE: / 'System ID:', SY-SYSID.
      SKIP.
      LOOP AT CUSTITAB into WA_CUSTITAB
        WRITE: / WA_CUSTITAB-ID, WA_CUSTITAB-NAME,
                 WA_CUSTITAB-TELEPHONE.
      ENDLOOP.
      ULINE.
    ENDFORM.
    Pls. reward if useful....

  • User WF_BATCH dumps with TIME_OUT for a background task

    Hello,
    Situation :
    While executing a workflow with a task defined as background task, the workflow creates a dump in ST22 after around 40 minutes. dump is because of TIME_OUT exception. And the workflow stays in status InProcess forever.
    Question:
    In my opinion background tasks do not have a time limit because they are executed as backgound batch jobs with batch user WF_BATCH. Then why do I get a TIME_OUT error ?
    Is my assumption that workflow background task are just handled like other background jobs (sm36) is wrong ?
    More Details :
    I have a workflow with a task defined as background task (Task -> Basic Data -> Execution -> Check box 'Background processing' selected).
    This task calls a method defined as 'Synchronous' method.
    This method calls a ABAP FM having a select statement which selects large volume of Data.
    If I execute this FM in Dialog mode definately I get a TIME_OUT. I understand this.
    But what I do not understand is , while executing in background I do not expect TIME_OUT error since background jobs do not have a time limit. They can even run for several days.
    Please let me know in what cases does a background job throws a time_out exception.esp wrt workflow.
    Thanks in Advance
    Shivanand

    Check this link.
    http://mailman.mit.edu/pipermail/sap-wug/2003-April/008883.html
    Thanks
    Arghadip

  • Qs about call FM in background task, and monitoring in SM37.

    Hi, guys, i got a question here, if I call a FM using addition "in background task" in a Z program, does this mean the FM process is running in background? And can I monitor my task in sm37?
    i've tried to do that, the FM was successfully proceeded, but I cannot see anything related to that task in SM37 under mine user ID.

    No, you cannot see that in SM37.
    What it means is that the function is being executed in a seprated thread and the program that called the function will continue the execution without waiting for the function finish execution, that means the function is called in a synchronous manner.
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • What is the use of CALL FUNCTION MODULE - AT BACKGROUND TASK?

    Hi experts,
    I found Call functional module in background task will make the FM run at the next commit work as some people said. So I have some questions:
    1 if we use COMMIT WORK commend, the pending FM will be called? If there are several FMs called at background task, what is the sequence of them? How many conditions will trigger the running of these FMs?
    2 Where can I find the log of this pending FMs? In SAP library, it says there are 2 tables. But I checked these tables and can only find the FM name and user of it. And I can not understand content of these tables. It seems one is for the main information of FM, and the other is for the data of the FM, maybe the parameters.
    3 If I call a FM in this way, Can I canncel it before the next commit work in some way?
    Finally, thanks for reading and help.

    HI,
    When the COMMIT WORK statement is executed, the function modules registered for the current SAP-LUW are started in the order in which they were registered. ROLLBACK WORK deletes all previous registrations for the current SAP-LUW.
    If the specified destination is not available when COMMIT WORK is executed, an executable program called RSARFCSE is started in background processing. By default, this tries to start the function modules registered for a SAP-LUW in their destination every 15 minutes and up to 30 times. These parameters can be changed in the transaction SM59. If the destination does not become available within the defined time, it is recorded in the database table ARFCSDATA as the entry "CPICERR". The entry in the database table ARFCSSTATE is deleted after a standard period of eight days

  • How to get return values In Background Task?

    Hi all,
    I have a Call Function Module In Background Task.In this FM I defined a return tables to get related info.But if use In Background Task mode,how to look/get these table values? Many thanks!
    Kelvin

    Hi,
    Create the list o/p of the return table and view the o/p in SP01 transaction.
    Regards,
    Prashant.

  • How to see the status of a FM IN BACKGROUND TASK?

    Hi experts,
    If I call a FM IN BACKGROUND TASK addition. I can't Debug the FM called in BACKGROUND TASK. Then whether there is a way to see the status of this FM IN BACKGROUND TASK? I want to know this task is finish or not.
    Thanks.

    Hi Kelvin,
    I am also facing similar problem. I have come across few documents which have suggeted the way to test the FM in background. For this you will have to change the debugging settings, its in the  Settings->Display and change all. Check the oprion for In background task.
    A good document on settings of debugging.
    http://www.sappro.com/downloads/Settings&SystemAreas.pdf
    Regards,
    Sana.

  • Windows 8.1 background task Javascript - Call angular controller function from task js

    Hi,
    The Ionic Side menu starter template for windows 8.1 is a very good option to run the ionic apps on Windows  8.1 phones.
    I am not sure whether this is related to Ionic/angular or VS2013 CTP 3.1 but if anyone can give some tips ,that would be great. I registered a background task as per the VS tutorial (Run JS task in background) and i tested it with windows toast notifications.However
    my requirement is to access webservice in background which I am not able to implement.
    The setup for background task is path to the js file but my requirement is to call a function defined within a controller.Is there any way i can access the controller function from an outside js file.I am new to Ionic,Angular and VS 2013.Any help would be great
    The structure of background task js file is as below
    (function() {
       --- I need to call my controller/service  function here---
        var notifications = Windows.UI.Notifications;
        var template = notifications.ToastTemplateType.toastImageAndText01;
        var toastXml = notifications.ToastNotificationManager.getTemplateContent(template);
        var toast = new notifications.ToastNotification(toastXml);
        var toastTextElements = toastXml.getElementsByTagName("text");
        toastTextElements[0].appendChild(toastXml.createTextNode("From Background!"));
        var toastNotifier = notifications.ToastNotificationManager.createToastNotifier();
        toastNotifier.show(toast);
        close();
     

    Are there any updates on this issue? I'm currently seeing this on a Lumia 822 with WP8.1, and the app has never been published to the store. I've only ever deployed the app from Visual Studio to my device. It worked when deploying the Debug build, then I
    tried a Release build, and it crashed immediately upon launch when trying to register the background task, but then I was able to go back to deploying/debugging the Debug build on the device for awhile. I made more changes, and now neither Debug nor Release
    builds work--both fail on the BackgroundTaskBuilder.Register() call with the error described in the original question:
    "The drive cannot locate a specific area or track on the disk. (Exception from HRESULT: 0x80070019)"
    I've tried changing the Task name during registration, rev-ing the version number of the application, adding the call to BackgroundExecutionManager.RemoveAccess() before BackgroundExecutionManager.RequestAccessAsync(), changing the name of the IBackgroundTask
    concrete implementation and changing the corresponding EntryPoint in the package.appxmanifest (as well as in the BackgroundTaskBuilder instance), and changing the package DisplayName to a new reserved name, all to no avail. The only thing I didn't try
    was associating with an entirely new app in the app store or paving my phone, as these are both fairly undesirable "workarounds."
    Even if this won't affect clients downloading the app from the store, this is a major roadblock during development, as we can essentially only use the emulator to test an app specifically designed to help solve problems involving moving around physically
    in the real world.
    Any more information would be greatly appreciated. If there's any information I can provide, please let me know.

  • Creation of spool for job created by calling FM in background task

    Hi Gurus,
    1.Wanted to confirm if it is possible to attach spool to the job that has been created by calling a function module in background task.
    Currently I have created one RFC enabled FM and called it in background task. It runs fine, and the job is created which can be seen in SM37. But it does not contain the spool even if the RFC FM contains the code for list ALV.
    2. Also is it possible to control the name of the job created by calling the RFC FM in background task?
    Code for calling the FM is given below(ZK_XX is th RFC FM):
    CALL FUNCTION 'ZK_XX' IN BACKGROUND TASK
    CALL FUNCTION 'START_OF_BACKGROUNDTASK'
    EXPORTING
       startdate       = sy-datum
       starttime       = sy-uzeit
      NOSEND          = ' '
    COMMIT WORK.
    Thanks a lot for your help!!
    Warm Regards,
    Raveesh

    Thanks for replying.
    I need to do the processing in background. Hence using 'IN BACKGROUND TASK' addition.
    Please let me knowif you have some idea.
    Thanks & Warm Regards,
    Raveesh

  • IN BACKGROUND TASK as a different user ID

    Hi experts,
    I am performing a FM IN BACKGROUND TASK call in a BADI to automate creation of GR.
    Example:
    Step 1. User ABC performs GR for plant 0001.
    Step 2. BADI checks and automates another GR for plant 0002.
    The problem is user ABC only has authorization for plant 0001.
    During step 2, the BAPI returns an error saying that there is no authorization for plant 0002 as the BADI is triggered by user ABC.
    I am using FM BAPI_GOODSMVT_CREATE. I tried to pass in an ID with SAP_ALL to the PR_UNAME field to indicate this ID as the creator of the GR, but the authorization check still exists.
    Is there anyway I can force this background task to be executed by another ID instead of the triggering ID?
    Thanks in advance.

    Make sure to discuss this with the security team...
    The RFC destination you specify in your [call function - in background task|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_BACKGROUND_TASK.htm] can be used to specify a different user. Check for example the logical workflow destinations in transaction SM59...
    Cheers, harald

Maybe you are looking for

  • Events created by iphone do not sync  to my macbook through itunes

    Hello, I have a problem with my IPhone and my MacBook.  I use to work with my IPhone (photos, calendar, mail...) and then when I go home I sync it to my MacBook through ITunes as always.  But two weeks ago I realize that the events I was creating in

  • Delete the entry from dropdown list in the pop up window in ALV report

    Hi All, I have a requirement in the ALV interactive report ZMM_IMPL .If we enter selection screen parameters its displaying the first screen.If we click on 'Goods Issue' tab ,it display the pop up window for Requirement Pick list with Batch number ,S

  • Cash Disbursement report in SAP

    Is there a report in SAP that shows the actual cash disbursement by category. Some of the categories that we report cash disbursement incluse inventory, fixed assets, inter-company, royalties and payroll. Thanks

  • Problem with Select Filter value.......

    HI all We have created a report on Sales cube,and Inserted the Report into work book. In the report we have 2 Commission codes 1.Customer,2.material.    when we are trying to select filter values for customer Commission code,we are Gatting the Pop-up

  • Best practice in related to EWA

    Hi folks, Is there any Best practice to activate the EWA reports? I mean, SAP recommend to activate EWA report for every single systems (DEV, QA and PRD).... If anyone has an OSS Note which says about that it will be very helpful! Tks a lot!