Execute a background job immediately

Hi everyone,
If a user wants to execute a background job immediately but there is no Background work process available. How u will do?
Regards
Ganesh

Yes, as JIM said, the job will queue until a BTC become available. You can also increase the number of batch processes changing the value of  rdisp/wp_no_btc = <Number of processes desired>, or use Operation modes to increase the ammount of batch processes during a specific period of time.
Hope this help!
Juan
Please reward points if helpful

Similar Messages

  • Trigger a background job immediately after a file is placed in App Server

    Hi all,
    I have a program  ZPGM1 that needs to be executed in background when a file is placed in an application server.
    I know i can schedule  ZPGM1 to trigger in background after an event say ZEVENT1.
    Also i know i raise the event ZEVENT1 using FM BP_EVENT_RAISE but my problem is who would raise the event.
    The file is being dropped in application server at random time by 3 party vendor. I need to execute my ZPGM1 immediately after the file is placed in Application Server.
    Is ther a way that this can be achieved. Let me know
    Thanks
    Kajol

    You will need to develop a custom, non-SAP "listener" program or a script. This program/script will need to check if the file is present (e.g. by using an OS-level event) and, if so, start SAPEVT.EXE program with corresponding parameters.
    SAP Help on raising events externally:
    http://help.sap.com/saphelp_nw04s/helpdata/en/fa/096e6b543b11d1898e0000e8322d00/frameset.htm
    There is also third-party software available, but it is very expensive:
    http://www.redwood.com/

  • Getting short dump while executing a background job

    Hi ,
    I have a issue in which i am executing the report in background and the while the job executes it is going into dump stating that the error "TSV_TNEW_PAGE_ALLOC_FAILED" it is happening as the internal table where all the data is getting appended does not have enough memory size to hold the details the internal table refers to the type of a standard structure.
    Is there to solve this issue so that the execution of the program does not go into dump or regulating the memory the size of the internal table by any kind of optimization.

    Hard to recommend without knowing the purpose of the program. The general approach would be to lower memory consumption by using block processing, i.e. read certain amount of data (block), do necessary processing, empty all tables, repeat with next block.
    Thomas

  • Background Job not Printing TOs immediately

    Hello experts,
    I am having an issue with printing Transfer Orders created by background job, the output requests are sent to the output controller with status '-' . It works when I manually create the TOs or if I run the RLAUTA10 program with my userID in SE38 .
    I have set the background job user default print parameters in SU3 to print immediately.
    Also in the Job step, I have set up the print parameters  to 'print immediately'
    I have assigned printer for sorce storage type & set the indicator to use the source sto type in OMLV, The printer seems to be determined correctly, I've checked the Spool request name & printer in the spool controller, only issue seems to be the print not being triggered immediately.
    Not sure, if there is some other setting that I have to make to be able to print the TOs created by the background job immediately.
    Any help would be appreciated.
    Thanks
    Kris T

    whether the printer which you assigned is configured in SAP (network printer)? or LOCL?
    printing may not happen if LOCL(background job)
    Thanks

  • Run RFEBKA00 as background job

    Hello,
    I want to run program RFEBKA00 as background job. On selection screen, there is parameter "Execute as background job", but even if I tick this checkbox, report is ran on foreground.
    How can I run this program as background job?
    Thanks&regards,
    Jirka

    Hi,
    You can run the program in background by selecting 'Execute in background' option in 'Program' menu.

  • Scheduling a background job using Job_Submit and Job_Close FM

    Hi Guys,
                  I am calling a report in background using Job_Submit and Job_Close FM's.
    I am not providing start time and date in the Job_close FM, in this case, when the job will be scheduled to start.
    Even after an hour, job status is still scheduled.
    I am not exporting variant, since I am using memory ID.
    Thanks
    Edited by: sapgeek007 on May 11, 2009 4:11 AM

    In Job_close fm use the parameter 'STRTIMMED'
    CALL FUNCTION 'JOB_CLOSE'
      EXPORTING
        jobcount                          = LV_NUMBER
        jobname                           = LV_NAME
        STRTIMMED                         = 'X'
    EXCEPTIONS
       CANT_START_IMMEDIATE              = 1
       INVALID_STARTDATE                 = 2
       JOBNAME_MISSING                   = 3
       JOB_CLOSE_FAILED                  = 4
       JOB_NOSTEPS                       = 5
       JOB_NOTEX                         = 6
       LOCK_FAILED                       = 7
       INVALID_TARGET                    = 8
       OTHERS                            = 9
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    That would start the background job immediately.
    Regards,
    Deepak

  • Background job within another background job

    Hello Experts,
    I have a BDC program (for BW tcode OLI7BW) which executes by scheduling a number of background jobs. This report works fine when run manually. But doesn't work if it is scheduled as a background job through SM36. The status of the job is shown as finished, but the data is not uploaded.
    Is it not possible to execute a background job within another background job?
    If it's possible, what could be the possible cause of error?
    Thanks In Advance
    Radhika

    Hi Radhika,
    If you are trying to upload data from a file on ur desktop to Internal table, then background job doesn't work. Always remember GUI means ur front end and all background jobs are run on application server and they dont run w.r.t ur desktop.
    Kindly check it and get back to me incase of any queries.
    Dont forget to reward points, if found useful.
    Thanks and Regards,
    Satyesh

  • Thru MEB4 the Tax amount and Tax percenatage not trigger in Background Job

    Hi,
              When I am executing the T.Code- MEB4 (Rebate Settlement) thru Foreground the Vendor Rebate Amount and Tax are showing.
                                      When I am executing in Background job the Tax amount and Tax Percentage are not triggering (Only the Rebate amount only showing) after execution of Background job in when viewing the job display.
                       Background Job Name: RWMBON01.
       Please suggest.

    Shankar,
    Thanks for reply.
    If I don't put amount in the basic data tab( MIRO) then it does not allow to "simulate" or "Post". But here I can simulate and Post
    I check every thing in WHT Config but I could't found the solution.
    I want to tell another thing, we recently went to patch upgrade from Version 4.7 E  SP 22   to 4.7 E  SP30.
    My question, Is the pacth upgrade affects in anyway???
    If any suitable answer appreciatable.
    Thanks once again for your reply.

  • Report executing in background

    Hi All,
    I am able to run the report in background. But the problem is i am not able to see the output in the desired way.
    I have set the back ground job in se38 transaction. then i am going to SM37 and selecting the job and going to spool but i am not able to see the output.
    Please let me know the processing of seeing the output, or do we need to write any code for that. If we need to write a code to display the output please send the code.
    Thanks,
    Govind

    Hi,
    You don't have to write any code for this.
    Just ensure that you run the background job immediately.
    Please select all the check boxes in SM37 to see the scheduled job.
    The output might take some time as program can run for sometime.
    You can see the output in the spool.Check the details in Job Log.
    Hope this helps..
    Regards
    Deepu

  • Reg Background job execution

    Hi gurus,
    I have a doubt in back ground job processing...We have a job which runs for very long time (archiving job). I want that job to run from Sunday morning to evening 6PM again I need to run the same job next sunday morning to evening continuing from previous week stop point.
    My question , there is a option in SM37 to STOP the job. If I stop the job and then resume back the same job, will it continue from the point where it stopped?
    Is there any way to execute the background job like above scenario. I know it can be done by 3rd party tool, but I want to do the same from R/3
    Vinodh

    Hi Vinodh,
    In later versions of SAP (from Enterprise version if iam not wrong), you can interrupt the archive job and continue later. This is not the feature of background processing, but the archiving job itself.
    Interruption is possible on basis of duration of the job and size of archive file. See the following link which details the mentioned feature; go to The Archive Development Kit and see the topic Interrupting and Continuing Archive Sessions:
    http://help.sap.com/saphelp_47x200/helpdata/en/6d/56a06a463411d189000000e8323d3a/frameset.htm
    Hope this helps to work towards the solution of your problem.
    Regards,
    Naveen

  • Reg: File Extraction from SAP Queries via background job

    Hi ,
    Is it possible to Extract a file to the presentation Server by running the ABAP Query's through SQ01 as a back ground job to generate a file automatically without running it manually.
    I have tried recording the query's thru SQ01 with the File store Option to download it to Excel on the Presentation server.I have used CAll Transaction for SQ01 in the Zprg and submitted that Query to be able to download that Query in the mentioned path .The Zprg was executed via Background job.The file is extracted to the presentation server when the Zprg was executed via Foreground,but its not getting Downloaded to Excel Via Back ground job.
    Please provide me the solution.
    Thanks in advance,
    Prem

    Hi
    u cannot get file in presentation server.. in background..
    if you are scheduling any background jobs it should be out of any gui interface.. like gui_dowload , gui_upload// ur need to replace then with cl_gui_fronend_services Class
    or u have a option of writing file to application server in background using open dataset syntax.

  • Regarding Background Job Abort using

    Hi ,
    I am using FM BP_JOB_ABORT to abort background jobs through program,but it taking longtime to cancel background jobs in SM37 after exectuing FM BP_JOB_ABORT in program..
    will i have to write  any statement in program after this  FM BP_JOB_ABORT to cancel the background job immediately through program..
    Awaiting for valuable suggestion..
    Regards
    Anil

    Hi,
    I looking for FM to cancel background jobs quikly through program..
    Regards
    Anil

  • Difference between Batch jobs and background jobs...

    hi APO Gurus ....
    This may sound a very silly question. What is  the exact difference between a batch run and executing a background job ?

    If i understand correctly  your question is  executing a program (for example) in background and running in a batch jobs.  You can execute a program in background while you are online, go to menu program->execute in background and enter print parameter, schedule parameter. System creates and starts job dynamically. You can check in SM37.  Batchjob is you create job using   SM36 (with program and Variant) define run frequency. System automatically run job in specified frequency.  I my experience, technically both are same, system behaves exactly same. One dynamically creates job other one runs on predefined freq.
    Thanks,
    Niranjan

  • Standar Background Jobs

    Hi Experts,
      I installed solman4.0 SP12 successfully what are the post configurations i have to do i mean Executing Standard Background Jobs ETC.,
    Thanks in Advance
    Regds
    Chandu

    Hi Chandu,
    You should close this thread if your question is answered and create a new thread.
    Anywyas, the following blog should answer your question:
    /people/federico.babelis2/blog/2006/04/25/system-monitoring-configuration-guide-for-dummies
    Regards,
    Siddhesh

  • Retrieve cancelled background job and display it user on the selection scre

    Hi all,
    i am executing a background job and if successful it sends an email to the user .
    if the job gets cancelled i want to display the job status to the user or email the user .
    can anyone share your experiences on this .
    thanks in advance.
    regards,
    Ry

    U can use the FM 'BP_JOBLOG_READ' for the aborted jog to get their  status log..then u can send this log to the user via mail.
    pl. check this sample code..
    REPORT ZEXAMPLE.
    DATA: JOBLIST LIKE TBTCJOB OCCURS 0 WITH HEADER LINE,
          JOBDETS LIKE BTCSELECT,
          JOBLOG  LIKE TBTC5 OCCURS 0 WITH HEADER LINE,
          V_ANS.
    PARAMETERS P_UNAME LIKE SY-UNAME DEFAULT SY-UNAME OBLIGATORY.
    IF NOT P_UNAME IS INITIAL.
      JOBDETS-JOBNAME     = '*'.
      JOBDETS-USERNAME    = P_UNAME.
      JOBDETS-FROM_DATE   = SY-DATUM.
      JOBDETS-TO_DATE     = SY-DATUM.
      JOBDETS-NO_DATE     = 'X'.
      JOBDETS-WITH_PRED   = 'X'.
      JOBDETS-PRELIM      = 'X'.
      JOBDETS-SCHEDUL     = 'X'.
      JOBDETS-READY       = 'X'.
      JOBDETS-RUNNING     = 'X'.
      JOBDETS-FINISHED    = 'X'.
      JOBDETS-ABORTED     = 'X'.
    ENDIF.
    CALL FUNCTION 'BP_JOB_SELECT'
         EXPORTING
              JOBSELECT_DIALOG    = 'Y'
              JOBSEL_PARAM_IN     = JOBDETS
         TABLES
              JOBSELECT_JOBLIST   = JOBLIST
         EXCEPTIONS
              INVALID_DIALOG_TYPE = 1
              JOBNAME_MISSING     = 2
              NO_JOBS_FOUND       = 3
              SELECTION_CANCELED  = 4
              USERNAME_MISSING    = 5
              OTHERS              = 6.
    IF SY-SUBRC EQ 0.
      IF NOT JOBLIST[] IS INITIAL.
        READ TABLE JOBLIST INDEX 1.
        CALL FUNCTION 'BP_JOBLOG_READ'
             EXPORTING
                  JOBCOUNT              = JOBLIST-JOBCOUNT
                  JOBNAME               = JOBLIST-JOBNAME
             TABLES
                  JOBLOGTBL             = JOBLOG
             EXCEPTIONS
                  CANT_READ_JOBLOG      = 1
                  JOBCOUNT_MISSING      = 2
                  JOBLOG_DOES_NOT_EXIST = 3
                  JOBLOG_IS_EMPTY       = 4
                  JOBLOG_NAME_MISSING   = 5
                  JOBNAME_MISSING       = 6
                  JOB_DOES_NOT_EXIST    = 7
                  OTHERS                = 8.
        IF JOBLOG[] IS INITIAL.
          WRITE:/ 'NO JOB LOG FOUND'.
        ELSE.
          CALL FUNCTION 'POPUP_TO_CONFIRM'
               EXPORTING
                    TITLEBAR      = 'DELETE JOB LOGS'
                    TEXT_QUESTION = 'JOB LOGS FOUND. DELETE?'
                    POPUP_TYPE    = 'W'
               IMPORTING
                    ANSWER        = V_ANS.
        ENDIF.
        IF V_ANS EQ '1'.
          CALL FUNCTION 'BP_JOB_DELETE'
               EXPORTING
                    JOBCOUNT                 = JOBLIST-JOBCOUNT
                    JOBNAME                  = JOBLIST-JOBNAME
               EXCEPTIONS
                    CANT_DELETE_EVENT_ENTRY  = 1
                    CANT_DELETE_JOB          = 2
                    CANT_DELETE_JOBLOG       = 3
                    CANT_DELETE_STEPS        = 4
                    CANT_DELETE_TIME_ENTRY   = 5
                    CANT_DERELEASE_SUCCESSOR = 6
                    CANT_ENQ_PREDECESSOR     = 7
                    CANT_ENQ_SUCCESSOR       = 8
                    CANT_ENQ_TBTCO_ENTRY     = 9
                    CANT_UPDATE_PREDECESSOR  = 10
                    CANT_UPDATE_SUCCESSOR    = 11
                    COMMIT_FAILED            = 12
                    JOBCOUNT_MISSING         = 13
                    JOBNAME_MISSING          = 14
                    JOB_DOES_NOT_EXIST       = 15
                    JOB_IS_ALREADY_RUNNING   = 16
                    NO_DELETE_AUTHORITY      = 17
                    OTHERS                   = 18.
          IF SY-SUBRC EQ 0.
            WRITE:/ JOBLIST-JOBCOUNT, JOBLIST-JOBNAME, 'LOG DELETED'.
            EXIT.
          ELSE.
            WRITE:/ JOBLIST-JOBCOUNT, JOBLIST-JOBNAME, 'LOG NOT DELETED'.
          ENDIF.
        ELSE.
          CALL FUNCTION 'BP_JOBLOG_SHOW'
               EXPORTING
                    JOBCOUNT                  = JOBLIST-JOBCOUNT
                    JOBNAME                   = JOBLIST-JOBNAME
               EXCEPTIONS
                    ERROR_READING_JOBDATA     = 1
                    ERROR_READING_JOBLOG_DATA = 2
                    JOBCOUNT_MISSING          = 3
                    JOBLOG_DOES_NOT_EXIST     = 4
                    JOBLOG_IS_EMPTY           = 5
                    JOBLOG_SHOW_CANCELED      = 6
                    JOBNAME_MISSING           = 7
                    JOB_DOES_NOT_EXIST        = 8
                    NO_JOBLOG_THERE_YET       = 9
                    NO_SHOW_PRIVILEGE_GIVEN   = 10
                    OTHERS                    = 11.
        ENDIF.
      ELSE.
        WRITE:/ 'NO JOBS FOR', P_UNAME.
        EXIT.
      ENDIF.
    ENDIF.
    Regards,
    Joy.

Maybe you are looking for