cancel
Showing results for 
Search instead for 
Did you mean: 

Reset page number & Total Pages in smartfrom on page break

Former Member
0 Kudos

Hi All

I am triggering a form at shipment level. In the form, based on the ship to party, i have to generate a new page whenevr ship to party changes.

EX:

Delivery1 - SHIPto1

Delivery2 - Shipto1

Delivery3 - Shipto2

Delivery4- Shipto3

Output:

Page 1 : Delivery 1 & 2

Page2 : Dleivery 3

Page 3 : Dleivery4

Now, whenever i print a new page, the page numbering should be according to that set only .ie.

page 1 : delivery1 & 2 ( Page 1/2, page 2/2)

page2: delivery 3( Page 1/1)

page3 : delivery4 (page1/1).

I have seen this thread, but this doesnt give a clue.

Please help.

Cheers

RAvish

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

U loop the internal table and call the SF FM in the loop for every change in delivery no and use the variables in SFSY to print the pages.

it is just like calling START_FORM & END_FORM in script.

Hope it helps!!

Regards,

Pavan

Former Member
0 Kudos

Hi

Thanks for the reply. i did it this way and solved the problem. Feel silly now why i didnt think of it earlier.

Cheers

Ravish