07-07-2006 10:31 AM
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.
07-07-2006 10:47 AM
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.
07-07-2006 10:48 AM
above program will insert page break at particular record
do reward points if helpfull
regards,
Joginder
07-07-2006 10:56 AM
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..