2008 Jul 30 6:27 PM
Hi All,
I have a screen where user can change contents(SCRN 400) of a small custom table. It is working fine, only one problem is while changing the contents if user accidentally presses 'ENTER' key it is going to first Screen(scrn 100).
How can I catch this so that when user clicks enter, it has to be in the same screen only.
Now it is going to When 'others' and to scrn 100.
MODULE user_command_0400 INPUT.
CASE ok_code.
WHEN OTHERS.
cnt = 1.
SET SCREEN 100.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " USER_COMMAND_0400 INPUT
I will appriciate your help.
Thanks,
Veni.
2008 Jul 30 6:39 PM
In debug mode check the ok_code value for ENTER and based on that change ur logic as shown below:
MODULE user_command_0400 INPUT.
CASE ok_code.
when < ok_code value for enter>.
Do nothing*
WHEN OTHERS.
cnt = 1.
SET SCREEN 100.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " USER_COMMAND_0400 INPUT
Hi All,
I have a screen where user can change contents(SCRN 400) of a small custom table. It is working fine, only one problem is while changing the contents if user accidentally presses 'ENTER' key it is going to first Screen(scrn 100).
How can I catch this so that when user clicks enter, it has to be in the same screen only.
Now it is going to When 'others' and to scrn 100.
MODULE user_command_0400 INPUT.
CASE ok_code.
WHEN OTHERS.
cnt = 1.
SET SCREEN 100.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " USER_COMMAND_0400 INPUT
I will appriciate your help.
Thanks,
Veni.
2008 Jul 30 6:35 PM
Go to PBO ,
and activate the status for ENter, in the Kunction keys you can see Green Tick Button in the First place. Give some Okcode and activate that.
so that you can handle that in the PAI
case ok_code.
when 'ENTER'.
" do nothing
when others.
leave to screen 0.
endcase.
2008 Jul 30 6:39 PM
In debug mode check the ok_code value for ENTER and based on that change ur logic as shown below:
MODULE user_command_0400 INPUT.
CASE ok_code.
when < ok_code value for enter>.
Do nothing*
WHEN OTHERS.
cnt = 1.
SET SCREEN 100.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " USER_COMMAND_0400 INPUT
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |