Application Development 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: 

Simulate 'Enter'

Former Member
0 Kudos

Hi,

I need the code to simulate an "enter" in a table control. Like if the user was pressing the enter key.

Helpful answers will be rewarded.

Cheers,

Roberto.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Depending on where you need to simulate this, you could do this coding. This probably only works within an event handler for a contol object.

CALL METHOD cl_gui_cfw=>set_new_ok_code
      EXPORTING
        new_code = 'ENTER'.

Regards,

Rich Heilman

Edited by: Rich Heilman on Jul 3, 2008 4:39 PM

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Depending on where you need to simulate this, you could do this coding. This probably only works within an event handler for a contol object.

CALL METHOD cl_gui_cfw=>set_new_ok_code
      EXPORTING
        new_code = 'ENTER'.

Regards,

Rich Heilman

Edited by: Rich Heilman on Jul 3, 2008 4:39 PM

0 Kudos

Thanx for the answer, but it didnt solve the problem.

Just realized that simulating an enter wont work.

Cheers,

Roberto.

Edited by: Roberto Okumura on Jul 3, 2008 4:05 PM