Skip to Content
author's profile photo Former Member
Former Member

Problem in Smartform where next page is printing unnecessarily

I have written a smartform to print our packing slip. In my main window I loop through the delivery items for printing and after I have finished printing all of the items associated with the one delivery item I want to print out a u-line so that the form will be easier to read(some sort of way of grouping the items visually) I am accomplishing this by using sy-uline. The problem arises though that sometimes Iwhen I hit a page break the only thing that will print on the next page is this uline. I do not want this line to print at the beginning of the main window on a next page but I have been unable to figure out anyway to keep it from printing. I have tried page protection for the paragraph format being used but that does not work. Has anyone come up with a way to print out a dividing horizontal line across the main window after a loop but control it so that it would not cause the form to think a second page is needed just because of this one line.

Any help would be much appreciated.

Karen

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 12, 2011 at 09:04 PM

    You can try this way:

    1 Add a Program lines to keep the counter.

    2 Create a Folder just below your table line. Add a Condition to check if the Counter is same as total # of lines

    3 Copy the table line and paste it under the folder

    4 Set the Page Protection to the folder

    Regards,

    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2011 at 06:29 AM

    HI,

    Create a Folder, move your table and what ever code written in program lines under the folder.

    click on folder check page protection, it will solve your problem.

    Thanks,

    Sanjay Gogikar

    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.