2014 Jul 21 1:27 PM
Hi all,
I am calling the RFC from outside of SAP, and passing incorrect data in Import of the RFC that is why it is giving a short dump, i want to log that dump, please tell me how can i do that.
Regards,
Aayush Aggarwal
If the FM dumps, you can say goodbye to the RFC opened session, so the FM must not dump...
(A wild TRY ... code ... send success back ...CATCH cx_root .. send error back ... ENDTRY or something better written.)
Else your external called will lose contact with the SAP and receive a generic error (e.g. connexion lost, RFC failed, etc.) then use RFC functions to get the dump data (e.g. RFC_READ_TABLE on SNAP or customer developed dump analyzer and have the external called call those FM in case of failure or time-out raised.)
Regards,
Raymond
2014 Jul 21 1:35 PM
Write your code in TRY..ENDRY block,
Catch system exceptions & Raise exceptions in your RFC FM
2014 Jul 21 2:13 PM
Hi Sharath,
Already done,
Actually, i am calling the RFC from outside SAP, and as i am passing the values incorrectly,the compiler is not going inside the RFC and a dump is coming, the thing is i want to log that dump.
Regards,
Aayush
2014 Jul 21 1:43 PM
2014 Jul 21 2:15 PM
Hi Raymond,
I know how to pass parameters, the thing is I am checking all feasible cases for my process, so i want to log that error which comes when we call the RFC incorrectly from outside the SAP. Please help.
Regards,
Aayush
2014 Jul 22 2:55 PM
If the FM dumps, you can say goodbye to the RFC opened session, so the FM must not dump...
(A wild TRY ... code ... send success back ...CATCH cx_root .. send error back ... ENDTRY or something better written.)
Else your external called will lose contact with the SAP and receive a generic error (e.g. connexion lost, RFC failed, etc.) then use RFC functions to get the dump data (e.g. RFC_READ_TABLE on SNAP or customer developed dump analyzer and have the external called call those FM in case of failure or time-out raised.)
Regards,
Raymond
2014 Jul 22 5:28 AM
Experts please help, this is very critical.
Please....
Regards,
Aayush
2014 Jul 22 5:58 AM
Hi Aayush,
1] ABAP Dump Analysis ( ST22) lists the run time errors that have occurred while calling ABAP program, FM. even though it is called from non SAP system.
2] Execute report RSRFCTRC (RFC trace)
Regards.
Gireesh
2014 Jul 22 6:22 AM
Hi Gireesh,,
in st22 we can see the short dump, i want to log that dump in a z-table, how can i do that ??
Regards,
Aayush
2014 Jul 22 8:56 AM
Then use standard table SNAP, why do you want to create Z-table.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |