cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh the ALV table

Former Member
0 Kudos

hi experts..

I have an input field and an ALV table..

When i enter some value in the input filed and click the view button the respective data is displayed in the ALV but when i change the value in the input field , the ALV has the previous data only..

ALV is not refreshed with new data.

Any idea..

jagruti.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jagruti,

how do aou add the data of the input field to the ALV table? How did you bind the data for the table?

Cheers,

Sascha

Former Member
0 Kudos

using set_data..

after node->bind_table() i pass the node to set_data.

Former Member
0 Kudos

I do similar without problems.

So maybe you do not update the data in the node before calling set data.

Could you post the code completely?

Stupid question, when you change the value in input field you press a button or hit enter afterwards that triggers the binding, don't you?

Cheers,

Sascha

Former Member
0 Kudos

i am updating the data in the node...

Former Member
0 Kudos

did you try to use the refresh method of the ALV afterwards? it is in the same interface as set_data.

Former Member
0 Kudos

refresh method..

no i havent done any thng of that sort..

can u explain.

Former Member
0 Kudos

Hi jagruti,

I had same problem in ALV before and i had internal table which i was displaying in ALV.I did take different approch.

1.I take that entire row where update has done.

2.I go for get_index() method to know the table index modified

3.I use loop statement to modify table output in this way.

loop at itab into wa_itab.

if tabix = index of modified cells.

than updat internal table with value.

else.

continue.

endif.

endloop.

4.Bind new table to the node.

hope this helps.

Nirad

Former Member
0 Kudos

hey the data is cmg from the database table ...

so the entire set is new..

Former Member
0 Kudos

So r u telling me that there is no internal table u r populating here.aren't you?

Nirad

Former Member
0 Kudos

see depending on the input from the user im pulling data from the database in an internal table ..

den i say node->bind_table( itab ).

Former Member
0 Kudos

sascha i know it may b very simple thng that im missing out..

but can u just tell me wht exactly im skipping or i shud include.

Former Member
0 Kudos

Jagruti,

I am not sure what the problem is here. In my app i create the node dynamically each time before calling set_data and this works.

In your case I would think about doing the mapping via external mapping. Then the data must be refreshed automatically.

Cheers,

Sascha