Cannot separate to new page according to WERKS

Hi there!
I have succesfully display my result according to each new WERKS.
BUT if i add <i>NEW-PAGE PRINT ON</i> and <i>NEW-PAGE PRINT OFF</i> in order to send my report to spool. The <b>NEW-PAGE</b> no longer work out.
May I know how to solve this?
thanks for helping..
NEW-PAGE PRINT ON NEW-SECTION
                  PARAMETERS PRIPAR
                  ARCHIVE PARAMETERS ARCPAR
                  NO DIALOG.
  LOOP AT ITAB.
    AT NEW WERKS.
      <b>NEW-PAGE.</b>
        NEW_WERKS = 'Y'.
    ENDAT.
    IF NEW_WERKS = 'Y'.
       PERFORM WRITE_RESULT.
    ENDIF.
  ENDLOOP.
NEW-PAGE PRINT OFF.

Hi,
Check the below SAP help on NEW-PAGE PRINT ON...
NEW-PAGE PRINT ON
Extras:
8. ... PRINT ON ...
   ... PARAMETERS params
   ... ARCHIVE PARAMETERS arparams
   ... NEW-SECTION
   ... NO DIALOG
Addition 8
... PRINT ON ...
  ... PARAMETERS params (Structure with print parameters)
  ... ARCHIVE PARAMETERS arparams (Structure with archiving parameters)
  ... NEW-SECTION (Beginning of a new section)
  ... NO DIALOG (Skip print control screen)
The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Print Parameters Missing in NEW-PAGE Statement.
Effect
Page break and redirection of output to the SAP spool.
Starting with the new page, all WRITE statements (and also SKIP, ULINE, ...) are interpreted as print statements (see Printing in ABAP).
Before the first page is printed, the user sees a screen for setting the print parameters unless the addition NO DIALOG has been specified. The print parameters are passed through the structure params. This structure must have the structure of PRI_PARAMS. The structure can be filled and modified using the function module GET_PRINT_PARAMETERS.
If you specify arparams with ARCHIVE PARAMETERS, the structure of ARC_PARAMS must be used. You should only edit this parameter using the function module GET_PRINT_PARAMETERS.
If you specify the addition NEW-SECTION, the page count is reset to 1. If data is being printed, the current spool request is closed. If the print parameters specified are compatible with those set earlier, the new spool request is attached to the spool request just closed.
Note
It is not possible to add records to the spool on a cross-event basis (AT LINE-SELECTION, AT PFx, AT USER-COMMAND). In such cases, NEW-PAGE PRINT OFF (see addition 10) is processed even if this has not been coded explicitly.
Example
Printing without archiving
DATA PARAMS LIKE PRI_PARAMS.
DATA: DAYS(1)  TYPE N VALUE 2,
      COUNT(3) TYPE N VALUE 1,
      VALID    TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING DESTINATION           = 'LT50'
            COPIES                = COUNT
            LIST_NAME             = 'TEST'
            LIST_TEXT             = 'Test NEW-PAGE PRINT ON'
            IMMEDIATELY           = 'X'
            RELEASE               = 'X'
            NEW_LIST_ID           = 'X'
            EXPIRATION            = DAYS
            LINE_SIZE             = 79
            LINE_COUNT            = 23
            LAYOUT                = 'X_PAPER'
            SAP_COVER_PAGE        = 'X'
            RECEIVER              = 'SAP*'
            DEPARTMENT            = 'System'
            NO_DIALOG             = ' '
  IMPORTING OUT_PARAMETERS        = PARAMS
            VALID                 = VALID.
IF VALID <> SPACE.
  NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
  WRITE / 'First line'.
ENDIF.
Example
Printing with archiving
DATA: PARAMS   LIKE PRI_PARAMS,
      ARPARAMS LIKE ARC_PARAMS,
      DAYS(1)  TYPE N VALUE 2,
      COUNT(3) TYPE N VALUE 1,
      VALID    TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING DESTINATION            = 'LT50'
            COPIES                 = COUNT
            LIST_NAME              = 'TEST'
            LIST_TEXT              = 'Test NEW-PAGE PRINT ON'
            IMMEDIATELY            = 'X'
            RELEASE                = 'X'
            NEW_LIST_ID            = 'X'
            EXPIRATION             = DAYS
            LINE_SIZE              = 79
            LINE_COUNT             = 23
            LAYOUT                 = 'X_PAPER'
            SAP_COVER_PAGE         = 'X'
            RECEIVER               = 'SAP*'
            DEPARTMENT             = 'System'
            SAP_OBJECT             = 'RS'
            AR_OBJECT              = 'TEST'
            ARCHIVE_ID             = 'XX'
            ARCHIVE_INFO           = 'III'
            ARCHIVE_TEXT           = 'Description'
            NO_DIALOG              = ' '
  IMPORTING OUT_PARAMETERS         = PARAMS
            OUT_ARCHIVE_PARAMETERS = ARPARAMS
            VALID                  = VALID.
