‎2007 Sep 30 7:37 PM
Hi,
In my editable ALV, I have to generate item numbers if user does not specify item numbers. And once a row has an item number, item number field needs to be disabled.
Say user adds 2 items. There are some errors related to those rows. I validated the data and add errors to protocol. Before validating, I generate the item numbers based on my logic.
Now, the item number field needs to be disabled for input. This I do by using MODIFY_STYLE. I am modifying mp_mod_rows to change the item number on screen without calling refresh. Because of this modification, data_changed is triggered again.
Is there a way I can modify data on screen without calling refresh and date_changed is not triggered again.
Thanks.
Srinivas.
‎2007 Oct 01 4:15 AM
Hi Srinivas,
If your original output is in table i_output... then user generates item number.
Before that move old output to i_temp table.
Since refresh is triggered, i_output will have new data... so after you call MODIFY_STYLE, pass old data to i_output.
i_output[] = i_temp[].
This should fix the problem.
Best regards,
Prashant
‎2007 Oct 01 6:09 AM
Hello Prashant,
Thanks for your reply.
My problem is, I cannot refresh, but want to change the item number on the screen.
Thanks.
Srinivas.