on 04-12-2006 1:00 AM
Hi All,
When I call an RFC function module from a program I want to debug it in the destination system. I tried setting up the external debug on,system debugging and all other techniques mentioned in few forums here but am unable to debug in the destination system.
I am calling a BAPI in the Target System.
Any valuable inputs on this are welcome!.
Regds,
Rajeev
If you are calling from an ABAP system......
Put a break point in your program just before calling the RFC. Once you are in the debug mode. Set the "System debugging" from the menu at the top. Now step into the call of the RFC. Once you have arrive at the other system in debug mode, choose Breakpoint, breakpoint at, function module. Enter the name of the RFC that you just called into the field. Hit enter, now hit F8. The debugger should have now stopped at the first statement of your RFC function module. Debug as needed.
Regards,
Rich Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To debug your program proceed as follows:
1. write following code in your RFC :
DATA NUM TYPE I VALUE 1.
WHILE NUM < 2.
ENDWHILE.
2. This will begin an undefined loop. Now, goto transaction SM50, select your program in process overview, and goto Menu "Program/Mode->Program->Debugging"
3. Debugger will start at While loop statement. Change the value of NUM to greater than 2 to get out of loop and proceed further with debugging
Hope this solves your problem. Award some points if u find it useful
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.