on 08-02-2016 8:23 AM
Hi ,
In order set the focus on the particular field,may be the problem may be first_time = 'abap_true'.
Once keep the session break point check it you may come to know.because same way i am using its working fine for me.
check where you are writing the code whether in the popup view or another view, these simple mistakes we used to do.
DATA: lr_elem TYPE REF TO if_wd_view_element.
lr_elem = view->get_element( wd_this->field ).
if lr_elem is BOUND.
view->request_focus_on_view_elem( lr_elem ).
endif.
Thanks & Regards
@Surendra@
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Surendra
Sorry but the first part of your response i don´t understand? Why do you think it is a problem with If first_time = abap_true ? I only need the focus to be set on the intial call of the Popup?
Secondly - the code is in the method WDDOMODIFYVIEW of the popup view which is bound to a window
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.