01-28-2008 1:12 PM
Hi anybody,
I am developing Screen dialog program.
I want to know how to use enterkey event in Screen Dialog program.
Ex: I enter order number in Textbox I Press Enter Key button it will be show Total Confirmed Qty and Received Qty. in another text box.
How i do?, if anybody know please tell me?
Thanks
S.Muthu
01-28-2008 1:20 PM
Hi,
' ' (space) is the default function code for ENTER KEY.
catch it in PAI like:
case sy-ucomm.
when ' ' .
<your logic>
endcase.
Pls reward points if useful.
Regards,
Renjith Michael.
01-28-2008 1:29 PM
Hi Renjith,
I am using screen dialog more than one Textbox control. For Example I press One Textbox control
it will show Confirmed Qty. and Press another Texbox control it will show workcenter.
But I Put blank always working first text box control.
How do I apply seperate textbox enter key event?
please tell me.
Thanks
S.Muthu
01-28-2008 1:36 PM
Hi,
For that you can do If comparisons inside the when.
like:
case sy-ucomm.
when ' ' .
if text1 eq something
do something.
endif...
like that.
Regards,
Renjith Michael.
01-28-2008 1:47 PM
You may also check like:
if text1 is not initial.
<logic>
endif.
like that
01-28-2008 1:48 PM
Hi Ranjth,
Thanks a lot .. I changed follow ur's way its working now.
ths
s.muthu