cancel
Showing results for 
Search instead for 
Did you mean: 

Error message in BAPI call

Former Member
0 Kudos

I have imported RFC Interfaces from SAP system. Each interfaces doesn't have fault message.

How to get error message in BAPI call when error occurs?

I can catch an exception in BPM but I need to get error message and send it to another system.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I donot have access to the System right now...so i cannot verify this....

In your RFC FM(i am answering based on the assumption that it is a "Z" one) which you are importing.....add a couple of exceptions in the excpeitons tab in se37(and appropriately raise it in the code)and see if they come in the fault message when you are importing it into the repository...

Regarding standard bapi FMs the errors are managed through the "bapiret2/bapireturn" table, in the response message...

however in case of a communication exception it has to be caught in the BPM....

Thanks,

Renjith

MichalKrawczyk
Active Contributor
0 Kudos

Hi Denis,

>>>I have imported RFC Interfaces from SAP system. Each interfaces doesn't have fault message.

if you want to use fault messages

consider using ABAP Proxies

>>>>How to get error message in BAPI call when error occurs?

most bapis have return table in which they

return error messages (you can do it either

in a sync way or in an async way if the call is too long - with corrlelation of course)

Regards,

michal