Application Development 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: 

SCROLL LIST TO LAST PAGE

Former Member
0 Kudos
80

Hi

I am not able to understand how 'SCROLL LIST TO LAST PAGE'

works

Here is the program.

TOP-OF-PAGE.

SET LEFT SCROLL-BOUNDARY COLUMN 1.

SELECT * FROM SFLIGHT INTO TABLE IT_SFLIGHT.

LOOP AT IT_SFLIGHT INTO WA_SFLIGHT.

WRITE AT : /

POS2(LEN_FDT) WA_SFLIGHT-FLDATE

(25) WA_SFLIGHT-PRICE CURRENCY WA_SFLIGHT-CURRENCY,

(35) WA_SFLIGHT-CURRENCY.

ENDLOOP.

SCROLL LIST TO LAST PAGE.

**********************************************************

Now this loop, gives me lot of rows. I want the control to take me to the last page. Can anyone explain how this works

1 REPLY 1

Former Member
0 Kudos
58

if the statement LINE-COUNT in REPORT statement is missing then it will not work.

This is working fine for me.

REPORT ZSCROLLIST line-count 100(2).

data : it_sflight type table of mara,

wa_sflight type mara.

INITIALIZATION.

START-OF-SELECTION.

SELECT * FROM mara INTO TABLE IT_SFLIGHT.

LOOP AT IT_SFLIGHT INTO WA_SFLIGHT.

WRITE AT : /10(10) WA_SFLIGHT-matnr .

ENDLOOP.

SCROLL LIST TO LAST PAGE.