01-04-2006 12:23 PM
HI,
I created one report which shows an output with
line-count 28(1). I want to add one more list to this list. For additional list, top-of-page is coming. How to avoid this one.
rgds
p.kp
top-of-page.
list1
i want to avoid top-of-page for the appended list.
list2.
rgds
p.kp
01-04-2006 12:26 PM
Hi Prasad,
See the folwoing example.
REPORT demo NO STANDARD PAGE HEADING.
START-OF-SELECTION.
ULINE.
NEW-PAGE NO-TOPOFPAGE LINE-COUNT 2.
DO 10 TIMES.
WRITE / sy-index.
ENDDO.
TOP-OF-PAGE.
WRITE 'Basic list'.
REgards,
Ravi
01-04-2006 12:26 PM
while populating the events of second list don't specify the top_of_page event.
i'm thinking that you are using alv, if not please ignore.
thanks
vijay
Message was edited by: Vijay Babu Dudla
01-04-2006 12:26 PM
Hi Prasad,
See the folwoing example.
REPORT demo NO STANDARD PAGE HEADING.
START-OF-SELECTION.
ULINE.
NEW-PAGE NO-TOPOFPAGE LINE-COUNT 2.
DO 10 TIMES.
WRITE / sy-index.
ENDDO.
TOP-OF-PAGE.
WRITE 'Basic list'.
REgards,
Ravi
01-04-2006 12:29 PM
This is what the documentation says,
Addition 5
... NO-TOPOFPAGE
Effect
This addition suppresses on the new page and on all pages of the current list level that are automatically created, up to the next NEW-PAGE statement, the event TOP-OF-PAGE. If addition NO-TOPOFPAGE is not specified, the event TOP-OF-PAGE is triggered before the output to a new page.
REgards,
Ravi
01-04-2006 12:27 PM
Hi,
write the code in TOP-OF-PAGE jsut before the first write statement...and delete TOP-OF-PAGE section...
Sreedhar..
01-04-2006 12:44 PM
Hi paluri,
1. SY-PAGNO
Use this concept.
2. try this code (just copy paste)
REPORT ABC LINE-COUNT 15.
DATA : N TYPE I.
DO 100 TIMES.
N = N + 1.
WRITE 😕 N.
ENDDO.
TOP-OF-PAGE.
IF SY-PAGNO = 1.
WRITE 😕 'PAGE'.
ENDIF.
regards,
amit m.