cancel
Showing results for 
Search instead for 
Did you mean: 

JRA - RFC - System Error Message

Former Member
0 Kudos

Dear all,

i wrote a remote enabled function call around FM BKK_PAYM_ITEM_POST.

The RFC works fine, but when i execute it with some data, it gives an system error message: Extern. init. paym. trans.: Reference number paym. trans. missing

On the java side however, it throws an exception and the getMessage() gives null.

Isnt it possible to see the message on the java side?

Can the message be caught on the R3 side? Currently the error message just blocks the GUI.

I've read that i can catch it with call function .. destination 'NONE' ... and i tried it from a report in R3 and it indeed catches the message... But shouldnt it be thrown to java directly too then with a nice message because its also called via RFC...

In case not, is there a way to call function without the destination part so the messages are caught in a message table or so without blocking my gui in r3. If that's possible i can catch them like this and throw an error to java myself...

Kind regards,

J.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It's possible the following way:


CALL FUNCTION whatever
    ....
    exceptions
      error_message = 1.
   if sy-subrc ne 0.
       create your message and return it. (sy-msgid, sy-msgty, ...)
   endif.