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

RFC error log

aayushaggarwal
Active Participant
0 Likes
13,885

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

9 REPLIES 9
Read only

SharathYaralkattimath
Contributor
0 Likes
6,349

Write your code in TRY..ENDRY block,

Catch system exceptions & Raise exceptions in your RFC FM

Read only

0 Likes
6,349

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
6,349

Use BAPI and respect FM signature, you should not get dumps....

Regards,

Raymond

Read only

0 Likes
6,349

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

Read only

0 Likes
6,349

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

Read only

aayushaggarwal
Active Participant
0 Likes
6,349

Experts please help, this is very critical.

Please....

Regards,

Aayush

Read only

gireesh_kokate
Explorer
0 Likes
6,349

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



Read only

0 Likes
6,349

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

Read only

0 Likes
6,349

Then use standard table SNAP, why do you want to create Z-table.