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

Change data without refresh

srinivas_anchuri
Product and Topic Expert
Product and Topic Expert
0 Likes
521

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.

2 REPLIES 2
Read only

Former Member
0 Likes
499

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

Read only

0 Likes
499

Hello Prashant,

Thanks for your reply.

My problem is, I cannot refresh, but want to change the item number on the screen.

Thanks.

Srinivas.