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: 

ALV: modify invalid user input after entry

yuriy_dzhenyeyev
Explorer
0 Kudos
503

Given an ALV table with a NUMC column, it is possible to enter a text value there (say, 'test'), but a pop-up error message will be shown.

Is it possible to intervene programmatically (data_changed?), replace 'test' with '123' and have ALV validate the input once again? For the user it should look like:

- enter 'test' into the NUMC column

- press ENTER

- '123' is displayed instead, the input is valid

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos
460

It's technically impossible to type alphabet characters if the field is of type NUMC...

EDIT: sorry, my bad, weird but true. Example with table SFLIGHT, field CONNID:

Sandra_Rossi
Active Contributor
0 Kudos
460

You can change the value via the event DATA_CHANGED (via the method MODIFY_CELL of the event parameter ER_DATA_CHANGED), but it won't go through the ALV validation again, I guess. Why do you want to validate it again if you pass a valid value?