Skip to Content

First page is again appearing at last in smartform

Dec 11, 2017 at 08:48 AM


avatar image

Hello Experts,

I have developed a smartform & in that I have to show 3 pages per record from ALV report.

If I select 1 record from ALV & click on show smarform for that record It has to show me 3 pages, similarly If I go for 3 records program supposed to show me 9 pages but my smarforms shows me 10 pages. (repeating 7th page at the last)

Please refer the attached file (sf-img.jpg) of my smarform design. Here I have taken main window on 1st page & taken a loop for table records & put command inside the loop to jump on next page.

As per the above design program works fine & it shows 1st page -> jumps to 2nd & then 3rd. On the last page I have provided next page as a Page 1 that's why it is jumps to page 1 again even after loop finishes & If I remove this It won't jump to page 1 & shows only 3 pages even I select 3 records from ALV. (Means shows only 3 pages for 1st record of ALV).

Please let me know what should I make changes in smartform to avoid this 1st page repeat at the last of last record.


Keyur Pawar

sf-img.jpg (148.7 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jelena Perfiljeva
Dec 11, 2017 at 07:18 PM

The form will keep going as long as is there is something to print in the MAIN window. Without seeing the whole form it's hard to tell what exactly the issue is. Could be an extra record in the internal table, an odd command or 1001 other reason. Use debugger to troubleshoot this.

10 |10000 characters needed characters left characters exceeded