2008 Mar 19 8:39 AM
Hi,
I want to have different headings for different pages in basic list.How shall I achieve this?
Please help.
2008 Mar 19 8:47 AM
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.
2008 Mar 19 8:43 AM
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.
2008 Mar 19 8:45 AM
2008 Mar 19 8:50 AM
REPORT ZTESTPRIYANK line-count 100.
do 1000 times.
write 😕 'hello'.
enddo.
top-of-page.
write 😕 'page number', sy-pagno.
2008 Mar 19 8:44 AM
hi,
use TOP-OF-PAGE DURING LINE-SELECTION.
and try
regards,
pavan t.
2008 Mar 19 8:45 AM
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.
2008 Mar 19 8:45 AM
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.................
2008 Mar 19 8:45 AM
Hi,
Try...
Top-Of-Page.
Write:/ 'NAME', 'ADDRESS', 'E-MAIL'.
Reward points if useful....
Regards
AK
2008 Mar 19 8:46 AM
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.
2008 Mar 19 8:47 AM
Hi Hosmath ,
Write code in TOP-OF-PAGE by checking pagenumber. If page = 1 then header is 'this is page1' like this .
Regards,
Subbu
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |