Functions to read status and logs of jobs

Good Afternoon,
i need to know if there's any standard functions in order for me to check the status of a job (cancelled, scheduled, etc..) and/or to read the logs from that job?
Regards,
Pedro Gaspar

use FMs
  SHOW_JOBSTATE  -- for job status 
   BP_JOBLOG_READ --- to read the joblog
CALL FUNCTION 'SHOW_JOBSTATE'
          EXPORTING
            jobcount    = v_jobcount
            jobname     = v_jobname
          IMPORTING
            aborted     = status-aborted
            finished    = status-finished
            preliminary = status-preliminary
            ready       = status-ready
            running     = status-running
            scheduled   = status-scheduled
          EXCEPTIONS
            OTHERS      = 4.
CALL FUNCTION 'BP_JOBLOG_READ'
   EXPORTING
                client                = sy-mandt
                jobcount              = v_jobcount
                joblog                = v_joblog
                jobname               = v_jobname
              TABLES
                joblogtbl             = i_joblog
              EXCEPTIONS
                cant_read_joblog      = 1
                jobcount_missing      = 2
                joblog_does_not_exist = 3
                joblog_is_empty       = 4
                joblog_name_missing   = 5
                jobname_missing       = 6
                job_does_not_exist    = 7
                OTHERS                = 8.
Edited by: Chandrasekhar Jagarlamudi on Apr 3, 2008 8:24 PM

