Sapscript page number

Hello guys,
I have a sapscript form, wich let you choose how many copies you want to print. I need to know wich page is being  printed, is there any variable that give this information, like sy- ???
Thanks a lot guys !
Javier.

I was trying what you said, but it always print 1 - 1. Should print 1 -2 , and 2 -2.
I think it is becasuse my document is 1 page long, but this 1 page document I need to print twice. So each time the document start on the firt page (only page), the counter start again.
I changed counter mode on first page to INC, but it prints always 1 -1  (on both pages).
Is there anything else I can do?
Thanks

Similar Messages

  • Page number after printing a text element in SAPScript

    Hello to all,
    is it possible to know the page number in which SAPScript print a text element?
    Thanks and regards
    Franco

    Hi!
    &PAGE& variable gives you the actual page.
    /E MYELEMENT
    /: DEFINE &MYPAGE& = &PAGE&
    I hope it works...
    Regards
    Tamá

  • Page number wise printing of sapscript

    Dear All,
    I have SAPSCRIPT program for SAP FI/CO voucher printing .
    The problem is that the user has to select each and every page to print after they have a print preview.
    What user need is that the script would be printed as according to the user enters the page number range like for example
    page 1-12 and the form would be printed from page 1 to 12.
    can anyone help me out with the problem ASAP.
    thankx & rgds
    TCL kolkata

    Hi!
    &PAGE& variable gives you the actual page.
    /E MYELEMENT
    /: DEFINE &MYPAGE& = &PAGE&
    I hope it works...
    Regards
    Tamá

  • Printing  page number and continu text in sap script

    Hi
      I have created sapscript to print PO and using standard print program with three pages.
    My thrid page called with NEWPAGE <> from Main window of first or sencond page wokign fine but the page number is coming like page 1 of 2, 2 of 2 and 3 of 2
    another issue: I want to print continue text if sapscript has more than one page, Not included last above newpage <page>
    Please give me some idea how to go about above two
    Regrads,
    challa

    Hello,
    TO print the page number do like this
    <b>&Pages& of &SAPSCIPTS-FORMPAGES&</b>
    To print continues pages. Put the text in the <b>MAIN</b> Page.
    and use <b>PROTECT ..... ENDPROTECT</b>
    If useful reward.
    Vasanth

  • RDF_1 passes last page number to RDF_2

    Hi,
    Scenario
    =======
    User runs Report 1 which is immediately followed by Report 2 (but this appears to the user as only one report).
    Requirement
    ==========
    We need to continue page numbering on Report 2 so that it appears to be one Report.
    Environment
    ==========
    Forms/Reports 11g/ Fusion Middleware/Weblogic.
    Initial Thoughts
    =============
    Somehow record total number of pages of Report 1 then pass this as a parameter when running Report 2?
    Any ideas appreciated.
    Thanks!

    For Smarforms
    Use SFSY-FORMPAGES to display the total number of pages in the Smartforms
    &SFSY-PAGE& Current page number
    &SFSY-FORMPAGE& Total number of pages in the currently formatted layout set
    &SFSY-JOBPAGE& Total number of pages in the currently formatted print request
    &SFSY-COPYCOUNT& Original-1,1st copy-2
    &SFSY-DATE& Date
    &SFSY-TIME& Time
    &SFSY-USERNAME& Username
    I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages.
    There may not be enough space in the window to display the variable, either increase the window dimensions or condense the spaces using &SFSY-FORMPAGES(C)&
    For Sapscript
    SAPscript: Total number of pages
    Description
    From Release 3.0, SAPscript allows you to output the total number of pages on any output page:
    2 new system symbols (note upper case) were therefore introduced:
    &SAPSCRIPT-FORMPAGES&
    Total page number based on the current output layout set:
    &SAPSCRIPT-JOBPAGES&
    Total page number based on all output layout sets created with the function modules OPEN_FORM, START_FORM .. ENDFORM, START_FORM .. END_FORM, ..., CLOSE_FORM
    Examples:
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C)&
    Specifies the current page number and total page number. The additional specification (C) outputs the symbol in a compressed form, that is the leading blanks are omitted in the 4-character output (default).
    Number of all output pages: &SAPSCRIPT-JOBPAGES(C)&
    Outputs the total number of output pages. Caution: When using this symbol, all output pages must be held in the main storage so that the total page number can be inserted at the end of the output. Larger outputs can affect performance.

  • Script - Page Number

    Hi,
    I display page number in each page as &PAGE& of &SAPSCRIPT-FORMPAGES&, means current page number of total pages. But there are 25 pages in the script. From 11th page to 25th page, the page number is displayed correctly as 11 of 25, 12 of 25........25 of 25. But from 1st page to 10th page, it is displayed as 1 of 2, 2 of 2 ....10 of 2. What may be the error? How do i correct it?
    Regards,
    Ezhil.

    Hello,
    You can try :
    &PAGE(CZ)& of &SAPSCRIPT-FORMPAGES(CZ)&
    Hope this helps.
    BR,
    Suhas

  • IS-U print workbench - User exit - to get current page number

    Hi,
    I have a doubt in IS-U print workbench where in I need to get the current page number which is being processed inside the user exit of the application form.
    I have a user exit called Z_EXIT_150 and here I have a subroutine which is inside the LOOP DOC_ITEM …ENDLOOP.
    Inside the subroutine, I need to get the current script page number.
    There is an option of getting the current page as &PAGE& inside the Script but I need to know the page number inside the exit.
    Do you have any idea of getting the current page number?
    Thanks and Regards,
    Sakthi.

    Hi Sakthi,
    I have also had this problem while working in IS-U Print Workbench but was also unable to solve.  I tried looking into the output_text that is called when reaching an object that references SAPSCRIPT-FORMPAGES but I too could not find a way to save PAGE to a variable for later use.
    The only idea I can think of, although I have not tried, would be to place some sort of counter variable in the BUILD_DOCUMENTS and increment the counter each time there is a successful printout of a header logo or some other object that you expect to see printed on each new page - that way maybe you can determine later in the exit processing what page # you are currently in. 
    I hope this has helped some.  I would be really interested to hear if someone else has a solution of how to access items in the SAPSCRIPT structure from outside of the SAPscript code.
    Regards,
    Geoff

  • Page Number Repeating

    Hi Guys,
    I am in the process of developing a program that would print several SAPScript forms to be sent  to third parties. For instances I have third parties ABC, PQR and XYZ. Each third party has several line items which can spill into several pages. What is happening is that the page numbers for ABC, repeats on page 1, for PQR, it repeats on page 2, on XYZ it repeats on page 3 for all the pages per third party. I want it to be such that if third party ABC for instance has 17 pages it should write pages 1,2,3,...,17 on the pages and if PQR has 4 pages it should write pages 1,2,3,4 on each page accordingly. How do I approach this?
    Regards

    1. sort the internal table based on Third Party ,
    2. Dont use standard page variable, use custom variable
    3. Print the custom variable as a page number and increment each page
    4. If the new third party like abc to xyz ,reset the custom variable at this time.
    Regards

  • Reseting page number in Word RTF template for BI Publisher PDF generation

    Hi!
    Apex 4.0.2, Oracle 10.2.0.4, BIP 10.2
    Bills are created based on Word RTF file with BI Publisher. Reszulting file is one big PDF file, which has many pages.
    Word RTF template is grouped on BILLS.ID field with page break option. So one BILLS.ID may have one or many pages (according data).
    How to create RTF template (for PDF BI Publisher generation) with reseting page numbers when grouping value change.
    Page numbers are in footer in format
    curr_group_page/total_group_pages
    where:
    curr_group_page is current page number in group (defined with BILLS.ID field),
    total_group_pages is total page number of pages in group (defined with BILLS.ID field).
    I need to reset numbering whenever BILLS.ID (group) change.
    Example:
    ID=1 (4 pages)
    1/4, 2/4, 3/4, 4/4
    ID=2 (1 pages)
    1/1
    ID=3 (2 pages)
    1/2, 2/2
    ID=4 (3 pages)
    1/3, 2/3, 3/3
    etc.
    How to achieve that kind of numbering?
    Any help appreciated.
    Regards,
    Damir Vadas
    Edited by: Damir Vadas on May 16, 2011 12:49 PM

    Simple question.. Does your posting deal with an APEX issue or a BI Publisher issue? The posting you have deals with the RTF add-on for Word that builds report layouts for BI Publisher. I suggested in my response that you move it to a more relevant forum..
    If you feel that me alerting you to the fact your are VIOLATING forum policy is an issue, please feel free to ask others their view.. (posting to a 3 year old closed thread, creating MULTIPLE threads for a single issue..) You do NOT seem to get the idea that posting this in the Bi Publisher support forum would probably get you a BETTER response than here.. Asking pl/sql questions here will also get people to refer your questions to the PL/Sql Support forum..
    Also, here is a POSSIBLE answer from the BI Publisher Forum: http://forums.oracle.com/forums/thread.jspa?threadID=594805
    This Is The APEX SUPPORT forum, we deal with SUPPORT questions on APEX (Application Express)..
    Thank you,
    Tony Miller
    Webster, TX
    You know, I used to think that it was awful that life was so unfair. Then I thought, wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? So, now I take great comfort in the general hostility and unfairness of the universe.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Page number reset in .rtf template

    Hello,
    In the AR statements report, If I run the report for mutiple customers, page number has to be reset for each bill_to customer...
    I have the header part from the second page, so when I run the report for multiple customers...even for the new customer's first page...header is coming....
    So I assume by resetting the page number for every bill to automatically solve the issue of header from second page...
    Please advise...how to reset the page# based on a condition ( for each bill to)...I know it work with @section....
    but my template is like <?for-each-group:G_STATEMENT;./STATEMENT_DATE?><?for-each-group:current-group();././././././././././././././SEND_TO_ADDRESS_ID?>
    -Sridhar
    Edited by: user7751421 on Oct 12, 2011 4:32 AM

    If you could send me your xml and template i can give a try.
    [email protected] is my email id.

  • Using fo:page-number In IF statement?

    To preface my question, I am trying to get a different header (none in fact) on the first page of a template than all the rest of the pages with RTF output. I have tried the technique proposed in a couple of other posts (http://winrichman.blogspot.com/2008/08/different-page-header-and-footer.html) to no avail. I am using template builder 10.1.3.3.3. I'm not sure what the version of BI on our servers is, but it's really irrelevant because I'm stuck with it regardless (it's whatever version comes with PeopleSoft PeopleTools 8.48.17).
    As others have noted, the "Different Header On First Page" feature of Word works fine for PDF output, but not for RTF.
    What I was hoping I could do is just add a simple conditional statement to the header text so that the header would only be printed if the value of fo:page-number is greater than 1. I have tried doing several things such as:
    <?if: fo:page-number > 1?>header<?end if?>
    <?if: <?fo:page-number?> > 1?>header<?end if?>
    And nothing seems to work. I am fairly ignorant when it comes to the xsl fo stuff, so I was hoping my problem is just something with syntax. I have however, read a few things that may indicate this type of thing just won't work.
    Any help would be greatly appreciated.

    <?if: fo:page-number > 1?>header<?end if?>
    <?if: <?fo:page-number?> > 1?>header<?end if?>
    This won't work. You cannot use the fo:page-number in conditions.
    Different First page and other page stuff works in RTF
    Pass me your xml and rtf to fusionDOTobjectATgmailDOTcom

  • ?fo:page-number? in if statement in the header section

    Hi,
    is it possible to put the <?fo:page-number?> in if statements??
    like <?if:fo:page-number>1?>STOP<?end if?>
    i have a requirement that the column should not be displayed in the succeeding page except for page 1. also the column have the table property REPEAT AS HEADER ROW.
    example:
    Page 1
    DOG
    CAT
    RAT
    FISH
    PAGE 2
    CAT
    RAT
    FISH
    PAGE 3
    CAT
    RAT
    FISH
    thanks, and i hope im able to explain well my problem . . .

    Hi,
    Did u try using the MS Word native functionalit --Option : Different First page –header option or Different Odd & Even Pages.
    hopefully this will help you to achieve your requirement.
    Regards
    Ravikumar Reddy
    +971 56 106 2436

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

  • Page Number - Total Page number in Blocked ALV

    Hi Gurus,
      I need to print the page numbers like 1 of 5 in the ALV footer. Am able to print the current page number but am unable to print the total page number in the footer of the Blocked ALV. Can any one guide me how to display the total number of pages.
    Points will be awarded
    Thanks
    Ravi

    Hi,
    Please refer to the link below :
    http://www.sapdev.co.uk/reporting/alv/alvgrid_events.htm
    Thanks,
    Sri.

  • Page number in ALV report

    Hi all,
    I use top of page to print page number for ALV report. When i run my report in backgrond and see the spool, the page is always started from page 2.
    These does not happen when I use non-ALV report, report prints the header starting from page 1 normally. It is weird.
    does anyone of you ever face such of that problem ?
    thanks alots
    Alia

    Hi Alia,
    Page number is usually not set in an ALV display, as compared to  List processing.
    r u sure this is a requirement?
    chk this:
    ALV Print page numbers
    Regards,
    Anjali

Maybe you are looking for

  • Control File error while duplicating Database through Rman

    Hi, Oracle Ver: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production Os:Win Xp I am trying to create a Standby through Rman.... I am using this Run Block to take backup of Primary Database....... run { allocate channel d1 type disk;

  • Select statement having internal table in the wher clause...

    Hi, will all the entry from the internal i_crhd will be pased to the next select statement in the sample code below without looping? Thanks  a lot! REFRESH i_crhd.    SELECT objid vgwts      FROM crhd INTO CORRESPONDING FIELDS OF TABLE i_crhd      WH

  • Script or anything that will auto quit app after certain time of inactivity?

    I am searching for a way to make apps auto quit after a certain time of inactivity. For exmaple, if i open the app store, i would like it to close automatically after a certain amount of time, with the possibility of adding exceptions to the list. Is

  • BRM: What should happen if violations arise while role creation???

    Hi, I have configured the role methodology and it is working fine. But, I would like to know if any violations are arising while performing analysis, what should be done? Should be routed to some one? If yes, then how can we do it? What should be the

  • Shuffle not showing on i tunes

    I recently purchased a new computer because my old one died I want to transfer my songs from my ipod to my new itunes but the ipod is not showing up in itunes. Please help