2006 Feb 08 12:48 PM
I have parameter box and when i enter a value and press F4 it should trigger and get the corresponding value in the next parameter box (without enter or pressing any bUtton) The only button whihc is pressed is f4 ? ANy ideas how to trigger this?
I have parameter box and when i enter a value and press F4 it should trigger and get the corresponding value in the next parameter box (without enter or pressing any bUtton) The only button whihc is pressed is f4 ? ANy ideas how to trigger this?
2006 Feb 08 12:51 PM
for that we need to use
fn module,
DYNPRO_VALUES_READ before just calling F4IF_INT_TABLE_VALUE_DISPLAY, which reads screen values. no neED TO PRESS ENTER.
2006 Feb 08 12:54 PM
parameters: a(10) ,
b(10).
at selection-screen on value-request for a .
here move the value to field b .
Regards
Raja
2006 Feb 08 12:56 PM
Check this program...i am assuming you are talking about a Z report program...
REPORT yytest88 LINE-COUNT 20 NO STANDARD PAGE HEADING.
parameters : p_param1(5),
p_param2(5).
data : itab like DYNPREAD occurs 0 with header line.
at selection-screen on value-request for p_param1.
p_param2 = 'my value'.
itab-fieldname = 'P_PARAM2'.
itab-fieldvalue = p_param2.
append itab.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'YYTEST88'
dynumb = '1000'
tables
dynpfields = itab
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
UNDEFIND_ERROR = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
Start-of-selection.
write 😕 p_param1, p_param2.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |