Skip to Content
0
Sep 29, 2020 at 03:48 AM

MESSAGE MESSAGE_HANDLER is already registe

271 Views Last edit Sep 29, 2020 at 03:49 AM 2 rev

Hi Expert,

When run the "CREATE OBJECT gx_msg_hndler" message MESSAGE_HANDLER is already registe,how to

deal with the error?

DATA:

gx_cancpick TYPE REF TO /scwm/cl_cancpick_sp,

gx_attr_hndler TYPE REF TO /scmb/cl_attribute_handler,
gx_msg_hndler TYPE REF TO /scmb/cl_message_handler.

CREATE OBJECT gx_attr_hndler.
CREATE OBJECT gx_msg_hndler.

CREATE OBJECT gx_cancpick
EXPORTING
io_attribute_handler = gx_attr_hndler
io_message_handler = gx_msg_hndler.