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

Similar Messages

  • Background job  step - Printer - Output device  table

    Hi,
    When creating background job, printer- output device also specified for every step. Which table to check for job name and output device combination ?
    Thanks.

    Hi Raj check table TBTCP

  • Background Job step and Variant

    Hi,
       We are undergoing process of renaming user IDs(Eg from ABC to XYZ). I would like to know the effect on Background jobs due to renaming. I am sure we need to update the job step(s) with the new user ID. Do we need to do anything with variants too or will they work for new IDs also. Your help is highly appreciated.
    Thanks,
    Venu.

    Hi,
    This is SAP Business one system administration forum. Please find correct forum and repost your discussion to get quick assistance.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • Actual Varaint Name used in the Background Job

    Hi,
    When a program is executed in Background made the selection screen variant selected is not the one that is shown in the Background Job Step information. There we see variant as &0000000000044.
    I want to find the actual variant that was selected at the time of running the program in background mode.
    Thanks.

    Hi,
    I also faced the same issue and after my R&D i found a workaround for this. Check this out.
    Create a selection screen parameter and hide it.
    PARAMETERS: po_varnt TYPE sy-slset NO-DISPLAY.
    Now place below code in AT SELECTIO-SCREEN OUTPUT event.
    AT SELECTION-SCREEN OUTPUT.
        CHECK sy-batch IS INITIAL.
        CLEAR po_varnt.
        MOVE sy-slset TO po_varnt.
    If you are running in background by pressing F9 from selection screen, Use your hided parameter po_varnt for the variant name instead of sy-slset.
    If you are running the report in foreground or through SM36 then you can use sy-slset to know the variant name.
    Thanks,
    Vinod.

  • DP background job error

    Hi,
    The Demand Planning background job step which is used to Delete the  planning area is not working properly.
    The error message "Process DP Background Processing, variant DELETE VP SALES VALUE_ANNUAL has status Ended with errors (instance D96Y8ITPW9HBSLX8CCXHKV    displayed on the log.
    What could be the possible reasons.
    Thanks and regards
    Murugesan

    Issue resolved by assigning authorization to the background job user.

  • Background Job Monitoring

    Hi everbody,
    Please tell how to get the program name  which r scheduled in the background jobs  in SM36,37 if we know the background job name.
    Thanx and regards,
    Rajvinder Sahni

    Hi Rajvinder,
                Just look into table <b>TBTCP</b>. It will gives you about Background Job Step Overview.
    Give background job name in field <b>JOBNAME</b> then it will you report name in field <b>PROGNAME</b>.
    In addition to this there is another table which gives about Job Status is <b>TBTCO.</b>
    Thanks,
    Vinay
    Note: Reward points to all helpful answers
    Message was edited by: Vinaykumar Gorrela

  • How to find Spool number for a 2 steps background job.

    Hi All,
    How to find spool number (and also the background job name ) for a 2 steps background job.
    in the table TBTCO i can see step numbers but i dont get the spool number. Is there any link between TBTCO and TSP01.
    Also after getting the spool number i need to drill down on ALV report. I hard coded the spool number and was able to drill down using BDC and call transaction but when i press back button it is not returning to the ALV report.
    Thanks,
    Shiva.

    Which one creates the spool? (first one I guess)
    What kind of spool? (WRITE, sapscript, smartform, pdf...)
    Do you use special statements like NEW-PAGE, or other things?
    Are you sure that the spools are generated by these jobs? (did you compare the spool generation times and job run dates to be sure...)

  • Background job not updating data for some steps of program

    We have created a custom program and submitting the standard program RPRCCC_READ_KR1025
    which is used for conversion of AMEX credit card files.
    Since this program can update data for 1 company id at a time,we have created a background job
    for that program with 10 steps and 10 variants of data related to 10 different company codes.
    when this job is executed it is not updating data for all the 10 files , sometimes it updates 5,7,etc...
    If we execute the other files which didnt update in job manually they are getting updated.
    All the files executed with that program can be seen in PRTA transaction.
    Regards,
    Gautham.
    Edit: Solved.
    Since the standard program updates the database every time with commit work
    there should be some time until the next database update,so we can use wait command
    after the submit statement which will do the trick.
    Edited by: Gautham Vangaveti on Aug 5, 2010 7:20 PM

    Hi,
    I mean B(Sub Assembly)
    Item Rollup Flag
    A No
    --B                       Yes
    ---B1 No
    ---B2 No
    ---B3 No
    --C                      Yes
    In this case when we run cost rollup by giving item A, Oracle will consider below structure.
    A
    --C
    Regards,
    Sarvottam.

  • Adding a new step in existing background job

    Hi,
    I have a background job which has 14 steps. I have to add a new program in 15th step. Can any one let me know how to go ahaed with that?
    Regards,
    Ashish

    Go to SM37,  go to the "released" version of your job. I assume that it is a periodic job, hence there should be a released version of it.  select it and click from the menu,  Job--->Change.   Click the Steps button from the appliation tool bar,  now click the create button.  Enter the name of the abap program,  click check, and save.  That's it.
    Regards,
    Rich Heilman

  • Table name for background job with report, variant and step user id list.

    Hello All,
    I need to generate the list of scheduled backgroung job with the list of Report Name, Variant, Step User Id called. Please any one tell the SAP Table name from which I can get these data.
    Thanks in Advance,
    Amit

    Hi Rohit,
    Thanks for your reply. But from TBTCO, i can't find program/report name and variant. Just the list of background job i can see.
    Regards,
    Amit

  • Adding steps for a background job

    Hello All,
    I am creating a background job through a program and submitting another program for running in the background.
    I would like to add steps for the backgound job which I created trough my program.
    So background job will have different steps  for the same program which I submitted.
    Could any one of you help me on how to add steps for background job which is already running.
    Thanks and Regards,
    Vijay

    Hi Naimesh,
    Thanks for the Reply.
    Sorry for replying late.
    The problem I am facing is we need only one job with multiple step .
    for example if we have job named BCKGRD.
    Under this job we need to create Step 1, Step 2, Step 3..
    Regards,
    Vijay

  • Creating a Step for Background Job from within ABAP Program

    Step-1: I have a Report in ECC, which is scheduled as Background Job, which writes the file to the Application Server(UNIX)
    Step-2:  Trigger a Unix Command to ftp the file to other server.
    Both Step-1 & Step-2 can be done from SM36. 
    Another Scenario:
    Users can run the report in background from SE38 or using the transaction code for the report, In this case we want to call the external command.
    Instead of calling the External Command as below in the report, I want to create a Step from within the program when it is scheduled in background mode.
    CALL 'SYSTEM' ID 'COMMAND' FIELD lc_unixcom.    [ Here lc_unixcom has the External Command ].
    Any ideas??? Appreciate help.

    Hi,
    For submitting a report step, you may use either SUBMIT ... VIA JOB ... or JOB_SUBMIT function module.
    For external commands, this should be done only by calling JOB_SUBMIT function module.
    Sandra

  • 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

  • How to terminate the next job step in Background job?

    Hi,
    I have the requirement from the user that want to terminate the next job step in the background job that currently running (Status Active).
    For example, Background Job A, contains 5 job step, once the background is running, we would like Job A not run thru job step 4 and 5, just run up to job step 3. 
    Anyone have any idea how can I do that?
    Thanks
    Nattawat S.

    Hi,
              Try to delete instead of cancel in SM37.
    To cancel and active job, select the job from SM37 and Click on STOP button in application toolbar. You can refer to your other thread for more info.
    Regards

  • Background  job terminated in LSMW last step

    Experts:
    When I run the last step in LSMW: 13 Start Direct Input Program,
    I set a background job for Trans:BMV0,
    But it goes an error:
    "Job started
    Step 001 started (program RMDATIND, variant....)
    Could not open file xxxx.lsmw.conv
    Job cancelled after system exception ERROR_MESSAGE"
    could you tell me possible reasons for this error?thank you!

    Ichecked the file assignment in step seven.
    what file path and name did you define for the converted file? is this located on your PC or on the application server?
    did you execute step 11?
    did step 11 tell you that SAP had written xxx records to the conv-file?
    The file path is on the application server
    yes,I executed it.
    Transactions Read:                9,066
    Records Read:                    50,324
    Transactions Written:             9,046
    Records Written:                 50,228

Maybe you are looking for

  • Request for feedback on crash report (OS 10.4.11, Firefox 2.0.0.16)

    I'd appreciate any feedback on the following crash report. Although actual crashes have been infrequent, I have recently been experiencing a lot of repeated 'non-response' to mouseclicks on webpages, and am wondering whether this is a Firefox-related

  • Public themes (templates)

    Hi, APEX version: 4.2.0.00.27 I'm trying to create a theme/application template that can be used for all our future application development across workspaces. I have successfully created an application template which is available from all workspaces

  • Website displays differently in firefox only

    Ive built a site and it displays fine in chrome and internet explorer but in firefox the second javascript slider is displayed to the far right side of the homepage instead of under the first slider like the other browsers display it. Not sure what i

  • Example application "Threshold And Label" error

    I have licenced Vision Development Module. A have successfully activated it on my developer computer. Now I want to 1) Develop Msvc-project, using VDM functions library (functions, declared in nivision.h), 2) Build an executable application and 3) Ru

  • Can I use flash.external.ExtensionContext directly?

    I mean, if I am not happy with as3 wrapper shipped with ANE and feel bold enough to create and handle flash.external.ExtensionContext myself - will adt correctly package the app? If I get no answer I guess I could just go and try, but then maybe some