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: 

Revert changes in editable ALV

0 Kudos

Dear experts,

I'm using the OO ALV with some editable columns. However, I want to perform some validation on the values user enters. So, if certain conditions are not met, a message should appear and not the user-entered should be displayed in the ALV, but the value, which was in its place before. I'm catching the event data_changed and perform my validation in the corresponding class method. So far have not been able to make the system not accept the user-entered value. It gets always displayed no matter what I do.

Any suggestions?

Thanks in advance for your help!

Best regards,

Alexander.

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

I'd prefer that you tell us exactly what you tried with method names, because I guess you wouldn't like my answer: "you should add an error message to the log, and change the value of the cell". Right? So, use methods ADD_PROTOCOL_ENTRY and MODIFY_CELL of parameter ER_DATA_CHANGED of event DATA_CHANGED.

4 REPLIES 4

0 Kudos

Sorry, a typo (2nd sentence): I do want to perform validation...

Sandra_Rossi
Active Contributor

I'd prefer that you tell us exactly what you tried with method names, because I guess you wouldn't like my answer: "you should add an error message to the log, and change the value of the cell". Right? So, use methods ADD_PROTOCOL_ENTRY and MODIFY_CELL of parameter ER_DATA_CHANGED of event DATA_CHANGED.

matt
Active Contributor
0 Kudos

Fixed it for you.

0 Kudos

Thank you, Sandra! It helped!