How to print on new page as employee changes..

Hi all,
I am writting every employee payslip one below the other,
now at the time of printting i want one employee on each page,
please tell me how to resolve this problem
thanks,
gaurav

Hi,
If you are doing this in a report.
Prerequesit:
1. Define LINE-COUNT in REPPORT statmnt. it is must if u want to trigger a new page (press F1 for more help on line-count).
  eg: REPORT  ztest_pav line-count 35                              .
define internal table with EMPLOYEE Number as first field and SORT the table with employee no or pernr before LOOPING the table.
Now, LOOP the table.
LOOP at it_emp.
  at end of pernr.
     new-page.        -
> Triggers a new for every pernr
  endat.
  write : itab-pernr.
endloop.
Hope it works.
Regards,
Pavan

Similar Messages

  • Tutorial on how to print  multiple output pages

    Hi,
    I am rather sad that this forum does not provide a simple principle on how to printout multiple pages to newbie.
    Below is a short contribution from me on how to print across multiple pages, other reader are also encourage to modify the code to provide more robust tutorial .
    * How to use java to print across pages that are more than one
    * Short contribution to java forum by Eric gan (Malaysia)
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.print.*;
    import java.awt.Graphics2D;
    import java.awt.print.*;
    import java.awt.print.Book;
    import java.awt.print.Pageable;
    import java.awt.Graphics2D;
    import java.awt.Graphics;
    public class Example implements Printable {
    //--- Private instances declarations
    private int row_cnt=30; // set the total number of row per page
    private int cum_row_cnt=30; // set the counter to record total number of row per page to determine
    // whether maximum pages should be increase depending on the programme requirement
    private int max_pg=0; // set the maximum number of page
    public Example () {
    //--- Create a printerJob object
    PrinterJob printJob = PrinterJob.getPrinterJob ();
         printJob.setPrintable(Example.this);
    if (printJob.printDialog()) {
    try {
    printJob.print();
    } catch (Exception PrintException) {
    PrintException.printStackTrace();
    public void paint (Graphics g) {
    Graphics2D g2d;
    g2d = (Graphics2D) g;     
    int x=10;
    int y=10;
    for (int outline=0;outline<=160;outline+=20){
              if (y>cum_row_cnt){
              cum_row_cnt+=row_cnt;//counter should grow by value equal to row_cnt
         max_pg++;
         g2d.drawString("outline value ---> " +outline , x, y);
         y+=10; // to set the row printing interval      
    } // end of paint procedure
         public int print(Graphics g,
    PageFormat pf, int pi)
              throws PrinterException {
    // normal routine to check when should java stop the print looping
    if (pi >max_pg) {
    return Printable.NO_SUCH_PAGE;
    Graphics2D g2 = (Graphics2D) g;
         int fontHeight=g2.getFontMetrics().getHeight();
         int fontDesent=g2.getFontMetrics().getDescent();
         double pageHeight = pf.getImageableHeight()-fontHeight;
         double pageWidth = pf.getImageableWidth();
         // setting for the translate and graphics clipping to enable printing on output pages
    // row_cnt can be equal to pageHeight
    // in this examples assumming pageHeight=20 rows           
         g2.translate(pf.getImageableX(), pf.getImageableY());
    g2.translate(0f,-pi*row_cnt);
    g2.setClip(0, (int)(row_cnt* pi),
    (int) Math.ceil(pageWidth),
    (int) Math.ceil(row_cnt));
    paint(g2);
    return Printable.PAGE_EXISTS;
    public static void main (String [] args) {
    Example example = new Example ();
    System.exit (0);
    Thank

    Hello
    I know that Pages is using its own algorithm to resize pages when it put several of them on a single sheet.
    This is why I use this tip.
    I draw a rectangle whose size is supposed to be the final one.
    I give it a white background and a black border whose thickness is set to one point.
    For the tests I just insert three page breaks so that the document is a four pages one.
    I print it as is.
    Doing that, I may measure the printed rectangle.
    Of course, at first attempt it doesn't match the required size.
    It's easy to compute the required adjustments.
    When the correct factor is reached, it is easy to build the complete document so that it prints the correct size.
    Doing that I never got odd results but maybe it's because I am a lucky guy.
    Of course, disagreeing with one advice doesn't mean that I don't respect it.
    I respect your opinion, _on other matters too_
    Yvan KOENIG (from FRANCE mardi 6 mai 2008 17:24:09)

  • How to print envelopes in pages, How to print envelopes in pages

    How to print envelopes in pages, How to print envelopes in pages

    I presume you are using the Pages application, is that correct?
    So start off by launching Pages and choose one of the regular envelope styles. Traditional works well for me.
    Next go to the File menu and select Page setup. From the menu that says Paper Size select Manage Custom Sizes. In the resulting dialog, there should be a button on the left labeled "+". Click it. In the Paper Size area, select Width 5 in and Height 7 in. Name the size (where it says "untitled" something descriptive like "5 x 7 envelope". Click the OK button. The Paper Size menu here should now say the description you gave it. Click OK again. Your work area should now be a 5 x 7 envelope.
    Best of luck.
    PS If you are using Word or some other program, the process is probably the same or very similar.

  • How to call the new page in smartforms

    Hi friends,
    How to call the new page in smartforms.
    Thanks,
    Ravi

    Hi,
    Create a command node and click the 'Go to new page' check box specifying the page u want to go.
    You can enter your condition for which it should branch to a new page in the 'conditions' tab.
    Regards
    Shiva

  • How can I make new pages software spellcheck a selection like in appleworks?

    How can I make new pages software spellcheck a selection like in appleworks?
    I just installed pages a new download from apple store.
    1. I cannot find any way to activate a spellcheck for a selection in a document.
    2. I want to elemenate a red line under a word it doesn't like the spelling of.

  • How to print 2 sided pages brochure

    how to print 2 sided pages brochure

    Hello kaskasnikola,
    I understand that you need to print 2 pages per page.
    1 Open the printer driver, and click the Finishing tab.
    2 Select the number of pages per sheet from the Pages
    per sheet drop-down list.
    3 Select the correct options for Print page borders,
    Page order, and Orientation.
    4 Click OK.
    If you are having any problems please post on our printer forums.
    Here is a link to the forum.

  • How do u get New page in Smart form dynamically

    How do u get New page in Smart form dynamically

    page break in smart form
    Re: New Page in Smart Forms
    Page break inside a loop  in smart form

  • How to create a New Tranport Request for changed  Extract structure

    How to create a New Tranport Request for changed  Extract structure ?
    Hi Experts,
    I have a FI AP Generic Datasource containing extract structure with appended fields.
    It has already been activated and transported to Testing System.
    Now, I am to create a new transport request for this DataSource and Extract structure.
    I do not want to delete and recreate the Generic Datasource.
    I am trying to look at the options in the extract structure top menu from where I can create a new Tranport Request.
    Please let me know the steps
    URGENT

    Hi Dev,
    Once you send the transport request for any data source from Dev to Testing you wont find that again in your Dev (I mean the TR). So, when you change anything for this data source or view now in Dev and try to save it, it will ask for a new transport request and here you can mention a new one starting from View then activate it and go to RSO2 regenerate it and use the same transport request for this too. When you transport this TR to Testing Environment the data source will automatically get changed.
    Hope it helps...

  • How do I keep the page format from changing on my IPAD as I switch between pages

    How do I keep my page format from changing on my IPAD as I switch from page to page.

    Can you provide more information. Switching from page to page in what app? How if the format changing?

  • How to print a empty page in a Layout

    Hi experts,
    i have a small requirement in forms. In my sapscript form i have 2 pages. its displaying properly the invoice layout.
    But the new requirement is the user want to print a empty page as 1st page and remaining as per now current setting.
    How to print a empty first page in a layout using sapscript?
    Anyone help this issue?
    Mohaha

    Hi Mohana,
                    Create one new page and one window of almost page size with no contents.  Move that window to this page.  Keep this page as first page and give earlier first page as next page to this newly created page.
                    Hope this should solve the problem.
    Regards
    Sravan

  • How to catch the New-page in a report ?

    Hi ,
    I would like to know how the following can be done.
    While printing a report,how can we identify the beginning of a new page so that we can put the header on start of every new page ?
    Thanks,
    Sandip.

    If you write the header in <b>TOP-OF-PAGE</b> event, it will automatically take care of each page.
    The below code will help you.
    TOP-OF-PAGE.
      PERFORM write_page_header_400.
    FORM write_page_header_400.
      WRITE: /1 sy-sysid(3) NO-GAP, '-' NO-GAP, sy-mandt,
             60 'Test,
            110 'Date:', sy-datum MM/DD/YYYY,
            170 ' '.
      WRITE: /1 sy-cprog,
               60 'Test',
              110 'Time:', sy-uzeit,
              170 ' '.
    ENDFORM.
    This header will appear in each page.
    Hope this will solve ur problem, if u have any queries plz do revert back or else please close the thread.
    Message was edited by:
            Judith Jessie Selvi

  • Force PageFooter Section to Always Print on New Page

    Hello All,
    I have a Sub Report in the PageFooter Section of my Main Report. How do I force this subreport to always print on a new page?
    Thanks and Best regards,
    Felix

    I think it is not possible to use the option for page footer as new page after or new page before  as these options are greyed out. Do you have a seperate data to show in page footer? and do you want to repeat it for all pages? If it is a static data then you can directly place them in page footer. Could you please explain me in brief what exactly the output you are looking for?havendra
    Regards,
    Raghavendra

  • How to Print Without Cropping Pages

    I'm new to the Book tool, and cannot figure out how to print a book on my Epson 4800 printer without cropping the pages.
    I'm using Aperture 3.1.2 and OSX 10.6.6.
    I created a custom "Book Type" with a Page Size of 11 in. wide x 8.5 in. high.
    I created pages, added images, and tried to print. No matter what I do, I cannot get an 8.5 x 11" sheet to print with the same content as my 11 x 8.5" book pages.
    If it helps, I'm using cut sheet 8.5x11" paper in my Epson 4800.
    Thanks,
    Jim

    As Peter said, you can't with Pages, but you could export the file as a PDF & then print just the desired pages in Preview.

  • OBIEE Guided Navigation Link - How to open in New page.

    Hi,
    I am using Guided navigation links in OBIEE dashboards to link some of my reports.
    When i click on the Link it opens the report on the same page. Instead i have to open the report in a new page. This Option is available in 'Link OR Image' section, not in 'Guided Nav. Link' section. Please suggest me if there is any way to achieve this.
    Thanks
    Swami

    Hi
    We have the same need: from within a report we have guided navigation to a detail report, that uses the values of the record in the master report as filterparameters. When clicking a row in the master report , we should open the detail report in a new window, while leaving the master report in the dashboard open. How can we achieve this?
    Swami just mentioned the Link or Image object to indicate that this possibility of choosing the same or a new window is present there, and asked where to find the same choosing option for guided navigation.
    Frits

  • OBIEE 11G - Navigation:How to open in New page/new tab.

    Hi All,
    When I click on a link in report it opens another report on the same page. Instead I have to open the report in a new page/new tab. Is this feature available in obiee 11g version? If yes, could you please tell me how to make it possible?
    Thanks in advance,
    Sunita

    hi
    Use Action Link...to open link in New Window
    1.Go to edit Dashboard...
    2.Select Action Link from Dashboard Objects.
    3.Click the Action Link Properties and Type your Report Name in Link Text Box.
    4.Select New Action Button and Go to Navigate to BI Content
    5.Choose your Report from your path and click ok button
    6.Enable Open Link in New Window(IMP) and click ok.
    7.save and check your dashboard page...
    thanks,
    kavi
    Edited by: Kavitha on Jul 12, 2011 12:11 PM
    Edited by: Kavitha on Jul 12, 2011 12:12 PM

Maybe you are looking for

  • Cleaning the guts of an HP B & W or Color LaserJet Printer

    Hi: I currently have an HP4M LaserJet printer...it appears to have "died" after 20 years. I have had to do meticulous internal cleaning of it in the past, when I toner cartridge would go bad, dumping toner into the printer.  With brushes, lint free c

  • HELP!!! CAN'T RESTORE OLD CATALOG TO NEW HARD DRIVE

    July 12, 2010 Hello, Thank you for any help you can give with this rather desperate problem. I have installed a replacement hard drive in my Dell Windows Vista laptop and reloaded Adobe Photoshop Elements 6.0.  I am unable to reconnect Elements with

  • Special character in receiving file

    hi everyone. i have implemented file to file scenario. I am getting file at my receiving end. IN my receiver CC i have mentioned endSeparator as 'nl' , but when file gets created it shows special charater (box shaped) separating each record. any idea

  • RMI Applet error

    I'm programming a RMI based messenger system. I tested the server and a java console client... all worked very well! After that, I programmed a very simple test applet (source below). import java.awt.*; import java.awt.event.*; import java.applet.*;

  • Is there way to put single text line in each response via WL configuration.

              Hello,           Our partners are using SunOne server and           they can easy include P3P policy file to each response via server configuration.           Can we do it with WL?           We have more than 3000 JSPs to modify.