cancel
Showing results for 
Search instead for 
Did you mean: 

Message text available in java using RFC function module

Former Member
0 Kudos

Hello,

I wrote a function module with the ABAP statement

MESSAGE .... RAISING PARAMETER_ERROR

The java developer gets the PARAMETER_ERROR but no

message text.

Is the any way (e.g. exception class) to get the message text also.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Michael,

In the RFC function module use the table RETURN of type BAPIRET2 and instead of raising the error append the error in RETURN. later in your java code you can read this table RETURN and retrieve the error along with the error text.

Hope this helps.

Regards,

Richa.

Bhaskar_K
Explorer
0 Kudos

Hi Micheal,

Do not use the Rasing parameter instead of that use a text field or use the BAPIRET2 structure to send the message.

Thanks