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

CL_GUI_ALV_GRID - error checking

Koja78
Participant
0 Likes
990

Dear all,

I seem to have some issues with the CL_GUI_ALV_GRID and error checking.

I have added the events handle_data_changed and handle_data_changed_finished to my event handler.

I linked the "enter" button as the initiator of a change.

When I hit enter after a change the code of handle_data_changed is executed correctly.

And the protocol display is shown.

However later on in the program.. before saving data.. I must be able to check if the alv is still containing errors.

So I used methode check_changed_data in my PAI. However, even when there are still errors active, this method returns valid.

When going into system debugging I saw it doesn't execute handle_data_changed as I saw described somewhere.. but only handle_data_changed_finished.

Anyone has an idea of the probably obvious mistake I made somewhere? (Isn't for instance executing the add_protocol method not enough.. to I have to mark the cells, rows as error somewhere... etc)

Thanks in advance for any help provided... as I'm slowly turning insane by staring at the code ....

(a feeling you all probably know)

1 REPLY 1
Read only

Koja78
Participant
0 Likes
785

Solved it by keeping track of the error state with a public attribute in my handler class.