Skip to content

background process 및 aRFC debug 하기

background process와 aRFC는 debug 할 때 아주 골치 아프다.
aRFC의 경우 F5 – F7 – F5 를 번갈아 작동시킴으로 debug를 하는데 background process는, 특히 ‘submit’로 다른 session으로 날라가는 경우는 breakpoint가 전혀 작동하지 않는다.

이 경우 보통 endless(infinite) loop를 이용하는 꼼수를 쓴다.

1. use the following code instead of break-point:

data a type c. do.
if a = 'X'. exit. endif.
enddo.

2. while the program is running in background, launch transaction SM50.

3. select the program in the list and choose Program/Mode > Program > Debugging

4. at this point the program should stop in the infinite loop. to exit from the loop, set the variable a to ‘X’

Post a Comment

Your email is never published nor shared. Required fields are marked *