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

Similar Messages

  • PO for item of service Level short and long text using sap script

    Please let me know how to do the PO for item of service Level short and long text using sap script.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on May 5, 2009 10:25 AM

    Hi ,
          In the transaction related to PO select the path goto->header texts and then details of the texts like ID,objectname,language,name.Pass all theses details to 'READ_TEXT '   FM. Then you will get text lines described for a perticular Po ,similarly for item also.
    Thanks,
    Suma.

  • Printing/Preview does not honour to printer page margins and garbles text

    I have this weird problem with printing. When I print, e.g., a pdf using preview, the page comes out of the printer incorrectly, that is the top 2.2cm gets chopped off and some of the characters have become unreadable (especially the I, the :, and the J). When I print the same pdf from adobe reader, the page comes out fine...
    The problem of chopping-off the top bit of a page also happens when I print directly from an application (e.g., thunderbird, firefox). Saving the print as PDF and printing that one with adobe reader again works fine.
    The problems occurs only when I print on my Lexmark Optra E312L (using the generic Postscript printer). On our HP Photo Printer (B9180), everything works as expected.
    I have already restarted the printing system, but while this did solve another printing problem, I still have this problem.
    So my question is: anyone else experiencing similar problems (ie., top of print chopped-off and garbled text) and, better yet, is there a solution?
    Thanks,
    Hayo

    Steve, thank you for trying to answer my question/solve my problem!
    You suggestions, however do not fully help in my case though
    I was already using the full printing dialogue, but nowhere did I find anything that might solve this problem. The print scaling, I did not want to use as I want the page to come out as-is (the pdf was an A4 and I print to A4). Note: border less printing or other ways of selecting a larger printable area doesn't work either; when I select the Lexmark, I have a very limited number of page size options and while it shows them, I can't use a custom page size (otherwise that could have solved the problem I guess).
    I did expect some things to get chopped-off but then evenly from all sides (ie, where it can't print). This is not what happens when printing from preview though. Today I tried again and while the results are the same, I now understand better what Preview does: it chops off only the top bit (what it does left and right, I don't know yet). In my opinion this is an error on the part of Preview because that way you never get the page exactly as it was intended. Adobe Reader does this much better, so that is what I will be using from now on.
    The other problem, the garbled text (mostly i's, j's, and :'s) is still there as well. So I guess there must be a problem in the printing engine of Preview in combination with the generic postscript driver...
    Heck, it gets even more interesting: I also tested printing from Firefox directly. This results in an error flashing on the printer, the printout got out of the printer ok-ish though. When saving the output as PDF and printing that with Adobe Reader again, the printer does not generate an error AND (more importantly), the output is much better quality wise (the rendering of the fonts and greys is much better).
    Right, I guess the lesson I learned here is not to use Preview/print directly when I want to print to the Lexmark and to take the route PDF->Adobe Reader->Lexmark instead.
    Is there a way I can let Apple know about bugs? (the garbled text certainly is a bug, the other things may or may not).
    Thanks again,
    Hayo

  • XSL-FO for Standard Purchase Order, doesn't print page number

    Hi,
    I worked on XSL-FO code to custom the PDF output for Standard PO. Everything works great: I added company logo (in a different position of the standard commented code <!-- Too easy just to uncomment... :-)--> ), i created new attribute sets to highlight some elements on the print, I added a footer with company details and document type and number (instead of placing this in the header, the costumer didn't like it where it was..)
    OK. BUT: the page number at the bottom on the right isn't printed anymore. For example: if the PO page is n.1 of 2 pages, it comes only '12' and not Page 1 of 2. So i tought not to use the original template (tihs one)
    <!-- Template for displaying the page numbers -->
    <!-- bug#3836856: Template for displaying the page numbers at right bottom of the page -->
    <xsl:template name="pageNumber">
         <xsl:variable name="po_page">
         <xsl:value-of select="$BOILER_PLATE_MESSAGES_OBJ[MESSAGE='PO_FO_PAGE'][1]/TEXT"/>
         </xsl:variable>
         <!-- Get the String before the PAGE_NUM token -->
         <xsl:variable name="string_before_page_num">
         <!-- <xsl:value-of select="substring-before($po_page,'&amp;PAGE_NUM')"/>-->
         <xsl:value-of select="substring-before($po_page,'Pag.;PAGE_NUM')"/>
         </xsl:variable>
         <!-- Get the String after the PAGE_NUM token -->
         <xsl:variable name="string_after_page_num">
         <!-- <xsl:value-of select="substring-after($po_page,'&amp;PAGE_NUM')"/>-->
         <xsl:value-of select="substring-after($po_page,'/ ;PAGE_NUM')"/>
         </xsl:variable> ......
    but inseriting a select just where I want the page num to be displayed (see code)
    <fo:block xsl:use-attribute-sets="test_style" >
    <xsl:value-of select="$BOILER_PLATE_MESSAGES_OBJ[MESSAGE='PO_FO_PAGE'][1]/TEXT"/>
                                                      </fo:block>
    but this gave me as result 'Page &PAGE_NUM of &END_PAGE'.
    Where did I do wrong?? It's like the PO_FO_PAGE message is not dinamically insered in the PDF. Hope I've been clear enough and somene can help me. Thaks in advance, Michele

    Hi Michele:
    I can check out for you how to print page number in XSL-FO (There is an O'Reilly) book, but I think I help you better by recommending a different strategy - Don't write XSL-FO stylesheets. While Purchasing does not support RTF templates you can still write RTF templates and convert them to FO using the XML Publisher Template Builder for Word.
    Download the matching Template Builder for Word (5.0) or XML Publisher Desktop 5.5 (includes the Template Builder) patch and then Create your template as an RTF template.
    You can then EXPORT the template as XSL-FO stylesheet and upload as to Purchasing AS LONG AS THE VERSION OF THE DESKTOP and E-Businees Suite XML Publisher MATCH.
    If you still want to write XSL stylesheet, you can just use the Template Builder to generate you the code and paste the code (e.g. for page numbers) into your stylesheet.
    By the way - Purchasing will support RTF templates in future versions...
    Hope that helps,
    Klaus

  • Remove page number from PALT text

    Hi,
    I'm using transaction SO10 to create a PALT text (Applicant correspondence) and I would like to remove the page number of the header of the document. Do you have any idea of how to do it?
    Thanks,
    MForman

    Goto SE71-> Utilities-> Copy from client->Give form name-SYSTEM, source client-000, target form ZSYSTEM than the form ZSYSTEM will create.
    Again goto SE71 -> ZSYSTEM->change->goto header window, remove the page on the window text element.
    Now goto SO10 give the standard text name and change -> goto Format->change form-> Assign ZSYSTEM.
    Now your problem will resolve.
    Every form related thing you need paragraph format, character format and layout.
    For SAP-script there in build paragraph format and character format and for smartforms we need to create styles otherwise default style will assign.
    For SAP standard texts you need to create both in different way i.e sap-sctipt style and sap-script form assign both to in SAP standard text
    Thanks
    Chinni
    Edited by: Tirumula Rao Chinni on Mar 9, 2010 9:56 AM

  • Can you tell me how I can ask for help with the following Indesign question:  I am a new Indesign user and a Creative Cloud member.  I was using the Window/Pages drop down window to view my pages alphabetically or by page number and also to determine whet

    I am a new Indesign user and a Creative Cloud member.  I was using the Window/Pages drop down window to view my pages alphabetically or by page number and also to determine whether or not my JPEG files were sufficiently HI-Res for the printer.  I don't know how I did it but somehow the window has changed so that now it does not have the alphabetical/numerical/Hi-Res information.  It just shows the pages in a two page spread in numerical order.  How can I restore the window so that I will be able to view the information as I did previously.
    Your help will be appreciated,
    Don Unwin
    [Personal Information Removed]

    The pages panel is not the place where you see this information.  You can customize the Links panel to show all sorts of things, including the page number, effective and actual ppi, and whether the link is OK or needs updating.

  • I have a problem with my viber.It has stopped working.I tried reinstalliing it again .On the setup option after entering my phone number and continuing ..it either exists or gives no service message .

    I have a problem with my viber.It has stopped working.I tried reinstalling it again .On the setup option after entering my phone number and continuing ..it either exists or gives no service message .My other applications are working fine ..other applications that require internet too are working fine.

    Please get in touch with Viber's customer support.

  • In messages, at "receive at" it says "error" next to my phone number and all texts i send seem to come from my email... how do i solve this?

    In messages, at "receive at" it says "error" next to my phone number and all texts i send seem to come from my email... how do i solve this?

    T he general concensus to fix this is to turn off Facebook and iMessage for a couple of minutes. Then turn them back on again and it seems to get them activated.

  • Problem in long text in SAP script editor

    Hi ,
    i am maintaining long text in SAP script editor , when i am trying to change the long text in SAP script that changes are not reflected in print preview ,for example when i am giving tabs in the script then in print preview of the PO these tabs are displayed as , , ( comma) , and underlines are not appearing in print preview.please help me on this.
    Thanks and regards.
    Rajeshwar.

    hi
    you have to install the correct printer which supports the displaying the drawings and objects/

  • This is regarding totals and sub totals in sap-scripts

    Hi to all...............
    1...How to print totals and subtotals in sap-scripts? where we have to code the logic.what sort of logic is needed to print the same?
    regards,
    swaminath.

    Hi
    HI,
    To calculate totals and sub totals in sap scripts you have to use subroutines.
    Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
    /: DEFINE &TOT_PRICE&
    /: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name> /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
    Then write the variable where ever you want it to be printed (mostly it will be in footer window)
    Then create subroutine pool program and you have to write the code.
    FORM F_GET_PRICE tables int_cond structure itcsy
    outt_cond structure itcsy. data : value type kbert.
    statics value1 type kbert.
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    To know more, have a look at this thread ..
    Re: SAP Script: Display Total calculated  on page 2 in page 1
    <b>Reward if usefull</b>

  • Standard text in SAP Script

    Hi All,
      I am Creating Standard text in SAP Script. I want to Transport it to Quality and Production servers.But while saving standard text it is not asking transport request no.weather we need to create the text seperately in quality and in production or we can attach it in to transport request. Please suggest me.
    Thanks and Regards
    Partha.

    Hi partha,
    1. We can use the standard program
       RSTXTRAN
    2. It is meant specially for this purpose only.
    (we can attach standard text to a transport request)
    regards,
    amit m.

  • Problem in using standard text in SAP Script

    Hi All,
    I have to replace English text hardcoded in a script with standard texts (SO10) in Spanish. When I am including the standard text in script, it is displayed in different font and bigger size. I want to reduce the size and change the font of standard text. Is there any way to do that?
    Thanks in advance
    Radhika
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 4, 2010 2:37 PM

    Please check the links below , which might hel you..
    Re: Setting font to standard text in sap script
    How to change stranded text font in script
    Regards
    Satish Boguda

  • What are all the components and attrubutes of the SAP script

    hi
    what are all the components and attrubutes of the SAP script
    please reply
    thanks in advance

    Hello Ashok,
    The componest of the Script are:
    HEADER,PAGES,WINDOWS;PAGE WINDOW;PARAGRAPH FORMAT AND CHARACTER FORMATS.
    THE HEADER WILL HAVE THE ATTRIBUTES OF THE SAPSCRIPT LIKE
    DESCp.PAKAGES Etc.
    If useful reward points.
    Regards,
    Vasanth

  • Page number and page range have disappeared from print dialog

    Hello, suddenly in Firefox the print dialog is odd. There are no longer options on the main box for page range and # of pages to print, and many of the other options in the pull down are just blank. This happens with more than one printer, and NOT with those printers in Acrobat, Word etc. so I'm pretty sure it's Firefox. I am in Mac 10.6.8 with the latest Firefox 18.0.1. Thank you.

    Do you mean that that window is cut off like in your screenshot?
    Try to disable hardware acceleration in Firefox.
    *Firefox > Preferences > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/

  • How to print page number in Pages

    Please help. I have inserted the page number in my document and I see it the print preview, but when I print it just doesn´t print the page number.

    It sounds like you have the page number too close to the edge of the paper and your printer simply does not print to the edge.
    Test how much of the page your printer prints, by covering a page with a colored object from edge to edge and seeing how much is clipped off.
    Peter

Maybe you are looking for