How to delete a job in background programatically after 10 sec

Hi all,
Can anyone tell me how to delete a job in background programatically after the transaction is trigerred in 10 sec.
Yours help will be greatly appreciated
Yathish

Have a look at standard report RSBTCDEL. May be helpful to you.
Best Regards,
Vibha
*Please mark all the helpful answers

Similar Messages

  • How to run a job in background programatically after 10 sec

    Hi Forum,
    Can anyone tell me How to run a job in background programatically after 10 sec..
    Thanks in advance

    Hi,
    Here is the example code
    *Submit report as job(i.e. in background) 
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    * Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum    " You need to give the Date for execution the Job
                sdlstrttm        = sy-uzeit    " You need to give the Time for execution the Job
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    * Insert process into job
    SUBMIT zreport and return
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    * Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      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            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           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.
      if sy-subrc eq 0.
                                           "error processing
      endif.
    Regards
    Sudheer

  • HOW TO DELETE SCHEDULED.JOBS

    hi.
    i have 4 simple questions.
    1.how to view all procedures name
    2.how to view all scheduled jobs name.
    3.how to delete all scheduled jobs
    4.how to delete sceduled job with with specific name.
    thanks in advance
    regards
    sajid

    Hi,
    1.
    SELECT *
      FROM all_procedures;2.
    SELECT * FROM ALL_SCHEDULER_JOBS;  
    SELECT * FROM ALL_SCHEDULER_PROGRAMS;3. (But I would not do this)
    BEGIN
       FOR rec IN (SELECT job_name
                     FROM user_scheduler_jobs)
       LOOP
          dbms_scheduler.drop_job(rec.job_name);
       END LOOP;
    END;4.
    DBMS_SCHEDULER.DROP_JOB;In general, If you need some dictionary view, but not sure what's it called, query the dictionary itself, Example;
    SELECT *
      FROM DICTIONARY
    WHERE table_name LIKE '%SCHEDU%';Regards
    Peter
    Regards
    Peter

  • I need to know how to delete print jobs I don't want to

    I have multiple print jobs that I no longer need to finish and I don't know how to delete them because when I cut it off it picks right back up where I left off and costing me too much paper

    Hi,
    I think you need to remove the queue. For Windows, please try:
        hold down the Windows key and press R.
        from the Run window, type services.msc and hit enter.
        if the machine asks for Admin you have to accept this,
        look down to the print spooler service, right click it and select properties
        click on the Stop button,
        browse to C:\Windows\System32\Spool\printers
        delete the job inside this folder
        reboot the machine
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to schedule ETL jobs to run periodically after BI Apps is up and runnin

    Hi,
    How do you schedule ETL jobs to run periodically after BI Apps is install and configured? Is there document out there that explains how the ETL scheduling is setup?
    Thanks

    Using DAC we can schedule the ETL to run periodically. In DAC Execute -> Scheduler you can set the date and time for the ETL which need to be scheduled. You can get detail information in guide 'Oracle® Business Intelligence Data Warehouse Administration Console User’s Guide'

  • How to delete photos and videos from iphone after transferring them to iCould?

    iPhone 4S
    iOS- 8.1.1
    After transferring photos and videos from my iphone to icloud, how to delete photos and videos from my iPhone 4S 

    Thanks to both of you for your replies.
    For some reason, the Camera & Scanner Wizard has started to detect the phone now. Maybe it will stop again in the future, but for now it's OK.
    I do have iTunes installed, and the iPhone's still not appearing in Windows Explorer. I might reinstall if the problem recurs.
    Yep, it's an official Apple cable, but it's a bit old. I got it with my iPod a few years back. Maybe i should start using that as the charger cable, and the new cable i got with my iPhone for syncing?
    Thanks again for your replies.

  • How to delete 0581 - Housing(HRA/CLA/COA) after PY execute?

    Hi Friends,
    Plz guide me 'How to delete 0581 info type' after executing the PY.
    While am deleting i can see the status as "Record cannot be deleted (time constraint 1)".
    I tried by deleting Payroll results & deleting the HRA, but am getting the same error as record cannot be deleted.
    Its urgent, plz help me out.
    Thanks to one & all for your valuable timings,
    Kind Regards,
    Saisree.S

    After PY-execution, User updated me that for this pernr, they are not giving HRA amt, giving like COA, but user dont want to mention him under COA, his rent amt is included in his basic & company is providing more amt, so they are maintaining 'Other deductions', for this pernr & wants to deduct every month under deductions side. Basing on their requirement, I maintained 'Other ded' & amt is deducting every month & earnings/gross amt is coming correct, but deducitons side sap amt is not matching, so Net Pay differs.
    As you said I removed the tick mark under exemptions, still it wont works....How can I go a head?
    Once again thanks to everyone, all are giving their valuable outputs.
    Kind Regards,
    Saisree.S

  • How to delete cost element name from group after deleting the cost element

    Hi,
    Please let me know how to delete the cost element number  from the Cost element group hierarchy.I have deleted cost element but still showing only the CE number---no valid master record.If I d not want this to be visible within hierarchy let me know what should I do.
    Thanks

    Hi
    Go to change cost element group select the cost element click on select tab (3rd Tab from Left) it will take u to new screen in that screen select remove tab (1st tab from left)
    Regards
    Sandesh

  • How to delete files from an attached camera after downloading?

    New to Aperture 2. I am sure to have a lot of exploring to do but for now I am looking for a way to delete files from an attached camera after downloading like you can with iPhoto. Is this possible?

    While I might be a bit paranoid, I prefer to format in the camera after verifying that the import came out OK. It is a small price to pay to make sure that my images are actually on the computer. I don't do anything fancy, just make sure that the thumbnails come up correctly, and maybe perform an edit.
    While it was not my images, thank goodness, I did get bit in a similar fashion. I use a "watch fob" style GPS unit for Geocoding. I have hoodahgeo configured to delete my tracks after import. Well, after one session I forgot to update my images with the gps information. As you can guess, when I re-opened HoodahGeo to try and re-geotag, the tracks were gone, so I was out of luck.

  • How To Delete A Job That Just Won't Delete?

    Sometimes when I go to print something it seems to "get stuck" and it says "pending" 2/1 and I can't cancel or delete it and until I can, I can't do anything else.  I've had this issue with HPs in the past.  How do I fix it and prevent it from happening again?
    Dell Dimension 8400Windows XPHP PSC 1315

    I agree with Richard.  It is RIDICULOUS to call this a solution.  Duct tape on a leaking boat works better and lasts longer. First I send a 2 page print job to my HP Officejet Pro L7680 for immediate printing.That fails.  After nothing comes out of the printer I investigate and see that it is "Printing" so I wait a little longer. It becomes obvious that it isn't coming out so I try restarting the job. Next I delete the print job.  That fails. Next I run I run the troubleshooter.  It finds that a print job is caught in the print queue and applies its fix.     That didn't fix anything, so then I try to cancel all jobs in the queue with the same outcome, another failure. Then I try the "HP Solutions" recommendations: 1st duct tape >reboot your printer - spatially inconvienient, inconsiderate of other users, only works maybe 10-20% of the time.   Ususally has to be repeated for each print job.  How is this a solution?  Mostly fails. 2nd duct tape >Reboot your computer -inconvienient to me and a time waster,  applies after frustrated trial and failure listed above.   Furthermore, that works only for a period of time and then the problem resurfaces, usually when I can't afford the delay.   So it is only treating a temporary fix.  It's similar to a doctor who only gives you pills to lessen your symptoms. The recommendation that I reboot my computer is not a solution.  This has been going on for so long that I find it difficult to recommend HP printers anymore.   What happened to the idea of reliability?  When I send a job to the printer, it should print 99%-99.9% of the time.

  • How do delete backgound job?

    Hi gurus,
        I have created background jobs. now i want delete that?
       Thanks for advance
    Regards
    Venkat

    Hi Venkat,
    Use Transaction SM37
    Give the JOB name that you had scheduled. Give your User ID if you created the JOBs or give * in this field
    In the job status tab choose "scheduled" "Released" and "ready"
    Remove the Dates if it is populated.
    Execute .
    This will display the job that you have scheduled. Tick / Select the job , goto Menu -> JOB -> Delete.
    Cheers,
    Praveen.

  • How to delete Scheduled job

    Hi all,
    I have a problem that i was scheduled a job.
    But i need to delete/stop that scheduled job.
    I am new to this.
    Can u anyone plz give me suggestion.
    Thanks in advance
    Venkat

    IN SM37 select the job and press delete button.
    or  u  can  use fm..
    try SCMA_DELETE_JOB.

  • How do we debug jobs in background

    hi guys can any one clarify my doubt regrding debugging a job which is scheduled
    in back ground..
               thanks in advance..........

    Hello,
    You can debug very easily if your program that you want to debug is a custom program. You can put an endless loop in the code somewhere.
    WHILE SY-SUBRC = 0.
    CHECK SY-SUBRC = 0.
    ENDWHILE.
    Now go to SM50, select the work process that is running the program. Click Program/Session->Program->Debugging, it will then open the debugger and you will be looping at your endless loop. Change the value of SY-SUBRC to get out of the loop and debug as normal.
    or
    1) Fix the break points.
    2) Create job.
    3) Go SM37
    4) Select the job and write "jdbg" in command line.
    Check:
    <b>Re: Debug the baclground job
    Regards,
    Beejal
    **Reward if this helps

  • How can I set the foreground/background color after using CSPickColor()?

    Hello all,
    Is there any one who has experience on changing foreground or background color using Photoshop Plug-in SDK?
    Currently I can get a returned color from CSPickColor(), but have no idea how to use it.
    Thanks!

    You can try a linear-gradient that starts at gray 0% and ends at white <whatever the percentage the thumb is at>.
            final Node track = slider.lookup(".track");
            slider.valueProperty().addListener(new ChangeListener<Number>() {
                public void changed(ObservableValue<? extends Number> ov, Number t, Number t1) {
                    double pct = (t1.doubleValue()-slider.getMin())/(slider.getMax()-slider.getMin())*100;
                    track.setStyle("-fx-background-color: linear-gradient(to right, gray, gray " + pct + "%, white" + pct + "%, white);");
            });Edited by: dgrieve on Apr 12, 2012 12:19 PM

  • How to delete "messages (saved)" on iPhone 5 after updating to iOS 8?

    I updated to iOS 8 and changed the message history to "keep messages for 30 days", but I still have more than 9 GB of "messages (saved)" under usage. How do I delete the "messages (saved)"?

    So, I guess my iPhone upgraded without me being aware. But nevertheless I am now running iOS 7.0.4.
    I've noticed the last few days that I'm encountering sporadic contact  disappearance. I'll get a text, the notification shows their name, maybe a few minutes later i'll go to read the full message and now no name, just a number. I'll look and ALL my contacts are gone. the conversation screen has nothing but numbers and the favorites under phone are just numbers. Search can still work by name though so the phone "knows" that joe is 555-5555, but is not showing the connection.
    TEMPORARY WORKING FIX:
    Turning off contacts in my icloud settings and choosing to delete the contacts on my phone, then re-enabling contacts will pull them all back down for me. This of course takes about 5-10 minutes for everything to sync back to the phone.
    I've tried restarting the phone.
    I've tried resetting the phone.
    I don't feel like wasting my time with a backup unless I can downgrade to something before 7.0.4 as it is obvioiusly buggy.
    I am NOT going to set up as a new phone until this becomes a much bigger problem.
    I hope this offers insight to others encountering this bug. My mother has had this happen on her phone as well. Please comment at least if you experience this. the more people that have it, the less chance apple can play it off as an isolated event on my phone.

Maybe you are looking for

  • Error details propagation among proxies

    Hi all, I've a question about how to propagate back error details from one proxy to another. I've setup a simple alsb project: - proxyA that calls proxyB - proxyB a local proxy with only one stage where there is a 'raise error' action with a custom e

  • Acrobat 9 Pro - can't accept EULA

    I thought I would try one more time to see if anyone can help me. I have recently installed Acrobat 9 Pro as administrator on Vista Home Premium 32.  No problems with the install but when I launch the program the EULA window comes up and wants me to

  • HT4410 Newbie MAC user...Boot Camp question

    I have the OS X 10.7.2.  I need to be able to access web statements for our franchise, but according to our IT contact, the web statements are not compatible with Apple, only Windows.  Does anyone know if Boot Camp will solve this issue for me?  Than

  • Specify image for a pop-up LOV in a tabular form?

    Hi, I am using a tabular form for users to edit data. One of the fields has too many options to use a select list, so I have to use a pop-up lov (query based)... grrrr The lov shows up in my form as [Field value]List I would like to remove the text "

  • Desktop Picture Change Setting

    Hello, Is it possible to adjust the settings of the Desktop to change the pictures say every 20 seconds. Now the settings are 5 seconds, 1 minute, 5 minutes etc. Can this be changed? Thanks for the help,