2021 Sep 08 7:00 PM
Hi guys,
I have an ALV editable OO ALV and I want to change some values within the program - similar to when the user types in some data. Eg. user choses button from my toolbar and I change some editable values in my internal table directly in METHOD handle_user_command. (Eg. I show 5 line with a editable text field -> The user hits a button -> I fill in some text)
Then I want the program to handle this like a manually done input (Eg.there is a validation check on the text field in method handle_data_changed after manual Input and hitting enter)
Meaning: method data_changed and handle_data_changed should be called like they do, when the User enter values manually.
I tried diffent things like
CALL METHOD cl_gui_cfw=>set_new_ok_code
call method grid_100->raise_event
CALL METHOD grid_100->check_changed_data.
But none triggers the routine method data_changed like it does, when the user enters manually a value and hits enter.
Any advise?
Hi guys,
I have an ALV editable OO ALV and I want to change some values within the program - similar to when the user types in some data. Eg. user choses button from my toolbar and I change some editable values in my internal table directly in METHOD handle_user_command. (Eg. I show 5 line with a editable text field -> The user hits a button -> I fill in some text)
Then I want the program to handle this like a manually done input (Eg.there is a validation check on the text field in method handle_data_changed after manual Input and hitting enter)
Meaning: method data_changed and handle_data_changed should be called like they do, when the User enter values manually.
I tried diffent things like
CALL METHOD cl_gui_cfw=>set_new_ok_code
call method grid_100->raise_event
CALL METHOD grid_100->check_changed_data.
But none triggers the routine method data_changed like it does, when the user enters manually a value and hits enter.
Any advise?
2021 Sep 09 6:26 AM
HI,
maybe another idea to create a validation method which is used in both places?
2021 Sep 09 7:33 AM
Hi Robert,
Thanks for your comment. Maybe this is the only solution - but I don't like it much, because I would rather have the same functionality for manual and "program internal" input.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |