Application Development and Automation 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: 
Read only

Debugging a FM!

Former Member
0 Likes
720

Hi all,

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

Thanks

Vishy.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
633

Hi,

Introduce an infinite loop in the called FM.

Then go to SM50 transaction and debug,.

Regards,

Ravi

5 REPLIES 5
Read only

Former Member
0 Likes
634

Hi,

Introduce an infinite loop in the called FM.

Then go to SM50 transaction and debug,.

Regards,

Ravi

Read only

0 Likes
633

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.

Read only

jyotheswar_p2
Active Participant
0 Likes
633

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

Regards

Jyo

Read only

Former Member
0 Likes
633

did you search in SCN with debug the background job

Read only

Former Member
0 Likes
633

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