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 of RFC enabled function module

Former Member
0 Likes
1,162

Hi friends,

How to debug the following function module (RFC).

call function 'RFC_PLAYBACK_DUMMY'

destination 'RECORDER'.

9 REPLIES 9
Read only

Former Member
0 Likes
997

Hi,

Any function Module, whether it is RFC or others, keep a Break point and run the application and see that the cursor stops at the break point and check for the requirted data, whether it is coming or not.

regrads,

Anji

Read only

0 Likes
997

Hi thanks for reply but my problem is inside of that function module one internal table is populating but i am not able to go to inside of that function module.Once if i press F5 the control is not going to inside of that function module it is coming directly to endfunction.

Thanks & Regards,

Bharat.

Read only

0 Likes
997

Hi Bharat

A sneaky trick you can use is to put an infinite loop with an exit condition in your function module like:

  MOVE 'X' TO exit_cond .
  WHILE exit_cond EQ 'X' .
  ENDWHILE .

Then, when it is busy looping in the background, go to transaction SM50, select the processor and then go to <b>Program/Mode > Program > Debugging</b>. Change EXIT_COND and debug the rest of the code...

Hope that helps.

Cheers

Lyal

Read only

0 Likes
997

Hi Lyal,

First of all thank you for your reply.But that function module is present inside of the standard program and once if i double click on that function module ( not in the debugging mode) it is showing the message like 'function module does not exist do you want to creae it' in the pop up.Then how to add that infinite loop code inside of that function module.This function module exist in another function module.

Thanks & Regards,

Bharat.

Read only

Former Member
0 Likes
997

hi bharat ...

jst try it out...

I am assuming tht u r nt testing ur program in Production

This FM is on some other server which u wont find in ur system ... go into SM59 and remove the USERNAME/PASSWORD from there which it is using to log on to the other server and then try executing it or otherwise put a breakpoint inside the FM on the other server and then try executing it...

hope this will help...

tac care

Ashwani

Read only

0 Likes
997

Hi,

With out SM59 is it possible to debug that function module why because i am not having the authorisation of sm59 transaction.I am in quality system.

Thanks & Regards,

Bharat.

Read only

0 Likes
997

there is a database table ... RFCDES .. actually all the entires of SM59 comes from this Database table... u can go into this table and can make the changes ...

hope this will help

Thanks 'n Regards,

Ashwani

Read only

0 Likes
997

Hi Experts,

i want to debug the rfc enabled function module then how to proceed from the table RFCDES.

Thanks & Regards,

Bharat.

Read only

former_member194669
Active Contributor
0 Likes
997

Hi,

While using RFc function module , it is not mandatory that the function module

is there in source system.

First check the function module is there in system.

If the function module is available only in target destination (RFC destination ) system then debugging is not possible, if you are calling from source system.

if you want to debug then try to login to target system and check thry se37

aRs