Skip to Content

First page is again appearing at last in smartform

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)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on 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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.