Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Want to see debug mode thru background process

Former Member
0 Kudos

I am excuting a job in background mode...with start immdiately.

and its triggering a functionmodule.I wan o know what valuehave been passto the function modul.and I want to ee the function modul in debug mode.

There is no way to process the job in foregound and I am running th dunning through F150.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Goto SM51-> keep a cursor on user running program in background.

Then program/mode ->program ->debugging.

Alternatively what you can do it.. add few WRITE statements in your program where you want to check your values. Once program is finished.

Goto SM37 and check spool for the user. You will see value populated in your program.

Reward if useful!

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try this.

Path: SM50 -> Select corresponding session -> Program/Mode (Menu) -> Program -> Debugging.

Regards,

Ferry Lianto

former_member181962
Active Contributor
0 Kudos

Insert an endless loop with a condition that will never occur inside your code.

like

a = 5.

while a > 1.

a = 5.

endwhile.

This keeps your job to be in Running status in SM50.

Chose this process and chose from menu Program/ Session->Programming->Debugging.

This starts the debugger.

In the debugger, you can change the value of a to break the endless loop. and continue debugging.

Regards,

Ravi