HELPPP !! SapScript: print window only on first page

Hello,
can somebody help me?
I have 2 pages (1 full and 1 almost empty) because the STANDARD print program send 2 pages into my form
And I would like to print some windows (address, info) ONLY ON THE FIRST PAGE but I can't...
I try to use some systeme variables as:
  IF &PAGE& = 1
  /:           ADDRESS PARAGRAPH AS
  /:             TITLE    &REGUH-ZANRE&
  /:             NAME     &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME3&
  /:             ADDRESSNUMBER &REGUH-ZADNR&
  /:           ENDADDRESS
  ENDIF
>>> but I have the always &PAGE& = 1 (not 1 then 2)
i tru too var. &NEXTPAGE& or &SAPSCRIPT-FORMPAGES& but not successfully.
CAN WE USEIN SAPSCRIPT A COMMAND ""AT FIRST PAGE ONLY"" AS WE CAN FOUND IN SMARTFORM?
Many thanks in advance.
Pascr.

Seems to me you need to think about having the NEXT page, and putting the elements which do not fit on your first (and only) page anyways, on the NEXT page...
A possible algorithm would be:
In the first page, when all of the elements are written out, instert a page break, and go onto the NEXT page. Then write out the rest of the elements on the NEXT page.
Use the technique described in the previous posts to get rid of the elements you dont want written out on the NEXT page.
Hope this helps
Cheers

