Skip to Content
Former Member
Sep 06, 2013 at 08:02 AM

OOPS ALV - SY-PAGNO and SY-CPAGE equal to 0


Hi ABAPers,

I need some help.

I am displaying an ALV Grid using OOPS concept using Docking containers and Easy Splitter and Set_Table_For_First_Display method.

In the top container, I am displaying my TOP-OF-PAGE but when I try to display the page number, it is coming as 0.

I checked in debug and found that both sy-pagno and sy-cpage are returning 0.

It seems like it is not understanding the end of the page to populate it.

I would like to know how I can overcome this problem.

Is there a method in which I can specify the number of lines in the grid or the container or somewhere or is there some other method...??

Thanks in advance.