on 05-14-2014 8:37 AM
Dear colleagues,
Here I have an issue with FPM dropdown list-box on list GUIBB. Below is the description for this issue:
The values in the dropdown list-box is dynamic, I insert the dropdown value into field FIXED_VALUES of interface parameter CT_FIELD_USAGE in method IF_FPM_GUIBB_LIST~GET_DATA, interface parameter EV_FIELD_USAGE_CHANGED is marked as 'X'.
After I select a value from the dropdown list-box on the IE webpage, the field with dropdown list-box turns to blanked again and system prompt error message 'The Entered Value is Not on the List of Valid Values', and it doesn't go to debug. You can refer to the attached pic.
I code the same way for dropdown list-box on FPM Form GUIBB, and it works fine. Is there anything wrong from my side? Can anybody help on this?
Thanks for the help.
BR,
Kelly
Hi Kelly,
make EV_DATA_CHANGED = abap_true in get_data method and check.
Regards,
Ragavendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ragavendra,
The Fixed Value type is defined exactly the same with interface parameter ET_FIELD_USAGE-FIXED_VALUES. I move the value to a string variable, then move the value of the string varible into the fixed value table. Still doesn't work.
Below is the coding:
DATA lv_str TYPE string.
DATA ls_fix_value TYPE wdr_context_attr_value.
DATA lt_fix_value TYPE wdr_context_attr_value_list.
CLEAR ls_fix_value.
CLEAR lv_string.
MOVE ls_sg-characteristic TO lv_string.
MOVE lv_str TO ls_fix_value-value.
CLEAR lv_string.
MOVE ls_dim-scrtext_s TO lv_string.
MOVE lv_str TO ls_fix_value-text.
APPEND ls_fix_value to lt_fix_value.
ct_field_usage-fixed_values = lt_fix_value.
Regards,
Kelly
Hi Kelly,
refer below code.
DATA: lt_data TYPE TABLE OF sflight,
ls_fild TYPE fpmgb_s_listfield_descr,
ls_val TYPE wdr_context_attr_value,
lt_val TYPE TABLE OF wdr_context_attr_value.
eo_field_catalog ?= cl_abap_tabledescr=>describe_by_data( p_data = lt_data ).
ls_val-text = 'AA'.
ls_val-value = 'AA'.
APPEND ls_val TO lt_val.
ls_fild-name = 'CARRID'.
ls_fild-fixed_values = lt_val.
ls_fild-is_nullable = abap_true.
APPEND ls_fild TO et_field_description.
Here i am pushing value 'AA' because CARRID domain has value table and i can push only data which is present in value table.
So first check the domain fixed value or value table content of field which your are making it as dropdown.
Regards,
Ragavendra
Hi Ragavendra,
Problem solved.
I checked again, the data type for the dropdown field defined in webdynpro GUIBB and DB table is incompatible.
Since the dropdown list value is dynamic, there is no fix value for the domain, only need to insert fixed values to ET_FIELD_USAGE-FIXED_VALUES and set corresponding flags as 'X' in method GET_DATA during runtime. It works fine now.
Thanks a lot for your patience and help!
Regards,
Kelly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.