2008 May 25 4:09 PM
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 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
2008 May 26 4:34 AM
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.
2008 May 26 4:53 PM
Raja,
this is not a radio button but select option ..
regards
Santosh
2008 May 26 5:02 AM
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
2008 May 26 4:58 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |