Is it possible to debug a Job which already executed in the Background.

Hi Friends,
My Z program has a bug when run it in Quality System.
If I run this program in foreground to debug, its giving TIME OUT dump.
If i try to run it in Background and started DEBUG mode using JDBG.
Still one of the table fetch gives TIME OUT dump.
Is there any possibility to DEBUG the already executed job?
Regards,
VIJI

Hi,
If the job is running go to SM50..
Select the process:
In the menu..Program/session -> program -> debugging..
OR
Fix the break points.
2) Create job.
3) Go SM37
4) Select the job and write "jdbg" in command line.
1) Use Transaction SM50. This would give you a view of all the background
processes running in the server.
2) Choose your background process from the list and got to
MENU "Program/Mode"->"Program"->"Debugging".
Regards,
Suresh Kumar

Similar Messages

  • I have Process chains as well as some jobs which run.Most  of the data is l

    Hi Experts,
    I have Process chains as well as some jobs which run.Most  of the data is loaded through custom ABAP extracts.Now where to check for these jobs and how to understand them.I know that  we can check for jobs in sm37.But how do u load data using these jobs.Please tell me in detail how  and where u execute these jobs.Please give me an answer

    For creating a job use..transaction sm36.Define start condition ,periodicity. etc..
    To monitor it you can use--sm37 job monitoring
    Various options in sm37 which you can use after check(tick) on any particulur job..and then click on joblog.
    To view variants of any job click step>goto(top menu bar)>variant.
    ,rsmo ( process monitor) -- to view data load--you can view there data load daywise..here to view any particulur data load..click on infopackage /dtp/datasource in rsa1 and click on the monitor icon at the top..system will show you the concerned dataloads in process monitor
    For monitoring process chains--go in RSPC and double click on the chain and click on log button(yellow color) select data range..and you can view the status of a chain....red if failed and green if success..and yellow if still running.
    Also in sm37 you can find the status of a process chain by searching with job name---bi_process_trigger.
    To execute chaingo to RSPC>double click on the chain-->schedule(F8)
    If you know the data target of loading ,go in rsa1 and right click on the data target and select manage and you can view the request being loaded.

  • Hello, i changed my mediathek-folder due to space-problems and since then i am not able to fill the iphone (4) with music anymore. also i cant delete music in itunes, which already is on the iphone... HELP!!!

    hello, i changed my mediathek-folder due to space-problems and since then i am not able to fill the iphone (4) with music anymore. also i cant delete music in itunes, which already is on the iphone... HELP!
    does anybody know how to solve this problem? thx!

    If you want to try to clear even more disk space see https://discussions.apple.com/thread/5872318?tstart=0

  • Where can I see my camera roll's photos which already backup into the icloud on my win7 pc ? I tried open in icloud control panel but only can see my photo's stream

    Where can I see my camera roll's photos which already backup into the icloud on my win7 pc ? I tried open in icloud control panel but only can see my photo's stream

    leonsee94 wrote:
    Where can I see my camera roll's photos which already backup into the icloud on my win7 pc ?
    You cannot see photos backed up in iCloud on your computer.
    Camera Roll photos backed up to iCloud are still in your Camera Roll on your iPhone.
    You need to regularly sync the photos to your computer. (then you can see them on your computer).
    -> http://support.apple.com/kb/HT1296
    then delete them from your Camera Roll.
    You can sync the photos you want on your iPhone back to your iPhone using iTunes.
    -> http://support.apple.com/kb/HT4236

  • Execute SSIS Package from JOB which contains Execute Process Task calling a .bat file

    Hi All,
    I have a EXCEL Macro needs to be called from SSIS. We could not use Script task because of some internal reason.
    So we have taken an approach to call a .BAT file using Execute Process Task. This .BAT file will call a .VBS file which will execute the EXCEL Macro.
    The SSIS Package is running good if I execute the package from BIDS.
    But the real problem is with the scheduling this SSIS Package using SQL JOB.
    If i execute this SSIS package from SQL Server Job, its executing the whole package successfully except the Execute Process Task.
    So the overall issue is SQL Server Job is not executing properly if I call any .BAT file from the SSIS Package.
    Please give me suggestion to get rid of the issue. Thanks in advance.

    Hi Sai.N,
    If you run the SQL Server Agent job manually from SSMS, does the package execute properly? If the package executes properly when you run the job manually, the issue should occur due to permission issue. In this case, I suggest that you create a SQL Server
    Agent proxy based on the current Windows account which you use to log onto the operating system, and run the job under the proxy account.
    If it is not the issue, please enable logging in the package as Visakh mentioned and post the warning/error message for further analysis.
    Regards,
    Mike Yin
    TechNet Community Support

  • Is it possible to create a button which goes back to the previous page?

    I would like to create a button which sits within a interactive pdf page that on click will return me to my previously visited page.
    As the page will be able to be accessed via numerous other pages the traditional built in Execute menu action is not suitable.
    The page which will be displayed (on click of a button) is a series of mattress sizes which i want to be accessable by each bed product in our collection. Once the user has looked at the mattress size guide i want them to be able to return to the bed product that they were looking at originally, without having to then scroll and search.
    Is this possible with some javascript trickery?
    i found this script:
    history.go(-1);
    But allas acrobat was not fond of it.
    PLEASE HELP!
    Thanks in advance.

    PDFs are not HTML documents. HTML has no concept of a physical page and PDF only knows a page canvas.
    You can access the page number property of the doc object and you can set the page number of the page number of the doc object. The page number in Acrobat JavaScript is zero base, the first page is 0.
    To get the page number one uses the following code:
    this.pageNum;
    To set the page number one uses:
    this.pageNum = 0; // goto first page
    To goto the next page:
    this.pageNum = this.pageNum++ // increment the page number and goto that page
    To goto the last page:
    this.pageNum = this.numPages--; // decrement the total number of pages
    To goto the previous page:
    this.pageNum = this.pageNum--; // decrement the page number

  • When I click on a new link, it opens a whole new firefox instead of using my default which is running in the background

    I have firefox as my default browser. Anytime I click on an email or search for something, instead of opening my default browser, firefox loads a new firefox page. It is a blank page just as if I had never had one. It has nothing on it except how you would start out before you set up your tabs and history etc. My default firefox is still there running in the background but I must click on it and manually put in the link I was trying to open.
    Any suggestions.

    Some added toolbar and anti-virus add-ons are known to cause
    Firefox issues. '''Disable All of them.'''
    Start '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift ''(Mac Options)'' >''' key, and then starting Firefox. Is the problem still there?

  • How to get rid of an image which is stuck to the background of the phone screen.

    while i was watching  a youtube motions suddenly all stopped and the picture stuck hindering all the operation such as phoning or checking the addresses.........how can i do?

    Hello sapho and welcome to the BlackBerry Support Community Forums.
    Have you done a device reboot yet by pulling the battery? If not, remove and reinsert the battery to reboot.
    If you are still having this issue after the reboot you will need to reinstall your device software.
    Backup your device data and follow the steps in KB11320 and check your browser before restoring your data.
    Let me know how you make out.
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Debug batch jobs in active condition

    Hi All,
    How can i debug atch jobs which are in active mode?
    null

    Just to reinforce what the others have said....
    You can do it in SM50, the path is actually  Program/Session -> Program -> Debugging.  I assume that you have found it. 
    Also,  if you want to start debuggin at a particular place, there is a little trick to doing so.  Say you want to debug at the very beginning of the program, but if you submit the program, it will most likely be past that point when you get to SM50.  To get around this, you can implement an endless loop.  Of course, the program would have to be custom.
    while sy-subrc = 0.
      check sy-subrc  = 0.
    endwhile.
    so you put his code in the place where you want to start debuggin, then go to SM50, select the process in which the program is running and turn on debugging.  It will be in the WHILE loop.  simply change the value of SY-SUBRC and it will come out of the loop, now you can continue debugging your program.
    Hope this helps.
    Regards,
    RIch Heilman

  • Possible to tell which programs are accessing the internet?  Bandwidth?

    I seem to have intermittent, severely limited access to the internet at times.
    Is it possible to tell if a particular program running in the background is either downloading or scanning or "online" in some manner...?
    Is it possible on a Mac to see how much bandwidth, memory, cpu cycles, etc. particular programs are taking...in a window similar to that which opens on a PC after pressing CTRLALTDEL ?
    thank you

    Check out Activity Monitor in your Applications/Accessories folder.

  • Pass Parameter to Job which calls a SP with the Parameter provided?

    ok, I have a problem that is getting the better of me.
    I have an SP called sp_Rep_QTR which expects the following parameters @stardate,@Endate.
    Now what I want to do is the following,
    Create a Job which will EXEC the sp_Rep_QTR at a time(@active_start_time ) provided and pass the @stardate,@Endate parameters to the SP .
    The @stardate,@Endate parameters will be passed to a SP which will create the Job - These are passed from a web page.
    I'm completely in over my head on this one so any help would be great.
    Thanks..

    One way of hacking this problem is by dynamically updating the job step which executes the stored procedure to include the parameters the user provided.  You can do so by using
    msdb.dbo.sp_update_jobstep.
    So for example, you could create a job named "Test job" and in that job the first step would be to execute your stored procedure.  You would then use the following code to update that step at run time:
    execute msdb.dbo.sp_update_jobstep
    @job_name = N'Test job',
    @step_id = 1,
    @command = 'execute my_proc @my_variable = ''my_value'''
    You'd then use sp_start_job like so:
    execute msdb.dbo.sp_start_job @job_name = 'Test job'
    Your job would then execute using the value provided at run time for the @my_variable parameter.

  • What happens in the background when a job is scheduled!!!

    Hi,
       Can anyone tell me what exactly happens in the background in SAP when a job is set to "Scheduled" ( sm37) .
    Can v see the code executed in the background during the transtion from " Scheduled" state of a job to" Cancelled" to "Complete" state.
    Its urgent,
    Answers will rewarded,
    regards,
    Rohan

    Hi Rohan,
    Jobs and job steps enable you to treat complex tasks as single units. That is, you can schedule several programs needed to complete a particular task as steps within a single job, with the advantage of the job being single logical container for all the steps needed to complete the task. You need to schedule or review only one background job in order to schedule or review any of the individual steps necessary for completing the task.
    Assume that a particular data transfer with batch input requires that you start two programs, an external program to prepare the batch-input session and an internal program to process the session. Creating a job made up of two steps lets you handle the two programs as a single unit. Scheduling that one job schedules both programs. The results of each program's run can be seen in the job log.
    Some background processing attributes apply to entire jobs and, therefore, to all job steps within a job. For example, the earliest possible start time for any job steps will be the start time for the job. Frequency of repetition, priority, and other global attributes also apply to the whole job.
    To ensure that you can flexibly run individual programs, you can set important attributes individually for each job step, too. Each job step can:
    have its own spool, or output, specifications
    run under the authorizations of a separate user
    use a different language
    have its own runtime options (for programs external to the SAP System), such as handling of error output and synchronicity
    In general, job steps run sequentially and synchronously in the order they're entered in a job: the first step starts, runs, and is completed, then the second step starts, and so on. The only exception is when you schedule an external program to run asynchronously. In this case, the background processing system starts the next job step without waiting for a return code from the external program. If the external program runs long enough, then the start of the next job step may overlap it.
    Job steps run partially independently of each other’s status. That is, the abnormal termination of one job step does not roll back the work of a previously completed job step if this previous step was executing a commit. If any job step fails, however, then the entire job fails. No further job steps are carried out, and the job's status changes to Canceled.
    There are two types of job steps:
    An executable ABAP program
    Only type 1, or executable, ABAP programs can be used as job steps. Module pools and function groups, which are collections of ABAP modules, are not allowed. The specifications required for an ABAP job step are:
    ABAP program + Variant + Print and archiving parameters + Language
    An external command or external program
    This type of job step allows you to run programs outside the SAP System. External commands are predefined, authorization-protected commands for end users. External programs are unrestricted, directly entered commands reserved for system administrators.
    The type of external command and external program is unrestricted, meaning that you can use either compiled programs or scripts. Such programs can be run on any computer that can be reached from the SAP System. Parameter passing to non-SAP programs is completely unrestricted except by the predefinition mechanism for external commands.
    Output of non-SAP programs, particularly error messages, is included in the job's log file.
    Specifications required for an external command or program are:
    External command + Type of operating system + (Parameters) + Target host system
    External program + Parameters + Target host system
    Job Step Language
    If your SAP System runs with an Arabic, Cyrillic, or Asian character set, then you may need to change the language specified in the standard background jobs listed above. Languages are assigned to jobs based on job steps. Be sure that the language specified in the job step definition in each of these jobs is set to English (EN).
    This change is required because not all languages are available with all code pages. If the job’s specified language is not available, the job will not run.
    <b>Reward pts if found usefull :)</b>
    Regards
    Sathish

  • ORA-27369: job of type EXECUTABLE failed with exit code: Incorrect function

    Hello,
    I am calling a windows bat file using dbms_scheduler and getting the following error. I have searched the forum and the internet and tried different switches and options. None of them solved my problem.
    Oracle Version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    OracleJobScheduler is running as a service
    Error starting at line 1 in command:
    execute GET_RESULTS();
    Error report:
    ORA-27369: job of type EXECUTABLE failed with exit code: Incorrect function.
    ORA-06512: at "SYS.DBMS_ISCHED", line 185
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 486
    ORA-06512: at "PS.GET_RESULTS", line 67
    ORA-06512: at line 1
    27369. 00000 - "job of type EXECUTABLE failed with exit code: %s"
    *Cause:    A problem was encountered while running a job of type EXECUTABLE.
    The cause of the actual problem is identified by the exit code.
    *Action:   Correct the cause of the exit code and reschedule the job.
    Here is the code for scheduler
          dbms_output.put_line(os_commandline || utlPath || fileSeparator || 'get.bat >nul')
          dbms_scheduler.create_job
          (   job_name          =>'PS_GET_RESULTS'
                , job_action        => os_commandline || utlPath || fileSeparator || 'get.bat >nul'
                , job_type          =>'executable'
                , enabled           =>false
                , auto_drop         =>false
                , start_date        =>systimestamp
          dbms_scheduler.run_job(job_name =>'PS_GET_RESULTS');The dbs_output prints a line which shows that the parameters os_commandline, utlPath and fileSeparator are set correctly.
         C:\windows\system32\cmd.exe /q /c E:\UTLDir\get.bat >nulThe windows file (get.bat) is:
         "C:\Program Files (x86)\WinSCP\Winscp.exe" /script=e:\utldir\get_resultsThis batch file passes a script file to the executable winscp.exe to get files from another server.
    The script file (get_results) is:
         option batch abort
         option confirm off
         open sftp://username:password@ipnumber:port -hostkey="ssh-rsa 1024 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
         cd /usr/dropbox/
         option transfer binary
         get *.results E:\UTLDir\Results\
         close
         exitI tested the batch file directly and works fine and "gets" the files from the server. But, invoking from Oracle dbms_scheduler fails with ORA-27369: job of type EXECUTABLE failed with exit code: Incorrect function.
    Appreciate your help and time in suggesting additional guidelines or pointers.
    Thanks,
    Rose

    Here is an update, if somebody else is having a similar problem.
    The ftp command "cd" to change the directories should be an absolute path. I was given a path "/usr/dropbox/", but on the server it actually corresponds to "/usr/local/apps/dropbox/". After updating the directory path, the scheduler worked fine in invoking the batch file for transferring the files.
    Thanks,
    Rose

  • Copying the background job

    Hi,
    I have a background job with has a start condition after execution of a particular event.
    Now i need to copy this background job to another name and execute it. I tried using the function module BP_JOB_COPY, but that copied the background job without the job start conditions. How can i copy the background job along with start conditions.
    Thank you in anticipation.

    Hi Nikhil,
    the follwoing code schedules 2 jobs from a source job (which is maintaned in the system).
    data: s_tbtcjob1 like tbtcjob,         "target job #1"
          s_tbtcjob2 like tbtcjob.         "target job #1"
    data: h_1 like tbtco-jobcount,         "jobcount"
          h_2 like tbtco-jobcount,         "jobcount"
          h_1s like tbtco-jobname,         "jobname source"
          h_2s like tbtco-jobname,         "jobname source"
          h_1t like tbtco-jobname,         "jobname target"
          h_2t like tbtco-jobname.         "jobname target"
    selection-screen begin of line.
    selection-screen position 2.
    parameters ra radiobutton group rad1.
    selection-screen comment 4(70) text-001.
    selection-screen end of line.
    selection-screen begin of block block1 with frame.
    parameters: p_a1 like h_1,
                p_a1s like h_1s,
                p_a1t like h_1t,
                p_a2 like h_2,
                p_a2s like h_2s,
                p_a2t like h_2t.
    selection-screen end of block block1.
    start-of-selection.
      perform create_jobs using p_a1 p_a1s p_a1t p_a2 p_a2s p_a2t.
    *       FORM CREATE_JOBS                                              *
    form create_jobs using h_1 h_1s h_1t h_2 h_2s h_2t.
      call function 'BP_JOB_COPY'
           exporting
                dialog                  = 'N'
                source_jobcount         = h_1
                source_jobname          = h_1s
                target_jobname          = h_1t
           importing
                new_jobhead             = s_tbtcjob1
           exceptions
                cant_create_new_job     = 1
                cant_enq_job            = 2
                cant_read_sourcedata    = 3
                invalid_opcode          = 4
                jobname_missing         = 5
                job_copy_canceled       = 6
                no_copy_privilege_given = 7
                no_plan_privilege_given = 8
                others                  = 9.
      call function 'BP_JOB_COPY'
           exporting
                dialog                  = 'N'
                source_jobcount         = h_2
                source_jobname          = h_2s
                target_jobname          = h_2t
           importing
                new_jobhead             = s_tbtcjob2
           exceptions
                cant_create_new_job     = 1
                cant_enq_job            = 2
                cant_read_sourcedata    = 3
                invalid_opcode          = 4
                jobname_missing         = 5
                job_copy_canceled       = 6
                no_copy_privilege_given = 7
                no_plan_privilege_given = 8
                others                  = 9.
      call function 'JOB_CLOSE'
           exporting
                jobcount                    = s_tbtcjob2-jobcount
                jobname                     = s_tbtcjob2-jobname
                pred_jobcount               = s_tbtcjob1-jobcount
                pred_jobname                = s_tbtcjob1-jobname
              targetsystem                = '<<SYSTEM IN CASE OF MULTIPLE SERVERS>>'
           exceptions
                cant_start_immediate        = 1
                invalid_startdate           = 2
                jobname_missing             = 3
                job_close_failed            = 4
                job_nosteps                 = 5
                job_notex                   = 6
                lock_failed                 = 7
                others                      = 8.
      call function 'JOB_CLOSE'
           exporting
                jobcount                    = s_tbtcjob1-jobcount
                jobname                     = s_tbtcjob1-jobname
                strtimmed                   = 'X'
              targetsystem                = '<<SYSTEM IN CASE OF MULTIPLE SERVERS>>'
           exceptions
                cant_start_immediate        = 1
                invalid_startdate           = 2
                jobname_missing             = 3
                job_close_failed            = 4
                job_nosteps                 = 5
                job_notex                   = 6
                lock_failed                 = 7
                others                      = 8.
    endform.

  • Where can i see mail address of the background job

    hi all,
    i have an issue where a background job will generate 2 programs and send mail to a person when the both programs will complete.but i am unable to see the mail address which are defined in the background job.please solve this issue.

    Check the program variants...

Maybe you are looking for

  • SCCM client deployment on windows server 2012 R2

    Hi All, Can some one please share the information , step by step guide to install SCCM 2007 Sp2 client installation on windows server 2012 R2 machine. IF step by step guide is there this would be really helpful. Regards,

  • Performance issue-Report

    Hi, I have developed FI report which is having 18 laks records, the time taken is more than 45 hrs,please any one can help me in the performance wise. SELECT ZBUKR          RZAWE          LIFNR          KUNNR          ZNME1          VBLNR          RW

  • What program should I use and various??

    Hi friends, I have two questions: 1) So I have finished my project...how do I fit it onto one dvd? Quicktime conversion?? 2) What program should I use to burn to dvd? I have a macbook. 3) How do I make chapters on the dvd?? Thank you so much for assi

  • Mial syncs even though fetch is diabled

    I have disabled fetch and set the options to manual for each user account still mail tends to syncs each time its opened. what should i do about it?

  • Logic Express (7.2) Installation problem

    Hi, I had an iBook running Logic Express 7.1 and recently upgraded to a MacBook so I sent away for the 7.2 crossgrade, which arrived today. I put in the first disc which ran through the installation and prompted me to insert the content dvd, however