How to debug a program which is running in background (Job)

Hi,
I have a program which can be run only in background. I have to debug that program. Could you please let me know, how can I do that?
Thanks,
Sandeep

basic FAQ, please search before asking.
Thread locked.
Thomas

Similar Messages

  • How to create a process which is running in background?

    I am developing an application which creates a data file after some queries are done. The user sees a message saying that the data file is being preparing and a email notification will be sent to the user. I would like to have the process for creating data files run in background so the user does not wait till that process is done.
    Could someone give me some ideas or suggestions how this should be done?
    Thanks in advance!

    You could use a servlet and run a seperate thread to complete the process. An easier way is to use an IFRAME. You can direct a page to run in an IFRAME that is 0 width X 0 height. The user could then continue on without having to wait on the process to complete.

  • How to submit a program after completion of a background job

    Hi Experts,
    I have a small issue. In my report program i am calling one transaction using call transaction it will trigger a background job. After completion of this background job i need to submit another program, Because the background job updating few values, using this value only the second program functionality will works.
    Currently when i execute my report its calling 1st program and triggering the background job. Once the job started again the program triggering the next program. Here after competion of the background job only this program should submit next program. Anyone kindly suggest some clue.
        CALL TRANSACTION 'ZSAPRCK60' USING    zbdcdata
                                OPTIONS  FROM g_s_options
                                MESSAGES INTO msg_tab.
    SUBMIT SAPRCK10    VIA SELECTION-SCREEN
                        WITH kalaid = p-kalaid
                        WITH kaladat = sy-datum
                        WITH PARALLEL = 'X'
                        WITH SERVNUM = '10'
                        WITH backgr = 'X'
                        AND RETURN.
    Mohana

    Hi,
    There is one function module there which gives you the job status .. if the job is finished then the value will be 'F'.I don't exactly remember the FM but then you can search with BDLSTATUS or BDSTATUS in SE37..
    do.
    call fm BD****STATUS
    IF STATUS (IMPORT PARAMTER) eq 'F'.
    exit.
    endif.
    enddo.
    Regards,
    Nagaraj

  • How to reach Java program which is run as individual process

    Hi There .
    My question is if I run a java program as individual process using Runtime , can I reach this process and change some variables up there, like set a boolean variable to false , or stopping running thread properly. whatever. till now I figure out two ways , either kill the PID of my program (if I want to stop it ), or touching a new file and when the program sense that the is been created he will take an action ,like exit or do the things that I want to do, I tried and I googled it but I ends up with nothing , what I understand it's like it's irreversible thing when it's run there is no way back. Thanks in Advance

    No you can't interact with a process you start as if it were just other Java code.
    What you can is interact with it in the same ways you can interact with any other process. For example through the process input and output stream. Or perhaps through Sockets.

  • How to debug the report which isrunning in Background?

    Hi all,
    1.How to debug the report which is running in Background?
    thanks & regards
    vishnuvardhan

    Hello,
    Do like this.
    Create an infinite loop before the line u want debug.
    data: lf_flag.
    do.
    if lf_flag = 'X'.
    exit.
    endif.
    enddo.
    Now execute the report in background. In Tcode SM37 select ur job and in menu job--> Capture Active Job
    IT will stop at the point of infinite loop.
    Regards,
    Vasanth

  • Read Error logs after running the background jobs

    Hi,
    How to read the error logs after running the background jobs. In our scenarion we are running the COHV transaction to release the production orders in background. But we are not finding the error logs after background job. We would like to read the error logs and correct for further processing.
    Kindly suggest.
    Thanks & Regards,
    N. Laxman

    Hi
    you can check the  back ground jobs defined by any user in SM37 and where you can see the spool and job logs as well.
    plz check in your case and revert back
    Regards
    Anupam Sharma

  • How can I debug a Tr. Code which is running in background

    I want to debug a Sapscript. Tr. code is 'F110'. In this tr code, two sapscript is running for cheque printing. This Tr Code is running in backgruond mode. I want to debug the Sapscript. How can I do that?
    Regards,
    Subhasish

    hi,
    For a batch job or long running program (SM50):
    Select the program to be debugged
    Menu: Program/Session -> Program -> Debugging
    In the job overview(SM37) you can debug each job with the ok-code JDBG.
    Warning : This is like a restart of the job.
    -> All possible updates will be executed !
    Refer to this link...
    how to debug in program in background
    Edited by: avinash kodarapu on Dec 22, 2008 4:10 PM

  • How to debug a program exit in a Workflow ?

    Hi experts,
                      How to debug a program exit in a workflow when the workflow is triggered ?
    thanks in advance
    regards
    Ashwin

    In 4.6c I did this by creating a function module and a table (zsm50_debug). In the table are just two fields: User name (key), and a flag (yes/no).
    The function module:
    FUNCTION zsm50_debug.
    *"*"Local interface:
    *"  IMPORTING
    *"     REFERENCE(Z_DEBUG_USER) LIKE  SY-UNAME
      DATA: z_exit,
            z_debug.
      CLEAR: z_debug.
      DATA: starttime   TYPE t,
            currenttime TYPE t,
            time_passed TYPE i.
      starttime = sy-uzeit.
    * Check if debugging is switched on
      SELECT SINGLE debug FROM  zsm50_debug
                          INTO  z_debug
                          WHERE uname = z_debug_user.
    * Debugging is switched on:
      IF z_debug = 'X'.
    *   Not an endless loop, but it will continue after approx. 1 minute...
    *   Plenty of time to go to SM50 to debug the program and continue!
        DO.
    *     Change the value of z_exit to 'X' to exit the loop an stay in
    *     debug mode.
          IF z_exit = 'X'.
            EXIT.
          ENDIF.
    *     To prevent an endless loop (if the user forgot that debugging was
    *     switched on in ZSM50_DEBUG, time is measured to allow the program
    *     to continue after 2 minutes
          GET TIME FIELD currenttime.
          time_passed = currenttime - starttime.
          IF time_passed > 120.
            WRITE: / '!!!==========================================!!!'.
            WRITE: / '!!!DEBUGGING STILL SWITCHED ON IN ZSM50_DEBUG!!!'.
            WRITE: / '!!!    Program was delayed by two minutes    !!!'.
            WRITE: / '!!!==========================================!!!'.
            EXIT.
          ENDIF.
        ENDDO.
      ENDIF.
    ENDFUNCTION.
    This FM reads the table and checks if the flag is switched on. If so, it loops for two minutes. After that, it continues regardless. If not flagged, it continues immediately.
    This way, you can debug any program that is running in the background.
    In every method I program I add this FM right in the beginning. With authorization for SM50, I can then debug the program (in production it may be difficult to get the correct server, if there are more).

  • How many times a program has been run?

    Is there a transaction or table or something that tracks how many times a program has been run?   The number of times the program has been run plus using the programs' attributes for last changed would help me a lot.  We need this for an archiving study to determine of the client has set up the configuration correctly since they went live and have been executing the correct programs.  Thanks and mucho rewards if someone has an answer.  FYI - I have done a forum search and could find nothing on this topic.  I have looked at the tables TADIR and no help, as well as transaction STAT.

    I know ST03N transaction can be used extensively to determine how the programs were executed or even to know who all are using a particular transaction...
    I tried to find if we can find the number of executions of a program through this transaction, I could not find myself...
    try if you can find it through this tcode.
    Phani

  • TS1717 This article is vague and unhelpful. My iTunes needs help from a pro. I have over 120,000 songs -- NO movies, TV, radio, or books... I have other programs which efficiently run things which are not audio-based. So why can I not get iTunes working w

    This article is vague and unhelpful. My iTunes needs help from a pro.
    I have over 120,000 songs -- NO movies, TV, radio, or books...
    I have other programs which efficiently run things which are not audio-based.
    So why can I not get iTunes working well?? It now takes at least 10 secs for any operation to be completed!
    That is just plain evil. But I am sure I could do something to help.
    All the music is on an 2T external drive.

    TS1717 as noted in the thread title...
    Brigancook, is the library database on the external or just the media? iTunes reevaluates smart playlists and rewrites its database after every action on the library. I've found this can make a library half that size, with a lot of smart playlists, quite sluggish. That said I'm aware part of my problem is aging hardware. Having the database on the internal drive may improve performance if it is currently on the external.
    I'd expect to see an exponential relationship between size and response time which may explain what you see. Cutting down on the number of smart playlists might help. If we're really lucky the long awaited iTunes 11 might have streamlined some of the background processes as well as cleaning up the front end.
    tt2

  • How do i stop programs from automatically running when i start up my macbook?

    how do i stop programs from automatically running when i start up my macbook?
    programs such as.. email and Skype.
    When i go to system preferences, then users & groups, then to my name, log in items ....this box is clear, i have unchecked everything, yet things still start up......

    sometimes these applications will have a setting in the preferences to not open on login of computer. If you see none of that, you can go into:
    system preferences> Users & Groups > Select your user>Login Items.
    unlock the settings by hitting the lock icon on the bottom left of the window then youll be able to uncheck these things from opening when you log in.
    Hope this is helpful or answers the question.

  • How to debug the program in background

    hi
    how to debug the program in background

    Hello everyone,
    I often debug my programs via the sm50 transaction and it works very well (especially when you put the dummy loop ^ - ^ ). However we are confronted to a major problem when more than one user tries to debug. We get a message saying that the maximum number of users in the debugging mode has been reached!! Thus we each have to wait for our turn to debug our program. It's a real pain.
    We've searched for a parameter to configure the number of users for the debugging mode but in vain
    Has anyone else had this kind of problem? If yes, what do I need to do to correct it?
    Any suggestion would be helpful as I am new to BW.
    Thank you beforehand.
    Regards,
    Dimple

  • Any other programs which can run Skype?

    Any other programs which can run Skype? 
    as my skype doesnt work becasue my OlePro32.dll files are corrupted?

    TS1717 as noted in the thread title...
    Brigancook, is the library database on the external or just the media? iTunes reevaluates smart playlists and rewrites its database after every action on the library. I've found this can make a library half that size, with a lot of smart playlists, quite sluggish. That said I'm aware part of my problem is aging hardware. Having the database on the internal drive may improve performance if it is currently on the external.
    I'd expect to see an exponential relationship between size and response time which may explain what you see. Cutting down on the number of smart playlists might help. If we're really lucky the long awaited iTunes 11 might have streamlined some of the background processes as well as cleaning up the front end.
    tt2

  • I hear a lot of disk I/O from my iMac 1TB drive.  How can I see apps may be running in background?  Time Machine is not running.

    I hear a lot of disk I/O from my iMac 1TB drive.  How can I see apps may be running in background?  Time Machine is not running.

    If you wnat to see the applications that are running, open the Activity Monitor application (it's in /Applications/Utilities). After opening it, select "All Processes" above "Show" in the toolbar, and you will see all the processes that are running.
    I/O errors often happen on a damaged hard drive. If you are receiving that error, you should make a backup with Time Machine or Carbon Copy Cloner as soon as possible and take your Mac to an Apple Store or reseller to get another hard disk.
    If the warranty is void, you can try installing it yourself, but note that there are some iMacs which are very difficult to have the hard drive replaced. Search the steps in iFixit > http://www.ifixit.com

  • ABAP program to run in Background job

    Hi,
    We have a custumized program (SO Creation) calling some functions (like: WS_QUERY, WS_UPLOAD, WS_DOWNLOAD, CREATE_TEXT and CALL TRANSACTION VA01) and can only run thru dialog process (foreground).  Is it possible to convert it to something that can run thru background job?
    Please help.
    Thanks.

    Hi Deo ,
    Unfortunately cl_gui_frontend_services will not work in background.
    Please have a look at following information about cl_gui_frontend_services :
    The class CL_GUI_FRONTEND_SERVICES contains static methods for the following areas:
    File functions
    Directory functions
    Registry
    Environment
    Write to / read from clipboard
    Upload / download files
    Execute programs / open documents
    Query functions, such as Windows directory, Windows version, and so on
    Standard dialogs (open, save, directory selection)
    To Use this, you should be bit familier with OO ABAP Concepts. So I will suggest you to go through with OO concepts of ABAP. It will be of great help to you.
    Regards,
    Nikhil

Maybe you are looking for

  • I am running firefox 8 on a Win 7 pc. It started crashing on startup.

    I submitted several crash reports but there are none on the pc I can pull up. I downloaded a new Firefox but when I tried to install it windows said I had to have administrator privileges to do it. I am the administrator and I put in my password but

  • Complete text for payment terms

    please help in picking up complete text for payment terms.i used TVZBT table.but only one line is stored in this table.if they give text in 4 lines,im getting only 1st line if i use TVZBT.please tell how to pick up the entire text.

  • Permissions for user for use autocad

    Hi We have a 2008 R2 server with domain, we have about 350+ clients, into them we have 10 that need use Autocad and other programs like that. Our problem: in all domain we have restrictios for all users, but with this 10 they are running as administr

  • On hotmail app as soon as I click it to see my email it almost automatically boots me right back out

    when I tap my mail icon on my phone I see my hotmail email for about a sec then it boots me right back to the main screen. I have called Verizon and they said to try rebooting and hard restart. I need help because I can't delete the icon and reinstal

  • Sequence imaging with FCPX

    Hello, I was just woundering how you do the sequence imaging effect in final cut pro, or if it can be done in it. By sequence imaging, i mean where lets say you have a video of a snowboarder hitting a jump, and then he leaves of a trail of other pict