cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with implicit Message Component in WD for ABAP

sascha_kiefer
Explorer
0 Kudos

Hi,

I do some input checks in the method WDDOBEFOREACTION in my view controller. If there is sth. wrong, I use

DATA: 
  l_current_controller TYPE REF TO if_wd_controller,
  l_message_manager    TYPE REF TO if_wd_message_manager.

  l_current_controller ?= wd_this->wd_get_api( ).

  CALL METHOD l_current_controller->get_message_manager
    RECEIVING
      message_manager = l_message_manager.

  l_message_manager->report_error_message...

To add a message to the message manager. The message is displayed. If I add more than one message, then one is displayed and pushing the button "Show List" has no effect

When I put the same coding on the Action Handler Method for my button, then pushing "Show List", shows the message list.

I thought WDDOBEFOREACTION is the correct method to do input check, so why does the message framework does not work correctly? Or ist this a bug?

Thanks a lot,

Sascha

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_szcs
Active Contributor
0 Kudos

Hi Sascha,

Very likely, the action you defined is a validating one. Validating actions are not called if there was an error. Since the action is called after wdBeforeAction an error message will prevent the execution of a validating one. You can overcome this by using a none-validating action.

Best regards,

Thomas