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

Events for enter

Former Member
0 Likes
761

Hi,

I am displaying one ALV using class.

When user clicks on INSERT thenuser 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
734

Hi,

try these,

IF SY-UCOM = space.
"do your logic
ENDIF.

and also one more thing is this will work for some scenarios.

because the UCOM of the Enter will change depends on the scenarios.

i hope it will work for the ALV's....

Regards!

Hi,

I am displaying one ALV using class.

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

When user press enter validation should be done.

Can u pls help me.

5 REPLIES 5
Read only

Former Member
0 Likes
735

Hi,

try these,

IF SY-UCOM = space.
"do your logic
ENDIF.

and also one more thing is this will work for some scenarios.

because the UCOM of the Enter will change depends on the scenarios.

i hope it will work for the ALV's....

Regards!

Read only

Former Member
0 Likes
734

Hi Sandeep ,

kindly go through this below link,

http://www.scribd.com/doc/6742816/Alv

In this document you can check in the Event Based Functionalities topic,for this kind of requirement

i think.

Hope it helps.

Regrds

Mansi

Read only

Former Member
0 Likes
734

hi,

hope this link might help you.

https://www.sdn.sap.com/irj/scn/advancedsearch?query=alvwithclasses&cat=sdn_all

Pooja

Read only

Former Member
0 Likes
734

Hi ,

You caan validate that field on At selection-screen or At selection-screen on field event because when you press enter it automatically triggers the At selection-screen or At selection-screen on field

event .

Regards

Pinaki

Read only

Former Member
0 Likes
734

Hi Sandeep,

Such validations can be done on At selection screen.

If its for a field that you are validating go for at selection-screen on field or if its a block go for at selection-screen on block or on radiobutton group.

The sy-ucomm value for enter is space.

Your validations can be done like this.

At selection-screen on field .

If sy-ucomm = SPACE.

your validations.

endif.

Hope it helps!

Much Regrads,

Amuktha.