‎2010 Jan 12 3:35 AM
Hi,
I have a screen in which there is a table is there.The table is to be poulated by default when
the screen is opened.So i put my selection logic in PBO and it is retrieving data and showing
when the screen is opened. But the problem is when i scroll down or up the table again it
is retreving data.How can i avoid this?
Regards,
Arun.
‎2010 Jan 12 5:12 AM
Hi,
Scrolling triggers the PAI and the code that you have written in your there is executed everytime you scroll up or down.
One easy way out is to restrict all your code within proper function codes so that it doesnt execute when you scroll. When you scroll (the sy-ucomm is space). So see to it that no code executes on scrolling by properly restricting them within their respective sy-ucomm values.
‎2010 Jan 12 4:05 AM
Hi,
If you are appending data you can use REFRESH Key word .
or check this one.
in top include
data : first_time.
in PBO.
if first_time is initial. " this allows only first time data selection
first_time = 'X'. " for second time it skips selecting data when scroll up or down
" Now you can select the data in to Internal Table
endif.Cheerz
Ram
‎2010 Jan 12 6:45 AM
Thanks for your response.I will check the solutions suggested by you guys and come back in case of any doubt.
‎2010 Jan 12 5:12 AM
Hi,
Scrolling triggers the PAI and the code that you have written in your there is executed everytime you scroll up or down.
One easy way out is to restrict all your code within proper function codes so that it doesnt execute when you scroll. When you scroll (the sy-ucomm is space). So see to it that no code executes on scrolling by properly restricting them within their respective sy-ucomm values.