Skip to Content
0

"Exception raised without specific error" message

Feb 02, 2017 at 10:36 AM

478

avatar image
    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?

10 |10000 characters needed characters left characters exceeded

Hello Radek,

I've got exactly the same problem. Did you solve it?

Thank you!

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Andrei Shynkarou Feb 02, 2017 at 03:58 PM
0
Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

0
Krishna Kishor Kammaje
Feb 04, 2017 at 06:53 PM
0

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

IV_DETERMINE_LEADING_MSG

Share
10 |10000 characters needed characters left characters exceeded