on ‎2005 May 18 3:31 PM
Hi,
I am running a BAPI remotely from a SAP System A to SAP system B.
There is an error that is returned.
1. is there any way I can debug the whole BAPI ?
2. Can I see the log of the bapi call, or some other way i can determine, where the error is raised...
Any help is appreciated.
Reg,
PP.
Request clarification before answering.
Hi Prashanth,
If you are calling the BAPI via a Remote Function Call (using CALL FUNCTION ... DESTINATION ...) then the best way to debug the BAPI is to get on to the target system and use the function module test function from SE37. This way you can input the data and debug through the BAPI directly.
If you are calling the BAPI via ALE, then you will be able to view the corresponding idoc independantly in your target system. In transaction BD87 you will see the failed Idoc and will be able to drill down and process the idoc in foreground (and therefore be able to debug the BAPI).
Also in ST05 you can do an RFC trace. This will help in determining problems you might be having with the RFC connection.
Cheers,
Brad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prashanth,
Assuming that the BAPI is available in both systems, you can probably debug within your system with the data you are passing to the remote system.
There is no way you can debug the remote system, except that you can set the RFC trace. But this will only give you a trace of the RFC communication, not the trace of the application execution. You can only see what data went in and what came out.
If you are executing a BAPI, all BAPIs return messages in the RETURN parameter. Why don't you look at that to see what went wrong and then look into the BAPI code to see where it is raised?
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.