cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Forms

Former Member
0 Kudos

hi,

Consider i have 50 purchase order and i have to display only 5 purchase order per page.

when it exceed 5 it automatically go to the next page.

please clarify with sample code or screen shots....

Regards

Vel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

this solution was given to u in ur previous thred too which probably u did not try.

use a table node to display ur line items, include all table rows inside a folder node and in the output options of the folder node tick the checkbox PAGE PROTECTION now see ur output,suppose u r getting 7 line items, so now reduce the size of the main window and try again do this till u get exactly 5 line items,

i know this is a hit and trial method and require some trepeated trials and testing but its the simplest solution u can implement.

кu03B1ятu03B9к

Answers (3)

Answers (3)

Former Member
0 Kudos

hi;

You have to have a counter and based on its value, click the new page with condition like counter eq 5

then reset it immediately.

Regards

Shashi

Former Member
0 Kudos

Hi,

in command line window write condition the below code in the Conditions tab.

w_count = 5

in program lines window have the counter increment and initialize to 1, when it is greater than 5

w_count = w_count + 1.
if w_count > 5.
w_count = 1.
endif.

this will definitely solve the poroblem

check this wiki for screen shots

[https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/pageBreakin+SMARTFORMS]

[https://wiki.sdn.sap.com/wiki/display/ABAP/Pagebreakforaparticularnumberoflinesin+smartfoms]

regards

sarves

Former Member
0 Kudos

Hi,

take variable and use mod.

If mod > 5 use page break.

Create the main window COMMAND---> goto new page ---> give PAGE name.

In the command insert apage break by the mod conditions.

Regards,

jaya