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

triggering without enter button on F4

Former Member
0 Likes
698

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?

3 REPLIES 3
Read only

hymavathi_oruganti
Active Contributor
0 Likes
658

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.

Read only

0 Likes
658

parameters: a(10) ,

b(10).

at selection-screen on value-request for a .

here move the value to field b .

Regards

Raja

Read only

Former Member
0 Likes
658

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.