cancel
Showing results for 
Search instead for 
Did you mean: 

page break in smartform

Former Member
0 Kudos

hi folks ,

iam doing smartform ,requirement is to add form to exsiting form and what is use of page break in the my smartform ,do i have to use r not ?please reply POINTS will be awarded for answers .

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Vinay,

The main window is the output area whose window contents can spread over several pages.Page break can be achieved using COMMAND node.

You can control the breaking of pages in the following way.

As a simple example if you want to create a page break for each new Airline Code (SPFLI-CARRID for flight details)

I have my flight details stored in it_spfli internal table .

In the table in the Date tab i do sort based on field CARRID and enable the event for u2018Event on Sort Endu2019.

Now an event appears after your main area in table.Inside this event, I am giving a COMMAND node.

In the General tab of COMMAND node,

We just need to enable , 'Go to New Page' check box and can give the same page name.

Now we will get for each CARRID details in a separate page, Page break is acheived easily.

Regards,

Anna J.Morris

Former Member
0 Kudos

Hi,

If item details contains more than 1 lines or rows some of lines may print on 1st page and other lines will print on 2nd page.

To avoid these breaks we uses page protection.

so in this situation if we use page protection the total lines of item details will print on next page only.

Using Page protection:

Create a folder and move the text elements inside that folder.

Double click on folder go to output options and check the page protection.

Reagrds,

Former Member
0 Kudos

Put a Command node and give NEWPAGE on whatever condition you want

Former Member
0 Kudos

Hi,

Smartforms: protect lines in main window.

It was easy with SAPscript, but how to do it with SF's. For 4.7 version if you are using tables, there are two options for protection against line break:

You can protect a line type against page break.

You can protect several table lines against page break for output in the main area.

Protection against page break for line types

Double-click on your table node and choose the Table tab page.

Switch to the detail view by choosing the Details pushbutton.

Set the Protection against page break checkbox in the table for the relevant line type. Table lines that use this line type are output on one page.

Protection against page break for several table lines

Expand the main area of your table node in the navigation tree.

Insert a file node for the table lines to be protected in the main area.

If you have already created table lines in the main area, you can put the lines that you want to protect again page break under the file using Drag&Drop. Otherwise, create the table lines as subnodes of the file.

Choose the Output Options tab page of the file node and set the Page Protection option. All table lines that are in the file with the Page Protection option set are output on one page.

In 4.6, Alternatively in a paragraph format use the Page protection attribute to determine whether or not to display a paragraph completely on one page. Mark it if you want to avoid that a paragraph is split up by a page break. If on the current page (only in the main window) there is not enough space left for the paragraph, the entire paragraph appears on the next page.

Regards,

Shiva Kumar