A background job creating/instantiating another background job

Hi,
Is there any possibility in SAP, that, a background job can create/instantiate another background job ?
I have one suce requirement, and not sure if this is possible. Any inputs..
-DK

yes you can
when you create a job using SM36,there is a option for start condition
in that there is an option for After Job
just give the job name and when that job completes,this job will trigger off
http://help.sap.com/saphelp_nw04/helpdata/EN/c4/3a7fae505211d189550000e829fbbd/frameset.htm
Rohit

Similar Messages

  • Create background job triggered by another job

    Hi experts,
    I want to run FCHU in background everytime I finished run F110.
    I'm thinking to use background job creation SM36 - triggered by job. But the problem is, job created from F110 the job name is not fixed.
    Please anyone can give better idea ??
    Thanks,
    Melissa

    Hi melissa,
    The suggestion given by Prem is perfectly Ok.
    I would suggest you to create an event  by sm62 and then create an event triggered  background job which will run the FCHU in Back ground.
    So you need to get an enhancement point in F110 and put the code of triggering the event .
    If there is no enhancement  then you can create a program which will call the Transaction F110 by using CALL TRANSACTION statement and after F110 processing the control will get back to your program and you can write a code for triggering the event by using the FM SWE_EVENT_CREATE.
    I hope this will help you

  • Delete Spools created by one background job

    Hi ,
    I have a background job which runs every now and then and it creates spools. My requirement is to delete all spools created by this one job only in regular intervals via another program.
    Regards,
    Arun.

    Hi J@Y,
    the spools that my background job is creating should stay in the system for a while for users to go and see it. After a specific interval, say every 30 minutes, i want all the spools created by that one job till that time to be deleted
    regards,
    Arun.

  • 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

  • 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

  • Urgent : Want to know table stores spools created by a background job

    Actually background job executed by me creates 2 spool requests
    table - tbtcpv holds only the 1 spool
    Can any one tell me the table which stores all the spool created by the background job ?
    Need urgent help.....

    Guru,
    Try with below tables
    TBTCO
    TBTCO
    TBTCP
    TBTCR
    TBTCS
    TBTCJSTEP
    TBTCO
    TBTCP
    Pls. reward if useful..

  • Running job with a specific background ID...

    I have a program and a background ID created. I want to run that job in background immediately using that background ID defined by basis. How can I do that ?
    Regards,
    Rajesh.

    Hi,
    YOu can create a separate program with Input parameters as job id.
    Now submit the program using SUBMIT statement along with Job id, jobname which are created.
    Usually, we will be creating job id using JOB_OPEN function module, and then will be submitting a background job using SUBMIT statement and finally closing the job using JOB_CLOSE function module.
    Regards,
    AShok

  • Convert Spool to PDF and mail for the jobs not run in background.

    Dear All,
    I need to convert the spool job into pdf and mail as attachment for job not run in background.
    I am printing the bills  using the program  SD70AV3A to print the bills in a batch using the SUBMIT.
    But i am not using the spool options since its going to into waiting state in spool...and i need to change the printer properties to G
    to get the printer to print the reports as these jobs run in backgroud....but this solution is not acceptable solution.
    SUBMIT SD70AV3A
             WITH RG_KSCHL-LOW = 'ZRR'
             WITH RG_NACHA-LOW = '1'
             WITH PM_VERMO = '2'
             WITH PM_NSORT = '1'
             WITH RG_VBELN IN range.
    *        TO SAP-SPOOL
    *        SPOOL PARAMETERS print_parameters
    *        WITHOUT SPOOL DYNPRO
    *        VIA JOB name NUMBER number
    *        AND RETURN.
    so how do i get the spool number from the above after the job is submitted....and then convert into pdf and mail
    please suggest some solution. I have searched on net but most the solutions are say to run the job as background job...
    i have also looked into the program RSTXPDFT4 but it asks for the spool id ....how can i get spool id for the job that has been completed.
    please suggest some solution.
    Thanks
    Bhargava.

    Hi,
    Spool to PDF : FM 'CONVERT_ABAPSOOLJOB_2_PDF'
    Table TSP01 to get spool number
    You ,may need to convert OTF to PDF: FM CONVERT_OTF
    and the to binary : FM 'SMCS_XSTRING_TO_BINARY'
    To send mail use class: cl_document _bcs.
    Regards,
    Maria João Rocha

  • Background job delay due to  'ARFC' jobs running continously

    Dear all,
               As we are facing problem that,there is job starting with the 'ARFC'(example: ARFC:AC1F0C0D386B463CA88E8D10)  which runs with all the users in the system.Thus the other background jobs even the sys monitoring jobs also goes for the delay for the longer time.This is happening from past 10 days.I m  unable to trace what has got change in the system due to which ,I m facing this issue.I had checked in the job logs also, in which i didnt got any help.In that it is only mentioned owner of the job.Pls check this at the high priority as it is affecting my normal background jobs.
    Thanks in advance.
    Regards,
    Akif

    Hi akif,
    jobs which are stuck at ARFC mode needs to trigger other event controlled jobs. since they are updating the Database, unless those jobs trigger this job cannot run forward so try to find what kind of jobs from the user who scheduled the job and then take the action if the jobs are related to support packages and releasing of change request then try to schedule RDD* jobs under user DDIC in 000 client
    this is not due to instance consistency
    regards,
    kanthi

  • In which way i can know that a job is running In background or foreground?

    Hi,
       In which way i can know that a job is running In background or foreground? please tell me...
    or a report is in background or foreground..
    Thanks ,
    Arya

    check tranx sm37 to know all background job details
    refer link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a8009505211d189550000e829fbbd/frameset.htm

  • Background Job definition and relationship between jobs

    Hi All,
    I have 2 jobs J1 and J2. After finishing J1, J2 should start. While defining through SM36, if we use After Job in Start Condition, first time the runs are ok, but if we wish to run it periodic, the dependency is lost. Can someone help me out??
    RSPC option is not there.
    thanks,
    Partha Maity

    Hi,
    I have tried the option of Job definition through SM36, it works for the first time as i have said, in periodic running dependency is lost. Tried again , same output.
    Defining a single job, we have tried this option, and it is taking unusally longer time, thats why we want to have separate job,. and one single big job fails we have very little option of recovery.
    RSPC option is not there in APO 3.1
    By events, how this can be acheived can some one give detail workout.
    Thanks in anticipation.
    Partha Maity

  • Error while creating TO in background

    Hi Guys,
    I am getting error while creating TO in background using Transaction code LB13.
    The error is "No batch input data for screen SAPLSTXBC 0100" this is the screen which comes after saving a TO. Here we can give the printing details. If we are doing the TO in foreground with same transaction the data for this screen comes automatically. but in background it is showing the error.
    So help me in getting rid of the problem.
    Thanks and Regards
    Sukant

    Hi Manasa,
    What is your source for creation of CVC? Are you trying to create CVCs from infocube?
    Could you try out the following to identify the root cause?
    In the create CVC (/sapapo/mc62) variant, uncheck the check boxes for all the 3 checks at bottom of the variant, and also uncheck the "adjust time series objects" checkbox.
    Come to "selection condition", and select one or few CVCs from your source (Infocube, or flat file, whatever).
    Then try to run the job, which should only create one or few CVCs as per your selection criteria.
    If you are able to create CVCs in this way, that could mean that you might be having some issue during some check or generation of time series. Delete the created CVCs and again try to create them by activating the checks one by one.
    If the above helps in identification of the issue, then it might be possible to attack and resolve the issue e.g. special character, etc.
    PS: You could also try the "load to worklist" option to try to identify the CVC having issue. There you can specify one or few CVCs to be created in one go, and this might help in identifying if there is an issue with a certain CVC.
    Thanks - Pawan

  • Error while creating CVC in background in SCM 7.0

    Hi Experts,
    I'm running creation of CVC in background,but the job is getting cancelled.In job log I can find below error messages.
    Message Text : Internal Error /SAPAPO/SCMB_PSTRU_PLOB_TEMPL=>RAISE_EXCEPTION_FRO
    Message class :  /SAPAPO/SCMB_PSTRU
    Message No :000
    We have run the CONS CHECK for POS
    Your advice in this regards would be highly appreciated.
    Thanks in advance.
    Regards
    Manasa

    Hi Manasa,
    What is your source for creation of CVC? Are you trying to create CVCs from infocube?
    Could you try out the following to identify the root cause?
    In the create CVC (/sapapo/mc62) variant, uncheck the check boxes for all the 3 checks at bottom of the variant, and also uncheck the "adjust time series objects" checkbox.
    Come to "selection condition", and select one or few CVCs from your source (Infocube, or flat file, whatever).
    Then try to run the job, which should only create one or few CVCs as per your selection criteria.
    If you are able to create CVCs in this way, that could mean that you might be having some issue during some check or generation of time series. Delete the created CVCs and again try to create them by activating the checks one by one.
    If the above helps in identification of the issue, then it might be possible to attack and resolve the issue e.g. special character, etc.
    PS: You could also try the "load to worklist" option to try to identify the CVC having issue. There you can specify one or few CVCs to be created in one go, and this might help in identifying if there is an issue with a certain CVC.
    Thanks - Pawan

  • Report in background not create spool when no data found

    Hello  ,
    I created simple rapport that should run in background. When I  execute background job (sm37) I noticed that the  spool exists only
    for when the some data is found. When data is not found for any reason I do not have spool , and I need one saying
    'records passed 0'. I am not sure what I can do about it. I saw insome programs that is possible but I cannot find how it was done.  Please advice .
    Krsto

    Hi,
    You might be checking if the Final Internal table has data in it or not (May be in END-OF-SELECTION). If you are not do have check on this and simple code a write statement like below.
    IF IT_FINAL IS NOT INITIAL.
    CREATING A SPOOL.
    ELSE.
    WRITE : / 'Records Passed are 0'.
    ENDIF.
    Let me know if you need any further help on this.
    Regards,
    SRinivas

  • How to delete Jobs created by T.Code SM36

    Hi,
    I am trying to delete Events created by T.code SM62.
    But this has some jobs which i created by T.Code SM36.
    How i Can delete these Jobs.
    Because i want stop my process chain triggered by this event.
    Regards,
    Anand Mehrotra.

    Hi Anand,
    Please go through the below procedure....
           1.      Select a job (or jobs) from the Select Background Jobs screen (Transaction SM37, or choose CCMS ® Jobs ® Maintenance, complete the description of the jobs you want to delete, then choose Execute to get to the Job Overview.)
           2.      In the Job Overview, mark the job or jobs you want to delete by checking the box to the left of the job name.
           3.      Choose Job ® Delete.
    Hope this helps you
    Thanks
    KP

