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

Reports-Urgent

Former Member
0 Likes
926

Hi,

I want to have different headings for different pages in basic list.How shall I achieve this?

Please help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
908

Hi Hosmath ,

Write code in TOP-OF-PAGE by checking pagenumber. If page = 1 then header is 'this is page1' like this .

Regards,

Subbu

Hi,

I want to have different headings for different pages in basic list.How shall I achieve this?

Please help.

9 REPLIES 9
Read only

Former Member
0 Likes
908

use the TOP-OF-PAGE event. This event is executed everytime a new page is started in the list output. You can use the sy-pagno field to know which page number is it and then put your heading accordingly.

Read only

0 Likes
908

Priyank,

Can you pls revert with some sample code.

Read only

0 Likes
908

REPORT ZTESTPRIYANK line-count 100.

do 1000 times.

write 😕 'hello'.

enddo.

top-of-page.

write 😕 'page number', sy-pagno.

Read only

Former Member
0 Likes
908

hi,

use TOP-OF-PAGE DURING LINE-SELECTION.

and try

regards,

pavan t.

Read only

Former Member
0 Likes
908

Hi,

NEW-PAGE.

WRITE : headings here

Ex:

REPORT demo_list_new_page LINE-SIZE 40.

TOP-OF-PAGE.

WRITE: 'TOP-OF-PAGE', sy-pagno.

ULINE AT /(17).

START-OF-SELECTION.

DO 2 TIMES.

WRITE / 'Loop:'.

DO 3 TIMES.

WRITE / sy-index.

ENDDO.

NEW-PAGE.

ENDDO.

Read only

Former Member
0 Likes
908

check the below code.

top-of-page.

if temp eq 'X'. or sy-lsind eq 0

write:/ 'Hai'.

elseif temp eq 'Y'. or sy-lsind eq 1

write:/ 'Hello'.

elseif temp eq 'Z'. or sy-lsind eq 2.

write:/ 'How R u'.

endif.

reward if useful.................

Read only

ak_upadhyay
Contributor
0 Likes
908

Hi,

Try...


Top-Of-Page.

Write:/ 'NAME', 'ADDRESS', 'E-MAIL'.

Reward points if useful....

Regards

AK

Read only

Former Member
0 Likes
908

Hi,

Your problem will be get solved by using TOP-OF-PAGE event along with the SY-PAGNO.

TOP-OF-PAGE.

IF SY-PAGNO = '1'.

WRITE: /'HEADING ONE'.

ELSE IF SY-PAGNO = '2'.

WRITE: / 'HEADING TWO'.

ENDIF.

Read only

Former Member
0 Likes
909

Hi Hosmath ,

Write code in TOP-OF-PAGE by checking pagenumber. If page = 1 then header is 'this is page1' like this .

Regards,

Subbu