getch() in ABAP

Question:
Hi everybody
I need to catch a user when hi is pressing any key i.e. something like
getch() in C. is it possible at all? thanks.
Answer:
The ABAP program does not get control until PAI occurs. However, in ABAP Objects (using OO controls), your ABAP program has better control even before PAI occurs. I have seen some ABAP programs using ALE controls doing some processing when a Tab key is pressed or the cell loses focus.
_________________
Sudhi Karkada
Answer:
Dear Vlad:
ABAP does not have a stdin like UNIX or NT. As Skarkada pointed out, it is screen-based, similar to mainframe concepts. Once you get the screen data, you can manipulated it in any way you want, but it requires an Enter or similar event. So the direct answer is 'No'.
However, you may not need to do anything requiring a getch(). The most likely application would be a password entry or something else you don't want to show. The best approach there is to use the password properties of the field to show asterisks as the field is filled.
Regards,
Wolfgang
Answer:
Hi,
Unless GUI ActvieX or Javabean control supports it and triggers event back, you have no choice. You may write your own control!
_________________
thanks,
Venu

More Articles:

Condition stored in a variable?
grid events?
select from HRP1000?
LSMW---- Vendor Invoice !!! Urgent !!!!?
sum( field2 ) from dtab for all entrie in itab.?
Hotspots on cell level?