Similar Messages

  • 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

  • Function to read status in process order

    Hello.
    Iu2019m using the function STATUS_TEXT_EDIT to read the status of a process order and I need read the statu in whole phases. Someone know a function to read the status of each phase in a process order?
    Thanks in advances

    Hello Vivek,
    My requirement is much simlar to this this is Status profile below maintain in the System
    1     INPR     In Process                          1     10     1     1
    2     UNCA     Unsigned - CA Approved     2     10     1     1
    3     UNFA     Unsigned - FA Approved     3     10     1     1     ZFAAPPR     RELE
    4     SIGN     Signed                          4     10     1     1
    5     SICA     Signed - CA Approved     5     10     1     1
    6     SIFA     Signed - FA Approved     6     10     1     1     ZFAAPPR     RELE
    7     TBCL     To Be Closed     1     10     1     1
    8     CLOS     Closed                          1     10     1     1     ZNOAUTH
    9     TBCN     To Be Cancelled     1     10     1     1
    10     CANC     Cancelled                         10     10     1     1     ZNOAUTH     CANC
    11     COMP     Completed                  1     11     1     1     ZNOAUTH
    My Requirement is when the status is  Close we can set the status to any of the Ten mentioned status as it was maintained in Highest and lowest vlalues here i dnt need alll the status i only need filtered Statues for the Close Status like
    In Proces,Unsigned - CA Approved,Signed,Signed - CA Approved,To Be Closed these Status should be active when the Header Status is Close.Can you help me steps involved to  achive this
    Edited by: posanapalli kiran on Feb 11, 2010 10:08 AM

  • Java Printing Service (JPS) How to get printer status and pending jobs list

    Hi,
    I am trying to determine what is the current status of a printer in my computer as well as what is the list of pending printing jobs at any moment.
    I want to monitor activity on a printer in my computer, so I can capture and log the jobs that are sent to my printer over time.
    I would like to do so by monitoring the printer pending jobs list (if that can be retrieved through any java method) and make a log of changes in that list.
    Any advice on how to get the list of pending jobs of a printer?
    I checked the API and JobState class seems to be a descriptor of one single job... I suppose the method to retrieve a list of pending jobs in a printer would return an array of JobState objects... but I have not being able to find yet such method...
    Thanks in advance,
    JN

    Moderator Action:
    This post has been moved from the Java Programming,
    to the ADF forum, for closer topic alignment.
    *... and Comment:*
    Get help from people that work with ADF.
    They may have already done something like this.

  • Iphone tracking and logging

    Hi. I have been informed by a colleague that he is using an invisible app to track a persons location and read their messages. Is this at all possible? Phone is not Jail broken. This is a concern to me as I keep a lot of sensitive info on my phone

    Hi, Thank you for the response.Just one last thing to clarify, I have heard of invisible parental control apps that have the functionality to read messages and other info off an IOS device. Is it not possible to use those applications with malicious intent?
    Appreciate the help,
    regards

  • Reading and writing a JOB LOG

    Hi
    How do we read the job log?
    How do we display it?
    Regards
    Nishant

    HI
    GOOD
    GO THROUGH THIS
    Use
    All message types issued by a program running in the background are stored in a job log, which you can display either to obtain information on a prematurely terminated program or to complete a detailed investigation of a particular background processing run. A separate log file is created for each job.
    Deleting Log Files
    You should never delete log files directly. If you want to clear the log directory, you must delete the jobs to which the logs belong. In the process, the logs are also deleted.
    Job logs are held in the TemSe temporary sequential objects storage facility. TemSe is configured to always store job logs as operating system files in the shared SAP directories. If you delete log files directly at the operating system level, you create inconsistencies in the TemSe database, which you'll then need to eliminate with the Consistency check function in Transaction SP12.
    Log Messages
    Log messages are generally output using ABAP keyword MESSAGE. With the exception of ABAP breakpoint statistics, no other data is normally output to the job log.
    ABAP Short Dumps
    If an ABAP program generated a dump when it terminated abnormally, you can display the dump by clicking on the Abend message.
    Batch Input Messages
    Messages output during batch input sessions are not recorded in the job log. These messages are output only to the batch input system.
    Procedure
           1.      Go to Select Background Jobs using Transaction SM37 or by choosing CCMS ® Jobs ® Maintenance.
           2.      Select the jobs you want to review in the job log by specifying conditions that identify the job or jobs, including job name, user name, job status, start condition, or contents of a job step. Execute this selection to see a list of jobs that match these criteria.
           3.      In the Job overview screen, select your desired job and choose Job log.
           4.      In the Job Log Entries for ).
           6.      For further information about a particular item in the job log, select the line and choose Long text. The resulting help screen can include further information about diagnosing the message, the system’s response to the message, and how the user should follow up.
    THANKS
    MRUTYUN

  • Log Reader Agent and Snapshot Agent wont start

    Hi There,
    I've two SQL 2012 servers with multiple instances installed.
    I've started replicating the databases in these instances using transactional replication and thus far they've worked without a hitch.
    One of my instances, annoyingly, has an issue where the Log Reader Agent and Snapshot Agent refuse to start, and I've followed exactly the same process as with the other instances\databases.
    The Agents are configured to make use of a domain user account with sysadmin permissions to the instances on both servers.
    I get the following two error when I View Log Reader Agent Status:
    The job failed. The Job was invoked by User sa. The last step to run was step 2 (Run agent.).
    I've asked the agent to run as my DOMAIN\sqlservice account, so I've no idea why it's moaning about sa?!!?
    I get the following error when I View Snapshot Agent Status:
    The replication agent has not logged a progress message in 10 minutes. This might indicate an unresponsive agent or high system activity. Verify that records are being replicated to the destination and that connections to the Subscriber, Publisher, and Di
    If I try to start either agent I'm told that the request to run job was refused because the job has been suspended, "Changed database context"??  Error 22022.
    Can anyone help?

    This is because your job owner is sa.  Right click on your job and notice the owner - but is should be sa.
    You likely have another issue. You may need to run the job and configure it for logging to see what the error is.
    http://support.microsoft.com/kb/312292/en-us
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • "Read" status of e-mail will not sync wirelessly between Lotus Notes and 8520??

    HI,
    This is my first post and I realize that this might not be the right area to post this question but my question did not seem to fit anywhere else.
    I was recently issued a BB 8520 at my new company and we work in a Lotus Notes environment and I believe it is version 7.
    This is not happening to anyone else that I know of in our company but when I read an e-mail in Lotus Notes from my desktop, wireless sync will not mark it read on my Blackberry. Also when I read an e-mail on my BB, it will not mark it read in Lotus Notes. However if I delete an e-mail in Lotus Notes, it will delete it from my BB via wireless sync. Finally, when my BB is attached to my desktop via USB, and I do a manual sync from Blackberry Desktop Manager, it will sync the "read" status of my e-mails between Lotus Notes and my BB.
    So I guess my question is why are most sync functions working via wireless sync between my e-mail in Lotus Notes and my BB, but not the "read" status of an e-mail? And I know that it works for other users in our company so it's really bothering as it is a whipping to have check e-mails that are still marked as unread (in both Lotus Notes and my BB) when I have already read them.
    Thank you and I would really appreciate any help or information that I could provide to our IT Admin at work to help him solve my problem.
    Thank you,
    Matt

    Hi and welcome to the forums!
    Looks like you posted in the right device forum and your post is very clear!
    First open the main message queue, menu key options, email reconciliation, is wireless reconcile on?
    Some "light reading" that may address the issue as well is attached below.
    Let us know how it goes!
    Thanks,
    Bifocals
    Unread marks synchronization is inconsistent between BlackBerry smartphone and IBM Lotus Notes
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Shell Script to grep Job File name and Log File name from crontab -l

    Hello,
    I am new to shell scripting. I need to write a shell script where i can grep the name of file ie. .sh file and log file from crontab -l.
    #51 18 * * * /home/oracle/refresh/refresh_ug634.sh > /home/oracle/refresh/refresh_ug634.sh.log 2>&1
    #40 17 * * * /home/oracle/refresh/refresh_ux634.sh > /home/oracle/refresh/refresh_ux634.sh.log 2>&1
    In crontab -l, there are many jobs, i need to grep job name like 'refresh_ug634.sh' and corresponding log name like 'refresh_ug634.sh.log '.
    I am thinking of making a universal script that can grep job name, log name and hostname for one server.
    Then, suppose i modify the refresh_ug634.sh script and call that universal script and echo those values when the script gets executed.
    Please can anyone help.
    All i need to do is have footer in all the scripts running in crontab in one server.
    job file name
    log file name
    hostname
    Please suggest if any better solution. Thanks.

    957704 wrote:
    I need help how to grep that information from crontab -l
    Please can you provide some insight how to grep that shell script name from list of crontab -l jobs
    crontab -l > cron.log -- exporting the contents to a file
    cat cron.log|grep something -- need some commands to grep that infoYou are missing the point. This forum is for discussion of SQL and PL/SQL questions. What does your question have to do with SQL or PL/SQL.
    It's like you just walked into a hardware store and asked where they keep the fresh produce.
    I will point out one thing about your question. You are assuming every entry in the crontab has exactly the same format. consider this crontab:
    #=========================================================================
    # NOTE:  If this is on a clustered environment, all changes to this crontab
    #         must be replicated on all other nodes of the cluster!
    # minute        (0 thru 59)
    # hour          (0 thru 23)
    # day-of-month  (1 thru 31)
    # month         (1 thru 12)
    # weekday       (0 thru 6, sunday thru saturday)
    # command
    #=========================================================================
    00 01 1-2 * 1,3,5,7 /u01/scripts/myscript01  5 orcl  dev
    00 04 * * * /u01/scripts/myscript02 hr 365 >/u01/logs/myscript2.lis
    00 6 * * * /u01/scripts/myscript03  >/u01/logs/myscript3.lisThe variations are endless.
    When you get to an appropriate forum (this on is not it) it will be helpful to explain your business requirement, not just your proposed technical solution.

  • Function to change status of the STS (Status and Tracking System)

    Hi experts,
    do you know a way to execute a function that changes status in the STS hierarchy?
    We have a web interface with a BPS layout in it, and want to change the status of the STS according to the legal entity that has been changed as soon as a user clicks on a button.
    Do you know a way (function or sth else) to do that?
    Any hint will be greatly appreciated!
    Thanks in advance,
    Thomas

    Have a look to these badis: CRM_ORDER_AUTH_CHECK (for authorization purposes), and CRM_ORDER_SAVE (To check the changes at save).

  • Background job in Released status and does not run. What is the problem?

    Hi Experts,
        I ran a ABAP report as a background job. But when I see the job status in SM37 I found that it is "Released" but the job does not run further, It remains in "Released" state. I have given the correct variant and start condition "immediate" . Moreover there is no spool and log as well.
    The ABAP report runs fine in forground. It used to run in background few days back.
    What could be the problem? Kindly help!
    Thanks
    Gopal

    Hi Bob,
        But I checked after 2 days still the job status is in Released state.  There were some other jobs that ran successfully. So atleast after two days I hope the job should have run. I can't even delete it. What shall I do?
    Thanks
    Gopal

  • Hi.  I have a Dell PC running Windows 7 64 bit.  I have the latest version of Adobe Reader,  It worked yesterday.  Today I have job training to do that is due tomorrow morning and I can't open PDF files.  I have to open a guide and read it and take a test

    Hi.  I have a Dell PC running Windows 7 64 bit.  I have the latest version of Adobe Reader,  It worked yesterday.  Today I have job training to do that is due tomorrow morning and I can't open PDF files.  I have to open a guide and read it and take a test tomorrow.  I have deleted and reinstalled the application.  I have rebooted.  I have made sure my PDF's are associated with the program.  Every PDF on my computer won't open and I get the same error message.  It simply says Attempt to access invalid address.  How can I fix this?  Thanks.

    Hi Don,
    I have seen this issue fixed for some users by modifying the following registry key:
    The key is "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" MoveImages
    Set the key to 1 instead of 0 then reboot the machine.
    In case you still face the issue try the following registry key change:
    The only thing you have to do is rename the following key at the REGEDIT, and everything will be fine !!
    BEFORE:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.exe
    AFTER:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.old
    Note: Please take a backup of the registry before attempting this change.
    Regards,
    Rave

  • Got to end of trial period for Adobe reader XI and cannot revert back to old version or install another version b/c it says I have a newer more functional version, so now I've got no reader at all and cannot fix. Any ideas how to overcome this?.

    Got to end of trial period for Adobe reader XI and cannot revert back to old version or install another version b/c it says I have a newer more functional version, so now I've got no reader at all and cannot fix. Any ideas how to overcome this?.

    YOu need to be clear about the products you are using, so we can help you. In particular there is no trial of Adobe Reader, it is free and keeps running. Sounds like you are using some versions of Acrobat - which?
    YOu must properly uninstall the trial, don't just delete files or you may get a mess impossible to recover.

  • F110 Status - Printing data and log have been deleted

    Hi All,
    We have an issue with F110 transaction. In the status a message is being displayed as 'Printing data and log have been deleted'. As I am new to Finance, I could not get what that message mean. Can you please explain what could be the reason for this message.
    Thank you,

    Hi Guru's,
    I have a similiar issue. Created a check run yesterday and went through all the steps...
    - Parameters have been entered
    - Payment proposal created
    - Payment run has been carried out
    - Posting orders 77, generated, 77 completed.
    *- Printing Data and log have been deleted *
    I can not remember what I click on and it cause this.
    Please can someone help and tell me know how can I either re-run this check run I mean the physical checks or how can I go about this and delete this run and re-run from Scratch.
    Best Regards,
    Yassmen

  • Hi, I'm developing a application thats need read and log a large tag database at

    Hi, I'm developing a application thats need read and log a large tag database at period of 1 second. My system have actually 1200 tags and when I try to increase the number of tags my system slowdown and not update at requested period anymore. I'm using NI OPC Servers to read data of 4 different PLC's. In the SVE I've created an IO Server to bind variables and all variables are located in a single process. All variables are logging alarms and data. The Log Deadband and Update Deadband are set to 0. My machine is a DELL Precision T5400 with Dual Intel Xeon Quad Core with 4GB of RAM and Windows XP Sp3 installed. Bruno Costa Automation Enginner

    Duplicate Post
    Why did you create an identical post under a different username?
    You'll have to be patient.  It is the 4th of July holiday, so the forums are going to be less active than a usual Monday.

