cancel
Showing results for 
Search instead for 
Did you mean: 

FPM List GUIBB: Dorpdown list-box doesn't work properly with 'FIXED_VALUES'

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member215610
Active Participant

Hi Kelly,

make EV_DATA_CHANGED = abap_true in get_data method and check.

Regards,

Ragavendra

0 Kudos

Hi Ragavendra,

Thanks for your reply.

Yes I've set  EV_DATA_CHANGED = ABAP_TRUE as well. But system still prompt the same error message.

Regards,

Kelly

former_member215610
Active Participant
0 Kudos

Hi Kelly,

The value you are filling into to the Fixed value is wrong.

Check the domain value or push data which has same data type.

Regards,

Ragavendra

0 Kudos

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

former_member215610
Active Participant
0 Kudos

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

Answers (1)

Answers (1)

0 Kudos

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

Former Member
0 Kudos

Hi Kelly,

Could you please let me know, how did u solve it. Am using the dynamic Drop down in FPM Tree UIBB. When I click on the drop down its not triggering any event, so how do I pass values in CT_FIELD_USAGE-FIXED_VALUES in GET_DATA method.

0 Kudos

Hi Begum,

Can you let me see the code in method 'GET_DEFINITION' and 'GET_DATA' for field which use fix value?

former_member197475
Active Contributor
0 Kudos

Hi Fayaz,

Check the below points.

1. Set the field display type as 'Drop Down' in Comp Config.

2. Set EV_DATA_CHANGED to X.

3. Also check that you are appending the values to FIXED_VALUES.

Hope it helps you.

BR,

RAM.