Skip to Content
avatar image
Former Member

smartform total no of pages using jobpages

Hi,

I am prinitn 3 copies for that using composer_param-tdcopies = 3. But the problem is i am unable o fetch total no of pages.

Pls tell me how can i get that..

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 15, 2010 at 12:29 PM

    Hi,

    IF SFSY-COPYCOUNT = '1'.
    copy  = 'ORIGINAL FOR BUYER'.
    ELSEIF SFSY-COPYCOUNT = '2'.
    copy  = 'DUPLICATE FOR TRANSPORTER'.
    ELSEIF SFSY-COPYCOUNT = '3'.
    copy  = 'TRIPLICATE FOR EXCISE'.
    ELSEIF SFSY-COPYCOUNT = '4'.
    copy = 'QUADRAPLICATE FOR ASSESSEE'.
    ELSEIF SFSY-COPYCOUNT = '5'.
    copy = 'EXTRA COPY NOT FOR CENVAT'.
    ENDIF.

    and Display Here the COPY variable which display the Name of the Copy and Specify the no. of copies to be taken in the Print Priview Window that popups as No.of Copies it automatically displays the result as Copy 1 of page 1 , copy 1 of page 2.

    any way &SFSY-FORMPAGES& displays the total no.of Pages

    Regards,

    Vijaya Lakshmi.T

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Pramila,

      Copy the same(Final window) into next page what you are doing in the first page

      Let me know if any concerns........

  • Mar 15, 2010 at 09:51 AM

    Hi,

    &SFSY-FORMPAGES& will gives you total no of pages.

    Thanks,

    Abhijit

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 15, 2010 at 10:15 AM

    Hi,

    In the form check SFSY structure

    U will get page Page Number/Number of Pages , Total Number of Form Pages

    If you want to print use final window for that

    Let me know if any concerns....

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I am printing 3 copies of the form. I am using tdcopies =3 for getting this functionality. And prinintg of 3 copies is working fine.

      These 3 copies are- 1) shipper's copy 2) Freight's copy 3) Carrier Copy. All 3 copies are same only header part is changes.

      For that am using sfsy-copycount.

      The last 1 page i m printing terms and conditions. Suppose the whole data is coming into 3 pages. Then total it will be having 3 + 1 = 4pages in each copy. So total no of pages prininting would be 4 * 3 = 12 ( 4 pages into each 3 copies).

      But I don't want to print page no on tc (terma nd Condition) page . Page format 'current_page of total-pages'.

      Now the pages on each 3 copyies shd be. 1 of 3, 2 of 3, 3 of 3. But i am getting 1 of 4 , 2 of 4, 3 of 4.

      because i am using sfsy-jobpages to fetch total no of pages so it is fetching 4. If i use sfsy-jobpages - 1 to get total no pages as 3 then it is working as 1 of 0, 2 of 1, 3 of 2 ..like this..because this time (sfsy-jobpages-1) taking its current value what i saw in debugging. but if i use only sfsy-jobpages then it retain the latest value, in this example it will contain 4.

      Can anyone pls help me for this problem. If anybody has used sfsy-copycount and printing total no of pages

      Thanks

      -


      Pramila

  • avatar image
    Former Member
    Mar 17, 2010 at 07:49 AM

    Hi Lokeswara, Thx a lot. Ur solution worked very well. Thank you very much again.

    Edited by: Prams1234 on Mar 17, 2010 8:50 AM

    Add comment
    10|10000 characters needed characters exceeded