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 Screen values in Select options

Former Member
0 Likes
654

Hi Experts,

I am using FM 'DYNP_VALUES_READ' for reading the Screen values. The problem is, this FM runs fine for parameters where single value is returned but in case of Select-options where i have ranges, How to use this FM?

Help will be appreciated

Regards

Sourabh

5 REPLIES 5
Read only

Former Member
0 Likes
612

What r u trying to achieve by doing this??

Read only

Former Member
0 Likes
612

try using this FM.

RS_REFRESH_FROM_SELECTOPTIONS

Reward if useful.

Regards,

Sujatha.

Read only

andreas_mann3
Active Contributor
0 Likes
612

use event AT selection-screen and read your SO

A.

Read only

0 Likes
612

Hi ,

Thanks for your valuable inputs.

I have acheived my requirements with FM 'DYNP_VALUES_READ' itself.

Here is how i have acheived this. I have passed both LOW and HIGH in the internal table it_fieldvalues.As a result i got both the values of the ranges.

REFRESH it_fieldvalues.

it_fieldvalues-fieldname = 'S_AEDAT-LOW'.

APPEND it_fieldvalues.

CLEAR it_fieldvalues.

it_fieldvalues-fieldname = 'S_AEDAT-HIGH'.

APPEND it_fieldvalues.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = sy-repid

dynumb = sy-dynnr

TRANSLATE_TO_UPPER = 'X'

  • REQUEST = ' '

  • PERFORM_CONVERSION_EXITS = ' '

  • PERFORM_INPUT_CONVERSION = ' '

  • DETERMINE_LOOP_INDEX = ' '

TABLES

dynpfields = it_fieldvalues

EXCEPTIONS

invalid_abapworkarea = 1

invalid_dynprofield = 2

invalid_dynproname = 3

invalid_dynpronummer = 4

invalid_request = 5

no_fielddescription = 6

invalid_parameter = 7

undefind_error = 8

double_conversion = 9

stepl_not_found = 10

OTHERS = 11

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Regards

Sourabh

Read only

Former Member
0 Likes
612

Answered myself