2013 Jul 16 3:20 PM
Hello All,
In search help value hit list, I want to display few values but it should not be selectable whereas few values should be selectable.
for example a parameter which is showing input help values from domain fixed values, I want to allow only few values to be selected but the others should be available on list & when selected it should accept those.
Thanks,
Sharath
2013 Jul 16 3:28 PM
hello,
Not sure if that is achievable but you can try this. Once you provide the values in the search help the user can select the value. After he selects you could validate the value and for the values you want to grey out you could provide a messag that this value cannot be selected. I know if will be more coding but will work.
best regards,
swanand
2013 Jul 16 4:33 PM
Well Sharath,
You will need to do it using FM F4IF_INT_TABLE_VALUE_REQUEST
sample code : http://saptechnical.com/Tips/ABAP/F4/customfields.htm
and on receiving the value if it is not from your desired list don't update.
Regards
2013 Jul 16 5:27 PM
If the values that are not to be selected is known beforehand, then you can do it this way.
Declare a range table.
In the initialization or at selection screen output event, append all these values in the range table.
After selection, in the start of selection, (can also try in the at selection screen event for field), check if the values selected is in the range. If yes, give the error message and exit.