2009 Dec 17 7:33 PM
Hello,
I am using method "cl_gui_alv_grid->check_changed_data" in an editable ALV program like this.
module user_command_0100 input.
data: l_valid type c.
case ok_code.
when 'EDIT'.
call method plan_grid->check_changed_data
importing e_valid = l_valid.
if l_valid = 'X'.
perform update_data.
endif.The issue is, even if no records were changed on the ALV output, the method is returning l_valid = 'X'.
Can I use l_valid as a flag to determine the data was changed?
Thanks.
Edited by: ravi kumar on Dec 17, 2009 12:35 PM
2009 Dec 17 8:53 PM
I think that the method tells you if there is any error on your ALV so you can save it without problems...remember that you can control errors when a particular field has changed.
Greetings,
Blag.
Hello,
I am using method "cl_gui_alv_grid->check_changed_data" in an editable ALV program like this.
module user_command_0100 input.
data: l_valid type c.
case ok_code.
when 'EDIT'.
call method plan_grid->check_changed_data
importing e_valid = l_valid.
if l_valid = 'X'.
perform update_data.
endif.The issue is, even if no records were changed on the ALV output, the method is returning l_valid = 'X'.
Can I use l_valid as a flag to determine the data was changed?
Thanks.
Edited by: ravi kumar on Dec 17, 2009 12:35 PM
2009 Dec 17 8:41 PM
Hi,
Try to debug inside the method and see why the flag is set as 'X' evenif there is no data change.
Regards
Prasenjit
2009 Dec 17 8:53 PM
I think that the method tells you if there is any error on your ALV so you can save it without problems...remember that you can control errors when a particular field has changed.
Greetings,
Blag.
2009 Dec 17 8:57 PM
I think that the method tells you if there is any error on your ALV so you can save it without problems...remember that you can control errors when a particular field has changed.
In that case, the 'l_valid" is not a "true" flag for finding out if the data was changed or not but it is for determining if there are any errors or not.
2009 Dec 17 8:59 PM
That's what I think...but I'm not completely sure... -:)
Greetings,
Blag.
2009 Dec 17 10:11 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |