Displaying Page number in all pages of sap script output

Hi All,
I have a issues in displaying page number in all pages of sap script output.
I have created a seperate window just above main window to display page number.
I have given &PAGE& in the layout editor.
Now in the sap script output i am getting page number as 1 in all the pages page number is not changing for pages-2,3, etc..
Can anybody tell me the reason for the same!
In some other objects same syntax is working fine. For this object it is not working!
Is there any setting changes!
Thanks i
Thanks,
Deep.

Hi,
Just check the Page Counter of the Next or Second Page which you defined.
First page
Mode                     START
Numbering Type           ARABIC
Second Page
Mode                     INC
Numbering Type           ARABIC
Regards
Bala Krishna
Edited by: Bala Krishna on Oct 17, 2008 11:23 AM

Similar Messages

  • 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

  • How to display the number of line items in sap-script report?

    Hi friends,
    I need a help regarding the SAP Script. In my script (report) I create two pages and created three windows (MAIN, HEADER, FOOTER) for each pages. Now the problem is while displaying the fewer line item which can come under the main window of the 1st page these line items are comming perfectly but for the remaining line items that comes on the second page the table headings and the boexs are not comming.
    Also it is displaying the total and the amount in text in every pages that should be display in last page.
    Here if I eleminate or comments the total and the amount in text for the first page the same is reflected in second page. Also I need to display the page-nor for each pages to displayed.
    I am requesting all the people out there kindly help me to solve this issues.
    Thanks and Regards

    There is no pre built solution for this. But we can show total pages in the report body.
    one way is Create a other column in the report with code sum(count(1))/25. that gives you total number of pages. 25 here is no of rows in each page. The code you can write in narrative "Total pages in the report are @5" and out put may be "Total Pages in the report are 30".
    If you are using pivot tables, you can try this.
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/
    - Madan

  • AP Check Display check total on all pages

    Hi,
    I am working on AP check report. I need to display Check total on all pages(in case of overflow invoices). Only for the very first OutboundPayment group the check total is populated under PaymentAmount/Value and for rest of all overflow invoices(OutboundPayment group) this value is 0. I need to display the check amount on all pages. I have created a check_total2 variable to capture the check amount but this variable does not get the check amount on the first page. Now I am trying to use decode to display the check total. But when I use decode function, the values not displaying correctly, it is showing some random number/characters.
    Variable defintion - <?xdoxslt:set_variable($_XDOCTX, 'check_total2', PaymentAmount/Value) ?>
    Decode Condition - <?xdofx:decode(PaymentAmount/Value,'0',xdoxslt:get_variable($_XDOCTX, 'check_total2'),PaymentAmount/Value)?>
    Below is the data -
    PaymentAmount/Value check_total2 Using Decode Value Expected
    105050 NULL NULL 105050
    0 105050 709D3D73971C 105050
    0 105050 1004 105050
    0 105050 1006 105050
    0 105050 1008 105050
    Any idea what is wrong here and how can I fix this. Please let me know if you need more information.
    Regards
    Hitesh

    BIPuser,
    Thanks for your help. My problem has been solved. Below is the code which worked for me(all the credit goes to BIPuser).
    Define variable "check_total" at check template level
    Defined another variable "display_total" at check stub template level
    check_total - <?xdoxslt:set_variable($_XDOCTX, 'check_total', PaymentAmount/Value) ?>
    display_total - <?xdoxslt:set_variable($_XDOCTX, 'display_total', xdoxslt:ifelse(PaymentAmount/Value='0', xdoxslt:get_variable($_XDOCTX, 'check_total'),PaymentAmount/Value))?>
    Now the column where I needed to display the total, I used
    USD$<?format-number:xdoxslt:get_variable($_XDOCTX, 'display_total');’999G999D99’?>
    This solved my problem.
    -Hitesh

  • Page numbers on ALL pages

    I'm trying to insert page numbers on ALL pages in a document in InDesign CS4. But I can only get page numbers to the page 74? This is so annoying, and it's due on monday, and I'm running out of time. Can anybody tell me, short and easy, how I can get page numbers on every page in my document? (Besides the front page - but I know how to not get the page number there.)
    Thanks!
    Ingvild

    Huh? Simply put, you place the page number marker in a text frame on your master page(s), and you ensure that one of those master pages is applied to all pages where you want a page number.
    Is that what you've done? What is not working? Is it page 74 and higher that is a problem? Just page 74?
    Does page 74 use a different master page that doesn't have the page number marker?
    Or is your document corrupt? [Did you try exporting to IDML or INX and re-opening the export?]

  • How to retrieve page number of a page

    Hi
    I need to retrieve page numbers that have been placed on InDesign pages. However these page numbers are autogenerated based on markers (formula) created using a master page. (Insert special characters -> markers).
    When i try to retrieve page items on a page, I am not able to get the page number item. If I try to get the pageitem corresponding to the page number from the master page, I get back the marker but not the page number that exists on my page.
    I am wondering if there is any way I can retrieve the page number on a given page using the SDK
    many thanks
    Sam

    Hi
    Thanks a lot for the quick reply.. For my usecase i now realize i have a different sort of problem.
    I am trying to take snapshot of pageitems on a page (using snapshotUtils sample). Now since the page number marker comes from the master page, when i take the snapshot of the page number item on my page,  this page item exists on the master page. On the master page, this pagenumber does not contain the actual page number but the marker text in it. So mysnapshot gives me the image of the marker text rather than the page number. I am wondering what I can do to basically get a snapshot of a page item which comes from a marker on the master page
    Thus on my master page i have a text box with Pagenumber: "Marker A" for page number
    on my page, I want to take snapshot of  Pagenumber:10 which is what gets displayed on my page
    However when i take snapshot, since i am taking snapshot of master page item, i get Pagenumber: Marker A as my snapshot
    thanks
    Sam
    Here is my code snippet for what I am doing
    InterfacePtr<IMasterPage>   masterPage(currentDocumentDataBase, pageUID, UseDefaultIID());
      if(masterPage  !=  nil)
          UID masterSpreadUID = masterPage->GetMasterPageUID();
            uint16 masterPageIndex = masterPage->GetMasterIndex();
           //get the  master  spread
            InterfacePtr<ISpread>   masterSpread( currentDocumentDataBase, masterSpreadUID, UseDefaultIID()  );
           if(masterSpread   != nil)
                    UIDList masterPageItems( currentDocumentDataBase );
                       masterSpread->GetItemsOnPage(masterPageIndex,   &masterPageItems, kFalse, kFalse);
    The problem is  that  SnapShotUtilsEx captures the item as it appears on the master page, not  on  the current page.  So thing like page markers are wrong.
    thanks

  • Different page number eve/odd pages pages 5.2

    i am writing a thesis for my university and by formatting rules i need the pages number on even pages to be on the to(header) left and odd pages on the top(header) right. now this was super easy to do in pages 09 and before. i haven't needed that feature ever since but now i do and in pages 5.2 it seems to be impossible. as this is also a feature essential to publishing, due to the binding of the pages which makes it necessary to print them either "inside" or "outside" i cannot believe that apple has removed this feature as it would make writing documents intended for publishing in pages pointless. please help. thank you

    thanks for your reply but it's the most recent version there is, or at least i assume so because there are no updates available. i wish now i would still own my old notebook because on this machine MBP late 2013 i never had and still don't have a copy of the old iWork's 08/09.
    i take it from your answer that my efforts in finding a solution are futile because the formatting option i'm asking for has been removed from the code?
    the only way pages lets me have different formats for even and odd pages is by either manually inserting a section break every time i reach the end of a page(as opposed to just writing in the flow) or manually numbering the pages after i have completed my work, both don't really turn me on so much as the document will end up in at least 200pages(required by my university) probably more given my research.
    last option appears to be to install MS-word, which i really really really want to avoid because i am a convinced apple user for over a decade now......or maybe would you know where i can procure a copy of the old iWorks, the internet seems to only offer me questionably legal downloads.
    nikolaus

  • Page footer in all pages expect last page--pld

    page footer in all pages expect last page
    for example 3 pages of pld report
    for first 2 pages only print  footer not for 3rd page

    Hello,
    please refer to Note 743605. TotalPages() cannot be used in a formula, so steps as per Note should be performed to check if page is last page.
    Please note that I created the Note for an older Version of Business One, but that the logic is still the same.
    Kind regards,
    Sonja

  • On Yosemite how do I get Pages to print the page number on every page, not just on alternate ones?

    I  only changed from Windows to an iMac earlier this year (now on Yosemite), but cannot get Pages to print the page number on every page;  it seems only to do it on alternate pages.

    Jeff,
    I do NOT understand your positive attitude. If someone has a problem with Numbers in Yosemite, you tell them to resurrect a pre-Yosemite version of Numbers.
    The VIEW LAYOUT command is basic and critical to Numbers; how could Apple over-look such an important function in Yosemite ... ???
    Joe

  • How to insert page number on each page for Cross-Tab report?

    Hi,
    I have created a Cross-Tab in the section Report Header via Crystal Reports 11.
    Now, I want to created more Cross-Tabs, and each page has one Cross-Tab.
    So, I insert Report Headers to contain Cross-Tabs. But, the report only shows the page number at the last page.
    How to insert page number on each page?
    Thanks in advance.

    Hi,
    Well, the easiest solution is to place the Cross-tab in the Report Footer, Of course, ONLY if the report contains this single object which I'm assuming is not the case.
    If you do not wish to place the cros-tab in the Report Footer, here's what you need to do:
    1) Create a formula;
    whilereadingrecords;
    2) Create a group on this formula. If the report already contains groups, move this formula to the top of the grouping list. It won't affect the other groups or records in any way.
    3) Move the Cross-tab from the Report Header to the Group Header1 and suppress Group Footer1
    4) Add the Page Number field to the Page Footer
    Let me know how this goes!
    -Abhilash

  • SAP Script output extra page is coming

    Dear friends
                             In my sap script output i m getting one extra page with empty main window. Even i have  not used NEW-PAGE Command,
    No Empty lines and window size also correct. Can anyone solute for this issue.
    Regards
    Balamurugan N

    Hi,
    check those details:
    1) In your SAPSCRIPT contains one page or two pages?
    2) In the sapscript check did u assign any nextpage as different page?
    Regards,
    Dhina..

  • Set page title for all pages

    Hi
    Can I set page title for all pages in project, by using filter or something else? Or the only way is to specify the name in each page?
    Michal

    Might be possible with filters, but that would be a rather expensive task. Just create an include file which you include in all pages. This way you also have a single point of maintenance.

  • Regarding SAP Script Output validation in Layout set

    Hi All,
    I have a issue in SAP Script Output.
    I have a <b>Standard Print Program</b>. and layout set.
    I can do validations only in Layout set.
    The actual issue is i have a <b>internal table field</b> in <b>print program</b> that i am displaying in <b>layout set</b>. Now i want it to be subtracted with number <b>20</b>, since i can not edit code in <b>Print Program</b>. i want to subtract that internal table field with 20 in layout set itself.
    Can anybody tell me how can i solve this issue.
    <b>Note:</b>  I need to do calculation only in layout set.
    Can anybody give me the solution.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    Hi,
    Thanks for that reply.
    so with <b>SUMMING</b> command i can do calculation.
    I am already having <b>i_tab1-sum</b> coming from print program and i have declared one symbol using
    DEFINE &v_val& = 20 in layout set.
    Then i want to subtract &v_val& with &i_tab1-sum&.
    using the follow syntax tell me wether syntax is correct or not.
    SUMMING &i_tab1-sum&-&v_val& INTO &i_tab1-sum&.
    will it work.
    once again thanks for that reply.
    Thanks & Regards,
    Rayeez.

  • Dispalying SAP script output in landscape format

    Hello All,
    Could anyone please tell me the step by step process to display a SAP Script output in landscape format?
    Also is it possible to display a column name in 2 lines if it does not fit into 1 line.
    Regards
    Indrajit.

    Hi,
    Here is the way to print the SAPSCRIPT in landscape ..
    Goto SE71, then give you layout name then press change, then press the Header button(CAP ICON), then you will get the Header infomation, then select the Basic Settings pushbutton, then there we have an option to Print the Layout in  Portrait format or Landscapr format, then select the LANDSCAPR format Radio button then activate it
    Regards
    Sudheer

  • To convert Sap Script output to PDF format and send it via email.

    Hi Friends,
    Could any one please tell me, how to convert the Sap Script output to PDF format and send it via email. If any one have the code, kindly mail me to [email protected]
    Thanks & Regards,
    John

    Plese check this sample code from other thread.
    REPORT zzz_jaytest .
    Types Declaration
    TYPES : BEGIN OF ty_pa0001,
    pernr TYPE pa0001-pernr,
    bukrs TYPE pa0001-bukrs,
    werks TYPE pa0001-werks,
    END OF ty_pa0001.
    Internal Table Declaration
    DATA : i_pa0001 TYPE STANDARD TABLE OF ty_pa0001, "For pa0001 Details
    i_otf TYPE STANDARD TABLE OF itcoo, "For OTF data
    i_content_txt TYPE soli_tab, "Content
    i_content_bin TYPE solix_tab, "Content
    i_objhead TYPE soli_tab,
    Work Area Declaration
    w_pa0001 TYPE ty_pa0001, "For pa0001 Details
    w_res TYPE itcpp, "SAPscript output
    "parameters
    w_otf TYPE itcoo, "For OTF
    w_pdf TYPE solisti1, "For PDF
    w_transfer_bin TYPE sx_boolean, "Content
    w_options TYPE itcpo, "SAPscript output
    "interface
    Variable Declaration
    v_len_in TYPE so_obj_len,
    v_size TYPE i.
    Constants Declaration
    CONSTANTS : c_x TYPE c VALUE 'X', "X
    c_locl(4) TYPE c VALUE 'LOCL', "Local Printer
    c_otf TYPE sx_format VALUE 'OTF', "OTF
    c_pdf TYPE sx_format VALUE 'PDF', "PDF
    c_printer TYPE sx_devtype VALUE 'PRINTER', "PRINTER
    c_bin TYPE char10 VALUE 'BIN', "BIN
    c_name TYPE string VALUE 'C:\ZZZ_JAYTEST.PDF',"Downloading
    "File Name
    c_form(11) TYPE c VALUE 'ZZZ_JAYTEST'. "Form Name
    START-OF-SELECTION.
    Selecting the records from pa0001
    SELECT pernr bukrs werks FROM pa0001
    INTO TABLE i_pa0001 UP TO 10 ROWS.
    Setting the options
    w_options-tdcopies = 1 ."Number of copies
    w_options-tdnoprev = c_x."No print preview
    w_options-tdgetotf = c_x."Return of OTF table
    w_options-tddest = c_locl."Spool: Output device
    Opening the form
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    form = c_form
    device = c_printer
    language = sy-langu
    OPTIONS = w_options
    IMPORTING
    RESULT = w_res.
    LOOP AT i_pa0001 INTO w_pa0001.
    Writting into the form
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'MAIN'
    window = 'MAIN'.
    ENDLOOP.
    Closing the form
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT = w_res
    TABLES
    otfdata = i_otf
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    codepage = 5
    OTHERS = 6.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Converting OTF data to single line
    LOOP AT i_otf INTO w_otf.
    CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
    INTO w_pdf.
    APPEND w_pdf TO i_content_txt.
    ENDLOOP.
    Converting to PDF Format
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    format_src = c_otf
    format_dst = c_pdf
    devtype = c_printer
    CHANGING
    transfer_bin = w_transfer_bin
    content_txt = i_content_txt
    content_bin = i_content_bin
    objhead = i_objhead
    len = v_len_in
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    v_size = v_len_in.
    Downloading the PDF File
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = v_size
    filename = c_name
    filetype = c_bin
    TABLES
    data_tab = i_content_bin.
    The extension is put the it_mailpack-obj_name parameter of 'SO_NEW_DOCUMENT_ATT_SEND_API1'.

Maybe you are looking for

  • Ipad - BBCi Player Issues

    The following is an issue copied from BBCi forum. The fault is being increasing reported by other IPad users. Although the post is by another (TUCKER), I, and others have an identical problem. It occurs to me that the fault may not be a BBCi Player i

  • Start up slow, freezes regularly

    My MacBook Pro (13inch, late 2011) is taking a very long time to start up (up to ten minutes), and then it is freezing every few minutes, making it very difficult to do anything. Does anyone know what the problem could be? I would be so grateful for

  • When you switch to Spanish the slow motion cam in iPad air 2 is not available. It only works in English

    In iPad Air 2 the slow motion cam does not work when you switch the language to Spanish it only works in english

  • Oracle 10g Pivot query

    Hi, I want to create a view. Sales amounts, countries and products will be showed in this view. Report result will be like below: Products Countries Sales_Amount TV Ipad Iphone Netbook Notebook EbookReader England 1000 1200 1400 3000 5000 200 Germany

  • Adobe Photoshop airbrush icon turns from a circle to an arc when enlarged past a certain size

    Adobe Photoshop airbrush icon turns from a circle to an arc when enlarged past a certain size & this makes accuracy progressively more difficult. Upgraded from v11.01 to 11.02 but no change. Running Win XP OS on an HP Elitebook 8730W F.0F with built-