I have a requirement in which i am having a dropdown which shows entries with values from a table. Then when i select any entry and save it should be saved in the database table. <b>Then i should be able to see the saved value in the dropdown field every time i execute the program again, though i should be able to change it by again selecting any other value.</b>
I do not know how to show the saved value in dropdown.
I am using iterator to display dropdown with following code:
DATA: I_PHAS1_REF TYPE REF TO DATA.
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
DATA : l_event TYPE REF TO CL_HTMLB_EVENT.
GET REFERENCE OF me->it_category INTO I_PHAS1_REF.
p_replacement_bee = CL_HTMLB_DROPDOWNLISTBOX=>FACTORY( ID = P_CELL_ID
TABLE = I_PHAS1_REF
NAMEOFKEYCOLUMN = 'CATEGORY'
NAMEOFVALUECOLUMN = 'CATEGORY').</i>
Here it_category is the internal table.
Any pointers will be of great help. Plz post the code if possible.