I want those marked with"CAUFV ~ RSNUM = RESB ~ RSNUM" in the photo below to appear in smarform. For example; AUFNR: 800002 contains 1 RSPOS so its table should have 1 row. AUFNR: 800003 contains 3 RSPOS so the table should have 3 rows. There should be one page for each AUFNR. The RESB part on one page should not be on the other page.
But I could not divide the tables into pages according to the order number. What should I do? I hope I was able to explain my problem.