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: 

Debugging a FM!

Former Member
0 Kudos

Hi all,

Can anyone tell, how to debugg a FM called in a BACKGROUND TASK ?

Thanks

Vishy.

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

Hi,

Introduce an infinite loop in the called FM.

Then go to SM50 transaction and debug,.

Regards,

Ravi

5 REPLIES 5

former_member181962
Active Contributor
0 Kudos

Hi,

Introduce an infinite loop in the called FM.

Then go to SM50 transaction and debug,.

Regards,

Ravi

0 Kudos

Hi all,

The FM is used in an include program which has not been scheduled to run as a job.

Any other ways to stop there w/o the need to change the piece of code inside.

Thanks,

Vishy.

jyotheswar_p2
Active Participant
0 Kudos

Go to sm37 and select your JOB and type JDBG in the command line press enter.

Regards

Jyo

Former Member
0 Kudos

did you search in SCN with debug the background job

Former Member
0 Kudos

Hi:

1.

If its a Z - function module and then put the endless loop like

data : lv_cnt type char01

do.

if not lv_cnt is initial.

exit.

endif

enddo.

Run the transaction or whatever, go in sm50 - you process would be in running mode - select the row and then

select program/session -> program -> debugging -> it would stop at do in debugging mode and then put some value for lv_cnt to come out.

2. Else /h and then enter from where you want to start the debugging - > it would go in debugging - put the function module at breakpoint -> click the box - in update task..

Enjoy the debugging

Regards

Shashi