Skip to Content
0
Former Member
Apr 20, 2009 at 02:32 PM

Problem with focus after raising an error message

272 Views

Hello experts,

we have a problem with one of our WD applications.

In one view, there is an input field which is focused via method WDDOINIT:

lr_inp_field type ref to cl_wd_input_field.
lr_inp_field ?= view->get_element( 'MATNR' ).
lr_inp_field->focus( ).

It works so far, but if we show a message, because there is an error in backgroud processing, the message is shown, but the meant input field loose the focus. I tried to ste it in WDDOINIT and ind WDDOMODIFYVIEW, but the focus is always on the shown error message (we raise this message via if_wd_message_manager).

Is there any possibility to show the message and get focus on the input field?

Thanks