Application Development and Automation 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: 
Read only

Message display while using ALV GRID

Former Member
0 Likes
596

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..?

2 REPLIES 2
Read only

Former Member
0 Likes
377

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.

Read only

0 Likes
377

Hi Dinesh Malhotra ,

thanks for your reply...

How can we add protocoll in SAVE..can you explain me with any samples...