IF VALID <> SPACE.
  NEW-PAGE PRINT ON PARAMETERS PARAMS
                    ARCHIVE PARAMETERS ARPARAMS
           NO DIALOG.
  WRITE / 'First line'.
ENDIF.
Notes
NEW-PAGE PRINT ON must not be called when nested. Nested print lists are not supported. Each NEWPAGE PRINT ON call must be completed with a NEW-PAGE PRINT OFF call.
It is not possible to add records to the spool on a cross-event basis ( AT LINE-SELECTION, AT PFx, AT USER-COMMAND). In such cases, NEW-PAGE PRINT OFF (see addition 10) is processed if this has not been coded.
If you submit only NEW-PAGE PRINT ON NO DIALOG without additional parameters, the corresponding values from the user defaults are used as spool parameters.
Thanks,
Ramakrishna

Similar Messages

  • Cannot open favourites using the Firefox tag that usually opens up the menu and a new page.. Now I get the dropdown menu but cannot open a new page, losing the homepage every time I explore, can you say WHY? all other versions worked fine!

    I cannot open a new page from the Firefox favorites menu, it worked before in other versions and this new 5.1 version, but stopped working a few days ago, uninstalled, downloaded a fresh program.. same problem exists. I usually leave my 'Home Page' as a stable page and just open 'new' pages for i.e. Google, Internet Banking etc. the '+' sign on my home page or other loaded pages does not operate, hate having to now constantly sign in to my hotmail home page if and when I open new pages, can you help?

    Websites remembering you and automatically log you in is stored in a cookie.
    * Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    Make sure that you do not run Firefox in Private Browsing mode.
    * https://support.mozilla.com/kb/Private+Browsing
    * In [[Private Browsing]] mode all cookies are session cookies that expire if that session is ended, so websites won't remember you.
    * Do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    * http://kb.mozillazine.org/Cookies

  • Cannot add a new page to iWeb

    Already made some iWeb sites, but can't add a new page anymore. Any idea?

    NOTE : I'm not using iWeb '08 but the late one (iWeb '09 v.3.0.3)
    Also, just realized I can still duplicate pages (once modified, they resulted in the new needed pages), so iWeb is not completely useless yet…
    But stil no "new page" or "new site" working command/menu/icon

  • I cannot open a new page. ctrl + t doesn't work, or the block next to the current page. nothing works.

    When I follow a hyperlink, a new page will appear.
    And when after I closed Firefox, I open again Firefox all pages, which were open, will reappear.

    This issue can be caused by the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
    See:
    * [[Troubleshooting extensions and themes]]

  • I cannot open pages;  I am told I can't open pages while updating. I did not know I was updating.  I cannot open a new pages document.  My menu list is ok, but when I click on a document it won't open. Can you help?

    I cannot open pages.  The message says, can't open pages while being updated.  I did not knowingly update anything.
    The program is stuck in this mode. can you help?

    Your copy of Pages may have gotten stuck when downloading. This article explains how to fix a stuck Mavericks download; the same procedure should help with any application:
    How to fix broken Mac OS X Mavericks download issues | Digital Trends 
    http://www.digitaltrends.com/computing/how-to-fix-a-broken-os-x-mavericks-downlo ad/

  • I cannot open docs in Pages

    I have a 27 inh iMac running Muntain Lion.
    I cannotopen any fles in Pages 4.2 and all the Templares are blacked out si I cannot start a new page.
    How can I overcome this?

    First, use Disk Utility to repair permissions.
    Second, go  to HD > Users > (your account) > Library > Preferences, delete the com.apple.iwork.pages.plist file & then restart Pages. In Finder, hold down the Option key while clicking on the Go menu & your user Library will appear about halfway down the list.

  • Create new page takes forever

    Hi
    I've just downloaded and installed Sun Java Studio Creator. When I try to add a new JSP page by clicking new->page the "New Page Wizard" never closes after clicking "finish". So I cannot create a new page.
    I have 1 Gigabyte of RAM. Is this not enough.
    Any advice?
    Regards.

    Hi George,
    I got similar error messages after upgrading from Portal Early Adopter version to production version on Solaris (see http://technet.oracle.com:89/ubb/Forum70/HTML/000201.html). Unfortunately I got no replies/solutions to my message, although it appears to be a serious problem.
    Good luck,
    Tony de Bok
    Cumquat Information Technology
    The Netherlands

  • Can I add a new page to both phone and desktop in the same respective location? Can this only be done manually?

    It appears that once you create your phone site, from that point on, when I add a new page to one layout or the other, the "Page/go to same" command struggles. Can I create a new page and have it automatically create a matching placeholder page on the alternate format/site plan?

    Hi
    To answer your query, I am afraid you cannot add a new page to both phone and desktop in the same respective location. You need to manually do the same.

  • In the new Pages 5.0, what is the page break shortcut key. I cannot find the key as indicated on the drop down menu.

    in the new Pages 5.0, what is the page break shortcut key (it used to be the Fn + enter). I cannot find the (new) key as indicated on the drop down menu. Please help.

    Hi Bruce and fruhulda,
    ok, I found the keyboard viewer, it only shows the traditional symbol 'return'.  something like a sideway u-turn continued with the arrow under.  This is the Canadian or US keyboard. 
    btw thanks for your suggestion.

  • Cannot directly open the browser from the icon. "problem loading webpage" and "timed out" are the messages. Access was accomplished by using yahoo messenger and opening my email. if I attempt to open a new page, I recieve the aforementioned warnings.

    no link to open access to the internet. I used Yahoo Messenger, clicked on the 'mail icon' and since Firefox is my default it opened and I was able to continue from there. If I try to click File, open New Page, I get the "problem loading webpage" and "connection timed out" messages

    changed my homepage to Yahoo. Now Firrefox works but still cannot access ANYTHING 'Google"!

  • How do I get FF to focus on a new tab? I right-click and choose "Open in New Tab" and the Tab appears in the Tab bar but I cannot access or see the new page.

    I open FF ver.10. My Home page is Google Search. I use a Bookmark and open, say, Hulu.com. I select a link by right-clicking and choose "Open in New Tab" The little tab in the tab bar opens but I am still viewing the Hulu.com main page and cannot view the new tab.
    This happens even if I use middle-click to open a new tab. It happens with all links on any website I visit.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I cannot open a new tab any way..by clicking the new tab button on tab-bar, or ctrl/T, or File/New Tab, or clicking on link on current page.

    On Windows7 Premium Home Edition, I cannot get a new tab to open no matter what I try. On occasion, if I click on a link on the current page, a second tab will open, but 99% of the time I am stuck using the first tab for everything and using the back button. I have tried ctrl/T, File/New Tab, right mouse click/New Tab, and the new tab button on the tab bar to the right of the current tab.

    Uninstall the '''''Ask Toolbar'''''. It can cause that problem.
    *http://support.mozilla.com/en-US/kb/Uninstalling+add-ons
    *http://support.mozilla.com/en-US/kb/Cannot%20uninstall%20an%20add-on
    *http://kb.mozillazine.org/Uninstalling_toolbars
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Cannot create new pages/sites in iWeb '08

    I know this has been brought up so many times before. I read ALL of the posts.
    I am unable to create any new pages or sites in iWeb'08. The plus sign is greyed out and command-N does nothing.
    Here's what I've done:
    Deleted all files associated with iWeb and re-installed from the original DVD.
    Tried using the iWeb icon in iPhoto and iMovie (total of 20 times each). Nothing happens. The photos do not show up in iPhoto and I still can't do anything.
    Can anyone please suggest something else to try. I have an existing website that I prefer to use iWeb for, but I cannot update it until I can use iWeb.
    I can't believe Apple would release something this bad.

    Email me at
    [email protected]
    and I'll send you a domain.sites2 file.
    When you get it, quit iWeb, put it into Home Folder/Library/Application Support/iWeb and double click it to see if iWeb will launch and let you build a site.

  • I have an iPhone 4s that i have been using and have alot of new contacts, on my itunes i have registered an old iphone that i dont use i want to sync my contacts from the iPhone 4s but i cannot get past the page where it introduces you to your new iPhone

    I have an iPhone 4s that i have been using and have alot of new contacts, on my itunes i have registered an old iphone that i dont use i want to sync my contacts from the iPhone 4s but i cannot get past the page where it introduces you to your new iPhone

    When you see the old number come up in the suggested choices look for a blue arrow to the right of the Contact. Tap the blue arrow and then tap Remove from Recents.

  • Cannot separate muulti pages for numbering. If I make first page (1), all following pages have the same number. How do I fix that?

    Cannot separate multi page document for page numbering. First page numbered (1) produces same number on 5 following pages. How do I correct this?

    You just wrote a 1 in the footer? Use Insert > Page number instead.
    You have an online help in your Pages Help menu. It does have basic help

Maybe you are looking for