2005 Sep 30 7:07 AM
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
2005 Sep 30 11:35 AM
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.