‎2007 Mar 07 5:17 PM
Hi all. How are you?
I would like to find someway to load a select-option using as parameter the value selected by the user in another select option.
For example:
There are 2 companies. The company A sells the books 1, 2 and 3. The company B sells the books 4, 5 and 6. When the user to select the Company B in the first selection-option, only the values 4, 5 and 6 shall be loaded in the second select-options.
Does somebody have a hint or a example about how to make this?
Thanks in advance.
Tiago.
‎2007 Mar 07 5:47 PM
You have to do this in AT SELECTION-SCREEN ON VALUE-REQUEST FOR <param> event. In there you read the current value of the other select-option or parameter using the function module DYNP_VALUES_READ. Once you get the current value of that parameter, you can then select the corresponding entries for select option 2 and show them using 'F4IF_INT_TABLE_VALUE_REQUEST'.
‎2007 Mar 07 5:47 PM
You have to do this in AT SELECTION-SCREEN ON VALUE-REQUEST FOR <param> event. In there you read the current value of the other select-option or parameter using the function module DYNP_VALUES_READ. Once you get the current value of that parameter, you can then select the corresponding entries for select option 2 and show them using 'F4IF_INT_TABLE_VALUE_REQUEST'.
‎2007 Mar 07 6:40 PM
Hi Srinivas.
I've been found lots of sample codes in this forum from keywords you provided.
Thus I succeed in solving this issue.
Thank you very much.
Tiago.