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

Similar Messages

  • Batch job with 2 conditions

    Hi,
    We have a program that will create a batch job and then we need to go to SM35 to run that batch job manually. We want to avoid this manual step and what we want to do is to as soon as our program runs it will create a batch job and then batch job should kick off automatically.
    One of the solution that came to my mind is to schedule a batch job with two conditions:
    1. in first condition it will run our main program
    2. and in 2nd step it will look out for the batch job that created in SM35 and will kick off that, but I am not sure how can i do this using Sm36.
    I was also wondering if there is another way so that we can just avoid the batch run for the second step?
    So can you please help me with this.
    Thanks,
    Rajeev

    SM35 -> batch sessions, so I assume you are talking about these.
    You can start sessions under program control by submitting program RSBDCSUB after creation of the session.
    Thomas

  • Cancellation of batch jobs

    Hi all,
    I have found few batch jobs in active state for so long in our system. When i tried to cancel the active jobs i got a message as below
    FI_RD_BILLING DUE LIST is not active - cancellation not possible!
    I checked the background WP in the system. None of them are in running state.
    Pls help me how to delete these jobs from SM37
    Regards,
    Kris

    Try SM66, u have an option to cancel the jobs
    or better u can request ur basis guy, if u are not the basis guy.
    -kiran

  • Program or function module to get active Batch jobs

    Hi Experts,
                     I need a program or a FM that would give me the list of active batch jobs and also the time they were running
    for.
    Plz help me out

    You Just follow the below code, It is exactly same as your requirement.
    TYPES:   BEGIN OF ty_itbl,
               jobname   TYPE   tbtcp-jobname,
               jobcount  TYPE   tbtcp-jobcount,
               stepcount TYPE   i,"tbtcp-stepcount,
               sdldate   TYPE   tbtcp-sdldate,
               sdltime   TYPE   tbtcp-sdltime,
               sdluname  TYPE   tbtcp-sdluname,
               status    TYPE   tbtco-status,
               END OF ty_itbl.
      DATA :   wt_itbl TYPE TABLE OF ty_itbl,
               wa_itbl TYPE ty_itbl.
    SELECT     a~jobname
                   a~jobcount
                   a~stepcount
                   a~sdldate
                   a~sdltime
                   a~sdluname
                   b~status
                   INTO CORRESPONDING FIELDS OF TABLE wt_itbl
                   FROM tbtcp AS a
                   INNER JOIN tbtco AS b
                   ON    b~jobname    EQ    a~jobname
                   AND   b~jobcount   EQ    a~jobcount
                   WHERE a~progname IN wp_prog
                   AND   a~sdldate  IN wp_date
                   AND  b~status eq <STATUS>. "<-Give the Active Status here

  • Batch jobs with status "active" but aren't really active

    We have 4 jobs that show up in SM37 with a status of "active", but they aren't really active.
    They are from 1998, and the client & server listed no longer exist. The PIDs listed do not exist on any servers.
    We have tried to cancel, delete, check status, nothing works.
    Is there some way to get rid of these jobs from the system?
    RSBTCDEL / RSBTCDEL2 will not work, because the jobs are active.
    Thank you.

    When I try to cancel the "active" job, I get message "Error occured determining batch work process information" (Message BT241).
    When I do a Check Status, it just says "1 jobs were checked and 0 jobs were corrected"
    When I try to delete, it says "Job xxxx is active. The selected function cannot be performed"
    We have jobs SAP_REORG_JOBS and SAP_REORG_JOBSTATISTIC running. I cannot find a standard job SAP_REORG_JOBSSTATUS mentioned in Yves reply. If this existst, can you tell me what program is being executed by the job?
    We shut down / restarted one of the systems that has some of the old jobs yesterday, and the problem still exists.
    We are at Basis release 702, SP 12.
    I will take a look at the BP_JOB* function modules

  • Output condition records copied by batch job

    Hi!
    We are creating invoices through batch job RV60SBAT. However, we notice that the outputs are created based on the output condition records of the last invoice created by the batch job.
    For example, if 2 invoices were to be picked up for creation by the batch job, where the first invoice should create a print output and the second invoice should create an email output, both invoices will be created with email outputs.
    It appears that the codition record of the last invoice is copied to all invoices created by a batch job run.
    Has anyone experienced the same issue?
    Cholen

    first invoice should create a print output and the second invoice should create an email output
    In that case, create two variants in program SD70AV3A by differentiating the output type and schedule it in background
    ps:-  post your text in big fonts as it is difficult to read
    G. Lakshmipathi

  • How to do debugging for a batch job?

    Hi Colleague,
    I created a batch job via t-code sm36 in SAP GUI, and added a report to this batch job, there is no problem to run this report directly, but fails to run the batch job. How can I do debugging for this batch job?
    Kind Regards
    Andie

    Hi Arun VS,
    Now I can do debugging, when I invoke the following standard function module, there is a dialog box popped up for doing security check. How can I prevent it from being popped up in a batch job?
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = lv_full_path
          filetype                = 'ASC'
          codepage                = lv_codepage
          write_bom               = ip_bom
        IMPORTING
          filelength              = lv_file_length
        TABLES
          data_tab                = gt_xml
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
    Kind Regards
    Andie

  • Routine not getting called during Batch job posting of Shipment costs

    Hi,
    We have a routine created and attached to the condition type in the condition base type of shipment cost procedure.When the shipment cost is created by running a batch job (VI06) , the value  posted is the initial value determined withourt routine.
    The  routine is getting activated only when we go in u201CCondition tabu201D in shipment cost.
    Because of this,  correct values are getting calculated only when we click on u201Ccondition tabu201D,& getting wrong value in initial screen, which is not possible in batch job.
    Need your views / suggestions to fix this issue.We need to use batch job and enable rouitne before batch job posts the cost to the Service PO.
    Thanks in advance.
    Regards,
    Ameya K.

    Modified the routine program

  • Batch Job for ME59N getting error SE133 - Net value could not be determined

    HI,
    We can convert the PO automatically when run manually tcode ME59N  successfully.
    But when We schedule a batch job to run ME59N (RM06BB30) to create AUTO Purchase order for services item Purchase requistion.
    Getting error message SE133 "Net value could not be determined".  PO canot be converted automatically.

    Hi,
    Price/ Net value not picking!
    Check  info record  based on  Material Group for your service PR which need to be converted to PO.
    Also check activation of  Automatic Purchase order creation for Service requisitions in t.code: ML91.
    Check vendor master , schema group of vendor and check MM pricing procedure, the availability of condition type for service master for service PO.
    For more please read note 635511
    Regards,
    Biju K

  • Batch job - Delivery creation

    Hi all,
    Here in my project there are so many batch jobs ruuning.Deliveries are created manually and through batch job also
    A delivery was created manually.A particular delivery output type was not pulled in the delivery since we did not maintain the condition record for that.After some time(after 5 min) that output condition type has been added in the delivery output header.When I click the further details it shows that Manually changed by Batch job
    We are now surprised that how Batch job added this output type manually when it is not its responsibility.
    How to find out which particular job has done this activity.
    Has anybody faced this problem or any solution for this problem
    Regards
    Mano

    Use transaction SM37 to find which background job ran during the time when the change occurred.
    Verify the variant that is used in the background job.

  • How to stop a batch job

    Hi Folks,
    Please do let me know how to stop a batch job.
    I am having a batch job which will run a program for every 15 mins in order to update some Z-tables.
    I need to debug and do some investigation. Meanwhile when I am doing this debugging it may take 20-30 mins also. Here this background job scheduling is getting started and the table getting updated and I am not able to do any investigation..
    Can anyone please let me know how can I stop this batch job scheduled every 15 mins taht is make it stop for an hour. So that after my investigation it should keep on running the batch job for every 15 mins.
    Regards
    Mac

    If u schedule this job from SM36 then u can make it active or inactive from there only. From SM36 ..give the name of ur job then press Extended job selection button..then in next screen choose Active tab and there u can check the checkbox "Job on longer active in time interval" and then give ur time.
    Hope this info will help u.
    Regards,
    Joy.

  • Package processing in CCM (AUTH_UPDATE batch-job)

    Hello all
    We're using CCM 2.0 with SP03. We send CatalogueUpdateNotification_in messages (in XML format) to our XI and route it 1:1 to our CCM system. There it is processed by an <b>async started AUTH_UPDATE batch-job</b>. This job finally processes our catalog items.
    As log as this batch-job runs the concerned catalog being updated is locked for other updates. And this is what causes us some head aches!
    We send XML messages containing up to 2000 catalog items. This makes the batch job run quite long (up to 1.5h). Now, when we have more than 2000 updates to send to our catalog, we split it up into packages with up to 2000 items each.
    Each package being sent from XI to CCM creates such a AUTH_UPDATE batch-job. The 1st starting is able to lock the catalog but this way of course also blocks processing of all other packages.
    Every single minute the next (waiting / blocked) package tries to lock the catalog itself before it can be processed. This ensures parallel update processings but the other way around it also causes to fall into a timeout after lets say ca. 30 retries.
    From XI point of view the timedout out package(s) sent to CCM were successfully processed... means: not restartable!
    In CCM I can't find a way trying to re-process such a timedout package.
    Re-generating the same package from the source system is not an option for us as well... it takes to much efforts.
    Is there a way to change the wait time between retrying to lock the catalog?
    OR
    Is there a way to ensure that only 1 AUTH_UPDATE batch-job is started at the same time?
    Thanks for some ideas to solve this.
    Renaud

    Hi
    <b>Please go through the SAP OSS Notes and pointers as well -></b>
    Note 908054 - CCM 2.0 SP03 on Netweaver 04s SP Stack 06
    Note 1002775 - Asynchronous deletion of old version after publication
    Note 955096 - Rule condition (Not Equal with Not Valuated) in the view
    Note 887328 - CCM20 - modifications for /CCM/VERIFY_CATALOG
    Note 865138 - CCM20SP0 upload overview message "Category not found"
    Note 873340 - Problems with BMECat mapping after patching XI
    Note 864313 - Input help for mass editor
    <u>Related links -></u>
    Re: Transfer Contract Data to CCM
    Re: CCM CSE_ENRICHMENT BAdI debuging
    Incase this does not help, please raise a customer OSS Message with SAP as well for faster resolution of your queries.
    Do let me know. Hope this will help.
    Regards
    - Atul

  • Report to be sent to a list of recipients in an e:mail (part of batch job)

    Hi,
    I need to generate a report using ALV functionality.
    Currently my report requirement is to sent to a list of recipients in an e:mail (part of the batch job set-up) and the recipients just download the report in a spreadsheet format. 
    Could you please give me the suggestions the way which I need to follow and how I will be able to set this report as a part of batch job which will send the report details to the users in the form of Email.
    Points will be rewarded for the answers.
    Regards,
    Ravi Ganji

    Hi,
    IN SM36..You will see a button for "Spool list recipient" which is next to the target server button..
    press that button..
    Give the email address in the recipient field..
    GIve the steps and start condition and then release the job..
    THanks,
    Naren

  • Two Deliveries did not go through Batch Job Runing

    Hi,
    In this company every evening the automatic batch Job for Billing due list is run but on Nov 23 one Deliver and on Nov 30 another delivery has not gone through i.e. the invoices were not created for these two deliveries.
    I checked in VF01, the individual invoice is being created. The user is asking the reason for this and how to prevent this type of situation in future.
    I don't know the Batch Job number and I think it has been done in VF06.
    Please guide me how I can solve this issue.
    Thanks,
    Jans

    Hello Tushar,
    Thank you for your reply. I don't know the Variant name also and I don't know the Batch Job number eirther. The user is not aware of these things. I tried to find out from VF06 but I could not figure out anything.
    Please explain me your sentece "Execute billing program in foreground and check". you mean to say after creating the same scenario in the quality, I will run the Billing program ( I will take the Billing program from the VF01). If I am correct please let me know.
    Regarding debugging,  if I have to do how I can do it. I know to go to Debuggiing mode if I put in the command field  "/h" , I will be in the debugging mode. But my question is which transaction Should I use VL02N or VF01 to find out the Problem
    I have mentioned earlier that I went to VF01 and these deliveries are fine to create invoices but the User is interested to know the Problem and to find out the cause so that they can prevent it occuring in future.
    Thanks,
    Jans

  • Can U set breakpoint within a batch job and look at variables?

    Hello friends,
    I am trying to solve a problem that occurs within a program / transaction which can only be executed in background. The transaction in question is FPCOPARA and apparently this program cannot be executed in foreground.
    If I understand well, we cannot set breakpoints within a background job and as a result we cannot inspect variable etc. during job execution. So the question is how to achieve the same goal within a batch job? How did you do it? As this is a standard SAP transacrtion, no program modification can be applied.
    Your help is greatly appreciated.

    Hi......
    After u have executed ur batch job..
    go to sm37 >>select ur job using checkbox>>enter 'JDBG' in transaction box and press enter
    now debugger will start ..initial it will go through system code..after after a while the debugger will reach to your code and den you can debug the remaining report....
    all the best
    regards
    vivek

