Check Status of a job step

Hi,
Can anyone tell me how to check the true status of a job step.
Using tables TBTCP , or FM BP_JOB_READ what i can come to know is the status of a job step to be 'P" ie Scheduled even when the job containing that step has finished succesfully(Status from TBTCO ).
My Job has 3 steps.
I want to know the status of my 1st job step and based on the status (either Aborted or Finished) i want it to proceed further n execute the 2nd step.and so on.
IS any there way out??
Answers will be rewarded,
regards,
Rohan

Hi,
Checking  your job status with SM50 (processor type BTC) is more accurate then SM37.  SAP updates the tables TBTCO wheneveryour background jobs status change.  If SAP is shutdown, the currentjobs might not be update ontime to the table. (e.g. a background job wasshown as Active (SM37), in fact it real status should be Cancelled.
Look at the function module <b>GET_JOB_RUNTIME_INFO</b>
Regards
Sudheer

Similar Messages

  • Checking status of scheduled jobs in Hyperion System 9.3.1 ....

    Hi All,
    We have Hyperion System 9 9.3.3. We have a Daily job scheduled every morning to check the status of the scheduled jobs that run daily. One of the jobs has a status message as below.
    Failure - Internal error.ContainerCache.populate: The object "0000011386a6823b-0000-a99f-0a103a4a" is not found. It either does not exists, or it may be inaccessible.
    But when I check the job status in View Job Status > Job Scheduler module, I see the report is still running. It's just that this report is taking longer to run and completes some time after the Daily Job Status check report runs.
    In this case, shouldn't the status should say something like the job is still running instead of "Failure" which is misleading?
    Thanks in advance.
    Z

    Hi,
    I have the same problem with Oracle EPM 11.1.2:
    com.sqribe.transformer.ObjectNotFoundException: ContainerCache.populate: The object "0000012f0710ca12-0000-a4ad-c0a80003" is not found. It either does not exists, or it may be inaccessible.
    Who gives me the right answer?
    Thanks in advance, Ron

  • Report to do check status of sm37 jobs

    Hello,
    I wold like to create a job that checks the status of all running jobs on sm37 (the same as when we go to SM37,job, check status), can anyone tell me the name of the program that does that?
    Thanks,
    Pedro

    Hi,
    Good Day,
    TRY SM50 Transaction.  Program Name : RSMON000_ALV.
    Best Regards,
    Suresh Kumar K
    Assign Points if its useful.

  • Errors during Checking Status of Generation Job

    Hi Consultants,
    Usual practice sequence:
    1.Checking Business Functions Activation
    2.Generating all required objects
    In our case:
    After performing Generating all required objects step, my basis consultant activated few more missing business functions so then I was happen to re-generate all required objects .During this activity I got below error.
    Please suggest any steps to perform so the runtime objects errors can be resolved.
    Thanks,
    David

    No errors found after completion of Generating all required objects. Successfully Generated all runtime Objects.
    Thanks,
    David

  • Check Status of job step

    Hi,
    i have a job having 3 steps. table TBTCO gives u the status of the 3 steps together -- job as a whole.
    How can i come to know of the status of the job at every step. i mean how will i confirm if at every step the job is executed properly or not.??
    Untill the complete job is executed, the status of each job step is Scheduled.
    Only after complete job excution u can find out the status . either finished or aborted.
    What if i want to know status at each job step?
    Kindly help,its urgent.
    Answers will be rewarded,
    regards,
    Rohan

    Hi,
    Checking  your job status with SM50 (processor type BTC) is more accurate then SM37.  SAP updates the tables TBTCO wheneveryour background jobs status change.  If SAP is shutdown, the currentjobs might not be update ontime to the table. (e.g. a background job wasshown as Active (SM37), in fact it real status should be Cancelled.
    Look at the function module <b>GET_JOB_RUNTIME_INFO</b>
    Regards
    Sudheer

  • Job Step Status

    Hi All,
    Is there any FM or table to check the status of each job step??
    I mean while my job is executing i want to check the of the job step that has finished execution.
    For e.g. If Job A having 3 steps is running.Step 1 has completed execution and Step 2 has started. At this point i want to chck the status of Step 1 and accordingly send mail to people.
    How can i achieve this.?
    Its Urgent...
    Answers will be rewarded.
    Regads,
    Rohan

    Hi Rohan,
    The information about back ground jobs are stored in table <b>TBTCO</b>.
    field STATUS denotes the status ( A - failed, F - complete , R - active )
    The primary key for this table is job name ( including the step  )
    Check this table for more details.

  • Background Job Step

    Hi,
    I have 3 steps in my job. I want to check the status of each job step and if that job step fails , send email to certain people.
    How do i go abt doing abt it??
    In table TBTCP --  it gives the status of each job step as 'P' ie scheduled even for the finished ones... so i cant get correct data from TBTCP.
    Is der any FM implementing the same??
    Its Urgent.
    Answers will be rewarded,
    regards,
    Rohan

    Hi Rohan,
    Instead of creating the stpes, why don't you create the Job after completing the Fisrt job and for the Third Job select after completion of the Second job, so that you will get the Status in TBTCP table from there you can write the code to send the email
    Regards
    Sudheer

  • SRM 7 Upgrade : Exception when Check Status is clicked

    Hi
    We are trying to upgrade to SRM 7 and we get below error when we click on Check Status.
    Any Pointers/steps to debug the issue?
    Thanks
    Nikhil
    Method: GET_LAYOUT of program CL_POWL_PERS_ACCESSOR=========CP
    Method: INITIALIZE of program CL_POWL_MODEL=================CP
    Method: HANDLEDEFAULT of program /1BCWDY/DZDOZ86SV837808OS8Y3==CP
    Method: HANDLEDEFAULT of program /1BCWDY/DZDOZ86SV837808OS8Y3==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/DZDOZ86SV837808OS8Y3==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_IF_VIEW=====CP
    Method: DISPLAY_TOPLEVEL_COMPONENT of program CL_WDR_CLIENT_COMPONENT=======CP
    Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP

    Hi,
    I think the problem here is a missing entry for SAPSRMGP_E_CHECKSTATUS
    or SAPSRM_E_CHECKSTATUS: the issue occurs when the powl application
    id is not passed or if the application id is invalid.
    The SPRO path for creating and maintaining the application ID is:
    Cross application components-> General application functions->
    Generic SAP business suite Functions-> Personalization ->
    Help functions in personalization Environment-> Edit personalization
    Hierarchy
    You have to check in the dump (set a BP) to see if the APPLID is
    SAPSRMGP_E_CHECKSTATUS or SAPSRM_E_CHECKSTATUS.  But as we don't have
    connection now, to test you can add the both ones in this path.
    After this also you need to:
    Configuration: Define Query Visibility at Role Level and Define Query
    Visibility at Role Level also had to be maintained for
    SAPSRMGP_E_CHECKSTATUS and SAPSRM_E_CHECKSTATUS
    So in total you have to maintain:
    1) Define Query Visibility at Role Level
    2) Define Query Visibility
    3) Edit Personalization Hierarchy
    for SAPSRMGP_E_CHECKSTATUS and SAPSRM_E_CHECKSTATUS
    I hope this helps
    Kind Regards,
    Lisa

  • Check Job step status

    HI,
       My scenario goes like this :
          I have 3 steps in a background job with 3 diff variants. I want to find out a way
    to find the status of each of my job steps, and after each job step is submitted on knowing its status i want to send a corresponding mail to a few people .
    How do i do this.
    Answers will be rewarded,
    Regards,
    Rohan

    Hi,
    CALL FUNCTION 'BP_JOB_READ'
        EXPORTING
          job_read_jobcount     = w_jobcount
          job_read_jobname      = w_jobname
          job_read_opcode       = '20'
        IMPORTING
          job_read_jobhead      = wa_jobhead
        TABLES
          job_read_steplist     = i_jobsteplist
        EXCEPTIONS
          invalid_opcode        = 1
          job_doesnt_exist      = 2
          job_doesnt_have_steps = 3
          OTHERS                = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    To Display the status text as per the status type
      CASE wa_jobhead-status.
        WHEN 'S'. WRITE: / text-033. "'Scheduled'.
        WHEN 'R'. WRITE: / text-034. "'Released'.
        WHEN 'F'. WRITE: / text-035. "'Completed'.
        WHEN 'A'. WRITE: / text-036. "'Cancelled'.
        WHEN OTHERS.
      ENDCASE.
    Best regards,
    Prashant

  • How to check the status of a job!!!

    Hi,
    i want to check the status of a job and also send a mail when a job is cancelled.
    Is there any function  module which does that , also i want check the jobs across various time periods and not of today....
    Its urgent,
    Answers will be rewarded,
    Regards,
    Rohan

    Hi Rohan,
    You can get job information by <b>calling function "BP_JOB_READ".</b> If you pass the value btc_read_jobhead_only defined in LBTCHDEF, it will only return the
    job header info into the export parameter JOB_READ_JOBHEAD. The job status
    is set in JOB_READ_JOBHEAD-STATUS.
    Alternatively, <b>you can just lookup table TBTCO</b>, the status is in
    TBTCO-STATUS.
    The values in STATUS are defined in LBTCHDEF as follows;
    DATA:
    BTC_RUNNING LIKE TBTCO-STATUS VALUE 'R',
    BTC_READY LIKE TBTCO-STATUS VALUE 'Y',
    BTC_SCHEDULED LIKE TBTCO-STATUS VALUE 'P',
    BTC_RELEASED LIKE TBTCO-STATUS VALUE 'S',
    BTC_ABORTED LIKE TBTCO-STATUS VALUE 'A',
    BTC_FINISHED LIKE TBTCO-STATUS VALUE 'F',
    BTC_PUT_ACTIVE LIKE TBTCO-STATUS VALUE 'Z',
    BTC_UNKNOWN_STATE LIKE TBTCO-STATUS VALUE 'X'.
    Thanks,
    Vinay

  • Job- check status

    What could be the reason an job is "active" in sm37 (many days) and after "job->check status" gets status "cancelled"

    Hi,
    Actually the job showing as active in SM37 is currently not running.This you can see in SM50. What happens here there will be some temporary communication problem that the table storing the real status of the job is not able to get refreshed. Hence showing the wrong status.
    Rgds,
    Suman

  • Add customer button to check status screen

    hi everyone
    i'm quite new in developing srm and need your help.
    my customer wants me to put a new customer button on the check status web screen at item level which is supposed to work like the print button.
    so if i want to integrate this customer button do i have to modify the screen and html template? as far as i know there is no customer exit for this?!
    thanks in advance!

    Hi
    <u>Which SRM version are you using ?</u>
    <b>The addition of a new button for a new process means modification to standard screens, HTML templates used in the relevant Internet (Web) Services and the releavnt source code.
    Addition of button can only be done through ITS Template change.Please look in the Internet services say - BBP_BID_INV (for Bid Invitations) Or for service - BBPSC01 (shopping cart) for the exact template in whcih you want to add the button</b>
    <b>You have to define a new button in the screen and in the template. Then assign to it an OK_CODE and manage it in the PBO of the screen.</b>
    There is no BADI which can do this as this is not a SAP funtionality. You need to do a little bit of research on this to get the job done.
    <b>As a start step, You can use the BADIs - BBP_CUF_BADI and  BBP_CUF_BADI_2 to change the display from customer-defined fields to the SAP standard screen. This BAdI enables you to control whether the fields can be edited, and how they are displayed.</b>
    MODIFY_SCREEN method will Show/hide field display and restrict edit options.
    <u>For more information on BADI please go to SPRO -> BADI.
    OR View the information on BADI's.</u>
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    <u>Implement -  BADI - BBP_CUF_BADI (in SRM 4.0) to display a customized screen.</u>
    <b>Related link -></b>
    a new button required on shoppingcart screen
    <u>Hope above proves helpful to you.</u>
    Regards
    - Atul

  • SRM 7.0 Modify POWL for shopping cart check status screen

    HI Experts,
    The standard settings in check status for SC in SRM 7.0 is to display the sc with item level. This causes the SC number to be repeated (for no. of items in SC) and all links open the same SC in a new window.
    We want to display only the header of SC and no item data should be displayed in check status.
    I tried
    SRM Server->Cross-Application Basic Settings->POWL and Advance Search->Adjust POWL Layout,search criteria and push buttons----choose feeder type SAPSRM_FEEDER_SC -double click field catalog-choose ITEM_DESCR, ITEM_NO, ITEM_STATUS---CHOOSE display and select HIDDEN COLUMN radio button.
    This hides the corresponding columns but duplicate records are still showing.
    Can some one please help?
    Thanks,
    Anubhav

    Hi NM,
    After performing the steps in first post for hiding item relevant fields you can filter the data displayed in the result by using the BADI  /SAPSRM/BD_POWL_CHNG_SEL_RSLT .
    In the BADI Delete the records from result internal table where SC num is repeated so that thers only one entry for each SC.
    Let me know if it works for you or not.
    BR,
    Anubhav

  • SQL Server Agent Job Failing on Job Step

    Hi,
    Firstly, apologies if this post has been made in the wrong group.  Running SQL Server 2012.  I'm attempting to add a SQL Server Agent Job which calls a stored procedure that sends a Database Mail message.  The SQL Server and SQL Server Agent
    both run under the NT AUTHORITY\NETWORK SERVICE account.  The Database Mail service has been enabled, and a public profile created.  When running the stored procedure manually, I receive no errors - everything runs as expected and I do receive an
    email containing the expected information.
    I've created the job, job step, job schedule, attached the schedule to the job, and assigned the job to server, all using T-SQL without error.  I've also enabled the mail profile on the SQL Server Agent, and I know that part is working because when
    the job fails, I get an email notification of the failure.
    I've checked the command text in the job step and parsed it within the SQL Job Step Edit window to confirm, it shows as parsing correctly.  However, when I manually run the job itself, I get the following:
    Execution of job failed.  See the history log for details.
    I check the history log and it shows:
    [474] Unable to refresh Database Mail profile Database Mail Profile. (reason: ) (Not a typo, the history log shows no reason)
    [260] Unable to start mail session.
    [396] An idle CPU condition has not been defined - OnIdle job schedules will have no effect
    The command text on the failing job step is as follows:
    DECLARE @date [varchar](10)
    SET @date = CAST(GETDATE() AS [varchar](10))
    EXEC [dbo].[GetExceptions]
    @company = 'MyCompany',
    @checkDate = @date
    With regard to the date value being passed as varchar: This stored procedure is used to check for exceptions against multiple databases on this server (hence the company parameter) via dynamic SQL.  I'd much prefer to use proper data typing but this
    is the only way I could get it to work.
    Does anyone have any suggestions on anything else I could check, or insights into why this is failing?  Any help is greatly appreciated!
    Best Regards
    Brad

    I am not sure if this really helps but I would do follow the below steps:
    1. make sure sql server agent has database mail enabled(rigt click on server agent--properties--alert system--enable database mail and choose right profile.) and RESTART THE SQL SERVER AGENT.(i know you said it i working, but sometimes,  restart the
    sql server agent might fix)
    2. check agent error log and check if any error messages.
    3. run the command text you mentioned in sql server and see if it is working.(i know you said it is working but just to make sure).
    4. make sure sql server agent service user has permissions to run database mail in msdb. check this https://msdn.microsoft.com/en-us/library/ms186358.aspx
    5. Check the output from select * from msdb.dbo.sysmail_log and if it says anything
    6.it does not look like the job log is getting truncated but to make sure, get the job step output to a text file.to do this, edit the job step and on the job step properties click on advanced,  enter path to the output file. this will give the complete
    output for the step.
    Hope it Helps!!

  • Change the input parameter in Check Status screen

    Hi,
    I have a requirment to change the input parameter option in the check status screen. Currently when we search the SC using the date and staus from the extended search it picks the SC created date and displays the SC, my requirement is to make the date as the approved date insted of SC created date with the status as aprpoved.
    Please suggest if this is possible with the help of any Badi.
    Regards
    GGL

    I managed to find the solution myself. If anyone is interested, just follow those steps here:
    http://apple.stackexchange.com/questions/44913/make-a-custom-keyboard-layout-the -system-default-even-for-the-login-screen
    (terminal skills required tho)

