Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Sep 01, 2008 at 09:23 AM

    You can debug an already running background job via SM50, "program/session->program->debugging".

    Maybe this helps.

    Thomas

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 01, 2008 at 09:24 AM

    Hi,

    First u run the job. later goto SM37 and select the job and give command JDBG in command box it takes to to debug mode and shows how it runs in Background.

    Sudheer. A

    Edited by: sudheer Addepalli on Sep 1, 2008 2:55 PM

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 01, 2008 at 09:25 AM

    I can not see a reason why a report cant be run in foreground. Maybe you need to temper with sy-batch so that the report is believing he is running in batch.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 01, 2008 at 09:25 AM

    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

    Add comment
    10|10000 characters needed characters exceeded