Maybe you are looking for

  • Insertion of Blank fails with error 01400 on ODP 9.2.0.4.0 using Parameter

    Hi everybody, I have a problem on inserting a blank string into a NOT NULL VARCHAR2 field by using a parameter on Oracle Data Provider for .NET (Version 9.2.0.4.0). It is possible to insert any strings with non-blank characters using a parameter and

  • Help with creating a template.

    I'm in process of creating a survey, both with check boxes and also a narrative section.  There are no templates for creating surveys (apart from an emplyee survey or assessment) and I've created a basic template.  Issue I am having is how do I conve

  • Mass activity run to fill tables FKKMAKO,FKKMAZE,FKKMACTIVITIES

    Dear All, As per help.sap.com, it is mentioned that we need to do mass activity run for filling these Dunning tables(FKKMAKO,FKKMAZE,FKKMACTIVITIES). It is not mentioned the mass activity run names to fill these tables. Please help me , what are the

  • Question re: audio when importing AVCHD footage

    Hi everyone, I use a Panasonic AF-100 which records using the AVCHD codec and uncompressed PCM audio.  When using the Log and Transfer function to transcode my footage, I see that in the Preferences menu of Log and Transfer, under "AVCHD", audio is s

  • Is there a keyboard shortcut for the green button?

    There appear to be a bazillion keyboard shortcuts, but so far I can't find anything that does what that little green button at the top of every window does (but trying to hit that tiny tiny button with the mouse is a trial). I did some online searchi