Page Number Printing in Smartforms

Dear All,
The requirement is to print the total number of pages in the format of
Page:- 1 of N.
The below example explains in details.
The smartforms prints for Vendor and purchase order wise details. The purchase orders is in range. If I give 10 purchase order number in select-options, it displays total 33 pages in smartform o/p.
If one purchase order has 3 pages, It should display
1 of 3
2 of 3
3 of 3
for another purchase order, it display will
1of 2
2 of 2.
Like this is the requirement to display in the smartforms.
So, how I do in smartforms?
Thanks and waiting for useful reply
Regards
Anu

Hi Anu
in smartforms write
Page &PAGE & of &SFSY-JOBPAGES&
where page is a variable with value SFSY-PAGE.
you hold the value of document, and compare it with the new one, if is different you clear the variable that restart to 1.
for SFSY-JOBPAGES so the total number of page you should do a similar logic, where you comparing the document number
step by step adding 1 at the total value, when the document number change you have the total page value. 
best regards
Marco
Edited by: Menegazzo Marco on May 17, 2010 2:14 PM

Similar Messages

  • Regarding Page number printing in smartform

    Hi All,
    I have a requirement wher i should print multiple PO in smartform. It is done..a small issue regarding printing of page numbers. Lets say i am printing three PO
    first PO has 20 items
    second has 2 items
    third has 1 item.
    Now the forst Po can have multiple pages it should print as
    Page 1
    page 2
    page 3.
    Now after the end of first PO second PO is printed on new page and numbered as Page 1..and so on.
    So how can i do this.....
    Thanks,
    Regards,
    Narsimha Kulkarni.

    Hi,
    Create a paragraph format with dynamic page numbers.
    Smartstyles>numbering and outline->select numbering type from list dropdown.
    use this paragraph format for displaying the page number with any code.
    and before processing your logic create a COMMAND in your smartform and in the reset paragraph numbering give your paragraph name so that it refreshes page numbers every new PO's. (you have place this according to your code).
    Thanks,
    Sree.

  • Controlling page number print

    Hi,
    Is there a way to control which pages to print using Report Builder 6.0.8.22.0 from a PL/SQL procedure intead of using the printer dialog box's Print range?
    Or is there a way to print only the header section and not the main section?
    Please advise.
    Thank you,
    J

    hello,
    i am afraid this is not possible except by hiding the respective sections objects using a format trigger that is driven by a user parameter.
    thanks,
    ph.

  • Job pages not printing in Smartforms

    Hi Guys ,
    Actually Im trying to print Job pages in smartforms ..it is showing job pages below 9 that is single digit ..
    But if the Job pages is double digit i.e., from 10 ..it is printing '*' ...
    Can u please llet me know the solution .
    Thanks & regards ,
    Sandeep Thota .

    Hi,
    Try using &SFSY-FORMPAGES(3CZ)&
    Check this link
    Issue in displaying the total number of pages in smartform.
    Regards

  • Page number problem in smartforms

    Hi experts,
    I have this problel:
    1. I have 2 documents, the first have 3 pages and the second with 2.
    2. I would to print this page numbering: 1/3, 2/3, 3/3 for the first document, and 1/2 and 2/2 for the other one. I would print each documents in the same session, without multiple calling of the same form.
    Is it possible?
    Thanks.

    Hi,
    You have to create your own page counters and a new page window (type Final Window).
    This window is executed at the end of the smartforms, once for page, and you can add the logic for your counters in this window (depending on page name, ...)
    Regards,
    Pepe

  • Pdf reader that will let me print the current page number to stdout ?

    I'm looking into annotating my readings, and it'd really speed things up if I were able to get the current page number printed to stdout.
    I've been through evince and xpdf's manuals, the latter will let you output the file to ps, so there might be some hacking possible there, but maybe there is a more convenient alternative...?
    Would appreciate some suggestions.
    Cheers !

    Sure that works, it's just that I'm already wrapping my pdf reader in a ruby script to allows me to make annotations linking back to the original document and page, and I also use the clipboard to quote.
    So instead of being a keybinding away, I end up have to juggle with windows...

  • PDF print out prints page number 1/1*

    I have a Web Dynpro report that when I print out in PDF format, the page number prints out as 1/1* of the length of report is greater than 100. Is there any way to work around this?
    Thanks.
    Lisa

    Try Print as Image (Advanced button on Print panel).

  • Reader 11 pdf page numbers printing too high

    After I upgraded to Adobe Reader 11, I have started having issues with page numbers on my pdf forms printing too high on the page. Instead of printing at the bottom of the page, they jump up to wherever the text on the page stops. For instance, if the text stops half way down the page, the page number prints one line beneath that text, so it's in the middle of the page instead of the bottom corner. The file looks fine on the screen, and if I print it in Reader 10 on another computer, it prints at the bottom of the page where it belongs. I've compared settings between my computer, and the computer where the file prints correctly, and I can't find any settings that are different. Has anyone else had this problem? And if so, suggestions for a solution?

    looking again, it prints badly in Chrome, Safari, pdf, preview but NOT Firefox.
    And, I was wrong about Gmail. it prints wrong from gmail, too.

  • Cp 1700 skipping pages when printing

    I do not know if the problem comes from MS Excel or a printer issue but, when I go to print a multiple page spread sheet the first page prints and the rest are blank.
    Sometimes, but not on every skipped page I will get a page number printed.
    Help.

    Hello Imajene,
    Welcome to the HP Forums.
    I see that you are having some issues with the printer skipping lines when attempting to print.
    Please click on the following link for Fixing Print Quality Problems for the HP ENVY 4500 and HP Deskjet Ink Advantage 3540 e-All-in-One Pr....
    Once you have completed the steps in the document, try doing a stand alone Copy and see if you have the same results.  If the issue is resolved when doing a Copy, then try printing from the computer.  If the issue reappears when printing from the computer, then this could be an issue with the software or a possible interruption from a Windows Firewall or Anti Virus program.
    If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Thanks for your time.   
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Page Number in smart form

    Hi,
    I want to display the page number in my smartform . How to approach it?
    Regards,
    Ram.

    In smartforms u will find FIELD LIST ON/OFF in application tool bar click that u will get FEILD NAME below in that SYSTEM FIELDS -> SFSY ->PAGE or FORMPAGE or JOBPAGE as per ur requirement.
    regards,
    prabhu
    reward if it is helpful

  • Number of different copies to be printed in smartform

    Hello,
    I have developed a smartform with 3 different pages, now when i give a print command , the first page should print 2 number of copies , second page should print 3 number of copies and the third page should print 4 number of copies.
    Is it possible in smartform, if so how?
    Thanks and Regards
    A

    hi,
    for printing different copies u have to use loop in main window and check for the condition for number of page.
    and den after printing all the values in mainwindow put command node and mention page no say page1 in urcase there put condition fr watever amount of repeated copies u want ex 2 in ur case.
    then once 2 times page 1 has been printed put a commad for goto page 2 and loop accordingly for the no of time u want
    then for the third page.
    hope this will help u .
    regards,
    prashanti

  • Page number - smartform

    Hi,
    My requirment is - suppose i have given 1 to 3 invoice in my selection screen , so in smartform layout, In first page 1-invoice will be print, in second page 2-invoice will be print and the 3 page 3-invoice will be print. so i want the page no for all page should be
    1 instead of SFSY-page.If suppose any invoice line item print in next page then page no will be 2,3.etc.
    but for every new invoice page number should be 1.
    please help me on this.

    Hi,
    I suppose you need to distinguish in some way when new invoice has started. Thus, I would recommend using two extra variables: one to store current page of every invoice, one to store how many pages have already been printed for all previous invoices.
    The algorithm will look something like that:
    1. if new invoice: all_prev_pages = sysf-page. else: skip step.
    2. current_invoice_page = sysf-page - all_prev_pages + 1.
    3. print current_invoice_page.
    Regards,
    MC

  • Print tpage number/total page number in a report with width more than 240

    Dear all,
    I need to display total page number as following code sample.
    But I need to put it after position 240.
    this program can print total page number if   it is placed at postion 239 or before.
    WRITE: /234(10) 'Heading',  239 SY-PAGNO,'of ', '-----'.
    Whenever I put  240 or more WRITE: /234(10) 'Heading',  240 SY-PAGNO,'of ', '-----'.
    Total page num could not be displayed.
    Please tell me the solution.
    thanks
    REPORT YPAGECOUNT NO STANDARD PAGE HEADING LINE-SIZE 276  LINE-COUNT 65.
        DATA L_PAGE_COUNT(5) TYPE C.
    TOP-OF-PAGE.
      WRITE : /234(10) 'PAGE', SY-PAGNO,'/ ','-----', ''.
       WRITE: /234(10) 'Heading',  239 SY-PAGNO,'of ', '-----'.
        ULINE.
    START-OF-SELECTION.
      Real list output takes place here
        DO 1000 TIMES.
            WRITE: / 'Line #', SY-LINNO.
        ENDDO.
      Page count will be printed on each page here
        WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
        DO SY-PAGNO TIMES.
            READ LINE 1 OF PAGE SY-INDEX.
            REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
            MODIFY CURRENT LINE.
        ENDDO.

    Using Values Greater than 255 for the LINE-SIZE of a List
    If you define a fixed column width greater than 255 using the LINE-SIZE addition in the REPORT or NEW-PAGEstatement, the following notes apply:
    Type definitions: The type group SLIST defines the valid maximum value for the list width (SLIST_MAX_LINESIZE), and contains a type for list lines with maximum width (SLIST_MAX_LISTLINE).
    Accessing the entire contents of a line: To read or modify the entire contents of a wide line, you can use the ... LINE VALUE addition in the READ LINE or MODIFY LINE statements. This is an alternative to using SY-LISEL that is independent of the attributes of the system field (since the length of SY-LISEL is 255 characters).
    Horizontal lines: With extra-wide lists, the "ULINE." statement corresponds to "WRITE / SY-ULINE.". So, for example, "ULINE AT 5(300)." corresponds to "WRITE AT 5(300) SY-ULINE.".
    Output length: You can use the length specification in WRITE (or ULINE) to extend the output length of an extra-wide list up to the value of LINE-SIZE. If you want to output a whole field that is longer than 255 characters, you must use this, even if the field itself is defined as longer than 255 characters.
    Example
    NEW-PAGE LINE-SIZE 1000.
    DATA: F1(500) VALUE 'F1'.
    WRITE: /      F1 COLOR COL_NORMAL.  " Output with length 255
    WRITE: /(500) F1 COLOR COL_NORMAL.  " Output with length 500
    Awrd Points if useful
    Bhupal

  • BI Publisher - if page number is not divisible by 2 then print a blank page

    Hi,
    I have an BI Publisher rtf word template. I want to be able to print a blank page if the page number is not divisible by 2. Does any body know how this can be done? Your input is greatly appreciated and thank you so much in advance.
    MT
    Edited by: user11177994 on Mar 29, 2010 8:19 AM

    Hi Dominic,
    Thank you for the link. The problem that I have is when the job specification last page prints on the front of the page, and the next job specification prints on the back of that page. There is no way I can control what page it is going to print on. This is depending on how much description the user puts in. Any suggestion is greatly appreciated.
    I do have another issue too, and you maybe able to help me with this. Below is a list of form fields on my template. When the job specification is printed on more than one page, I could not get the fk_job_title to print on the continuous pages. Is there a way I can code this fk_job_title to print on all of it's continuos page? I have tried many different ways but could not get it to print. I also posted this in the forum, but didn't get any respond.
    ** form fields **
    CLASS TITLE: F fk_job_title PAY GRADE: p_grade
    JOB CODE: job_code SALARY RANGE: s1 - s2
    LOCATION OF WORK: work_location
    GENERAL DESCRIPTION: general_descr
    ESSENTIAL WORK TASKS: work_task
    KNOWLEDGE, SKILLS, AND ABILITIES: knowledge_skill
    EDUCATIONAL AND EXPERIENCE: education_exp
    SUBSTITUTIONS: sub
    CERTIFICATIONS/LICENSES: certification_license
    OTHER JOB ASPECTS: job_aspect E
    PB
    Thank you so much,
    MT

  • Print Multiple copies of report, and resetting Page number for each copy.

    Dear frnds!
    i am using developer 6i reports i have a problem.
    i want to Print Multiple copies of report, and resetting Page number for each copy" that is 4 copies of an invoice is required
    1 - for user copy
    2- gate copy
    3- accounts office
    4- office copy
    any body please tell me the solution "i am using oracle 9i and developer 6i"
    Thanx
    Ibrar

    Hi,
    I was wondering if you were able to get your multiple copies working? Below is what I have so far, just trying to get it to work before changing the actual template.
    <?for-each-group@section:R5542520/Pick_Slips_Detail_Lines_S3;PickSlipNumber_ID260?>
    <?variable@incontext:G1;R5542520/Pick_Slips_Detail_Lines_S3;PickSlipNumber_ID260?>
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,3,1)?>
    HEADER
    PSN: <?$G1/Pick_Slip_Number_Display_ID54?>
    PSN Detail: <?$G1/PickSlipNumber_ID260?>
    Page 1 of 3
    <?start:body?>
    BODY
    <?$G1/LineNumber_ID6?>
    <?end body?>
    FOOTER
    <?end for-each?>
    <?end for-each-group?>
    XML:
    <R5542520>
    <Pick_Slips_Detail_Lines_S24>
    <Header_Custom_Section_S24>
    <Pick_Slip_Number_Display_ID54>123456</Pick_Slip_Number_Display_ID54>
    <PickSlipNumber_ID260>123456</PickSlipNumber_ID260>

Maybe you are looking for

  • Charing iPod with iGo charger

    So I got the generic USB tip for the iGo charger. This is just a USB power port. I use a mini dock on my iPod to get line out while I'm in my car, and it has a USB in for charging. However, when I connect the USB it does not charge. Does anyone know

  • Best phone for syncing with Office for Mac 2008?

    I'll be getting a new phone in a few months and I want to get one that syncs perfectly and effortlessly with Office for Mac 2008. I currently use a Motorola Q and a Macbook Pro and have to go through isyncing Office with the Mac versions (iCal and Ad

  • Image stored in BLOB column crashes report's engine

    Hi, I have a report where I display logos stored in a BLOB column on the DB. The report is generated as RTF. When images have sizes of 624x168 or 423x324 everything is OK. One image, 1221x224, is crashig the report with a dr. Watson error. Any idea w

  • CSS with three columns- middle fixed, sides adjust?

    I am new to CSS. I am trying to produce a webpage that utilizes a 3 column structure. The center column will be a fixed size and will be always centered in the browser, however the left and right columns will need to automatically adjust themselves t

  • Lenovo ideacentre a310 graphics

    Hi all Simple question, anyone know if there is a possible graphics upgrade for this ideacentre? Thanks - Kasper