2009 Feb 10 4:00 AM
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.
2009 Feb 10 4:04 AM
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.
2009 Feb 10 4:04 AM
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!
2009 Feb 10 4:09 AM
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
2009 Feb 10 4:19 AM
hi,
hope this link might help you.
https://www.sdn.sap.com/irj/scn/advancedsearch?query=alvwithclasses&cat=sdn_all
Pooja
2009 Feb 10 4:28 AM
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
2009 Feb 10 5:08 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |