Application Development and Automation 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: 
Read only

Classical Reports ?

Former Member
0 Likes
591

Hi,

1> In a classical report i want to display a different top-of-page for every page. How to achieve this ?

2> How to use new-page, i want every new-page triggered to have a different top-of-page ( or header data ) how to achive this ?

If possible provide me a sample code for the above scenarios ..

regards,

Navneeth.K

5 REPLIES 5
Read only

Former Member
0 Likes
568

HI,

Use "TOP-OF-PAGE during line selection" event..

example:

write: 'welcome to sap interactive reporting'.

write: / ' you are in ', sy-lsind, 'index page'.

top-of-page during line-selection.

if sy-lsind = 1.

write: 'this is first page heading'.

if sy-lsind = 2.

write: 'this is second page heading'.

if sy-lsind = 3.

write: 'this is third page heading'.

reward if useful,

regards,

nazeer

Message was edited by:

nazeer shaik

Read only

0 Likes
568

Hi Nazeer,

will this work for classical reports.?

regards,

Navneeth.K

Read only

0 Likes
568

Hi,

check the message edited above..

Read only

Former Member
0 Likes
568

Hi,

Is your problem solved?

Close the thread if so..

Dont forget to reward points if useful

regards,

nazeer

Read only

Former Member
0 Likes
568

Hi,

DATA : v_num type i.

start-of-selection.

do 12 times.

v_num = v_num + 1 .

write:/ sy-index.

IF v_num = 3.

clear v_num.

NEW-PAGE.

endif.

enddo.

top-of-page.

Write:/ 'Heading'.

Don't forget to reward if useful