Long running background job

Hi,
          We are facing problem with an MM job, this job some time finishes in few minutes or some times it will be running for a long time so that we should kill the job manually.                                                                               
Can you please tell me what are the reasons can be for this, and also tell me what are the reasons that a job to be fnished in scheduled is running for a long time and how to find the root cause for this.
Yours reply is very much appreciated
Regards
Balaji Vedagiri

Hi,
Please confirm you have enough hardware space.
Please do a consistency check of the BTC Processing System as follows:
1. Run Transaction SM65
2. Select Goto ... Additional tests
3. select these options: Perform TemSe check
                         Consistency check DB tables
                         List
                         Check profile parameters
                         Check host names
                         Determine no. of jobs in queue
                         All job servers
   and then click execute.
4. Once you get the results check to see if you have any inconsistencies
   in any of your tables.
5. If there are any inconsistencies reported then run the "Background
   Procesing Analyses" (SM65 .. Goto ... Additional Tests) again.
   This time check the "Consistency check DB tables" and the
   "Remove Inconsistencies" options.
6. Run this a couple of times until all inconsistencies are removed from
   the tables.
Make sure you run this SM65 check when the system is quiet and no other
batch jobs are running as this would put a lock on the TBTCO table till
it finishes.  This table may be needed by any other batch job that is
running or scheduled to run at the time SM65 checks are running.
Please confirm you are running the following reports daily as per note #48400:
RSPO0041 (or RSPO1041), RSBTCDEL: To delete old TemSe objects
RSPO1043 and RSTS0020 for the consistency check.
Regards,
Snow