Similar Messages

  • How to output particular text in main window only in first page

    Hi experts how to ouput particular text in main window only in first page after that actual transaction data will be continued.....any ideas....Answers will be rewarded.....

    Hi,
    Try this.
    /: IF &PAGE& = '1'
    /: ENDIF
    Thanks,
    Naren

  • I'm trying to print a multiple page document from my ipad using an Airprint printer. Only the first page is printing, Please help?

    I'm trying to print a multiple page document from my ipad using an AirPrint printer. Only the first page is printing. Please help. The printer works correctly with my desktop and laptop.

    What version of iOS are you using?  Some people were having this problem before, and it was fixed when they updated to iOS 5.

  • Can anyone explain how to correct printing when only the first page prints?

    I am having a problem printing pdf document.  I am using Adobe Acrobat X, MacBook Air.  The first page of the pdf will print, but the remaining pages of the document do not.  I occurs on multiple printers. I have tried "Print as Image" and that works, but I want to be able to print without having to use Print as Image.

    Let us know which specific USB model you have.
    Normally when someone receives a USB modem error there are only a few places to look for solutions.  First would be a reinstall of the connection software.  Always go out to VZW and check to see if there is a newer version when you have problems.  Even if there isn't a reinstall can clear up many temporary problems with these devices.
    Your error mentions something about connecting to LTE.  Perhaps there is an issue with the authentication of your device.  It might be a good idea to contact VZW to make sure you are properly registered. You also might want to try connecting in a different location incase there is something wrong with your current environment.  Connecting to a different tower or in a different location may be able to work around the problem.

  • Only the first page is printed reduced as setup. All pages afterward are full size with information cut off. Recent problem. Can print from Safari just fine. How can I get all pages to be reduced size?

    Question
    Printing internet pages
    Reduced print size
    Only the first page is reduced and printed as desired
    All pages after the first page are full size with information cut off
    Recent problem never seen before
    Can print from Safari and other software just fine
    How can I get all pages to be reduced size?

    One suggestion worked from the Firefox prints incorrectly link mentioned above by mha007. I'm thrilled since this has been annoying me for weeks. Thanks mha007!
    Reset all Firefox printer settings
    # Open your profile folder:
    # On the menu bar, click on the Help menu and select Troubleshooting Information. The Troubleshooting Information tab will open.
    # Under the Application Basics section, click on Show in Finder. A window with your profile folder will open.
    # Note: If you are unable to open or use Firefox, follow the instructions in Finding your profile without opening Firefox.
    # On the menu bar, click on the Firefox menu and select Quit Firefox.
    # In your profile folder, copy the prefs.js file to another folder to make a backup of it.
    # Open the original prefs.js file in a text editor (such as TextEdit).
    # Remove all lines in prefs.js that start with print. and save the file.
    # If something goes wrong when you open Firefox, close it again and overwrite prefs.js with the backup you made.

  • How do I print only the first page of multiple PDF documents?

    I have about 1,500 PDF files (scientific papers) that I need to print only the first page of... Any suggestions on how to do this as a single job or as a few jobs? The files are organized in a bunch of different folders, so if there was some way to do this folder by folder, that would be ok too. Thanks!

    Make sure that in System Preferences Printing & Fax pane you set the default printer to the one you want to use, then put all of these PDF files into their own folder, then open terminal and type the following (without hitting return afterward):
    lpr -o page-ranges="1-1"
    Then drag one of the PDF files into the terminal window (it will add it's path to the end of your command) and replace the file name with *.pdf, so it will look like this:
    lpr -o page-ranges="1-1" /Users/todd/Documents/My\ Folder/*.pdf
    Then hit return.

  • Only the first page for a particular site prints. All other sites are fine.

    I'm running Firefox 10.0.2 on Windows 7 SP1 and when I try to print the web page of the affected URL ( http://windows.microsoft.com/en-US/windows-vista/Connect-to-another-computer-using-Remote-Desktop-Connection ), only the first page is printed. It prints fine in IE 9. I tried printing in safe mode and it still only prints the first page. I only tried printing it once, after that I used print preview alone. I used print preview on a dozen other sites and it works fine. By the way, on the web page I'm trying to print you must "Show All" at the bottom to expand all of the text. It's just this one web page. Can someone else with a similar setup try print preview on this page for me? I just want to know. I printed it using IE. Interestingly, if you scale the print preview down enough, all of the text shows up. Thanks...

    Well, I've made a little progress. I saved the web page source locally and then added the following HTML snippet to the <head> section:
    <style type="text/css">
    div
    page-break-before:always;
    </style>
    When I display this, the "Show all" does not work, but the page text is still long enough to do "Print Preview" and expect more than one page. The result is a blank first page (expected) and then ALL of the page text is printed on the next two pages.
    But I think you are correct "the-edmeister" in saying that Firefox may have a problem when the DIV tag spans more than one page. The reason is that the third page only contains the footer, so I can't say for sure if the whole DIV block was printed. But at least the footer did show up this time.
    If I can get the "Show all" block to expand then maybe that question will be answered. Any thoughts?

  • Cheque printing only on first page

    Hi,
    Iam a newbie in XML/BI Publisher. I am doing a AP Cheque printing. In the report I have to print the invoice lines and at the bottom of first page I need to print the cheque. I did all necessary stuffs for this in the RTF template.
    But now the cheque is getting printed in the second page if the lines comes to the second page or after printing the lines if there is no space for the cheque then its getting printed in the next page.
    Can anyone guide me how to print the cheque only in the first page bottom alone.
    The sample output which I needs is like this,
    page 1-
    Invoice line number
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    |..............................|
    | cheque print...........|
    page 2
    Invoice line number
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    thanks a ton in advance.

    Hmm,
    There is no way you can say fix that and show this only in first page.
    but you can achieve it.
    1st method.
    give enough space for the check in the first page, by reducing the no of lines in the first page, so that you can accommodate the cheque .
    for this, you can do like,
    if the position is less than 9 and mod of postion is zero , that means you are in 9 line, then call a sub-template and after that you can put a page-break. this condition is for first page only.
    now put an another if condition here, if the position is > 9 and position mod X is zero, then put a page break. x is no of lines to be displayed in 2nd, 3rd, 4th pages.
    2nd method.
    put the differnet header and footer for first pge.
    and cal the sub-template in footer of first page.
    in tht sub-template you have the check.

  • Print the Check information in the AP pay check only in first page

    Hi All,
    I am using embedded BI publisher to develop RTF template. I have a requirement,
    I have to print a AP Pay check using BI publisher desktop tool.
    At present I am printing the invoice lines and then printing the check info in the last page. But our client requirement is to print the check info in the first page itself.
    I divided the page into two parts. First part is to print the invoice details and second part is to print the check info.
    In the first part I am print at max 40 lines. if at all one check doesn't have 40 lines then I will fill the empty space for the remaining lines.
    If at all the details have more than 40 lines I will break the page at 40th line and print the renaming lines in the second page.
    I want to print the check details at second part of the first page.

    As I understand, you have one header which is set to appear every alternate page. Now you have another content which you want to show only on first page. In that case any content.. say an image, which is there on the page will appear only once.. (unless it is placed in the header section of RTF). It seems you have invoice number and address which should appear only on the first page of invoice... so just keep these two items at the top of the body of the RTF (not in the header). Just make sure that it is enclosed within the for-each-group@section logic, so that whenver the new invoice number appears it moves to a new page and you will see the address and invoice number there.

  • I am unable to print "ALL Pages" using the Adobe Print plugin in Firefox, only the first page gets printes. however IE works perfectly fine.Please advise. Is it some way that firefox identifies the complete web page..? PLease help

    I am unable to print "ALL Pages" using the Adobe Print plugin in Firefox, only the first page gets printes. however IE works perfectly fine.Please advise. Is it some way that firefox identifies the complete web page..? PLease help

    Does the entire webpage appear in Print Preview? <br />
    File > Print Preview

  • HAVING A PROBLEM WHEN I PRINT A WEB PAGE WHICH IS MORE THAT ONE PAGE LONG. ONLY THE FIRST PAGE PRINTS TO SCALE...THE REMAINING PAGES PRINT OFF THE PAGE????HELP-IT IS DEFINITELY A PROBLEM WITH FIREFOX BECAUSE IT DOES NOT HAPPEN WITH SAFARI???

    Question
    HAVING A PROBLEM WHEN I PRINT A WEB PAGE WHICH IS MORE THAT ONE PAGE LONG. ONLY THE FIRST PAGE PRINTS TO SCALE...THE REMAINING PAGES PRINT OFF THE PAGE????HELP-IT IS DEFINITELY A PROBLEM WITH FIREFOX BECAUSE IT DOES NOT HAPPEN WITH SAFARI??

    Thank you for the response. I tried to fix the problem with some of the suggestions on that page, but none seem to work. I believe that is the only website that I'm having that problem on. I got to fooling with it a bit more and when I highlight the whole page and select to print the selected area, it actually prints the whole page then, but it won't do it as a default. I guess I can just do it like that from now on, but I thought there would be something in the settings that I could have changed. Thanks again for the help.

  • Recently, when I try to print from within Firefox (Mac 10.6), only the first page is properly formatted. This doesn't happen when using Safari.

    I regularly print newspaper articles that I view in Firefox. Until recently, multi-page documents formatted beautifully. Now only the first page is properly formatted. The other pages are enlarged and shifted to cuttoff several lines of text at the top of the page.

    Once you set that preference it should hold that setting. You could try 125% but it might clip the right-side of the page.

  • Why does only the first page of seach results show, with further pages graying out?

    In a search, I may get >1,000,000,000 hits, but only the first page is readable. "Next" gives me a grayed out screen and FF freezes. Any of the offered searches at the bottom of that first screen will do the same thing. Repeated hitting "back" will clear it.
    This has been true, through all the upgrades, including a backgrade to 3.6 (?) for 64-bit. This makes FF useless as a search platform, though it is my preference, even over Chrome, if it would work.
    Windows 7 Ultimate, 64-bit, 8GB Ram
    High speed to house, wireless lan in house

    That does seem rather useless.
    Use Automator - it has a "PDF to Images" action that will do exactly what you need. Drop your document into the workflow, drop the "PDF to Images" action in right after that, set any options that you need (like where to save) and then click "run"
    Barring that, I've found that sometimes Adobe Reader will sometimes work well for documents that Preview can't print, and I've found some documents that Adobe Reader chokes on but Preview handles flawlessly.

  • Report Painter. Form edited only display first page.

    Hi All,
    I have add on new column on my report painter and now the display is more than one page.
    There is warning "Only the first page is displayed in the report" whenever i execute to make modification using T-code : FMEO.
    There is ">" ">|" button appear on top when i run using FMEO.
    But , when i try to run the form from its T-code. The report only shows the first page column.
    The second page is not showing, and there is no button ">"  to browse to next page as well.
    Just wanna know, is there anyway i could fit 2 pages into 1 page or is there any setting that i could enable so the user could browse to second page on the form?
    Thanks.

    Hi..,
    <b>Onli on First page means </b>... this node will get executed on the first page irrespective of the page name i.e it considers onli <b>&page& eq 1</b>...
    Suppose u have ur fist page i.e MY_FIRST_PAGE.. and in this page the data in the main window may trigger the same page as second page .. i.e if the data in the main window is not sufficient to fit in the first page it triggers the next page i.e MY_FIRST_PAGE as second page ...
    so this MY_FIRST_PAGE may extend to the second page also right !! so when u use on page MY_FIRST_PAGE.. this node will get triggered if this page extends to more than one page also..
    Hope u understood....
    regards,
    sai ramesh

  • Only On First Page

    Hi Experts,
    I am going thru one Smartform, in that, the Programmer has checked the Check Boxes for the both(event conditions) i.e.
    (Tree Node-> Condition Tab>Additional Events,)
    1- Only On First Page - Checked for this event and
    2- Only On Page - Checked for this event too and has given the parameter as MY_FIRST_PAGE(in this form, the first page name is MY_FIRST_PAGE)!
    So, May I know the difference pls.. I mean, Why the programmer has checked for the both for the same node?
    ThanQ.
    Message was edited by:
            Srinivas

    Hi..,
    <b>Onli on First page means </b>... this node will get executed on the first page irrespective of the page name i.e it considers onli <b>&page& eq 1</b>...
    Suppose u have ur fist page i.e MY_FIRST_PAGE.. and in this page the data in the main window may trigger the same page as second page .. i.e if the data in the main window is not sufficient to fit in the first page it triggers the next page i.e MY_FIRST_PAGE as second page ...
    so this MY_FIRST_PAGE may extend to the second page also right !! so when u use on page MY_FIRST_PAGE.. this node will get triggered if this page extends to more than one page also..
    Hope u understood....
    regards,
    sai ramesh

Maybe you are looking for

  • How to get Distinct Count of Products across two dimensions

    Hi, I have two dimensions, Item and Presentations. I need to get distinct count of products for IMD_Id + Merc_Pres_Id. IMD_Id is the lowest member in Item and Merc_Pres_Id is lowest in Presentation. My MDX query is given below but when I apply filter

  • How to format new HD and do a fresh install on used computer

    i just bought a new-to-me used mac pro with a new hard drive and i want to install yosemite on this drive. i haven't done this before so i am at a bit of a loss. the hard drive is not formatted since it is a new hard drive and there is no data on it.

  • Macbook 10.5.8 Version Built in ISight problem with YM 3.0 beta version

    I am using my Macbook built in ISight with the latest version of Yahoo Messenger for Mac, the 3.0 Beta. Every time i will use the YM webcam, it will only last for about 1 minute and will not work anymore. This is happening since i bought my macbook l

  • What is the best way to get rid of duplicates in the XML data?

    Hi all, Please help me with the best way to get rid of the duplicates in the XML data. Will a transform with some stylesheet do the trick? I need to read on the stylesheet first, but please tell me if that is possible. I have to deal with XML data th

  • Queries on plant maintenance

    Hi all Can anyone tell me where can I raise queries about Plant Maintenance? Looking is an option. Edited by: kishan P on Oct 5, 2010 2:35 PM