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

Enter effect

Former Member
0 Likes
711

Hi all.

why whenever i press the enter button on the keyboard. my record in the table control is save to my database. Can i offset it? i need the press enter for my message class. The record will be save only when i press the save button. How can i change the enter effect? thks

6 REPLIES 6
Read only

Former Member
0 Likes
680

Hi,

It seems, the OK CODE is not cleared.

Goto the PF-status of your screen & on the TICK button, type ENTER as ok code.

Activate it.

This would fix it.

Best regards,

Prashant

Read only

0 Likes
680

Okie. it solve part of my problem.

Why whenever i press the enter after the message class, it save into my table. When there's no message class, it work okay when i press the enter.

Read only

Former Member
0 Likes
680

Hi,

In debug mode, please check the OK CODE. It seems the value is not cleared.

Best regards,

Prashant

Read only

0 Likes
680

what is the code to clear the OK CODE.?

Read only

0 Likes
680

Hi,

The default OK Code for ENTER is ' ' (space).

try like:

case sy-ucomm.

when ' '.

<your program logic>

endcase.

Regards,

Renjith Michael.

Read only

Former Member
0 Likes
680

gary,

When you press enter event will get trigger and it will go to first PAI module and PBO module .

At the time of this flow some where you have not restircted to save the data only when i press "SAVE" button by

if sy-ucomm EQ 'SAVE '.

save data.

ENDIF.

To check all these enter "/h" on command fields and execute it.You will see the flow why particular data saving part is executing.

Don't forget to reward if useful..