Maybe you are looking for

  • PM Query - For Spares Consumption

    Hi, I'm looking for an SAP standard PM / MM report to give me the "Detail Spares Consumption". It should provide the "Total Spares Costs" compared to the "Planned Costs" This is to illustrate: Rows > Plant > Maintenance Order > Cost Element > Storage

  • Bridge has frozen !

    I'm seriously pulling my hair out on this one , bridge has decided to no longer work when I run the program it opens to the last file I was using and freezes up I can't even close the program down I have to force quit I am a professional photographer

  • Probleme de connexion wi-fi mountain lion, help!

    Bonjour, je possède un macbook pro 17" unibody late 2011 et j'ai récemment installé mountain lion, il est mis à jour. Chaque fois que je veux me connecter à mon réseau sans fil, airport m'affiche le message "aucun de vos réseaux préférés n'est dispon

  • Compromise: More RAM or better Processor

    Hi I'm looking to buy a new iMac in a couple of weeks, I know that I want a 27" one and I have a budget which will allow me to get one of two configurations: - 2.9GHz i5 Processor, 512MB GeForce GTX 660M with 16 GB of RAM and 1TB Fusion drive or - 3.

  • Macbook pro running OS X 10.7.4 - need App Store

    I'm running OS X 10.7.4 on an old Macbook Pro. I'm trying to get the developers kit but need the App Store to do so. What upgrade steps do I need to take to get me to a point where I can get the App Store?