‎2008 Feb 05 3:23 AM
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
‎2008 Feb 05 3:25 AM
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
‎2008 Feb 05 3:35 AM
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.
‎2008 Feb 05 3:40 AM
Hi,
In debug mode, please check the OK CODE. It seems the value is not cleared.
Best regards,
Prashant
‎2008 Feb 05 3:46 AM
‎2008 Feb 05 6:37 AM
Hi,
The default OK Code for ENTER is ' ' (space).
try like:
case sy-ucomm.
when ' '.
<your program logic>
endcase.
Regards,
Renjith Michael.
‎2008 Feb 05 3:58 AM
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..