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

RFC debug

Former Member
0 Likes
436

I have RFC in R/3. I am calling this RFC from APO. is it possible to debug the RFC in APO in Zprogram? How?

3 REPLIES 3
Read only

Former Member
0 Likes
398

Hi,

in zprogram.

add this code.

clear sy-subrc.

do.

if sy-subrc = 4.

exit.

endif.

enddo.

Execute zprogram. Goto SM50 and select zprogram and select debug (on menu).

Cheers.

...Reward if useful.

Read only

Former Member
0 Likes
398

you need a trick.

add an import parameter with a name of your choice, type xfeld.

then code a endless loop for your new parameter = 'X'.

now if you want to debug the RFC, set your new parameter = 'X'.

it will run into your coded endless loop.

then goto SM50 and catch your process.

now you can debug. but dont forget to set your new parameter = space otherwise you can just debug your endless loop.

Read only

Former Member
0 Likes
398

Hi,

You can put the external break point. And start executing the Zprogram from APO.

Debugger will start as soon as it comes to break point.

regards,

mahantesh