Find the job status

hi
i submited the job using
dbms_job.submit
          (job => vn_nJobId,
          what => vc_strJobWhat,
          next_date => sysdate,
          interval => 'sysdate+(01/9000)'
after submiting i want know the status of the job
in which status the job should be
can i track that status
is it running or failure or completed can track that one ?????
help is required
thanks and regards
just venky

hi
thanks for the response
but iam doing dbms_job submit in the pl/sql
i want to track the status in to a varialbe(will it posible???)
create or replace procedure track_status is
vn_job number;
vc_what varchar2(2000);
v_status number
vn_nJobId, number;
begin
vc_what : = ' sfsdfsdfsdfsdf '
dbms_job.submit
          (job => vn_nJobId,
          what => vc_strJobWhat,
          next_date => sysdate,
          interval => 'sysdate + (01/9000)'
commit;
v_staus = can I track this value or string ????
based the status i want to go further
will any body give the example for this
thanks venky

Similar Messages

  • How to find the job and job status from RSPCM

    hi all,
    suppose we got an error and in rspcm the process was failed.i want to know the status of that particular job.and if any i want to stop that job in SM37.
    plz tell me how to find the job and job ststus from RSPCM...and how to stop that job in SM37
    thanks,
    jack

    Hi Jack,
    RSPCM: T.Code
    This transaction is used to monitor the process chains
    First:
    here you need to add the process chains into the sheet
    Second:
    Then you can monitor the process chains in this transaction code
    Like you can see the :  status ,proces chain ,Last run date ,Last run time ,Log ID
    Status : Green when sucessful,Yellow when running & Red when you get errors
    Now when yoy click on any of the process chain in RSPCM you will go to the LOG VIEW as you see in RSPC transaction
    SM37:T.code
    This transaction is used for Job Overview
    you can see many options in SM37
    like Released,active,cancelled,finished,etc
    Just select the ACTIVE  jobs and also pass STAR in JOB ID & USER ID
    here you can only see the active jobs
    Goto Step in toolbar
    select the program displayed
    then chose option GOTO - Variant in main menu bar
    in the variant you can see the job belong to which Process chain
    if you want to cancel this job come back to SM37 Display screen
    Select the Job and select the JOB DETAILS tab in Tool Bar
    Collect the WIP ( Work Permit ID)
    Go to SM50 T.code and find the WIP
    in Main Menu Bar you find the option Cancel with Core choose this it will cancel the Job
    Regards
    Hari

  • URGENT : Error 5 when checking the job status

    Hello Forum,
    While monitoring the Process Chains in BW 3.1, I got the following message in the <b>Information </b>Pop-up:
    <b>Error 5 when checking the job status</b>
    Could you please tell me what it means?
    Thank you,
    its my duty to assign points,
    raj

    Hi,
    Are you able to view the log after refreshing and clicking the tick mark button on this message or is it not letting you go into the log itself.
    Can you directly go to Log view thru Tcode RSPCM and see. Once you are inside try to find where exactly the process failed.
    Thanks,
    JituK

  • Check The Job Status

    Hi SAPsimhas,
    My requirement is as below.
    I will loop through an internal table and create some files with background processing method.(JOB_OPEN,SUBMIT & JOB_CLOSE)
    Now once this job is triggered I need to check the status for that job after maximum 10 mins. Its not neccessary that each job will take 10 mins. only,It can be finished in 2 mins also.
    Once the job is finished then I will XCOM that file.
    So my question is how to code such timer which will check the job status for that job? I have a FM BP_JOB_READ which returns the job status.
    Reply is highly appriciated.

    Try this way
      do.
        call function 'SHOW_JOBSTATE'
          exporting
            jobcount         = p_jobc
            jobname          = p_jobn
          importing
            aborted          = v_aborted
            finished         = v_finished
            ready            = v_ready
            running          = v_running
            scheduled        = v_scheduled
          exceptions
            jobcount_missing = 1
            jobname_missing  = 2
            job_notex        = 3
            others           = 4.
        if v_aborted eq 'X'.
          exit.
        endif.
        if v_finished eq 'X'.
          select single * from tbtcp into wa_tbtcp1
                     where jobname eq p_jobn
                       and jobcount eq p_jobc.
          if sy-subrc eq 0.
            move wa_tbtcp1-listident to p_spono.
          endif.
          exit.
        endif.
        if v_count le 10.
          call function 'ENQUE_SLEEP'
            exporting
              seconds = 60.
          v_count = v_count + 1.
        endif.
      enddo.

  • What are the possible values for the JOB status?

    What are the possible values for the JOB status in the table TBTCP and significance for each?

    Hi,
    Have a look at include LBTCHDEF.
    The standard include from SAP.
    -> Definitions and Constants for Function group BTCH
    Kind Regards
    Raymond

  • Standard report Programs to find the current status of workflows

    Hi Experts,
                       Are there any Standard report Programs to find the current status of workflows or workflows which are pending.
    Regards,
    Hari

    Go to SWI1 t-code
    Give the appropriate Status - Ready or Inprocess or Waiting
    Input the Task - either WF Template or Standard Task.
    Choose the time period and execute the report.
    Regards,
    PR.

  • Why  I can't find the overall status in billing document!?

    Hi,
    Why I can't find the overall status in billing document? but I can find this status in table VBUK, some documents set 'B' in this field, some set 'C', all of them are Completed and the corresponding account documents are cleared. for this status is 'B',I can't archive these documents.
    Thanks.

    Dear Lance
    Check the field Document object    i.e Document Status object .
    A     Order
    B     Purchase order
    F     Billing document
    K     Sales activities
    L     Delivery
    T     Shipment
    V     Shipping
    X     Others
    Check if all your entries are F, if not find out which document and try to find out why it is not C.
    Do revert with your feedback
    If it is still a problem , check some SAP notes
    For e.g. Note 142368 - Segment VBUK missing in billing document
    Header status segment VBUK is missing in the billing document.You can check this with the general table display (SE16).
    It is not yet known why this segment is missing.
    correct many documents, you can use report ZZVBUK01.
    Regards
    Jitesh
    Regards
    Jitesh

  • How to find the invoice status

    how to find the invoice status in ap

    Hi,
    Please elaborate your question, what Invoice are your referring? AR, AP...
    Invoice status can be found from both Front end application or from the backend using SQL query. Also provide your enviornment details to better assist you.
    Thanks &
    Best Regards,

  • How to find the job details?

    Hi,
    Can any one pls tell me how to find the job details.
    Im getting the following error.
    ORA-12012: error on auto execute of job 2523287
    ORA-01031: insufficient privileges
    but, when im connecting as sysdba adn do following it was showinfg no rows selected.
    SQL> select * from dba_jobs where job=2523287;
    no rows selected
    SQL> select * from all_jobs where job=2523287;
    no rows selected
    How to find the job details of the job 2523287?
    Thanks in advance.
    Jishnu

    yeah, trc file is there
    I found the following info in that
    *** ACTION NAME:(EDX_PURGE) 2009-11-08 22:00:00.411
    *** MODULE NAME:(DBMS_SCHEDULER) 2009-11-08 22:00:00.411
    *** SERVICE NAME:(SYS$USERS) 2009-11-08 22:00:00.411
    *** SESSION ID:(683.4258) 2009-11-08 22:00:00.411
    *** 2009-11-08 22:00:00.411
    ORA-12012: error on auto execute of job 2523287
    ORA-01031: insufficient privileges

  • How to find the NodeManager Status using WLST

    Hi All,
    can anyone please let me know how to find the nodemanager status using wlst, the nodemanager status whether it is 'Reachable' or not.
    Thank you.

    Hi Bob,
    As James pointed, we faced the same. We could not find any mbean to find the Node Manager Stat that we can monitor from Weblogic console.
    The best I can suggest, use the below WLST command after connecting to 'Node Manager:
    nm()
    Currently connected to Node Manager to monitor the domain xxxdomain.Grep for 'connected to Node Manager to monitor the domain <Your WLS domain name>' and if successfull, your node manager is UP & Connected other wise not 'Reachable'.
    Regards,
    qumar

  • How to find the approval status for a document version

    Hi all,
    We have enabled versioning on a folder and the system is maintaining the versions. I need to be able to identify which version in at what status.
    For example, I create a file and it creates a version, I check it in and out several times, I then release/publish the file, and another version is created, I then check it out and in several times and the cycle begins again.
    I then realize that I need to go back to the latest released version but I don't know which one it is nor can I identify it using the 'versions' selection from details. How do I know what the status is of the previous versions?
    I need to be able to identify only those versions, past and present, that were 'approved/released' vs those that were left in progress. How do I find the statuses of the previous versions to correctly identify which version was released.
    KM is maintaining this some how because it knows to show only those items that are released to the standard user and not show them those that are in progress.
    How do I find that same parameter that shows me which older version is release?
    I am looking for something like what is available with the properties selection on the 'versions' screen. I am able to go to any version and look at the properties of that version at the time the version was saved. This is what I need with status. I need to be able to look at any version and know what status was at the time it was saved.
    Any help is appreciated,
    Srini

    Hi
    According to my knowledge,Versioning can only be done on files, not folders.
    To view the version history of a file, as well as save prior revisions to another location to view them do this:
           1.      Using Windows Explorer, locate the file.
           2.      Right-click the file and select Versioning and then select List Version History.
    The resulting dialog displays the version history of this file.
           3.      Select a prior version and click the Save As button to save the version to another location.
    Regards
    Elizabeth

  • How to find the job is in which server

    HI ,
    In Process chains , are assighned to server  want to know the chain is in which server , please let  me know
    Thanks
    Ahmed Pasha

    Hi
    follow the below steps
    goto SM37 --> find out your job
    double click on job ---> click on job details(you will find this option in top)
    In the next screen --> you will get application server name and Work process ID
    This two are required if you want to cancel any running job.
    Note: You will find the server name and WPID only for active jobs(which are runnig at present)
    In Your case if you don't know the server name which you have, just select "Home(this is the first option)" system will run the job based on server availability.
    If you want to know all the servers in your system, goto SM50
    Regards,
    Venkatesh

  • How to find the Job Name in the debugging from the SM37

    Hi All,
    Here my problem is i want to update the Actual UOM into MM02 and if new material is coming i need to create the material and UOM in MM01.
    for this requirement i am using RMDATIND standard Direct Input program and I am using Background JOB Schduling by giving name MRP_MATERIAL_MASTER_DATA_LOAD
    I am getting the data into my internal table and i am successfully getting the message "JOB started" once i execute the program.
    then i gone into SM37 there i found my job is completed.
    but when i try to find the data has updated in MM02 or MM01, here i could not found the updated data.
    Can any one can help me in this.
    Thanks & Regards,
    Venkat N

    hi,
    When ever you schedule any job, it gives the name of the job in the screen.
    Now after going to SM37 filter the screen for the time period you did the job and put the user id as your user id, so that it show only your jobs which started from the given time interval
    regards,
    Omkar.

  • Cannot find the warranty status (t400s)

    hello, I bought this t400s (2815-w14) a little bit more than a month ago in Germany. but still the warranty status cannot be found on Lenovo's website. it shows:
    Our apologies
    Information for Warranty was not found. Please click back and try again or you may navigate clicking on 'Warranty'.
    should I contact the dealer or Lenovo Support to get this problem fixed?
    Thanks for your help in advance.

    @linyu, are you having some issues with warranty status?
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • How to find the job has failed in back ground

    Hi All,
        I have a requirement where i will be running a report online and background.
    If my job has failed in Background, then i have to trigger a mail to the user stating that the job has been terminated.
    Now, How will i know the Job has failed and how should i handle this in my report so as to trigger a mail.
    Hope i am clear with my requirement.Kindly clarify if possibe with any func modules or sample codings.
    Thanks in advance
    Nanda

    Hi try that:
    try:
    1) fm job_open
    2) submit report
    3) fm job_close
    4) finally select table TBTCO
    example:
    DATA: jobcount_test LIKE tbtcjob-jobcount,
            job_released    LIKE btch0000-char1,
            rcode(2),
            strtimmed LIKE btch0000-char1 VALUE 'X'.
      DATA jobname  LIKE tbtcjob-jobname.
      CONCATENATE  'TEST_' sy-repid '_' sy-datum INTO jobname.
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname          = jobname
           IMPORTING
                jobcount         = jobcount_test
           EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                OTHERS           = 4.
      IF sy-subrc NE 0.
        MESSAGE x000(yp) WITH 'JOB-START ' jobname ' failed !!!'.
      ELSE.
    *--Step insert
        SUBMIT rsbdcsub
        USER sy-uname VIA JOB jobname NUMBER jobcount_test
        WITH mappe = map
        WITH von = pdatum
        WITH z_verarb = 'X'
        AND RETURN .
        CALL FUNCTION 'JOB_CLOSE'
             EXPORTING
                  jobcount             = jobcount_test
                  jobname              = jobname
                  strtimmed            = strtimmed
                  targetsystem         = sy-host
             IMPORTING
                  job_was_released     = job_released
             EXCEPTIONS
                  cant_start_immediate = 1
                  invalid_startdate    = 2
                  jobname_missing      = 3
                  job_close_failed     = 4
                  job_nosteps          = 5
                  job_notex            = 6
                  lock_failed          = 7
                  OTHERS               = 8.
        IF sy-subrc > 1.
          MESSAGE x000(yp) WITH 'JOB-CLOSE ' jobname ' failed!!!'.
        ENDIF.
      ENDIF.
    Andreas

Maybe you are looking for