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

Similar Messages

  • How to debugg shoping cart check status

    Hi guys,
    can any one explain me brif about How to debugg shoping cart check status and farther steps in that and give me the screen no's and program's.
    thanks,
    murali

    Hi
    Which SRM version are you using ? What is your detailed business requirement ?
    <u>See these link -></u>
    Re: Debugging Shopping Cart
    <b>Other related information.</b>
    <u>We can debug the shopping cart from sap GUI via tran. /nBBPSC01
    1 Click on internal Goods/services and select the product for which you want to create a SC and press enter.
    2 In command window input /h and press enter
    3 Click on the button Order it will go in debug mode.
    4 Insert break points on Statement - Select
    5 Insert break points on Statement - Insert
    6 Insert break points on Statement - update
    and press F5 key to move one step ahead and F8 key to halt directly at each break point.This way go upto the save mode and order your SC at run time in debug mode.</u>
    Hope this will help.
    Regards
    - Atul

  • 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

  • To check the status of a step inside a background jobs

    Hi All,
    i have a requirement where i have to check the status of a step(program)
    inside a background job.
    I tried with table TBTCP, but this will give the program status as P(scheduled)
    always.
    i know to find the status of a background job as whole, but how will we
    find out the status of a program inside a job.
    Could anyone please help?

    Use function module BP_JOBLOG_READ, result is an internal table of structure TBTC5,
    Analyze this internal table, looking for message S550(00) at the beginning of a step.
    Regards

  • 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

  • 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.

  • 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.

  • Reg: Function Module thats used to check the status of JOBS and mail it

    Hi Experts,
    Is there any Standard Function module thats going to find the status of the jobs and mail this status to specied email ID in .xls format. While checking status function module should give whether job is - Aborted, Successful, Running, Waiting, Locked, Error, Warning, Starting Date, Ending Date of the Job.
    Please help me,

    Hello Nagaraj,
    You can find out the status of a job with the SHOW_JOBSTATE function module. You provide this function module with a job name and job number. It returns one of the six possible statuses of the job:
    ABORTED TYPE C,
    FINISHED TYPE C,
    PRELIMINARY TYPE C,
    READY TYPE C,
    RUNNING TYPE C,
    SCHEDULED TYPE C.
    Following is the link for the same:
    http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e10543b11d1898e0000e8322d00/content.htm
    Warm Regards,
    Riki Dash

  • 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

  • To Check whether Background Job ran or no

    How can we programatically check in a program whether a background job ran or not for a particular output type of invoice ?? Pls help me out

    Hi,
      This will probably work.
    report zkiran_0001 .
    data: xtbtco type   tbtco .
    parameters: p_job type tbtco-jobname.
    start-of-selection.
      clear xtbtco.
      select single  * from tbtco
              into xtbtco
                         where jobname = p_job
                           and status = 'R'.  " running
      if sy-subrc = 0.
        write:/ 'Job', p_job, ' is currently running'.
      endif.
    Statuses....
    Status of background job
    The following statuses are possible:
    <b>Scheduled:</b> Job defined, but not yet eligible to run even if the start condition has been fulfilled.
    <b>Released:</b> Job eligible to be started as soon as the start condition with which it was scheduled is fulfilled.
    <b>Ready:</b> Job waiting to start. The job has been released and the job's start condition has been fulfilled.
    <b>Active:</b> Job is currently running and can no longer be deleted or reset to scheduled.
    <b>Finished:</b> Job has been successfully completed. All job steps completed successfully.
    Note: the background processing system cannot always determine whether an external job step was successfully completed. In this case, the system assumes successful completion.
    <b>Terminated:</b> Job was ended abnormally either through user action or through an error in running a job step.
    Internal codes for these are as follows.
      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'.
    refer
    https://forums.sdn.sap.com/click.jspa?searchID=4369376&messageID=1681128
    Regards
    Message was edited by:
            Kiran Sure(skk)

  • 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

  • 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

  • ITunes doesn't update Title in ID3 tags

    So, I've searched through this forum and found several problems that are similar to mine...but not 100% the same. When trying the new game Audiosurf, I found that it didn't recognize a few songs--it said that the title was "Unknown". Well, I know tha

  • Carrying and Forwarding agent mapping

    Dear All, I have to map a certain scenario where there are two plants at two different states and one ware house and 20 C& F agents spread across the country. 1)How should i map this in SAP? 2) Whether i should map the C& F agents as S.Loc or any thi

  • New Mini Projector Problem - NO SIGNAL on Daily Restart

    I just got a new Mac Mini. I have it connected to a Mitsubishi XD490 projector using the DVI adapter that came with the machine. Everything works great, until the next day. I have my Mini Set to auto shut down each night, then startup new in the morn

  • JDBC Comm Channel not Polling data

    Hello, In a JDBC to IDoc scenario, we have a sender JDBC communication channel which was set to poll for data in every 60 sec. It was working fine for long and suddenly it has stopped polling data. It's status was green and the channel was active.We

  • Acrobat Pro XI multiple levels of bookmarks

    I am nesting my bookmarks in Acrobat Pro XI and need a fourth level. So far, I have only been able to nest to three levels. Does any one know if there is a limit to the levels in bookmarks, and, if so, how to get around it? Thanks, Mary