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: 

control data changes in ALV grid

Former Member
0 Kudos

Hi friends,

I am in big trouble with this issue , can any body please find solution for this,

I have made ALV grid editable, now i want to validate each cell when user does input in it. also i want to save changes in internal table after valid modification.

Thank you.

Best Regards,

Virat

2 REPLIES 2

rodrigo_paisante3
Active Contributor
0 Kudos

Hi,

You need to write a user command to do this. When user clicks SAVE will validate the cell and save internal table changes.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a41...

Regards

Reward points if useful!!

Former Member
0 Kudos

Hi Virat.

ALV grids have "data_changed" and "data_changed_finished" events that can be used to check the input for errors.

Below is a good reference. Go to page 49 for <u>Controlling Data Changes</u>

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907">ALV grid easy reference</a>