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: 

re: new-page

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

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

5 REPLIES 5

former_member188685
Active Contributor
0 Kudos

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

former_member181962
Active Contributor
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Hi,

write the code in TOP-OF-PAGE jsut before the first write statement...and delete TOP-OF-PAGE section...

Sreedhar..

Former Member
0 Kudos

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.