Skip to Content
0
Former Member
Feb 02, 2017 at 10:36 AM

"Exception raised without specific error" message

2023 Views

    CALL FUNCTION 'BAPI_EPM_BP_CREATE'
      EXPORTING
        headerdata        = ls_headerdata
"       PERSIST_TO_DB     = ''
      IMPORTING
        businesspartnerid = ls_bp_id
      TABLES
        return            = lt_return.
    IF lt_return IS NOT INITIAL.
      "Message Container
      mo_context->get_message_container( )->add_messages_from_bapi( lt_return ).
      RAISE EXCEPTION TYPE /iwbep/cx_mgw_busi_exception
        EXPORTING
          textid            = /iwbep/cx_mgw_busi_exception=>business_error
          message_container = mo_context->get_message_container( ).
    ENDIF.

When raising exception in the code above in Create entity method it will show the error messagess from the BAPI as well as additional error message saying "Exception raised without specific error". How to avoid outputting this message?