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.