Skip to Content
avatar image
Former Member

"Exception raised without specific error" message

    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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 02, 2017 at 03:58 PM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      That's what I am doing. It shows my BAPI messages correctly but on top of them it appends another message "Exception raised without specific error" which i don;t want to show.

  • Feb 04, 2017 at 06:53 PM

    There is an optional parameter to decide the "leading message" in the method "add_messages_from_bapi".

    IV_DETERMINE_LEADING_MSG

    Add comment
    10|10000 characters needed characters exceeded