Cancelled jobs

Hi All
     I have to create a program which gets the background jobs cancelled for a particular period.If we have any cancelled jobs then send a SMS.I have the funtionality to send an SMS will you please tell me how to get the background jobs cancelled for a particular period.
Thank You.
Regards
Giri

SELECT jobname
         reluname
         strtdate
         strttime
         FROM tbtco
         INTO TABLE t_jobs
         WHERE status EQ 'A'  and
        strtdate GT <value> and
        strttime GT <value.
reward if answered

Similar Messages

  • Report for cancelled jobs

    Hi ,
    I have a requirement in which I have to create a report that should pickup all the cancelled CRM marketing jobs (due to whatever reason) based on on job name, copy them and restart them.
    In your selection screen, you will give the cancelled job name (wildcard acceptable..like ZE00*) and a radio button to show the cancelled job list and copy the jobs.
    Could anyone guide me on how to go ahead with this report?
    Regards,
    Mohit

    Hi,
    in table TBTCO and TBTCP you have all jobs with current status. You can search them by name.
    Selected jobs you can "popup_with_table" FM. Then you need to use fm to submit job in ackground;
    'JOB_OPEN', 'JOB_SUBMIT' and 'JOB_CLOSE'.
    Good luck !

  • Problem with CUPS and Canceling jobs

    I am using OS 10.3.9 on a 1.42 MDD PowerMac
    I am having a problem trying to cancel Jobs using the CUPS interface. When I select "Cancel" I get an error "client-error-forbidden".
    I have tried logging in as Root but the same error occurs.
    I have run "CacheOut" and deleted all cache thinking that it would solve my problem.
    I can't seem to find any answers anywhere.
    I have 1 fax job and 1 print job that I would like to remove from the Que.
    If I knew where these files were I would manually delete them, but I cannot find them, except in the CUPS interface
    I was thinking of installing CUPS 1.2b2, as it has more features and maybe it would solve my problem.
    Are there any problems that I should know about before installing this software. If I install it I can't go back to my original CUPS without re-installing the system.
    Thanks,
    Nick
    G4 1.42 MDD   Mac OS X (10.3.9)   2 GB memory

    Nicholas,
    I assume you're talking about accessing your printer from your browser by using the URL http://127.0.0.1:631/printers/
    Understand you can't log in as Admin?
    Do you have an appication named after your printer in the folder Home/Library/Printers ? If so, click on it and see if you can see your job.
    If not, try downloading Printer Setup Repair from:
    http://www.fixamacsoftware.com/software/index.html
    Seems to do a great job in fixing problems, and might restore your ability to monitor your print jobs. I was only able to monitor and delete my print jobs through the CUPS interface on my browser until I ran Printer Setup Repair. After that, I was able to use the application mentioned in my first paragraph to do the monitoring (and it works great!)
    Hope this helps!
    Bob

  • How to Fetch Cancelled Jobs info along with the Short Dump Text

    Hi Gurus,
    I need to develop a report to fetch the cancelled jobs information for the given period. I also need to display the "Error Analysis" part of the Short Dump if it exists.
    I am able to fetch the Failed Jobs information and the Job log details using the FM "BP_JOBLOG_READ". But I need to show the "Error Analysis Text" on the report , if there is any Short Dump Exists for the Dump.
    Please give me your ideas to fetch the Error Analysis part of the short dump for a given Batch Job Name.
    Thanks in Advance.
    Best Regards,
    Sumalatha

    The dump information is in table SNAP. You could identify which dump you want by the date & time of the failed job - let's hope you don't have more than one dump with the same time. If it is ambiguous you could also compare the program name of the failed step with the program name in the SNAP data.
    The error analysis texts are in table SNAPT keyed according to which error occurred (which is data element code FC right at the start of the first record in the SNAP data). You will have to expand out the includes, and substitute the variable codes using values from the SNAP data. There is standard code to do this that you could copy - see program SAPMS380.
    To find out the details of the SAP process you could run transaction ST22 via the debugger and use the same mechanism.
    best wishes
    Ed
    PS Note these details apply to recent systems I think there may be differences if you go back to before ?2004, but I don't have such a system so can't check. You didn't say what release you have.

  • Error in automatically starting canceled job in a zreport

    Hi All
    I developed a zreport in which the input is canceled status taken from SM37.
    When the zreport will execute the canceled job automatically restart and completed.
    But it is not happening in Zreport. I am using SAP 4.7.
                                                  Kindly advice how to proceed.
    Thanks
    Raj

    A service specific error occurred: 2.fix OS/networking configuration error
    when was last time EM worked without error?
    what changed since then?

  • Re- Schedule the cancelled job

    Hi Experts,
    How to re-schedule the cancelled job.
    Thanks,
    satya

    Hi,
    Goto SM37 and change it click on JOB Menu
    Thanks
    reddy

  • How to check who has cancel jobs in SM37

    Hello every one.
    Can any one explain how to check  who has cancel jobs in SM37(job overview).
    Is it possible to know such logs.
    In sm37 its only gives details about jobs what ever.
    Thanks & Regards.

    hi.
         Use SM 36 for creating the job...and SM 37 for displayin the job...here
    u can see some details such as job name,job modifier name,modified date from which date to which date....but u must know the job name den only u can find the modifier name there...
    it is possible to know such logs.....
          select the job..in that screen job log button is there..select the button,can get the job log ..ie start time and end time and some  other informations..
    hope this helps u..
    assign sum points if applicable...
    regards,
    ramanan

  • Cancelled job list form TBTCO

    Hi All,
    I have requirement to extract the jobs which ever cancelled for last one month, if it were a few jobs we would have taken it from SM37, but jobs number are in plenty.
    So, i would like to use the TBTCO to get the all cancelled jobs which should include jobname,startdate,enddate,status of the job.
    Let me know the steps how can i configure to get the data
    Inputs are highly appreciated
    Regards
    kumar

    One thing you could do if you are set on using SE11 and TBTCO...
    Once in the data browser for TBTCO click "Settings > fields for selection"
    Choose the fields you require, one of them is STATUS
    Since you want cancelled/failed jobs, you would want to use "A" for the status.
    Status identifiers are:
    A - Cancelled
    F - Completed
    P - Scheduled
    R - Active
    S - Released
    When you execute that listing it will give you all the jobs which cancelled for the dates you provided.  If you want the times just add Start Date, Start Time and End time etc.
    Regards,
    Zecher

  • Undo a cancelled job

    I accidentally cancelled a job I was compressing...one that takes VERY long to compress...I'm wondering if there's any way to "undo" the cancellation and have compressor pick up where it left off on that cancelled job.

    I don't think you can pick up where you left off, but you can click on the job in the history window and
    drag it over to the settings and destinations window and it will start again. It's worth a try, it may start from where you cancelled it, but i think it will start from the beginning.
    Good luck !
    DM

  • Photosmart Plus B210 series is stuck on "canceling job"

    Photosmart Plus B210 series printer is stuck on "canceling job."  I have tried deleting and adding it back on. Printer is working on its own and appears to be recognized by my iMac but I can't access the supply levels or print anything. Under printer setup the location is blank...suggestions? help?

    Hello @Amiera , and welcome to the HP Forums, I hope you enjoy your experience!
    I can see you're running into compatibility issues.  I would like to help.
    I would suggest Uninstalling the Printer Software.
    Once it is uninstalled, I would suggest putting your system into clean boot mode within the Microsoft configuration.  You can do so by following this document: How to perform a clean boot in Windows.
    Once the computer is in clean boot mode, I would suggest reinstalling the HP Printer Install Wizard for Windows.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Is it possible to RESTORE cancelled job and run it.

    Hello Experts,
    This question is regarding restoring old background jobs which were cancelled.
    I have a report which runs in background with one variant. The report has a date as a selectionscreen input. This date is used by the program as field AUDAT to get the Sales orders from VBAK. The purpose of the program is to fetch the Sales Orders on a daily basis.
    So I scheduled a job for this report on a daily basis. I created a variant and I used the selection variable 'current date  in the attributes of variant for the date field(AUDAT) of selection screen.
    So the background job will run daily by passing that days date to AUDAT field.
    My problem is 2 days back the job got cancelled. Today is it possible to restore that old job and fetch the Sales Orders for which AUDAT is 2 days back from today?
    Today I tried to reschedule that cancelled job, but I am getting the sales orders for which AUDAT is todays date but not 2 days back date.
    Can you people please help me.

    Hi Zloch,
    That is a perfect solution. Thanks. Thankyou very much. I implemented that. But I got another problem. I implemented as you directed, but the job got cancelled. In the Job Log I am seeing the message  'ABAP/4 processor: EXPORT_INIT_COMPRESS_FAILED'. When I double clicked it, it taken me to the short dump of that error and the short text is 'Compression error with EXPORT'. It said that the Error is in the SAP kernel and the current ABAP "SAPLSLST" program had to be terminated because the ABAP processor detected an internal system error. It has shown that the error is in include LSLSTF06 of program SAPLSLST. But my program has not used any of these includes and function modules.
    Can you please suggest what could have  went wrong? Did I do anything wrong while creating the variant or backgrond scheduling?
    Please let me know your kind suggestions.
    Regards.

  • Spool need to create for Batch cancelled job

    Hi Experts,
    How can we display spool for the batch job which has been cancelled.
    I ve executed alv output in background job. But, some condition is not satisfied, so it has been terminated( job is cancelled).  I need spool for the cancelled job.
    any suggestions.
    Thanks
    GR

    HI Kiran,
    I have created program with ALV grid output, that they are running in background.
    Here is the code,
         IF NOT sy-batch IS INITIAL.
    *program termination
            MESSAGE a203(z3) WITH s_vari-low text-025.
          ENDIF.
        ENDIF
    Before to this code i am calling ALV GRID...
    If i run in background Its creating a spool.  But, after termination deleting the spool. 
    How can i make changes that the spool should not delete in batch job.
    Thanks & Regards
    GR

  • To send mail for cancelled jobs in SM37 to basis team using workflow.

    Dear All,
      I have a requirement to implement a workflow that will trigger a mail to basis team if there are any jobs with status Cancelled.
      I found a business object type 'BPJOB' which has an event Cancelled. I tried to test if the workflow is triggered when a job is cancelled using transaction SWELS. But it doesnt trigger any workflow.
      I tried finding a BADI/EXIT but there are no enhancements present for the transaction.
      We already have a report which will trigger an email to the concerned basis person when the job is cancelled but the client wants it using a workflow.
      I need to know whether there are any other ways to fulfill this reqt using workflow?
    Thanks & Regards,
    Supriya M.

    Hi SM
    try using BPJOB_SMAN, which is an object for Schedule Manager.
    check if it throws any event of BPJOB_SMAN.
    If yes, then use a WF which would send/notify mail to BASIS.
    Hope it helps.
    Aditya

  • Officejet Pro 8600 - Can't remove canceled job from print queue

    Hi there
    I canceled a print job from the print queue, but it refuses to budge! Everytime I try to remove it, I get this message:
    I can print other documents, but it's very irritating having this here all the time (and a big red blob on my dock icon announcing a phantom print job).
    Can anyone help me rid myself of this spectre of print purgatory?
    Cheers!

    Try downloading and running the HP Print and Scan doctor. This software is able to remove phantom print jobs for you automatically. The program can be downloaded from here.
    As well, for Windows based computers, restarting the computer can also help with this issue oftentimes. Hope this helps.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • Re run the cancelled job

    hello experts,
    Can anyone guide me how to rerun the cancelled.
    Job is created n cancelled by some other user.
    Can u let me know how can I rerun this....?
    thanks alot for your anticipation

    if you want to change user name ,then you can not change user name if job status is Cancelled. even copy also .
    So better to run report again from se38 or transaction,use variant ,so it creates job on your user name.
    if your job is cancelled again,then you can re run now onwards.
    Thanks
    Seshu

Maybe you are looking for