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

Event for ENTER

Former Member
0 Likes
801

Hi,

I am displaying one ALV using class.

When user clicks on INSERT then user will fill the entries in cells.

When user press ENTER , validation should be done.

Can u pls help me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
771

Hi,

u perform those things in ur program by calling

at user-commnd.

set pf-status 'GUI'.

case sy-ucomm.

when 'INSERT.

perform insertions.

when 'ENTER'.

perform validations.

endcase.

Regards

Kiran

Hi,

u perform those things in ur program by calling

at user-commnd.

set pf-status 'GUI'.

case sy-ucomm.

when 'INSERT.

perform insertions.

when 'ENTER'.

perform validations.

endcase.

Regards

Kiran

6 REPLIES 6
Read only

viquar_iqbal
Active Contributor
0 Likes
771

HI

you can use case sy-ucomm

when ' ' (enter)

perform validations

endcase.

Read only

Former Member
0 Likes
772

Hi,

u perform those things in ur program by calling

at user-commnd.

set pf-status 'GUI'.

case sy-ucomm.

when 'INSERT.

perform insertions.

when 'ENTER'.

perform validations.

endcase.

Regards

Kiran

Read only

0 Likes
771

Hi,

I mean to say in GRID and this grid is made using class.

Read only

0 Likes
771

I mean to say in the GRID. I am making GRID using class.

And ENTER means through KEYBOARD.

Read only

Former Member
0 Likes
771

pls ignore

Edited by: Mdi.Deeba on Feb 10, 2009 7:25 AM

Read only

Former Member
0 Likes
771

Hi Sandeep ,

i dont think u can find a event for Enter in the Custom control , what else u can do is ,,when user press enter i.e outside of screen , then refresh the ur grid by calling method refresh_display_table or check_changed_data ( check for emthod ).

ex.

call method g_grid%->check_changed_data.

  • call method g_grid%->refresh_table_display.

regards

Prabhu

Edited by: Prabhu Peram on Feb 10, 2009 2:26 PM