Maybe you are looking for

  • Repeating row texts when exporting web report to Excel

    Dear all, When exporting a web report (including a structure/hierarchy) to Excel (via the 'export to excel button), the row texts (e.g. balance sheet texts) appear twice (column A and B)in the Excel result. When using the web context menu 'Export to

  • Need to create service for Tomcat 5.0.28 and Analyzer 7.2.5.3

    <BR>I just installed Hyp. Analyzer 7.2.5.3 using Tomcat 5.0.28 (the default) as the web server. The script provided in this thread and the one found on the Hyperion eSupport knowledgebase did not work for 5.0.28. The primary things I found was paths

  • Why do I get a kernel panic every time I unplug my g17 and use battery?

    My laptop has given me fits for a longtime, so much that I usually use it more like a desktop and try never to disconnect the ac power. Every time I unplug and use the computer's battery, it works fine for a while, then eventually I get a kernel pani

  • Installing Flash Player on XP

    I downloaded the Adobe Installation exe, "install_flashplayer11x32_mssa_aih.exe". I'm running XP Professional. When I tried to open it, a message box popped up asking for a password. Why is that? I also tried to delete the file from my Downloads fold

  • I need to work with documents in webforms

    Hi: Can you help me? I need to be saving word (and possibly other aplications') documents in the database, and make them available to my clients which are using WebForms so that they could edit them, print them, save them back in the DB, etc... I am