Regarding Job Status

Hi,
I want to check the status of my job i m aware of the tables n FM but what i wanna
know how do i go about doing it in my program which is submitting that job
using JOB_SUBMIT ??
if i check the status in my program it always gives Running it may take some tme for my job to be proceesed,thus im nt gettting the actual status.
Is there any way out??
Its Urgent,
Answers will be rewarded,
regards.
Rohan

Hi,
Please check this sample code.
CALL FUNCTION 'JOB_OPEN'
  EXPORTING
    JOBGROUP         = V_JOBGROUP
    JOBNAME          = V_JOBNAME
    SDLSTRTDT        = SY-DATUM
    SDLSTRTTM        = SY-UZEIT
  IMPORTING
    JOBCOUNT         = V_JOBCOUNT
  EXCEPTIONS
    CANT_CREATE_JOB  = 1
    INVALID_JOB_DATA = 2
    JOBNAME_MISSING  = 3
    OTHERS           = 4.
IF SY-SUBRC NE 0.
  CLEAR WA_MESSAGE.
  CONCATENATE TEXT-005 V_JOBNAME INTO WA_MESSAGE
                       SEPARATED BY SPACE.
  MESSAGE S009(ZZSCMAPO) WITH WA_MESSAGE.
  STOP.
ENDIF.
SUBMIT ZZAPOSSFCST_EXTRACTOR2
       USER SY-UNAME
       VIA JOB V_JOBNAME
       NUMBER V_JOBCOUNT
       WITH P_SOURCE EQ P_SOURCE  "<--- Here submit with parameter1
       WITH P_REQUNR EQ P_REQUNR  "<--- Here submit with parameter2
       WITH P_SIZE   EQ P_SIZE    "<--- Here submit with parameter3
       WITH P_CALLS  EQ P_CALLS   "<--- Here submit with parameter4
       AND RETURN.
IF SY-SUBRC NE 0.
  CLEAR WA_MESSAGE.
  CONCATENATE TEXT-006 V_JOBNAME INTO WA_MESSAGE
                       SEPARATED BY PACE.
  MESSAGE S009(ZZSCMAPO) WITH WA_MESSAGE.
  STOP.
ENDIF.
CALL FUNCTION 'JOB_CLOSE'
  EXPORTING
    JOBCOUNT             = V_JOBCOUNT
    JOBNAME              = V_JOBNAME
    STRTIMMED            = 'X'
  EXCEPTIONS
    CANT_START_IMMEDIATE = 1
    INVALID_STARTDATE    = 2
    JOBNAME_MISSING      = 3
    JOB_CLOSE_FAILED     = 4
    JOB_NOSTEPS          = 5
    JOB_NOTEX            = 6
    LOCK_FAILED          = 7
    INVALID_TARGET       = 8
    OTHERS               = 9.
IF SY-SUBRC NE 0.
  CLEAR WA_MESSAGE.
  CONCATENATE TEXT-007 V_JOBNAME INTO WA_MESSAGE
                       SEPARATED BY SPACE.
  MESSAGE S009(ZZSCMAPO) WITH WA_MESSAGE.
  STOP.
ENDIF.
<b>Reward points if useful</b>
Rewards
Ashu

