on 01-08-2015 8:28 PM
Hello,
By using GUIBB of FPM_SEARCH_UIBB I have created a SEARCH webdyn pro app and it has 5 fields in search criteria, SY-UNAME (current user name) is the 1st field in search criteria, its greyed out,well, now I want to DEFAULT currently logged in user ID on the 1st field, pls. let us know how we can achieve my requirement of defaulting some thing before view / screen is launched?
Hi,
Have you tried to set default value in wddoinit( ) ?
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To set default values to the search criteria using fpm_search_uibb.
Use the below code in your GET_DATA method of feeder class :
METHOD if_fpm_guibb_search~get_data.
FIELD-SYMBOLS:
<fs_search_criteria> LIKE LINE OF ct_fpm_search_criteria.
CASE io_event->mv_event_id.
WHEN cl_fpm_event=>gc_event_start.
"===============================
" Set default values
"===============================
READ TABLE ct_fpm_search_criteria ASSIGNING <fs_search_criteria>
WITH KEY search_attribute = 'ERNAM'. " field name
IF sy-subrc IS INITIAL AND <fs_search_criteria> IS ASSIGNED.
<fs_search_criteria>-low = sy-uname.
ENDIF.
" Inform the framework the search criteria is changed
ev_search_criteria_changed = abap_true.
WHEN if_fpm_guibb_search=>fpm_execute_search.
et_result_list = mt_policy_hd.
ENDCASE.
ENDMETHOD.
Regards,
Rama
Any help pls.?
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.