‎2008 Jul 01 11:42 AM
Hi!
Is it possible to handle a key event within a FUNCTION block ?
FUNCTION xxxxxx
....
........
ENDFUNCTION.
Regards
ertas
‎2008 Jul 01 1:12 PM
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...
‎2008 Jul 01 12:09 PM
sorry didnt get your question..
what is key event? what kind if event do u want to use?
‎2008 Jul 01 12:10 PM
e.g. do someting if user hits the button F10 or
F3 etc...
Regards
ertas
‎2008 Jul 01 12:15 PM
ok it means this is a module pool programming. and ya u can use the events.
‎2008 Jul 01 12:19 PM
Hi
If it is module pool you can write in module... endmodule
but you cant write it in report programming
regards
padma
‎2008 Jul 01 12:23 PM
‎2008 Jul 01 1:12 PM
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...
‎2008 Jul 02 12:09 PM