Skip to Content
1
Apr 29, 2020 at 06:47 AM

RFC_ERROR_SYSTEM_FAILURE

652 Views

Dear Experts,

I am using FM "L_TO_CREATE_MULTIPLE" to create TO in my custom FM, i have enabled all the exceptions and using below code to catch all the errors.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno INTO lv_msg
WITH sy-msgv1.
return-type = sy-msgty.
return-id = sy-msgid.
return-number = sy-msgno.
return-message = lv_msg.

But for some of the invalid inputs are not getting captured in this message, instead it goes out of FM and comes on status bar, attached screen shot.

In PI system getting the message as below, i want handle this in my FM and send the structure to PI system.

<rfc:ZWM_BL_TO_CREATE.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions"> <Name>RFC_ERROR_SYSTEM_FAILURE</Name>
<Text> Storage bin EWGSSAY in storage type ASY does not exist (check your e</Text>
</rfc:ZWM_BL_TO_CREATE.Exception>

Please let me know how to handle this?

to-error.jpg

Attachments

to-error.jpg (15.1 kB)