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

Editable OO ALV set fields automatically like manually

marion_kling
Explorer
0 Likes
1,046

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?

2 REPLIES 2
Read only

RobertVit
Active Contributor
968

HI,

maybe another idea to create a validation method which is used in both places?

Kind regards
Robert
Read only

0 Likes
968

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.