cancel
Showing results for 
Search instead for 
Did you mean: 

Error" The entered value is not on the list of valid values " in webdynpro

mahesh_jagnani
Participant
0 Kudos

Hi Experts,

I have a DropDownbyKey UI element in the view. The context element bind to it is of ztable-filed. the data element is of char20. No Domain exists for that field. Now i am getting the values of a field from a table and through value set i am binding the entries to the dropdownbykey. The entries are bound and visible when we click on the dropdown arrow. As soon as selecting an entry from the list, error message appears as " The entered value is not on the list of valid values ".

Please help.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Mahesh,

We have upgraded to EHP4 recently and are facing a similar issue in our BI system with one of the custom applications throwing the same error, could you please help how was this resolved?

Regards

Former Member
0 Kudos

kamleshdubey,

I had same issue like your's , and have changed the data type to string from CHAR4 and it worked.

The issue I had was I was having field on portal to capture year and it was char4, after EHP4 I had the issue.

and changed it to String it is working now fine...

Regards,

Chandra.

mahesh_jagnani
Participant
0 Kudos

Hi All,

Sorry for the delayed reply.

Thanks for your help.

Former Member
0 Kudos

Hello Mahesh,

This error might come, if your list data changes at runtime.

Can you please tell me more about the issue, like what kind of action happens?

Regards,

Tejaswini.

mahesh_jagnani
Participant
0 Kudos

Hi,

No action is happening . Just in the message area i am getting the error.This i am doing for year field.My Drop down list has 40 years(from 2010 to 1970) . the table field may contain 1999. but if i again select that value also from drop down list, it show me error.

Please see it.

Former Member
0 Kudos

Hi,

What are the key values for the same, for all years?

What type for field is it? and give more details on the value list.

Regardss,

Tejaswini.

mahesh_jagnani
Participant
0 Kudos

Hi,

Please see

data l_year(4) type C.

l_year = sy-datum+0(4).

DATA lwa_region TYPE WDY_KEY_VALUE.

DATA lt_regions TYPE wdy_key_value_table.

do 8 times.

lwa_region-key = lwa_region-key + 1.

lwa_region-value = l_year.

APPEND lwa_region to lt_beyear.

l_year = l_year - 1.

enddo.

lr_nodeinfo_flightinfo = lo_nd_t_emp_ess->get_node_info( ).

lr_nodeinfo_flightinfo->set_attribute_value_set(

name = `BEYEAR`

value_set = lt_BEYEAR ).

The table which is displaying on the view has the field length char4.

Please see.

Former Member
0 Kudos

Hi again,

Yes got the error.

Its happening because of the type of the fields.

See, Consider 3 values,

1, 2000

2, 2001

3, 2002

On table, you will see 2001....but in key its 2..that is...its of type integer, right?

and your attribute of that field is of type char4, which does'nt match..Correct?

Now if you select 2001...it is 2 in key....but for field its 0002, So this is the issue!

Hope this resolves your query!

Regards,

Tejaswini.

Former Member
0 Kudos

Hello,

What type of table is lt_beyear ?

DATA lt_regions TYPE wdy_key_value_table.

Since i can see only lt_region in the code of type key value table type.

Please check that.

Regards,

Tejaswini.

Edited by: Tejaswini Chafekar on Sep 30, 2010 3:00 PM

mahesh_jagnani
Participant
0 Kudos

Hi,

Thanks for your effort but still it is not solved.

DATA lt_beyear TYPE wdy_key_value_table.

key is also type of string and value is also type of string.

Thanks

Former Member
0 Kudos

Hello,

It works for me. I really don't understand why its behaving like this for you.

Is there any chance of your node getting cleared anywhere. please check that too.

Hope the issue gets resolve soon!

Regards,

Tejaswini.