Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

read select-options before enter or execute

Former Member
0 Likes
1,306

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

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
1,172

Yup, that one will not work. Use FM RS_REFRESH_FROM_SELECTOPTIONS instead.

Regards

Marcin

7 REPLIES 7
Read only

MarcinPciak
Active Contributor
0 Likes
1,173

Yup, that one will not work. Use FM RS_REFRESH_FROM_SELECTOPTIONS instead.

Regards

Marcin

Read only

0 Likes
1,172

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!

Read only

0 Likes
1,172

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.

Read only

0 Likes
1,172

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

Read only

0 Likes
1,172

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

Read only

Former Member
0 Likes
1,172

haven't find the way to do this.

Read only

0 Likes
1,172

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