cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HCM P&F FPM - Search Help for Drop down list box

former_member206394
Active Participant
0 Kudos
730

Dear Experts,

Greetings!

I have created an FPM based HCM form.  Taking reference of theblog, i have created two fields (as part of my requirement) where i have to populate the City field based on State field.

For State field, i have written a method which populates the search help.  When i select an entry, it immediately triggers an error though the selected entry is from the dropdown list only.

when i select any entry from the dropdown, the following screen appears with error 'The entered value is not on the list of valid values'

thus ending up with an error and the F4 search for next field (based on entry in this field) is not possible.

Please help.

Regards,

Shankar.

View Entire Topic
bruno_correia
Explorer

Hi Shankar,

I have had this exact issue in the past and the problem is that the data element for your drop down list field defined in GET_FIELD_INFO does not match what you have defined in the GET_HELP_VALUES method.

Please check these and make sure the data you are populating into the drop down list is compatible with your field definition.

Thanks, Bruno

former_member206394
Active Participant
0 Kudos

Dear Bruno,

Greetings!

Thats really helpful.  Earlier, i didnt code GET_FIELD_INFO method (just implemented and left blank).  Now, i have declared my field values in the same way as it is in GET_HELP_VALUES method and the issue is solved.

Now, my user event is triggered and the dependent field is cleared.  Both Drop down list and Input Field with search help are behaving in the same way.

Thanks a ton for your solution.

Regards,

Shankar.

ChrisSolomon
Active Contributor
0 Kudos

Good catch! Yep...help values are REAL picky about how you define the matching column data elements in your help dataset. This one got me MANY times in my early HCM P&F days! Since then, I wrote a really nice class to "build" my help lists that makes sure they are all in-sync.