01-04-2019 8:27 AM
Hi All,
In custom table I have maintained fixed values at domain level and displaying this field as drop down.
I am displaying custom table data in table control of module pool program.
For this field when I click on drop down in my table control it is showing me duplicate entries. Here it is showing "Database" value as duplicate entries. I di not find duplicate entries in my internal table of table control. But in the output it is showing as below.
Please help me if anyone has faced this issue. Thanks in advance.
HT
01-04-2019 8:40 AM
How are you populating the drop down ? Are you using the function modules in function group SVSM ?. These drop down lists also generally have an empty value at the bottom of them - are you setting the value of the field as a default ? If you are, what happens if you leave it blank ?
Rich
01-04-2019 9:30 AM
Hi Richard,
I have selected screen field attribute as Listbox. I am not calling any function module for drop down values. I have not set any default value. If I am in display/change mode of table control, it is giving me duplicate entry. If I am adding a new row in table control, it is not giving any duplicates and the last entry is showing as blank. This is a mandatory field in table control and user will update the data in custom table.
Thanks,
HT
01-04-2019 6:19 PM
Please use Comment button to reply to an answer. If you post another answer then then person you're replying to will not get notified. Also this confuses others as it's not actually an answer to the question.
01-04-2019 7:50 PM
You have a SAP GUI option to display the value corresponding to each entry in the dropdown listbox. That would help to see those values.
Please show domain values too (screenshot of se11).
01-07-2019 12:52 AM
I dont think it is duplicate entries, generally its selected entry. The question is, how did you do to add value to dropdown list.
01-07-2019 1:39 PM
01-07-2019 2:12 PM
HI Richard,
Below are the fixed values at domain level. and I have selected that screen field attribute as Listbox.
Thanks,
HT
01-08-2019 12:50 AM
sorry cause im missed 'fix value in domain' part. your dropdownlist look totally normal with me, I dont understand why you said it have duplicate entries. what you see in the box is the selected value (which here you load from custom table so i suppose it should already have value). When you click the arrow, it will show you all posible values including the selected value (you can see that selected value highlighted). when you insert new line in table control, there is no default value then it blank.
01-07-2019 7:44 AM
Those could be text duplicates but with different keys, did you check domain definition?