Similar Messages

  • Unable to get job status via BIP web service

    Hi,
    I'm scheduling a report job using the method scheduleReport of the ScheduleService web service. The method returns the jobId correctly, then I check the job status using getScheduledReportStatus.
    Every time the method returns jobstatus = "Scheduled", but the report is finished. I noticed that BIP schedule a child job with different jobId (why?) and If I use it, the getScheduledReportStatus return a null status.
    Using the method getScheduledJobInfo I have all the information, but how can I get the child jodId ?
    Best regards,
    Alessio

    Hi Alessio
    I know this was a long time ago but i was just taking a chance:
    Quick question: did you get this to work? I can schedule a report using the ScheduleReport sevice, but when i query the status using getScheduledReportStatus, the status remains 'Scheduled', even after the job has run. The job also does not appear in the Job History of the report. The report is set to burst, which it does correctly.
    Do you have any ideas?
    Thanks very much.

  • 5 error while checking job status

    Hi,
    We are getting the following error when we are trying to check the status of the process chain through FM 'RSPC_API_CHAIN_GET_STATUS':
    5 error while checking job status.
    The real scenario is we are using an abap screen with a button on it. when the user clicks on the button we call the FM 'BP_EVENT_RAISE' to trigger the process chain. once the chain is triggered we are having an endless loop to monitor the status of the chain with FM 'RSPC_API_CHAIN_GET_STATUS' untill the chain status turns green ie G.
    Now while monitoring the status it randomly throws me the above error. it seems to work sometimes and other times it gives the popup with the said error.
    Can anybody help why we get the error.
    Regards,
    Shashank

    Hi Shanshank,
    Try to Debug the FM.
    Rgds,
    Ravi

  • 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

  • Why data has not been copied from staging DB to Reporting DB even timer job status is success ?

    Hello,
    I am facing following issue regarding web analytic service for specific date 2014-08-18:
    Verified following services which are running and status was success on that specific date 2014-08-18 :
    Web Analytics Service
    Microsoft Usage Data Import
    Microsoft SharePoint Foundation Usage Data Processing
    Observed latest Web Analytics Setting as below :
    LastAggregationDateId 
    20140817 -   The date id of the last successfully completed data aggregation
    LastAggregationTime
    2014-08-18T00:00:13.210 - The time of the last successfully completed data aggregation
    LastBestBetSuggestionAggregationDateId
    20140818 - The date id of the last successfully completed best bet suggestion data aggregation. This date id should not be reset to an earlier date manually.
    LastDataCopyTime
    2014-08-17T23:59:09.693 - The last time the data were copied from the staging databases to this reporting database for aggregation
    Above settings says that Data has not copied from Staging DB to Reporting DB on Date 2014-08-18
    In order to verify the same I have checked as follow:
    SELECT COUNT (*) FROM [dbo].[WATrafficAggregationByDate] WITH (NOLOCK)
    WHERE  [DateId] = 20140818
    Above SQL Query has returned ZERO value.
    Can anyone please let me know Why data has not been copied from staging DB to Reporting DB even timer job status is success ?
    Your help will be much appreciated.
    Thanks and Regards,
    Dipti Chhatrapati

    The image itself has the answer
    The user requests a page, and the action gets picked up by the Web Analytics service that runs on SharePoint.
    The Web Analytics service logs this in the “.usage” files.
    A Timer job called “Microsoft SharePoint Foundation Usage Data Import” by default runs every 30 minutes. It imports the logs into the staging database.
    Each night the “Microsoft SharePoint Foundation Usage Data Processing” Timer job runs and transforms the data into the reporting database.
    The last run time of the import from staging and the aggregation is logged in the Settings table in the Reporting database.
    Usage and Health Data Collection Service Application collects Data about Usage and Health of your farm.
    This information is used for Health Monitoring and this is also required for running the Web Analytics Service. If you do not have a Usage and Health Data Collection Service Application or your
    Usage and Health Data Collection Proxy is stopped, you will not see any data in the Web Analytics Report
    Regards Chen V [MCTS SharePoint 2010]

  • Displaying Jobs Status and Logs without using SM37

    Hello All,
    First of all, thanks a lot for your time.
    We're being asked by the Audit Team to remove tcode SM37 from our Job Roles. Although I agree with them that users should not have "change" or broad display access for the tcode, some of them need to check other user's Jobs status, as well as their Job Logs (which I have managed to restrict using auth. object S_BTCH_JOB).
    My question is: do you know if there's any alternative way or a transaction different than SM37 to display other user's Jobs status and Job Logs?
    We're providing SMX for user's own jobs, but I have not been able to find an alternative way than using a restricted version of SM37 for displaying other people's Jobs status and Job Logs.
    Best regards,
    CMPT

    You can either create your own monitor locally ( see transaction RZ20) or develop it on your own (see FM BP_JOB_STATUS_GET).
    If you want to use SM37 then you can add SHOW to S_BTCH_JOB but this might be problematic in combination with RELE (of their own jobs).
    [SAP Note 568963|https://service.sap.com/sap/support/notes/568963] will be able to help you further.
    Cheers,
    Julius

  • Campaign Element execution and job status

    Hello SAP Gurus,
    I have a requirement, where the Client wants to execute the Campaign Element. Is that possible?
    He also says, the end user should execute the Campaign element level.
    I tried doing that, but the Job status remains as "JOB NOT SCHEDULED".
    *Is it a technical error or settings to be done at the back end ?
    Kindly help me out.
    Thanks in advance.
    Regards,
    Srinivasan Raghavendran

    Hi Srinivasan,
    You can execute Campaign elements individually but you have to make sure that u r all uppel level marketing Plan, Campaign should be released first, Job remains not scheduled due to various reasons. if u r running mail campaign then check the target group which u r assigning to campaign has email id maintained also check for mail form maintained. 
    For job please check Start date if u r running periodic job then the condition must be fullfilled, for test try running job with  Start date as Immidiate
    Regards,
    DD's

  • Background job status "Released"

    Hi ,
    I am executing standard SAP program in background and it shows the status as "Released" with "Delay" more than 3000 sec.
    What is the reason I am not able to start the job with "Active" status?
    Please help.
    thanks & regards,
    Yogita

    >
    Rob Burbank wrote:
    > If it wre already running, the status would be active.
    Rob,
    Yes,Its really depends on how "Background job cofiguration" has been done in system by basis.
    As i  can also see the job status is only Realesed(Not active) once i ran it in background immidiately.
    And once job finished it shows "Finished" status.No where "Active" status came
    @Yogita:Your job is still running i guess since more than 3000Sec.so thats why it(Time) is showing in delay.
    Once job is finished you will be able to see its status Finished.
    I would also suggest you to Knock basis
    Cheers,
    Amit.

  • How to update automatically a job status type to Complete - No Charges ?

    Hello,
    I'd like to update automatically (= no user intervention) jobs status type from "Complete" to "Complete - No Charges".
    I've tried the Wip Mass Load program (using WIP_JOB_SCHEDULE_INTERFACE), but it didn't work because this program can only update jobs to Unreleased, Released, Complete, On Hold, or Cancelled.
    Can anyone help me please ?

    hello,
    changing the status from "Complete" to "Complete - No Charges" without user intervation is not posssible,user has to assign it meaning that all resources have been charged,if there are any pending material transactions you can correct it & then assign this status.
    regards,
    ganpa

  • Enprise Job Costing Error: "No Closed Job Status Defined"

    Hi All,
    I upgraded a the JobCostging Add-on to: EnpriseJobCosting_800255. When they find the job > Invoicing Tab > Set Status to "Ready to Process" > Make to Stock > Enter Item Code and rest of Details > Click "OK" the  following error occur:  "No Closed Job Status Defined".
    CAN SOMEBODY PLEASE HELP?
    Kind regards
    Carin

    Hi Carin,
    You may check this: Re: Bank payment file failing only for 2nd line
    Thanks,
    Gordon

  • 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 is the required priviledges to VIEW JOB STATUS in Hyperion workspace 9

    We have Published and Scheduled a BQY through Administrator. The Business
    User does not have Publishing or Scheduling rights nor is the requirement,
    he just wants to view the "JOB Status" along with the "Job Output". We
    have tried giving him all the "Viewer Roles" but still he cannot see the
    "JOB Status". What All Priviledges and Roles Should be given to him so
    that he can just view the "JOB Status".
    We are usingWorkspace Version 9.3.1.0.0.248
    Shared Services Version 9.3.1.0.0.45
    Interactive Reporting Version 9.3.1.0.0.248
    We even tried giving him the "Publisher" Role but still he is not able to
    'View' the 'Job-Status' of the Jobs run by the Administrator.Kindly Reply

    Hi,
    I'm not 100% sure but have you tried the explorer role, you'll need to do this at the same time setting the file and folder permissions.
    I did notice last week, if you right click on a folder and select Apply Permissions to Children, you get the option to specify Job and Job Output.
    Here's a link to the Product Role info, Click on the Hyperion Security Administration Guide (under Common Install):
    http://download.oracle.com/docs/cd/E10530_01/doc/nav/portal_1.htm

  • All timer jobs don't start (paused in check job status)

    Hello,
    Some bad things have happend to our SharePoint Server 2010. All timer jobs suddenly stopped running. The last time they ran successfully was 09/26/11. Since that time all jobs have been scheduled to run according to their schedule but don't actually run.
    In the Check Job Status view there is a list of jobs scheduled to run 09/26/11 which are currently paused for some reasons, other jobs don't run at all. 
    Is it possible to unpause these jobs and let other jobs to run? Any ideas would be very much apprecaited. Thank you in advance.

    Hi,
    Thanks for your post.
    Pausable Timer Jobs
    You can now create pausable timer jobs. This is done by inheriting from the
    SPPausableJobDefinition and overriding Execute(SPJobState) instead of
    Execute(Guid). You can then use the current job state (SPJobState) to store values which are retrieved when the job is resumed.
    Running jobs on all content databases
    Another new timer job derivative type is the SPContentDatabaseJobDefinition.This is a timer job specifically made to perform actions on content databases. The timer job is distributed on the WFE servers and each content database is only
    processed by one job. Override the Execute(SPContentDatabase, SPJobState) to add your own processing. The job supports pausing.
    Running jobs on all Site Collections
    A really interesting new timer job type is the SPAllSitesJobDefinition. This one is derived from the SPContentDatabaseJobDefinition and has a method called
    ProcessSite(SPSite, SPJobState) which you override to process the SPSite object. This could be very useful to build site inventories/directories.
    Running job on a specific server
    The SPServerJobDefinition is a pausable timer job that is designed to be targeted to a specific server (SPServer).
    Running jobs for specific services
    The SPServiceJobDefinition is another pausable timer job that runs a job on all servers where a specific
    SPService has been provisioned. A very similar job is the
    SPFirstAvailableServiceJobDefinition which runs the job on the first available server which has a specific SPService installed. If you would like to run a job an all servers you can easily use SPServiceJobDefinition. Then use the timer job service
    (which is installed on all servers, except dedicated database servers) and pass
    SPFarm.Local.TimerService as the SPService parameter in the constructor.
    All of the new specific timer jobs are essentially smart derivatives of the SPJobDefinition but using these new abstract classes will certainly save you some time when you need to target your timer jobs.
    I hope that helps.

  • Function module to monitor Job Status (SM37)

    Is there a function module or a table that I can use to monitor JOB STATUS in BW?
    Thanks in advance!
    Cristina.

    Hi Cristina,
    they are two alike SM37 giving you back the result in a table; very powerful:
    BP_JOB_SELECT_SM37B            Select Background Requests 
    BP_JOB_SELECT_SM37C            Extended Job Selection     
    goto se37 with one of these. Testing mode: enter A for dialog mode. Perform some selections and execute.
    Check the result and how the system has populated the import parameters.
    let me know if that's what you wanted
    Olivier.
    Message was edited by:
            Olivier Cora

  • Job status of Business Rules not reflecting correctly in Hyperion Planning

    Hi,
    In our Planning Web Application version 11.1.2.1 (Classic application), we have issue with the Business Rules not changing the job status from Processing to Complete.
    Essentially giving an indication to users that the job is taking longer than expected.
    Having noticed that behavior, when we cross check with Admin credentials (Application Logs ) HBR Launch.log. The End Time of the job is updated promptly.
    We have couple of SRs Open with Oracle but they concluded it’s a bug and need to upgrade to 11.1.2.2. But currently we do not have any plans to upgrade to the latest version.
    In order to force the Status change to mark it as Complete at the SQL Server backend.
    We have to update the status table HYP_JOB_STATUS manually via database update.
    But this is laborious process.
    Did anyone encounter such issue? Please suggest a feasible option here ?
    Thanks,
    Venkat
    Edited by: 947686 on Dec 18, 2012 6:21 AM

    Hello Shiva,
    We do not have any issue with calc rules; we are facing this issue with Business rules.
    We have looked into the logs in both Applcation logs and Essbase logs nothing found strange except couple of .xcp files were generated in Essbase server. We have sent those .xcp files to Oracle for investigation. We have also noticed that Web Logic server was not hand shaking properly with Hyperion Server. Oracle responded with few application settings which we are already sycn with recommended settings.
    We had the same issue in 8 months back and the same repeated now.
    Thanks,
    Venkat

Maybe you are looking for