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

Scroll down function retreiving data again

Former Member
0 Likes
574

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
527

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.

3 REPLIES 3
Read only

Former Member
0 Likes
527

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

Read only

0 Likes
527

Thanks for your response.I will check the solutions suggested by you guys and come back in case of any doubt.

Read only

Former Member
0 Likes
528

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.