‎2008 Dec 04 10:44 AM
Hi All,
I am using ALV GRID in object oriented with editing option.If user made any changes in the Grid ,then i will captured the changes by the event DATA_CHANGED and i will display the error message inside the DATA_CHANGED event method using Method ADD_PROTOCOL_ENTRY and DISPLAY_PROTOCOL(which displayed a message in popup window with the field name ,row etc.).
My doubt is suppose User doesn't enter any data in the grid and try to save the data ,then i've show error message which is similar like which shown in DISPLAY_PROTOCOL and i want to set the cursor in required field in the grid....In this case DATA_CHANGED event doesn't trigger if there is no change in the Grid(Because while pressing SAVE button which is outside the grid,so process is happeneing outside the grid).So is there any other possibility to implement this..?
‎2008 Dec 04 11:14 AM
Yes it is possible to implement this .
on SAVE you can check for the input field if any value entered on not .
or another way would be .in data_changed methood you set a flag which indicates that data_changed was called .
check the same flag when 'ON save '
then you give the message there ;that you can add in protocol.
‎2008 Dec 04 12:05 PM
Hi Dinesh Malhotra ,
thanks for your reply...
How can we add protocoll in SAVE..can you explain me with any samples...