I am looking to make a selection screen in which I have to take an input of the table name and then based of which table is selected I have to ask for some parameters.
I tried to use POPUP_TO_GET_VALUE / POPUP_GET_VALUES but it does not help because I need to use select option instead of just value.
For dynamic select options you can use free selections. Wrote a little sample program to demonstrate the usage. You can check the FM's documentation and FM's parameters for more customized behavior.
The user selection can be found in
lt_trange.