Skip to Content
author's profile photo
Former Member

SCROLL LIST TO LAST PAGE

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Sep 30, 2005 at 10: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.

    Add comment
    10|10000 characters needed characters exceeded