Similar Messages

  • Alert monitor for long running background jobs

    Hello,
    I have to configure an alert moniter for long running background jobs which are running more than 20000 secs using rule based. I have created a rule based MTE and assigend MTE class CCMS_GET_MTE_BY_CLASS to virtual node but i dont find a node to specify the time.
    could any one guide me how can i do this.
    Thanks,
    Kasi

    Hi *,
    I think the missing bit is where to set the maximum runtime. The runtime is set in the collection method and not the MTE class.
    process:  rz20 --> SAP CCMS Technical Expert Monitors --> All Contexts on local application server --> background --> long-running jobs. Click on 'Jobs over Runtime Limits' then properties, click the methods tab then double click 'CCMS_LONGRUNNING_JOB_COLLECT', in the parameters tab you can then set the maximum runtime.
    If you need to monitor specific jobs, follow the process (http://help.sap.com/saphelp_nw70/helpdata/en/1d/ab3207b610e3408fff44d6b1de15e6/content.htm) to create the rule based monitor, then follow this process to set the runtime.
    Hope this helps.
    Regards,
    Riyaan.
    Edited by: Riyaan Mahri on Oct 22, 2009 5:07 PM
    Edited by: Riyaan Mahri on Oct 22, 2009 5:08 PM

  • Alv show in report but when see in spool (after run background job) there i

    my program have some error when i run result alv show in report but when see in spool (after run background job) there is no data, (other program can see result in spool)
    Please help
    here is some example of my program
    ********************************declare internal table*****************************
    internal table output for BDC
    data : begin of t_output occurs 0,
    bukrs type anla-bukrs,
    anln1 type anla-anln1,
    anln2 type anla-anln2,
    zugdt type anla-zugdt,
    result(70) type c,
    end of t_output.
    *****get data from loop********************************
      loop at t_anla.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_anla-anln1
             IMPORTING
                  OUTPUT = t_anla-anln1.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_anla-anln2
             IMPORTING
                  OUTPUT = t_anla-anln2.
    check record is correct or not
        select single bukrs anln1 anln2 zugdt
        into w_output
        from anla
        where bukrs = t_anla-bukrs and
        anln1 = t_anla-anln1 and
        anln2 = t_anla-anln2
       zugdt = '00000000'
    if record is correct
        if sy-subrc = 0 and w_output-zugdt = '00000000'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Yes : this asset can delete'.
          append w_output to t_output.
    if record is not correct
        elseif sy-subrc = 0 and w_output-zugdt <> '00000000'.
    there is error record  this asset have value already
          v_have_error = 'X'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Error : this asset have value already'.
          append w_output to t_output.
        else.
    there is error record this asset donot exist in table anla
          v_have_error = 'X'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Error : this asset doest not exist'.
          append w_output to t_output.
        endif.
    *end of check record is correct or not
        clear w_output.
      endloop.
    ******************************show data in ALV***************************************************
    show data from file in ALV
      perform display_report_ALV.
    *&      Form  display_report_ALV
    form display_report_ALV.
      DATA: LT_FIELD_CAT TYPE SLIS_T_FIELDCAT_ALV,
          LT_EVENTS TYPE SLIS_T_EVENT,
          LV_REPID LIKE SY-REPID.
      PERFORM ALV_DEFINE_FIELD_CAT USING LT_FIELD_CAT.
      PERFORM ALV_HEADER_BUILD USING T_LIST_TOP_OF_PAGE[].
      PERFORM ALV_EVENTTAB_BUILD USING LT_EVENTS[].
      LV_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = LV_REPID
                IT_FIELDCAT        = LT_FIELD_CAT
                I_SAVE             = 'A'
                IT_EVENTS          = LT_EVENTS[]
           TABLES
                T_OUTTAB           = t_output
           EXCEPTIONS
                PROGRAM_ERROR      = 1
                OTHERS             = 2.
      IF SY-SUBRC NE 0.
        WRITE: / 'Return Code : ', SY-SUBRC,
          'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
      ENDIF.
    endform.
    *&      Form  alv_define_field_cat
          text
         -->P_LT_FIELD_CAT  text
    FORM ALV_DEFINE_FIELD_CAT USING  TB_FCAT TYPE SLIS_T_FIELDCAT_ALV.
      DATA: WA_FIELDCAT LIKE LINE OF TB_FCAT,
        LV_COL_POS TYPE I.
      DEFINE FIELD_CAT.
        CLEAR WA_FIELDCAT.
        ADD 1 TO LV_COL_POS.
        WA_FIELDCAT-FIELDNAME = &1.
        WA_FIELDCAT-REF_TABNAME = &2.
        WA_FIELDCAT-COL_POS = LV_COL_POS.
        WA_FIELDCAT-KEY = &3.
        WA_FIELDCAT-NO_OUT = &4.
        WA_FIELDCAT-REF_FIELDNAME = &5.
        WA_FIELDCAT-DDICTXT = 'M'.
        IF NOT &6 IS INITIAL.
          WA_FIELDCAT-SELTEXT_L = &6.
          WA_FIELDCAT-SELTEXT_M = &6.
          WA_FIELDCAT-SELTEXT_S = &6.
        ENDIF.
        WA_FIELDCAT-DO_SUM = &7.
        WA_FIELDCAT-OUTPUTLEN = &8.
        APPEND WA_FIELDCAT TO TB_FCAT.
      END-OF-DEFINITION.
      FIELD_CAT  'BUKRS'  'ANLA'     'X' '' 'BUKRS' 'Company Code' '' ''.
      FIELD_CAT  'ANLN1'  'ANLA'     'X' '' 'ANLN1' 'Asset Number' '' ''.
      FIELD_CAT  'ANLN2'  'ANLA'     'X' '' 'ANLN2' 'Asset Sub Number' '' ''.
    FIELD_CAT  'ATEXT'   'T5EAE'     'X' '' 'ATEXT' 'Result' '' ''.
      FIELD_CAT  'RESULT'  ''     'X' '' 'RESULT' 'RESULT' '' ''.
    ENDFORM.                    " alv_define_field_cat

    Hi,
    Check this code..
    FORM display_report_alv.
      DATA: lt_field_cat TYPE slis_t_fieldcat_alv,
      lt_events TYPE slis_t_event,
      lv_repid LIKE sy-repid.
      PERFORM alv_define_field_cat USING lt_field_cat.
      PERFORM alv_header_build USING t_list_top_of_page[].
      PERFORM alv_eventtab_build USING lt_events[].
      lv_repid = sy-repid.
      IF sy-batch EQ 'X'.  ----> " System Field for Backgroud..if Background use list display
        CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            i_callback_program = lv_repid
            it_fieldcat        = lt_field_cat
            i_save             = 'A'
            it_events          = lt_events[]
          TABLES
            t_outtab           = t_output
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
      ELSE.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program = lv_repid
            it_fieldcat        = lt_field_cat
            i_save             = 'A'
            it_events          = lt_events[]
          TABLES
            t_outtab           = t_output
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
      ENDIF.
      IF sy-subrc NE 0.
        WRITE: / 'Return Code : ', sy-subrc,
        'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
      ENDIF.
    ENDFORM.                    "display_report_ALV

  • Can a long running batch job causing deadlock bring server performance down

    Hi
    I have a customer having a long running batch job (approx 6 hrs), recently we experienced performance issue where the job now taking &gt;12 hrs. The database server is crawling. Looking at the alert.log showing some deadlock,
    The batch job are in fact many parallel child batch job that running at the same time, that would have explain the deadlock.
    Thus, i just wondering any possibility that due to deadlock, can cause the whole server to be crawling, even connect to the database using toad is also getting slow or doing ls -lrt..
    Thanks
    Rgds
    Ung

    Kok Aik wrote:
    According to documentation, complex deadlock can make the job appeared hang & affect throughput, but it didn't mentioned how it will make the whole server to slow down. My initial thought would be the rolling back and reconstruct of CR copy that would have use up the cpu.
    I think your ideas on rolling back, CR construction etc. are good guesses. If you have deadlocks, then you have multiple processes working in the same place in the database at the same time, so there may be other "near-deadlocks" that cause all sorts of interference problems.
    Obviously you could have processes queueing for the same resource for some time without getting into a deadlock.
    You can have a long running update hit a row which was changed by another user after the update started - which woudl cause the long-running update to rollback and start again (Tom Kyte refers to this as 'write consistency' if you want to search his website for a discussion on the topic).
    Once concurrent processes start sliding out of their correct sequences because of a few delays, it's possible for reports that used to run when nothing else was going on suddenly finding themselves running while updates are going on - and doing lots more reads (physical I/O) of the undo tablespace to take blocks a long way back into the past.
    And so on...
    Anyway, according to the customer, the problem seems to be related to the lgpr_size as the problem disappeared after they revert it back to its orignial default value,0. I couldn't figure out what the lgpr_size is - can you explain.
    Thanks
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "Science is more than a body of knowledge; it is a way of thinking" Carl Sagan

  • How To Run Background Job on Specific Date of Every Month

    Hi,
    I am looking for an option there we can Run Background job On Specific Date!
    Example: Task Name: Zprg1 > each month of "18", and same I want to repeat after 3 Days means on "22", then want to repeat after 5 days means on "28"
    please suggest.

    Hi swapZ,
    this is very easy:
    1. Schedule the Job Zprg1 on the 18th of this month and enter a mothly period:
    2. copy this job to new name  Zprg1_plus3 and repeate the action of point 1 with the date 22.04.2015.
    3. copy this job to new name  Zprg1_plus5 and repeate the action of point 1 with the date 28.04.2015.
    You will get thre jobs running every month on 18. 22. and 28.
    Best regards
    Willi Eimler

  • Is it possible to delete a running background job programatically?

    Hi Gurus,
    is it possible to delete a running background job programatically? if yes how can we do that?
    Thanks in advance

    Or as sais by Sandeep you can use that fm.
    Before calling that select the required data from table TBTCO and pass to the fm.

  • SQL error "-911" while running background job

    Hi Experts,
        We are getting the below runtime error while a background job is run.
    SQL error "-911" when accessing table "DD02L".
    Error Text of the Database: "SQL0911N The current transaction has been rolled 
      back because of a deadlock or timeout. Reason code "2". SQLSTATE=40001 row=1"
    The error is happening at a delete statement.
    Please let me know what might be the reason of this error and how this can be resolved.
    Thanks,
    Jissa.

    Hi,
    The system is taking very long for processing delete statement.
    can u send me ur code, so based on that i will give u some idea.
    Ram.

  • Running background job with class type "A"

    Hi All,
    Can anyone let me know is it possible to run an background job in R/3 with class type "A" with respect to a specific info package. Thanks.
    Regards,
    Ashok

    I do not think this is possible (ie unless you think of modifying SAP code).

  • Running Background jobs in peticular period every day

    Hi All,
    I want to run a background job to run every three minutes between 3:00 to 4:30 PST every day.
    Can we run this kind of backgroud job.
    Where to give end time for this. 
    Thanks
    Anil

    Hi,
    Yes you can, when you create the job in sm36 you have the ability to have "no start after %date,time%"
    I mean you can restrict the required date and time from Start0 "Condition ->Date & Time"  tab of SM36
    Scheduled start -- time --
    No Start After  -- time --
    With Regards,
    Krishna.

  • Running background job in Bw

    Hi
    I am trying to run a background job for an ODS but when i click on background job it says
    "The return to a file on the app. server is only permitted in the backgrnd"
    then when i go to sm37 no job is there,
    I figured out what may be the problem and where it says
    <b>SPecification for return type</b> and gives the options i tried selecting store in app server.it did give me a job number but in sm37 the job was cancelled itself as said no authority.
    should i select the option <b>store in workstation</b> and if i do this will all the records be stored in this file.can i not go in sm37 and run the job to see the output.and if so please let me know how.
    thanks

    NO i think i was not clear in my ques.
    I want to run a background job for an ODS data.i want to see the data in the ods.and as there are many records to look at will take a lot of time. so h ow should i run the bckground job.
    .I tried option store in app.server.it says i dont have authority to save file on the application server.If we save a file on the application server can we delete it afterwards and what effect will it have on the app server if we store the file.
    Second option i tried..store file on the workstation and after giving the file name when i select execute background gets the following error.
    "<b>SPecification for return type and gives the options i tried selecting store in app server.</b>".
    Please let me know how to do it.

  • How to set dynamic value for field Month when running background job ?

    Dear guys,
    I have a Z* report in our company, in the selection screen there is a period field (Month and Year) and this report running in background job periodically. My Question is how i can set for Month field become dynamic follow month value of date when this report executed ?
    Example :
    When Z* report running in background on 16.04.2008, Month Value will be 04 and when running on 16.05.2008, Month Value will be 05.
    Please advice.
    Regards
    Gunawan

    Dear guys,
    I have a Z* report in our company, in the selection screen there is a period field (Month and Year) and this report running in background job periodically. My Question is how i can set for Month field become dynamic follow month value of date when this report executed ?
    Example :
    When Z* report running in background on 16.04.2008, Month Value will be 04 and when running on 16.05.2008, Month Value will be 05.
    Please advice.
    Regards
    Gunawan

  • Error in MRP Run- Background Job.

    Hi PP Gurus,
    I defined scope of planning for two plants and defined counter too. And set background job through Transaction code MDBT taking 24Hrs as Schedule selection parameter.
    When I'm accessing MDBT after 24Hrs system is throwing following messages in Scheduling log:
    1. Please check the destination for Parallel MRP (message no. MD251)
    Diagnosis of Message:
    No destination have been entered in Customizing or none of the destinations (application server) entered are active. In Customizing for MRP, you define the logical destinations (servers) to be used for parallel processing.
    2. Job cancelled after system exception ERROR_MESSAGE (Message no. 00564)
    Though I tried to enter to Customization through Message no. 1 but system is not allowing for it.
    What could be the problem. No help is available through any OSS note also.
    Please suggest the required solution in terms of Configuration or any other changes?
    Thanks & Regards,
    Abu Arbab

    Hi,
    Two more queries:
    1. If I don't want to go for Parallel Processing MRP, I don't have to select 'Parallel Processing' in Transaction code MDBT variant. But when I'm trying to change it system is not allowing me. It's not allowing me to go further without selection of it. What could be the reason behind it? Either Customization problem or any other?
    2. If set 'Parallel Processing destination' through Customization, system is giving only Development server as available destination and also Customization Request is getting generated. But the request is going to be transported to Production server. Since Parallel Processing destination was selected 'Development server' earlier and now MRP will run on 'Production server', it has to be changed to 'Production server'. But as already mentioned Customization Request will be getting generated and further it is freeze for Customization. How could get rid of these issues?
    Please come back with prompt comments.
    Thanks & Regards,
    Abu Arbab

  • Long running QueryDocumentProperties job crash

    Hi,
    I have a very simple piece of code using the Plumtree.Remote.PRC namespace, looping thru all document properties and checking for the presence of a specific value. Each time the code crashes around the time I visit about the 700th doc. The whole process takes a little less than 1 sec/doc.
    Am I hitting some timeout problem here ?
    Stack dump below.
    Thanks for any ideas.
    [email protected]
    Plumtree.Remote.PRC.PortalException: Exception of type Plumtree.Remote.PRC.PortalException was thrown. ---> System.Web.Services.Protocols.SoapException: Server was unable to process request. --> Invalid pointer
    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
    at com.plumtree.remote.prc.soap.DirectoryAPIService.queryDocumentProperties(String sLoginToken, Int32 nCardID)
    at com.plumtree.remote.prc.soap.DirectoryProcedures.QueryProperties(String sLoginToken, Int32 nCardID)
    --- End of inner exception stack trace ---
    at Plumtree.Remote.PRC.DocumentManagerWrapper.QueryDocumentProperties(Int32 documentID)
    at Mercator.Portal.Scheduler.Jobs.CBrocomAddPropJob.GetDocumentProperty(Int32 docId, String id)
    at Mercator.Portal.Scheduler.Jobs.CBrocomAddPropJob.Mercator.Portal.Framework.Interfaces.IJob.Run(String jobProgId, String parameter)

    Hi Dean,
    We use version 5.0.4.
    I have 2 jobs in fact. One is processing the cards in the order of their objectid, another picks the objectids from a hashtable (hence a different processing order). Both fail at around the same index (700), but not always the same, about a range of +/- 10. If I limit the job to a previously failed card, it does work, so I guess it can not be the data. The number of cards is 786. I ran the job again after completely removing the cards + their deletion history, same result. I'll run the job again with PTSpy on, but I think there was nothing special in it except:
    209 05-20 08:45:19 Warn Plumtree.dll 14176 10924 PTInternalSession.cpp(3184) *** COM exception writing Log Message: IDispatch error #16389 (0x80044205): [Failed to open the log file for writing. log file: C:\Program Files\plumtree\ptportal\5.0\settings\logs\PTMachine.log]2 05-20 08:43:51 Warn Common Library 14176 10924 PTCommon.cpp(977) ***SetError *** (0x80044205): Error while writing message to log file.
    which I do not understand either, the file is there and is perfectly writable.
    I guess I'll try splitting the job in 2 and open a support incident.
    Thanks.
    Michel.

  • Not able run background job.

    Hi
    I am using GUI_Upload function module to upload excel content into internal table.
    But the problem is when i run the program in background is not working but the job is successfully executed.
    Note : the program is working fine in foreground.
    Please help in resolving this.
    Thanks & regards
    sam

    You will not be able to use GUI_UPLOAD in the background since it requires interaction with the local system. Instead upload your file into the application server and use OPEN DATASET and READ DATASET statements.
    Please mark points if the solution was useful.
    Regards,
    Manoj

  • Reg: Long running SAP job SAP_XMB_PERF_AGGREGATE

    Hello,
    Above mentioned SAP job is running for days. I tried with changing parameters In integration engine administration SXMB_ADM for Category PERF there is a paramter DAYS_TO_KEEP_DATA.
    Created the Index too in Table SXMSPFAGG. But still the job is taking very long time.
    could any one faced same kind of issue and fixed with different solutions, pls
    FYI - My system -- SAP XI 3.1 SPS23.
    Thanks
    Vivekanandan

    Hi
    Check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/08b140cbe49d2ae10000000a155106/frameset.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/58c5f542-0801-0010-228b-c27a7b3c2752?quicklink=index&overridelayout=true    (Check 48th page onwards).
    Regards
    Ramesh

Maybe you are looking for

  • Send For Repair Got Back With Scratches

    I got mine macbook in november. I had some problem with it in Dec and then i took an appointment with mac genius and gave mine macbook thinking that they will solve mine problem and will handle mine macbook with care. As mine macbook was just a few d

  • Conversion of sales order to automatic purchase order

    hii experts, i m doing automatic purchase order from sales order.my questions are as follows: 1. can i create automatic purchase order from sales order . if yes then what r the steps involved. 2. what r the account assingnment category and item categ

  • Apple TV 2 Wobbly Picture (Post TV Model & Input)

    TV: Sony Grand WEGA KDF-60XBR950 Input: Dynex™ 6' DVI-to-HDMI Digital Video Cable

  • BINARY_RELATION_CREATE Relation Type

    Hi.. I am using FM BINARY_RELATION_CREATE in which I want to Store Business Document in MIGO. I saw some relationship type which are VONA and ATTA but it is used for Quotation and Attachment respectively. Please help where can I find or if you know t

  • Putting Music on nano

    Hi Guys - I bought my first ipod today (begining to wish I hadn't bothered) I followed all the instructions installing the itunes software on my pc (windows Xp) then connected my ipod the music in my itunes library was set to update automatically whi