‎2009 Sep 14 9:17 PM
Hi,
I need to read the contents of a select-options from a dynpro before executing the report or even pressing enter.
The thing is that I need to capture those values in order to show a matchcode based on previous data.
I've used in the past: DYNP_VALUES_READ, but this function works with parameters
Please help!
thanks in advance!!!
FifoChávez
‎2009 Sep 14 10:50 PM
Yup, that one will not work. Use FM RS_REFRESH_FROM_SELECTOPTIONS instead.
Regards
Marcin
‎2009 Sep 14 10:50 PM
Yup, that one will not work. Use FM RS_REFRESH_FROM_SELECTOPTIONS instead.
Regards
Marcin
‎2009 Sep 14 10:56 PM
Hi that one only works if I press enter or execute. I need another one where I don't need any of those events.
thanks!
‎2009 Sep 14 11:02 PM
Hmm, without pressing enter, none of the events are triggered, meaning no code execution can take place. You have to press it, otherwise, no chance to capture that.
‎2009 Sep 14 11:03 PM
Hi, Valdivia,
You can call FM in any of the Event as I understand you want to call this in AT SELECTION SCREEN ON VALUE REQUEST select-option-name mean when will you press F4 for Search Help
Sorry, if i didn't get you
Faisal
‎2009 Sep 14 11:08 PM
Hi Fiorella,
I'm afraid there is no obvious solution. If you do not ENTER or press any f-key you will not raise any event. Without event the screen data are not transported to the program fields. The only way I know is to link a user-command to a flag or radio button field.
What is your task that you want to know the screen data before the user wants the program to do something?
You could have a key pressed automatically after a certain time period. Search for AUTOREFRESH for the way how to do.
Regards,
Clemens
‎2010 Feb 11 8:19 PM
‎2011 Oct 17 2:05 PM
You can do it in this way:
There are three possible ways to provide inputs to SELECT-OPTIONS
1. Enter single value at lower limit
2. Enter single value at lower limit and one at upper limit (range)
3. Enter multiple value for lower limit
To cover all the above scenarios -->
Solution:
Don't worry about third option, as soon as user clicks on EXTEN button to enter single values, select options will get populated automatically. You really need not to read it via FM.
Pass S_DATE-LOW to READ_DYNP and also pass S_DATE-HIGH to READ_DYNP. Based on result what you get from the function module. You can utilize the values.
Thanks,
Naveen Inuganti