Skip to Content
0
Former Member
Dec 18, 2006 at 12:40 PM

Problem with page break

22 Views

Hi All

I need to display page number at end of every page in report output.

I am not getting it in proper format. Also in the last page the page number is missing.

Pls look at the code:

FORM Display_final_report USING FP_I_FINAL type ty_t_final.

Data: l_wa_final type ty_final.

Data: l_v_wrbtr type char16,

l_v_serno type char4,

CNT TYPE I.

CLEAR CNT.

loop at FP_I_FINAL into l_wa_final.

CNT = CNT + 1.

l_wa_final-rwbtr = l_wa_final-rwbtr * -1.

l_v_wrbtr = l_wa_final-rwbtr.

l_v_serno = l_wa_final-ser_num.

condense l_v_serno.

  • Babita

  • write : /6 sy-vline, l_v_serno ,11 sy-vline,12 l_wa_final-chect,18 sy-vline ,19 l_wa_final-zaldt,29 sy-vline ,30 l_v_wrbtr,45 sy-vline ,

  • 46 l_wa_final-znme1,87 sy-vline.

write : /6 sy-vline, l_v_serno ,

11 sy-vline, 12 l_wa_final-chect,

18 sy-vline ,19 l_wa_final-zaldt,

29 sy-vline ,30 l_v_wrbtr left-justified,

45 sy-vline ,46 l_wa_final-znme1,

87 sy-vline.

IF CNT > 40.

NEW-PAGE.

CLEAR CNT.

WRITE :/50'PAGE:' , SY-PAGNO.

ENDIF.

endloop.

I am not very clear with new-page, reserve , and end-of-page event. Can anybody help me correct the code.

exactly where should we put the end-of-page?

Regards

Babita

write:/6(82) sy-uline.

skip 1.

write:/6 Text-013.

write:/6 Text-014.

skip 2.

write:/6 Text-015.