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

key event

Former Member
0 Likes
1,025

Hi!

Is it possible to handle a key event within a FUNCTION block ?

FUNCTION xxxxxx

....

........

ENDFUNCTION.

Regards

ertas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,005

hi,

MODULE status_0100 OUTPUT.

SET PF-STATUS 'SAVE'.

SET TITLEBAR 'ZSHIFT'.

IF p_comment NE 'LE'.

LOOP AT SCREEN.

IF screen-name = 'R_FROM_TIME'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

IF screen-name = 'R_TO_TIME'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

END MODULE.

you can write it like this...

7 REPLIES 7
Read only

Former Member
0 Likes
1,005

sorry didnt get your question..

what is key event? what kind if event do u want to use?

Read only

0 Likes
1,005

e.g. do someting if user hits the button F10 or

F3 etc...

Regards

ertas

Read only

0 Likes
1,005

ok it means this is a module pool programming. and ya u can use the events.

Read only

Former Member
0 Likes
1,005

Hi

If it is module pool you can write in module... endmodule

but you cant write it in report programming

regards

padma

Read only

0 Likes
1,005

excuse me what can I write within

module... endmodule

Read only

Former Member
0 Likes
1,006

hi,

MODULE status_0100 OUTPUT.

SET PF-STATUS 'SAVE'.

SET TITLEBAR 'ZSHIFT'.

IF p_comment NE 'LE'.

LOOP AT SCREEN.

IF screen-name = 'R_FROM_TIME'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

IF screen-name = 'R_TO_TIME'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

END MODULE.

you can write it like this...

Read only

Former Member
0 Likes
1,005

hi,

i guess your problem is not yet solved.

Let us know.