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

Help with screens

Former Member
0 Likes
443

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
421

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

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

2 REPLIES 2
Read only

Former Member
0 Likes
421

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.

Read only

Former Member
0 Likes
422

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