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 ECC FM called via RFC

nisha_vinod
Product and Topic Expert
Product and Topic Expert
0 Likes
1,114

Hello experts,

From a CRM Function Module, we are trying to invoke a custom ECC FM. On debugging, the flow does not go to the ECC module for debugging (although it returns the values). We tried several options like adding RFC param in su01, Activate Remote Debugging in ECC, sm51, sm50 etc. But none of this helps.

Any suggestions on debugging would be most welcome.

Regards,

Nisha

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,042

Hello,

Since the connection is R3, check the user which is used to connect to the ECC system. What is the "user type"?

BR,

Suhas

8 REPLIES 8
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,043

Hello,

Since the connection is R3, check the user which is used to connect to the ECC system. What is the "user type"?

BR,

Suhas

Read only

nisha_vinod
Product and Topic Expert
Product and Topic Expert
0 Likes
1,042

Hi Suhas,

The user type is 'Dialog' user. Unfortunately, we cannot login using dialog user credentials in ECC and have to make do with our own user Id.

So any inputs?

Regards,

Nisha

Read only

Former Member
0 Likes
1,042

You can follow these steps to indirectly debug your ECC FM.

1) Put an infinite loop in your ECC FM, say

DATA TEMP.

DO.

IF TEMP = 'X'.

EXIT.

ENDIF.

ENDDO.

2) Execute your CRM FM in which your ECC FM is being called.

3) Go to ECC, Transaction SM50 (Process Overview). You will see your FM's entry. Select your FM's entry then from the menu select Program/Session>Program>Debugging. This will open your ECC FM in debug mode. Put value of TEMP as 'X' and continue debugging.

Read only

nisha_vinod
Product and Topic Expert
Product and Topic Expert
0 Likes
1,042

Hi Siddharth

We already tried this. In this case it just opens a pop-up in ECC but the control does not go anywhere from there.

Are we missing any authorizations?

Regards,

Nisha

Read only

Former Member
0 Likes
1,042

There should not be any authorization issue. Actually there are limited debug modes available through SM50, thats the reason sometimes it does not go to debug mode. You need to keep trying because those modes are already occupied someone else.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,042

Hello Nisha,

If the user type is "dialog" it should not be a problem. Can you check if the user has debug auth in ECC system?

Did you set break point in the ECC RFM? You can also check the "Session Breakpoint Active Immediately" in the debugger settings.

BR,

Suhas

Read only

Former Member
0 Likes
1,042

Hello,

May be you need to change your debugger setting to New debugger. Just check & give a try.

Regards

Balaji R

Read only

nisha_vinod
Product and Topic Expert
Product and Topic Expert
0 Likes
1,042

Hi Siddharth,

Your approach helped us resolve the issue. Full marks to you on this one.

Btw, why is this required? Is there a "cleaner" approach for the same?

Regards,

Nisha