Blank page is getting displayed in SAPScript when using NEW-PAGE option.

Hello Experts,
We have created a customized SAPScript and in this separate Script is generated based on the currency(WAERS).
So if we have 3 different currencies, then 3 pages will be created with there details, but we are using NEW-PAGE option in
MAIN window to separate the pages and after 3rd page it is displaying 4th page also with footer details.
So how can we avoid last blank page which is getting displayed?

Hi isha.walia ,
   This issue can be solved by two ways. Please take the one which suits you better.
Solution 1: If  you need to generate separate prints for different currencies.
In the driver program, build an internal table for different currencies which needed to be printed. (Using delete adjacent duplicates, build the internal table with exact number of currencies to be printed). Remove the NEW-PAGE option and call the script/form inside the loop. Do the necessary conditions to manipulate the print.
Advantages of above solution: Better control on spools if needed.
Solution 2:  Get the count of the number of pages in a variable. Inside the print loop, increment a flag counter. Check it against the variable which contains the number of pages to be printed at the end of each page. Exit the loop when the number of pages to be printed is reached.
Advantage of above solution: Simple to write the program.
Thanks and Regards
Raghesh R S

Similar Messages

  • HT202879 Pages from iWork09 on older Mac and using new Pages doc. on it

    I have Pages [iWork09] on my MacPro [main machine] which is older and runs 10.7.5....I have Pages 5.1 on my MacBookPro which is running Mavericks - the problem arises because once I open a Pages doc. in my MBP it becomes a newer version and when I save it back to the MP, I can't open it =  I tried to download and install the new Pages on the MP and it won't because it requires ver. 10.9 - but I can't get that on my MP == so what do I do to work with documents worked on the MBP and yet saved to the MP?

    Pages v5+ document format is entirely different from previous versions and Pages ’09 v4.n cannot open it. Since Pages v5+ is missing about 100+ features from the previous v4.n, you have no assurance that content you create in the older version will survive intact into Pages v5+, or via roundtrip by Pages v5+ exporting to Pages ’09 document format.
    If you had iWork ’09 installed on the MBP before installing the Pages v5+ application, the iWork bits will remain unscathed in /Applications/iWork '09 folder. If true, I would standardize on Pages v4.n on both platforms for now. If you only have Pages v5+ on your MBP, then I would recommend 1) export to Pages ’09, for sort of compatibility with your iWork on the MacPro. Or, you could simply standardize on .doc between the two. Pages v5+ defaults to .docx on export, both this is selectable to .doc.
    Any Pages document that you double-click to open on Mavericks will be opened (and mangled) by Pages v5+. A right-click on the icon, then choosing Open With... Pages (4.3) would keep things sane.

  • Smart Folder in Finder displays incorrect list when using "File label" option.

    Hello.
    I created a Smart Folder in Finder, to display all files that have any color (label).
    But have a problem just with one file, and although it has no Label, it keeps displaying that file.
    Just to let you know:
    1) File is not in Trash or hidden.
    2) Checked several times the "information" of the file. Assign any color, then removed it.
    3) File is synched with Dropbox v2.0.5
    4) File is a Microsoft Excel and been working with it for a while with Office for Mac.
    OS X 10.8.3

    I'm having this problem, too. It with even show files with other color tags when filtering by another color. I tried changing the file color then changing it back to blank and it disappears temporarily, but if you view another folder and then come back the file pops back.

  • Why does Firefox get hung up, when opening new pages? I've tried disabling plugins and extensions to no avail.

    Initially, when I open Firefox everything opens very quickly. However, after several minutes it gets hung up when opening new pages. I have close the browser and reopen it to start over. But each time it does the same thing. Works well at first then poops out. The trouble started yesterday. Before then, I never had any problems.
    I've tried disabling all the plugins and extensions, but it doesn't make any difference.

    Try to repair the disk permissions:
    * http://thexlab.com/faqs/repairprocess.html
    * http://support.apple.com/kb/HT2963 Troubleshooting permissions issues in Mac OS X

  • How can I keep pages from scrolling when using keyboard page-down

    The bottom of the pages window has a gear. You can select "Page" in the drop down menu and click the arrow, to perform a page down. The new page is positioned exactly like the previous page. But when I type fn+down-arrow or cmd+down arrow the new page view is either higher or lower than the previous page. Resizing the window makes it almost possible to get a consistent page display but not quite. It's awkward trying to read a document when each new page jumps to a new position. The arrow next to the gear is the only solution I've found.
    Does anyone know a way to achieve this page down view using just the keyboard. I'm using the iMac wireless keyboard?
    Thanks,
    Mark

    It is an annoyance, due to the 2 meaning two different things.
    The page down key means the whole window view which is not the physical page that you see in Pages.
    Apple could have clarified it by labelling the key +window down/up.+
    Peter

  • Use a Custom Page Layout When Creating [[new pages]] in Enterprise Wiki

    I have followed a few different blogs and I've been able to create a custom wiki content type and create a new page layout based off of that content type. I've also set my site so that my new layout is the default page layout. This works when creating
    new pages on the site but when i try to create a new wiki page --> [[new page]], I'm still getting the typical blank wiki template. How on earth do i get my page layout to sync with creating a new wiki page?

    Hi,
    For your issue, go to Site Actions > Site Settings > Page layouts and site templates (Under Look and Feel).
    Pages in this site can only use the following layouts: add custom wiki template.
    Select default page layout: choose custom wiki template.
    Besides, here is a blog, you can use as a reference:
    http://blog.henryong.com/2010/06/08/how-to-create-custom-sharepoint-2010-page-layouts-using-sharepoint-designer-2010/
    Best Regards,
    Lisa Chen

  • I understand that when using Numbers/Pages - an up-arrow on a document means that the file is still to be uploaded to the cloud, what does a down arrow mean? It seems the document can't be accessed until the arrow clears.

    I understand that when using Numbers/Pages - an up-arrow on a document means that the file is still to be uploaded to the cloud, what does a down arrow mean? It seems the document can't be accessed until the arrow clears.

    I believe what it's supposed to mean is that some changes were made to the document on another device, and those changes were saved back to the cloud.  Now you've opened iWork on a different device to access that document - it compares the document you've got locally with the one in the could, sees some recent changes and downloads them.
    What gets me is why this sometimes happens even when I've not made any changes to a document from another device.

  • The internet pages don't display properly I'm using osx10.3.3, yahoo for example asks me to update, but I cant find out how to as the apple store just keeps sending back to the same page with no down load option...do i need to up date or is it just my mac

    The internet pages don't display properly I'm using osx10.3.3, yahoo for example asks me to update, but I cant find out how, as the apple store just keeps sending back to the same page with no down load option...do i need to up date or is it just my mac

    What Mac model do you have? You might be able to upgrade the OS to Tiger 10.4 or Leopard 10.5.
    Even browsers for Tiger 10.4 will get the update message.
    You could try a newer browser than Safari, which is obsolete, by downloading Firefox v2.0.0.20 at http://www.oldapps.com/mac/firefox.php
     Cheers, Tom

  • IPhone4S display unknown symbol when use USSD

    please when i used iPhone4S display unknown symbol when use USSD ???
    NOT : i dont know why cose as same time i have iphone 4 and used same carrier but  its WORK FINE AND show ussd

    iPhones no officially support USSD but I can sure it is support USSD because my friend's iPhone is work with USSD.
    I and my friend using same carrier same iPhone4S same codes,no JB but my friend's iPhone is work with USSD,only my iPhone cannot work with USSD.
    Thank for all answer,no need answer for me already because I just now send to apple store,they check is phone problem,so now claim warranty,need to wait 2 week to get back new iPhone =.="

  • Putting iMac display to sleep, when using TV as a screen.

    I have just connected my iMac to my 42" Panasonic 1080p TV, the connection was easy and is working fine. My questions relates to putting the iMac display to sleep when using the TV as a monitor, if I am watching You Tube, Sky Player or a DVD, I intend to use my TV as the monitor. Is it possible for the iMac to puts its display to sleep, whilst leaving the TV on. I played around with this today, however was unable to manage this.
    Regards Craig

    Hi Craig
    There is no way to independently sleep either the iMac's Display or an attached Display/TV. However if in the Display Arrangement Preferences you set the attached Display or TV to be the Main Display and turn Mirroring Off, then FrontRow and the Full Screen Mode app's like, DVD player, QuickTimePlayer, etc. will black out the unused iMac display.
    Dennis

  • I need to get 2 decimal places when using a formula for a quotient and Numbers will only give me whole integers which is useless since most items will be less than 1. How can I change this?

    How do I get 2 decimal places when using a formula for a quotient? It only gives me whole integers. Most of the results will be less than 1 so I need 2 decimal places

    the quotient function returns only whole number portion of the dividing two numbers.  If you want the actual decimal value use the divide operator.  you enter this as:
    A/B
    if the numerator is in A1 and the denominator is in B1 you can enter the formula like this:
    =A1/B1

  • HT1151 I keep getting an error message when installing new software that says "System extension cannot be used /system/library/extension/IoFireWireWDHID.kext was installed improperly" I have no idea what this means and all of my software seems to install

    I keep getting an error message when installing new software that says "System extension cannot be used /system/library/extension/IoFireWireWDHID.kext was installed improperly" I have no idea what this means and all of my software seems to install okay

    Hello Valerie Anderson,
    I'm Harry from Norton Support team. Please check the information provided in a similar thread here:
    https://discussions.apple.com/message/21854775#21854775
    Let me know if this helps.
    Thanks!
    Harry

  • I get sound no video when using AirPlay.  Any ideas?

    I get sound no video when using AirPlay.  Any ideas?

    Do you get an "HDCP error"?
    Since the last ATV software update, I have had  problems playing You Tube content from the iPad to the ATV using airplay, yet the same content from the You Tube channel on the ATV plays fine. I get the dreaded "HDCP error" which is nonsense, as YouTube content does not have this protection. Netflix also gives the same error. (I have posted seperately about this problem.)
    I have had a couple of years of fault-free playing with my setup, the only thing that has changed is the Apple ATV software. Ergo, they need to fix whatever bug they introduced. None of the recommended "fixes" have worked.

  • Can I get audio through iPhone when using apple tv?

    Can I get audio through iPhone when using apple tv?

    What do you mean exactly? Are you wanting to output the audio to your iPhone while say watching a video on your Apple TV?  If so, I'm afraid it's not possible.  However, you should post this in the Apple TV forums for a better confirmation on then.  There are some prettty knowledgable people who hang out there.
    https://discussions.apple.com/community/appletv
    B-rock

  • Will pages automatically reformat to correct size when using Folio Builder or do I have to make pages iPad format, for example, in InDesign document set up from the start?

    Will pages automatically reformat to correct size when using Folio Builder or do I have to make pages iPad format, for example, in InDesign document set up from the start?

    Moved to DPS forum.
    You need to set up the pages appropriately for the target device. For iPad that's 1024x768.

Maybe you are looking for