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: 

problem with the page break ( command)

Former Member
0 Kudos

Hi,

i am working on forms, In main i have created a loop, which would loop the header details eg loop i_ekko into wa_ekko. under that loop i have created a table which loops the line items. eg i_ekpo into wa_ekpo where wa_ekpo-ebeln = wa_ekko-ebeln( ebeln of line = ebeln of line item).

after the table i have included a page break.

Now what happens is that the line items keep changing the ebeln does not change.

3 REPLIES 3

Former Member
0 Kudos

Hi

The following program will help u clear u r concept of page number

REPORT ZDUMMY NO STANDARD PAGE HEADING LINE-COUNT 65.

DATA L_PAGE_COUNT(5) TYPE C.

TOP-OF-PAGE.

WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.

ULINE.

START-OF-SELECTION.

  • Real list output takes place here

DO 300 TIMES.

WRITE: / 'Line #', SY-LINNO.

ENDDO.

  • Page count will be printed on each page here

WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.

DO SY-PAGNO TIMES.

READ LINE 1 OF PAGE SY-INDEX.

REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.

MODIFY CURRENT LINE.

ENDDO.

0 Kudos

above program will insert page break at particular record

do reward points if helpfull

regards,

Joginder

Former Member
0 Kudos

instead of

i_ekpo into wa_ekpo where wa_ekpo-ebeln = wa_ekko-ebeln

use this

i_ekpo into wa_ekpo where i_ekpo-ebeln = wa_ekko-ebeln

hope it resolves ur issue..