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

Latest Value - Select Option - At Selection Value help

Former Member
0 Likes
792

Hi,

I need the current values entered in the Select Option of the Selection Screen while generating the Value Help.

There are two selection option fields in the Selection Screen, Selopt1 and Selopt2, to generate the Value help of Selopt2 i need the latest values of the Selopt1, the function module dynp_read_values does not return all the values of the selectop option Selopt1 it returns only the first row of selopt1-high and selopt1-low, the function module RS_REFRESH_FROM_SELECTOPTIONS does not return the current values entered in the selection screen, is there any way to retrive the latest values of the select option in the event At Selection Screen on Value Request.

regards

Santosh

Hi,

I need the current values entered in the Select Option of the Selection Screen while generating the Value Help.

There are two selection option fields in the Selection Screen, Selopt1 and Selopt2, to generate the Value help of Selopt2 i need the latest values of the Selopt1, the function module dynp_read_values does not return all the values of the selectop option Selopt1 it returns only the first row of selopt1-high and selopt1-low, the function module RS_REFRESH_FROM_SELECTOPTIONS does not return the current values entered in the selection screen, is there any way to retrive the latest values of the select option in the event At Selection Screen on Value Request.

regards

Santosh

4 REPLIES 4
Read only

Former Member
0 Likes
684

Hi

You can try in the following way.

Just give the command user-command ucomm in the radio button.

It will automatically refresh each time when you select the radio button.

Ex:

parameter : p_opt1 radiobutton group grp1 default 'X'

user-command ucomm,

p_opt2 radiobutton group grp1.

Now you can test in At Selection screen.

at selection-screen.

if p_opt2 eq 'X'.

.....

endif.

Reward points, if it is helpful.

Regards

Raja.

Read only

0 Likes
684

Raja,

this is not a radio button but select option ..

regards

Santosh

Read only

Former Member
0 Likes
684

Hi Santosh,

When you go for f4 help on selopt2, you can use following code to get the current value of selopt1,

AT SELECTION-SCREEN ON VALUE-REQUEST

FOR selopt2-high.

select * from bkpf into table it_bkpf where

BKTXT in selopt1[].

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'BKTXT'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'Invoice Id'

value_org = 'S'

TABLES

value_tab = it_bkpf .

IF sy-subrc <> 0.

" do nothing.

ENDIF.

In selection screen, you can directly fetch the value of selection options or parameters by selopt1 or selopt2 (in your case by using AT Selection Screen for value request).

Reply for further doubts,

Please reward if useful.

Thanks and regards,

Ashlesha Desai

Edited by: ashlesha desai on May 26, 2008 6:06 AM

Read only

0 Likes
684

Ashlesha,

The selopt1 will not have the latest value .. if the user changes the value in selopt1 the at selection screen on value help for the selopt2 the selopt1 will still have the old value..

regards

Santosh