cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT - how to debug routine at infoobject level.

Former Member
0 Kudos

Hi all,

I have a global routine for 0logsys infoobject that assigns the source system. Does anyone know how I can debug this routine. Can I debug this routine from Monitor->infopackage->simulate update option.

please let me know

thanks

Sabrina.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sabrina,

You can do that but it would be confusing to debug there. Instead try this.

Set a breakpoint in the code where you want. Now execute the infopackage. The processor will stop at the breakpoint. Now goto SM50 & select the GP**** program and goto Program/Mode(from menu) -> Program -> Debugging. Now debug from your breakpoint.

Hope this helps.

Bye

Dinesh

Former Member
0 Kudos

Hi Dinesh,

thanks for your response, I cannot find the option to set a breakpoint in the routine. Do you know how I can set a breakpoint.

thanks

Sabrina.

Former Member
0 Kudos

Dinesh's suggestion is good...but I think you cannot put breakpoint...you have to put an endless loop in your code so you can access in debug mode in the process management in SM50 (as already suggested)...

Just before the code insert:

DATA FLAG TYPE C.

CLEAR FLAG.

DO.

IF FLAG = 'X'.

EXIT.

ENDIF.

ENDDO.

When you are in debug, change the parameter in 'X' and...voilà !

Hope it helps!

Bye,

Roberto

Former Member
0 Kudos

thanks Roberto.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sabrina,

Yes. Roberto is right. My suggestion would work only in a Dev box where you can set breakpoints and not in QA or Prod.

Bye

Dinesh

Former Member
0 Kudos

thanks a lot. but why would there be breakpoints in Dev and not in QA or Prod? Its a sandbox env that I am working.

Former Member
0 Kudos

Sabrina,

I think you cannot work with breakpoints since your job runs in background...

Bye,

Roberto