cancel
Showing results for 
Search instead for 
Did you mean: 

Select options in web dynpro ABAP (Event on_check)

Former Member
0 Kudos

Hi,

how can I raise a message in the event-handler method on check for a specifc field out of the Select-Option.

Best regards,

Marcus

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks, but this I already knows.

I want to set the error message with focus on the parameter field.

Former Member
0 Kudos

Hi,

Refer to these examples

WDR_TEST_MESSAGE_AREA,WDR_MESSAGE_AREA

Former Member
0 Kudos

Hello,

Create a new method and call it when you want to show the message.


METHOD message_handling .
  DATA:
    lr_current_controller TYPE REF TO if_wd_controller,
    lr_message_manager    TYPE REF TO if_wd_message_manager.
 
  lr_current_controller ?= wd_this->wd_get_api( ).
  lr_message_manager = lr_current_controller->get_message_manager( ).
 
  lr_message_manager->report_t100_message(
    msgid = iv_msgid
    msgno = iv_msgno
    msgty = iv_msgty
    p1    = iv_p1
    p2    = iv_p2
    p3    = iv_p3
    p4    = iv_p4 ).
ENDMETHOD.

In this method, the program show a message that is declared in a mesasge class. If you look at IF_WD_MESSAGE_MANAGER there are other methods to show a message.

And you can find more information at this blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8402. [original link is broken] [original link is broken] [original link is broken]

Regards,