You will have to create a drop-down list dynamically. If I understand your question properly then, in my opinion, your code will have to generate the HTML code for the drop-down at run-time.
I would recommend that you load the contents of the main SAP table you are working with into an internal table (or a similar work area). Do all you restricted selection during this loading loop.
Then write code which creates the drop-down list at runtime using the contents of that internal table.
Add a comment