cancel
Showing results for 
Search instead for 
Did you mean: 

Set the input cursor i.e. "set cursor" in ABAP

jrgkraus
Active Contributor
0 Kudos

In ABAP Dynpro, I have the possibility to set the cursor to a specified input field using the "set cursor" command.

In ABAP Web Dynpro it seems that I always have to place the cursor first using the mouse. Is there an equivalent to "set cursor" in ABAP Web Dynpro?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

you can use the following method REQUEST_FOCUS_ON_VIEW_ELEM of IF_WD_VIEW.


data: lv_v_elem type ref to if_wd_view_element.
lv_v_elem = view->get_element( 'INP_PAR_LIFNR' ).

if lv_v_elem is bound.
view->request_focus_on_view_elem( lv_v_elem ).
endif.

Answers (0)