Show TOC

/IWBEP/CX_MGW_BUSI_EXCEPTIONLocate this document in the navigation structure

The business exception CX_MGW_BUSI_EXCEPTION is provided by the OData Channel framework for exception handling.

The message text of the OData error response is the exception text in case of direct usage or the leading message of the message container in case of message container usage.

Instantiation

Message container usage:

RAISE EXCEPTION TYPE /iwbep/cx_mgw_busi_exception
      EXPORTING
          message_container = io_message_container.  

Direct usage:

RAISE EXCEPTION TYPE /iwbep/cx_mgw_busi_exception
               EXPORTING
                    textid                    = /iwbep/cx_mgw_busi_exception=>business_error_unlimited
                   message_unlimited = 'Your message text'.
 
Attributes

Attribute

Data Type

Entity Type

Description

ENTITY_TYPE

STRING

RESOURCE_NOT_FOUND

Entity type causing/affected by the error

MESSAGE

BAPI_MSG

BUSINESS_ERROR

Message text

MESSAGE_UNLIMITED

STRING

BUSINESS_ERROR_UNLIMITED

Message text

HTTP_STATUS_CODE

/IWBEP/MGW_HTTP_STATUS_CODE

 

HTTP status code. For supported values see the constants in CS_HTTP_STATUS_CODES of exception class /IWBEP/CX_MGW_BUSI_EXCEPTION.

HTTP_HEADER_PARAMETERS

/IWBEP/T_MGW_NAME_VALUE_PAIR

 

HTTP header parameters