cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh the ALV Control

Former Member
0 Kudos

Hi Experts,

I have a selection screen and ALV control in webdydnpro report. If i enter valid input values in the selection screen the ALV contol is diplaying datas correctly but when i enter invalid data in the selection screen the ALV table control values still diplaying in the previous datas. I need to Refresh the ALV contol values once the incorrect data enter in the selection screen. How can i REFRESH the ALV control in Webdynpro report. I have Refreh button in the Selection screen when you press REFRESH button the ALV table control data should be initilize Kindly help me out this issue.

Thanks ,

Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Sivakumar.

When you submit your report and the select options are incorrect just invalidate

the node you have bound to the ALV component:

lr_node->invalidate( ).

Cheers,

Sascha

Former Member
0 Kudos

Hi Sascha,

I couldn't understand your answer pls kindly explain me some more detail.

I appreciate if you explain in detail.

Thanks,

Kumar

Former Member
0 Kudos

Hi.

You have a selection screen where user can enter some data, with this data you

perform a selection and then you bind the result to the ALV, right?

Question is how you bind the result to ALV? Do you use external context mapping

or the set_data method ?

So I guess you have a method where you validate the select options and if they

are correct you perform the selction and bind the result to the node for the ALV. If

the select options are incorrect you just need to get the node for the ALV (which contains the

previous result )and call the invalidate method on that node which deletes all

elements of this node and after that the ALV should be empty again.

Former Member
0 Kudos

Hi Sascha,

Thanks you very much and i have solved the issue.

I gave full points to you.

Regards,

Kumar

Answers (0)