Skip to Content
avatar image
Former Member

Page No. in Smart forms

Hi,

I want to print some 30 records in smart forms with the key item as invoice number, in this for a particular invoice number say '4' and it has 20 item data, all these item data cannot be printed in a single page so they extend to second page and third page, now i want the page no for this to be printed as

Page <current page> of <total page>. (for the respective invoice number)

Page 1 of 3 (in first page of the invoice number 4)

Page 2 of 3 (in second page of the invoice number 4)

Page 3 of 3 ( in third page of the invoice number 4)

and when the next invoice no say '5' is to be printed this has to be cleared and must be printed again based on the item data of that invoice.

please help me in this.

thanks,

Sarath.C

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 14, 2007 at 05:47 AM

    I dont now if this can be done but a little easier approach would be ibstead of passing all the Invoice numbers at the same time, u can call your FM inside a loop for each Invoice....

    This would solve the purpose..

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 12, 2007 at 09:12 AM

    Hi Sarath,

    You can use &SFSY-PAGE& of &SFSY-FORMPAGES& . It will automatically incement the page number and if you print for next document it will automatically cleared.

    Thanks,

    Madhu.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi madhu,

      I used that option but its printing like

      Page 1 of 30 (for total of 30 records). But I want the page no to printed for each header item .

  • avatar image
    Former Member
    May 14, 2007 at 09:31 AM

    U can take the help of some flags.. ie like resetting the flags when one particular invoice gets printed. If the flag is restting then u can clear the values of the sfsy-formpages and sfsy-page fields and thus u can get the desired output.

    Reward if helpful.

    Add comment
    10|10000 characters needed characters exceeded