Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional Page break in smart forms

sathish_perumal
Active Participant
0 Kudos

When I try to break the page after displaying two line items in the first page, it doesnot show anything after the first page. How to give the condition for this case?How to break to the next page?

7 REPLIES 7

former_member181962
Active Contributor
0 Kudos

Probably you can use program lines.

In the program lines, you can use the statement,

if <condition.

NEW-page.

endif.

Regards

Ravi

0 Kudos

hi,

It takes the condition but NEW-PAGE command not takes the control to the next page, it continues in the same page only.

Regards,

Sathish

Former Member
0 Kudos

Sathish,

Welcome to SDN forums.

You can use the COMMAND element, where you can specify Go To NEXT PAGE, you need to give the name of the next page that you have defined in your Form.

regards,

Ravi

Note : Please mark the helpful answers

Former Member
0 Kudos

hai sathish,

/: NEW-PAGE [page_name].

The current page will be completed and the text in the following lines will be written to the page specified in the form.

/: NEW-PAGE S1

page S1 will be taken as the next page.

NEW-PAGE:

To trigger a page break during list processing, use the basic form of the NEW-PAGE statement:

Ends the current page. All other output appears on a new page. Does not trigger the END-OF-PAGE event. This means that the system does not output a page footer even if one is defined.

RESERVE <n> LINES:

To execute a page break on the condition that less than a certain number of lines is left on a page, use the RESERVE statement:

hope this will be helpful

regards,

praba

vinod_gunaware2
Active Contributor
0 Kudos

You use a command to stop the output of a page in the main window:

1. Choose Create -> Command in the context menu to create a command node in the main

window of the page.

2. On the General Attributes tab mark Go to new page. Determine the new page using the list

box next to the checkbox.

Result

The output of the main window continues on the new page.

The new page is the static next page. If a new page is called by a manual page break with

page specification within the main window (dynamic next page), the system processes this

page.

The <b>manual page break is executed only in the main</b> window, which means that you

can specify it only in the output control of the main window.

For pages without a main window the system goes to the static next page after

processing all windows. If there is no next page, processing stops.

regards

vinod

Former Member
0 Kudos

Get the value of current loop pass in a variable.

check for the condition if the record is greater than 2, using the command node specify the new page it has to go.while going to new page clear the variable.so that in every page u will get only 2 items.

0 Kudos

Hi Uma - Thanks a lot .can you please explain that in detail. My requirement is

"The Layout should be as follows, 2 HU slips horizontally printed (A6 format each) on one A4 page" and i have to print multiple HUs

Inbound Delivery Inbound delivery items Handling Units

VBELN POSNR HUs

180001617 000010 200623246

200623247

200623248

000020 200623249

200623250

200623251

200623252

How to control page break in this case