Maybe you are looking for

  • J2EE not starting up

    Dear Experts, we have an issue with J2EE startup in solution manager. the java instance is not starting up. please find the logs below, please prvide your suggestions. dev_bootstrap: trc file: "dev_bootstrap", trc level: 1, release: "720" node name  

  • Can restoring from an iTunes backup restore voicemails?

    I need to recover a voicemail that I very intentionally did NOT delete back in December 2012.  However, being as there is no way (at least that I am familiar with) to intentionally SAVE a voicemail on the iPhone, it no longer shows up on my VM list o

  • HT201250 Restore button is greyed out and I can't restore some of my files???? Help

    I had to do a clean install on my IMAC.  I backed up with time machine.  I need to reinstall Word & Excel (Office), I don't have the original disks anymore.  I moved and my box was lost. How can I get my office back from time machine.  It doesn't mat

  • Cannot get to BIOS

    To see if I need to update the BIOS on my T61, the directions say: Turn off the computer. Turn on the computer. While the "To interrupt normal startup, press the blue ThinkVantage button" message is displayed at the lower-left area of the screen, pre

  • Error [Designutils 20-1595] - what is this?

    Hi All, We have an error that is visible only in the IP OOC synthesis mode with the single BD design. We are on VIVADO 2015.2, and the error is given below. Can someone please explain what is this error? [Designutils 20-1595] In entity system_inst_te