How to trigger program into batch job

Hi
We are getting performance issue on below case.
We are uploading some data from portal and that is triggering a method of class which is in WebDynpro.
This program took all the resources and CPU utilization was 100%. Because of this production system went down.
From Basis monitoring we understand this program running in fore ground (DIA mode).
I want to check how this program triggered as a fore ground from portal and need information/steps how to configured this into background to resolve my issue.
A <urgency removed> reply is very much helpful.
Thanks,
Umashankar.
Edited by: Thomas Zloch on Mar 1, 2010 4:45 PM

Dear Peter,
Thanks for your update.
I checked SM50 for my user ID but i couldn't find from where it is triggering from portal to SAP ABAP.
It is running in 'DIA' Dialog mode.
Can you please let me know how to check stak list.
Thanks,
Umashankar.

Similar Messages

  • How to trigger an existing background job in ABAP program?which fm?

    Hi experts,
        how to trigger an existing background job( defined in SM36 ) in ABAP program?which fm?
        seems that FM 'JOB_OPEN' / 'JOB_SUBMIT' / 'JOB_CLOSE' can only create a new job.

    Hi,
        now my requirement is that sap has generated one job automatically, and then i will have a job name
    'XXX'. and then i want to schedule the job in abap program,. which function module could i use ?
    my expected fm is that the system will trigger the job after i give the job name and start condition.
    i have tried job_open, but it seems just to create a new job. any advice ?

  • How to run a ABAP Program in Batch JOB

    How to run a ABAP Program in Batch JOB ?

    Hello Manish,
    Using transaction SM36 you can define the batch job along with the start conditions for that job.
    1. Transaction SM36.
    2. Give the Z name of the job in the 'Job Name' input field.
    3. Click on 'Steps' button from the application toolbar.
    4. On the 'Create Step 1' dialog box, give the name of the ABAP program in the 'ABAP Program' section' along with the variant.
    5. Click on 'Check Input' button from the dialog box.
    6. Click on 'Save' button from the dialog box once the check is successful.
    7. One list will be shown. Click on Back button from the standard toolbar.
    8. Click on 'Start Conditions' button from the application toolbar. Specify the start condition e.g. immediate. Click on save.
    9. The job staus is now scheduled.
    10.Click on Save button from the standard toolbar of SM36. The job status will be released.
    Using SM37 you can monitor the status of the job.
    This will sort out your problem.
    PS If the answer solves your query, plz reward points.
    Regards

  • How to set a program into backgroud job

    hi experts,i want to set a program into backgroud job.
    the original code like this:
    ...some statements...
    PERFORM FRM_SEND_MAIL USING WA_YA_LX.
    ...some statements...
    i want to set 'PERFORM FRM_SEND_MAIL USING WA_YA_LX.' into background job.
    is that code like this?
      CALL FUNCTION 'JOB_OPEN'
         EXPORTING
           JOBNAME  = WA_TBTCJOB-JOBNAME
           JOBCLASS = 'A'
         IMPORTING
           JOBCOUNT = WA_TBTCJOB-JOBCOUNT.
    PERFORM FRM_SEND_MAIL USING WA_YA_LX.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          JOBCOUNT                          = WA_TBTCJOB-JOBCOUNT
          JOBNAME                           = WA_TBTCJOB-JOBNAME
          SDLSTRTDT                         = SY-DATUM
          SDLSTRTTM                         = WA_TBTCJOB-SDLSTRTTM  .
    hunger for you advice,thanks a lot.

    See the following simple prog to schedule in background.
    You cannot schedule the subroutine i.e perform to run in background job. Instead write the subroutine in another program.
    to pass any value to that program, declare selection screen parameter and pass the value from the first one using submit.
    Job open
    call function 'JOB_OPEN'
    exporting
    delanfrep = ' '
    jobgroup = ' '
    jobname = jobname
    *sdlstrtdt = sy-datum
    *sdlstrttm = sy-uzeit
    importing
    jobcount = jobcount
    exceptions
    cant_create_job = 01
    invalid_job_data = 02
    jobname_missing = 03.
    if sy-subrc ne 0.
    write:/ 'error in opening a job'.
    endif.
    Insert process into job
    SUBMIT ZSDQ_BCK_TEST
    and return
    with p_type = 'F'   "Selection screen Parameter
    user sy-uname
    via job jobname
    number jobcount.
    if sy-subrc > 0.
      WRITE:/ 'ERROR PROCESSING JOB'.
    endif.
    Close job
    call function 'JOB_CLOSE'
    exporting
    *event_id = starttime-eventid
    *event_param = starttime-eventparm
    *event_periodic = starttime-periodic
    jobcount = jobcount
    jobname = jobname
    *laststrtdt = starttime-laststrtdt
    *laststrttm = starttime-laststrttm
    *prddays = 1
    *prdhours = 0
    *prdmins = 0
    *prdmonths = 0
    *prdweeks = 0
    *sdlstrtdt = sdlstrtdt
    *sdlstrttm = sdlstrttm
    strtimmed = 'X'
    *targetsystem = host
    RECIPIENT_OBJ = RECIPIENT_OBJ
    exceptions
    cant_start_immediate = 01
    invalid_startdate = 02
    jobname_missing = 03
    job_close_failed = 04
    job_nosteps = 05
    job_notex = 06
    lock_failed = 07
    others = 99.
    ***This is the second program which will run in background
    REPORT ZSDQ_BCK_TEST .
    TYPES: BEGIN OF TY_ADRC,
            HOUSE_NUM1 LIKE ADRC-HOUSE_NUM1,
            NAME3 LIKE ADRC-NAME3,
            NAME4 LIKE ADRC-NAME4,
            LOCATION LIKE ADRC-LOCATION,
          END OF TY_ADRC.
    DATA: IT_ADRC TYPE STANDARD TABLE OF TY_ADRC WITH HEADER LINE.
    Parameters: p_type type c.
    START-OF-SELECTION.
    SELECT HOUSE_NUM1
            NAME3
            NAME4
            LOCATION
           UP TO 40000 rows
            FROM ADRC
            INTO TABLE IT_ADRC.
           WHERE ADDRNUMBER = '0000022423'.
    IF SY-SUBRC = 0.
       LOOP AT IT_ADRC.
         WRITE:/ IT_ADRC-HOUSE_NUM1, IT_ADRC-NAME3.
       ENDLOOP.
       write:/ p_type.
    ENDIF.

  • How create and launch a batch job

    hi
    how create and launch a batch job???
    nitin

    Moderator message - Please search before asking - post locked
    You have been warned a number of times. Repeated violation of forum rules can result in your userid being deleted.
    Rob
    Edited by: Rob Burbank on Oct 6, 2010 4:16 PM

  • How to find out the Batch job selection screen values

    Dear Users,
    One of our users has set up a Batch job by manually entering values into the Selection screen of a report instead of picking up a Variant. We would like to know the values entered on selection screen since the job has failed and the user doesn't remember the selection screen values entered.
    Can anyone please advise if there is a way we can figure out the selection screen values entered?
    Thanks,
    Vijay

    Hi,
    You can debug your failed job by going to 'SM37', type in 'JDBG' in the command line ( no '/' ), put the cursor on the job and press enter - will take you to the job in debug mode.
    You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job.
    So type in the transaction code 'JDBG' and place your cursor on the job after It has finished. It will take you to a SAP program in debug mode. Step through this program which is about 10 lines, after this your program will be executed in the debug mode.
    Check the selection screen values.

  • How to create F.29 - batch jobs to execcute the customer evaluation report

    Hi,
    I am executing the S_ALR_87012167 report for customer evaluation reports.I have defined all evaluation views,but while executing F.29 bacht jobs,it is saying no jobs exist.
    How to execute F.29.Kindly advice me.I am not able to execute the report.
    Thanks
    Supriya

    Use Job wizered...........
    enter job and server name...............     continue -
      enter program name   RFDRRGEN
    enter variant name SAP&VARI...............   press continue four times and complete.............
    In the job selection check the status of your job and check the spool ..............   now your evaluation reports should work..........  but before generating batch job you should have completed the previous steps like OBAN and OBAJ.
    Regards,

  • Program for Batch Job

    Hi,
    How can i find a program attached to a batch job in sm37.
    Points will be rewarded definitely.
    Thanks

    (1) If you want to know the program used by the job
    go to SM37, select a job and click on "step", each step used a program or an external command/program.
    (2) If you search for job using a program*
    On the initial screen of SM37, put the name of the program you search for.
    Regards

  • How to find out correct batch job

    HI All,
    hope you are doing well.
    i am trying to findout the correct batch job which is created particular document ( Sale order, invoice etc..) because there are so many jobs which are running by a few system users but am unable to find out which is the correct job creating the pericular document .
    waiting for reply thanks
    Micheal

    You need to check in the program about the naming conventions for the job. Then based on it you will be able to identify the correct one.
    Thanks
    Nabheet

  • How to find out which batch job generated a specific idoc?

    Dear Colleagues
    Is it possible to find out which batch job generated a given idoc?

    You need to check in the program about the naming conventions for the job. Then based on it you will be able to identify the correct one.
    Thanks
    Nabheet

  • How to see the all batch jobs runnning in production server

    Dear All,
    Can any one tell me ; where can i see the all the batch jobs that have been scheduled in production. I need to see all the batch jobs.
    Please help me
    Rgds,
    Rao

    Hi Sinner,
    Go to SM37, check the 'Scheduled' checkbox and unchek all others and give * for other paramerters and execute. You will be able to see the all the schedule jobs. Hope this helps.
    Sumit

  • How to trigger n number of jobs by processing  using fetch cursor.

    We have report which retrieves all the data from the master table using the open fetch cursor with the packet size 10,000
    FOR EXAMPLE:
    If there are 50,000 records(total)
    For each 10,000 records it should trigger a job  (we are trying to call a common program and submit the program in background through the main program )  were all the validation will be done only through the program
    Totally we are expecting 5 job's to be trieggered.
    Purpose : we want all the records validation to be completed Simultaneously with fraction of difference.

    Hi,
    You might need to rethink on your scenario.
    Where are the values for Vendor Region are getting stored for a PO? You might not be able to handle N number of Vendor regions for N number of Plants....You actually have to come to a 1:1 mapping.

  • How to put program into background.

    dear all,
         i want to put one of my zreport into background execution.
    please tell me  the steps to do this.
    thanks in adance.
    Vinod

    Vinod,
      Scheduling Background Jobs:
    1.        Background jobs are scheduled by Basis administrators using transaction SM36.
    2.        To run a report in a background, a job needs to be created with a step using the report name
    and a variant for selection parameters. It is recommended to create a separate variant for each
    scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g.
    company codes).
    3.        While defining the step, the spool parameters needs to be specified
    (Step-> Print Specifications->Properties) to secure the output of the report and help authorized users
    to find the spool request. The following parameters needs to be maintained:
    a.        Time of printing: set to “Send to SAP spooler Only for now”
    b.        Name – abbreviated name to identify the job output
    c.        Title – free form description for the report output
    d.        Authorization – a value defined by Security in user profiles to allow those users to access
    this spool request (authorization object  S_SPO_ACT, value SPOAUTH).  Only users with matching
    authorization value in their profiles will be able to see the output.
    e.        Department – set to appropriate department/functional area name. This field can be used in
    a search later.
    f.        Retention period – set to “Do not delete” if the report output needs to be retained for more
    than 8 days. Once the archiving/document repository solution is in place the spool requests could
    be automatically moved to the archive/repository. Storage Mode parameter on the same screen
    could be used to immediately send the output to archive instead of creating a spool request.
    Configuring user access:
    1.        To access a report output created by a background job, a user must have at
    least access to SP01 (Spool requests) transaction without restriction on the user
    name (however by itself it will not let the user to see all spool requests). To have
    that access the user must have S_ADMI_FCD authorization object in the profile with
    SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).
    2.        To access a particular job’s output in the spool, the user must have
    S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used
    in the Print Specifications of the job (see p. 3.d above).
    3.        Levels of access to the spool (display, print once, reprint, download, etc) are
    controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least
    BASE access (display).
    On-line reports:
    1.        Exactly the same configuration can be maintained for any output produced
    from R/3. If a user clicks “Parameters” button on a SAP Printer selection dialog, it
    allows to specify all the parameters as described in p. 3 of
    “Scheduling background jobs” section. Thus any output created by an online report
    can be saved and accessed by any user authorized to access that spool request
    (access restriction provided by the Authorization field of the spool request
    attributes, see p. 3.d of “Scheduling background jobs” section).
    Access to report’s output:
    1.        A user that had proper access (see Configuring user access above) can
    retrieve a job/report output through transaction SP01.
    2.        The selection screen can be configured by clicking “Further selection
    criteria…” button (e.g. to bring “Spool request name (suffix 2)” field or hide other
    fields).
    3.        The following fields can be used to search for a specific output (Note that
    Created By must be blank when searching for scheduled job’s outputs)
    a.        Spool request name (suffix 2) – corresponds to a spool name in p. 3.b in
    “Scheduling background jobs” section above).
    b.        Date created – to find an output of a job that ran within a certain date range.
    c.        Title – corresponds to spool Title in p. 3.c in “Scheduling background jobs”
    section above).
    d.        Department - corresponds to spool Department in p. 3.e in “Scheduling
    background jobs” section above).
    4.        Upon entering selection criteria, the user clicks the Execute button   to
    retrieve the list of matching spool requests.
    5.        From the spool list the user can use several function such as view the
    content of a spool request, print the spool request, view attributed of the spool
    request, etc. (some functions may need special authorization, see p.3 in
    Configuring user access)
    a.        Click the Print button   to print the spool request with the default attributes
    (usually defined with the job definition). It will print it on a printer that was
    specified when a job was created.
    b.        Click the “Print with changed attributed” button   to print the spool request
    with the different attributes (e.g. changing the printer name).
    c.        Click the “Display contents” button   to preview the spool request contents. A
    Print    and Download   functions are available from the preview mode.
    Pls. reward if useful....

  • How to Export/Import a batch job

    Hi there,
    I am wondering if there is/are transaction that can export/import a background job(s). Because, one of our production background jobs got deleted somehow and we have same job that sits in QA system, so we want to export that background jobs and import to Production system, since it has around 70+ steps
    Thanks
    Kumar

    I'm not sure
    but if these jobs can be put in a request and.. then transport..
    U can try..

  • Performace tuning: how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Wei,
    Yes we can transfer the data by using
    SAP Memory OR ABAP Memory.
    Ex:  V_count TYPE i.
      V_count = 100.
    LOOP AT  itab.
    IF v_count EQ 25.
    Here For every batch job
      EXPORT data TO MEMORY ID 'ABC'
       Function module
        JOB_OPEN
       JOB_SUBMIT
       JOB_CLOSE.
      ENDIF.
    ENDLOOP .
    IN your 2nd program.
    INITIALIZATION.
    IMPORT data FROM MEMORY IF 'ABC'.
    FREE memory if .---When you free the memory you will get recent data.
    Don't forget to reward if useful.

Maybe you are looking for