Can anyone sort out ths problm

Not generating accounting document
Error Log
            0900038457 000000 Document 900038457 saved (error in account determination)
           Technical data
               Tech. data details
                Client
                Group Number
                Sales Document Number                  0900038457
                Item Number of the SD Document         000000
                Schedule Line Number                   0051
                Counter in Control Tables              00
                Message Identification                 VF
                System Message Number                  051
                Output Type                            E
                Message Variable 01                    900038457
                Message Variable 02
                Message Variable 03
                Message Variable 04
                Group Type

Hi,
Please check the forum before you post your questions as this question was answered a number of times earlier.
Goto VF02 and check Revenue Accounts(Shift+F11) and find out what is missing and then
check your VKOA settings and maintain all the relevant fields
Regards.,
Phani Prasad

Similar Messages

  • Hi I am using iphone 4, since last few days i am facing problem in touch screen at times it doesn't work at all for 5-10 mins and then it works out itself. Can anyone pls suggest what the problem is and how it can be sorted out?

    Hi I am using iphone 4, since last few days i am facing problem in touch screen at times it doesn’t work at all for 5-10 mins and then it works out itself. Can anyone pls suggest what the problem is and how it can be sorted out?

    Did you recently updated to 7.0.4? Even for me same also issues.

  • Can anyone help out in parsing the xml file.

    i have this file as string in webdynpro.
    can anyone help out how can i parse it and attch to context of webdynpro with structure
    queryList
       Queryid
       name
       remarks
    <?xml version="1.0" encoding="UTF-8"?>
    <app-data>
    <content-data hyperlink="" name="RegulatoryQueries" status="USER_VALID">
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="4"/>
    <element name="QUERY_NAME" type="Text" value="shal"/>
    <element name="REMARKS" type="Text" value=""/>
    </data><data><element name="QUERY_SAVE_ID" type="Text" value="20"/>
    <element name="QUERY_NAME" type="Text" value="test"/>
    <element name="REMARKS" type="Text" value="test"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="3"/>
    <element name="QUERY_NAME" type="Text" value="query_shal"/>
    <element name="REMARKS" type="Text" value="shaleel for testing on tomcat"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="8"/>
    <element name="QUERY_NAME" type="Text" value="sap"/>
    <element name="REMARKS" type="Text" value="Demo"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="10"/>
    <element name="QUERY_NAME" type="Text" value="TTTTT"/>
    <element name="REMARKS" type="Text" value="TTTTTTTTTTTTTTTTTTTTTtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttestend"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="6"/>
    <element name="QUERY_NAME" type="Text" value="RagQuery"/>
    <element name="REMARKS" type="Text" value="abcd"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="16"/>
    <element name="QUERY_NAME" type="Text" value="aa"/>
    <element name="REMARKS" type="Text" value="aaa"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="12"/>
    <element name="QUERY_NAME" type="Text" value="asda"/>
    <element name="REMARKS" type="Text" value="dasda"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="5"/>
    <element name="QUERY_NAME" type="Text" value="shalu"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="18"/>
    <element name="QUERY_NAME" type="Text" value="qry1234123"/>
    <element name="REMARKS" type="Text" value="aasdf"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="7"/>
    <element name="QUERY_NAME" type="Text" value="d"/>
    <element name="REMARKS" type="Text" value="sd"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="13"/>
    <element name="QUERY_NAME" type="Text" value="suresh"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="19"/>
    <element name="QUERY_NAME" type="Text" value="qrysdf"/>
    <element name="REMARKS" type="Text" value="sdfsd"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="22"/>
    <element name="QUERY_NAME" type="Text" value="llk"/>
    <element name="REMARKS" type="Text" value="dffnhjk"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="25"/>
    <element name="QUERY_NAME" type="Text" value="Query1"/>
    <element name="REMARKS" type="Text" value="Query1"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="30"/>
    <element name="QUERY_NAME" type="Text" value="1122"/>
    <element name="REMARKS" type="Text" value="w"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="32"/>
    <element name="QUERY_NAME" type="Text" value="11221"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="33"/>
    <element name="QUERY_NAME" type="Text" value="11222"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="34"/>
    <element name="QUERY_NAME" type="Text" value="11223"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="35"/>
    <element name="QUERY_NAME" type="Text" value="11224"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="36"/>
    <element name="QUERY_NAME" type="Text" value="11225"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="37"/>
    <element name="QUERY_NAME" type="Text" value="11226"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="38"/>
    <element name="QUERY_NAME" type="Text" value="11227"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="48"/>
    <element name="QUERY_NAME" type="Text" value="all fields"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="50"/>
    <element name="QUERY_NAME" type="Text" value="test34"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="27"/>
    <element name="QUERY_NAME" type="Text" value="12"/>
    <element name="REMARKS" type="Text" value="12"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="61"/>
    <element name="QUERY_NAME" type="Text" value="sureshcharan"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="62"/>
    <element name="QUERY_NAME" type="Text" value="charan"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="24"/>
    <element name="QUERY_NAME" type="Text" value="sss"/>
    <element name="REMARKS" type="Text" value="sss"/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="64"/>
    <element name="QUERY_NAME" type="Text" value="test"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="53"/>
    <element name="QUERY_NAME" type="Text" value="afsdf"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    <data>
    <element name="QUERY_SAVE_ID" type="Text" value="51"/>
    <element name="QUERY_NAME" type="Text" value="Satisfy al sets"/>
    <element name="REMARKS" type="Text" value=""/>
    </data>
    </content-data>
    </app-data>
    Thanks.
    dharmendra

    Hi dharmendra,
    Check
    Using the XML returned by XI to populate table in Web Dynpro UI
    Xml File processing
    Best regards, Maksim Rashchynski.

  • My iTunes not open it's required quicktime 7.5.5 but i have a mac book 4,1 Mac OS X 10.5.8 so how can i sort out this issue, my iTunes not open it's required quicktime 7.5.5 but i have a mac book 4,1 Mac OS X 10.5.8 so how can i sort out this issue

    hi,
    i have mac book 4,1 mac OS X 10.5.8
    when i open iTunes i can't open, it's requied quicktime 7.5.5 so woh can i sort out this

    QuickTime 7.5.5 for Leopard - http://support.apple.com/kb/DL27
    QuickTime 7.7 for Leopard - http://support.apple.com/kb/dl761
    = New version of Quicktime installed but application reports it needs to have that version installed =
    Open Application > Utilities > System Profiler and check the Quicktime version in Frameworks vs. the version in Applications.  One person had re-installed their operating system.  It had kept the newer Player application but had reverted to an earlier version of the underlying support framework files which many applications utilize.  Re-installing Quicktime 7.7 took care of the problem.  Do this manually, not with Software Update.
    Installation get stuck at "configuring installation" - https://discussions.apple.com/thread/2592979?threadID=2592979  - uninstall Quicktime before installing.

  • How can i sort out the N lowiest elements from an 1D array faster than using the build in sort function (1D-array) in Labview?

    I need an algorithm that is based on the same sorting-algorithm that Labview uses (or one that is just as fast) but it only needs to sort out the N lowiest elements (and the N-element output array don't need to be sorted).
    /Jonas

    I want all three zeros in the output. You can se the algorithm that I'm looking for as a soft version of Labviews own sort algorithm that only gives you the N (always less then the length of the array) lowiest values as output.If two elements contain the same small value both should be sorted out.
    /Jonas

  • I renamed songs in playlist but the original files aren't renamed. How can I sort out the originals?

    I could really use some help. I'm trying to record an audio book of my second novel. I had about 300 audio tracks from recording the book in iTunes. I put them all in a playlist. Then I went through and delected the tracks that were no good from the Playlist and renamed the others so they were properly sorted by page number.
    Unfortunately, I did not realize that 1) renaming tracks in a Playlist does not rename the actual original tracks, and 2) when I click "Show in Windows Explorer" not only is it the original file names, but they are mixed in with all the other tracks that I had deleted from the playlist.
    Is there any way for me to isolate the tracks that are in the Playlist? I need to pull all those tracks out so I can import them into a music editing software program. I'm worried that all my time was wasted renaming the songs and now I can't figure out any way to group those tracks to import into another program.
    Any advice would be much appreciated!
    Thank you.
    - David David Katzman

    When you look at your iPhone, are you looking in the Music app or in the iTunes app?  Be sure you are looking in the Music app, and look in the Songs category.  If your songs are not here, you may want to try syncing your information again through iTunes.  To do this, uncheck "Sync Music" and then click apply or sync in the bottom right corner of iTunes, and then recheck "Sync Music" and then click apply or sync again. 
    I hope this helps!

  • Can anyone help out with an I issue that is showing on my iPhone?

    Recently I discovered I was running version6.13 (10B329)
    Can anyone explain what this is and how it ended up on my iPhone?

    That simply indicates the build number (sub-version, sort of) of the software, and takes into account beta and test builds. From a user standpoint, it doesn't mean a great deal. There would have been only one "build" available for your device.

  • Hi  can anyone help out there in Logic Land

    When I launch logic 7.1.1 on my G5 dual 2 gig System with 3.5gig of ram, running OS 10.4.9 -ok the prelims out of the way now down to the problem.
    When I launch Logic I get this error message
    Error code-1 was returned by CoreAudio driver
    Can anyone out there in Logic land tell me what this means.

    Your Core Audio driver is not recognized or not found.
    How did you upgrade to 10.4.9?
    There have been reports here, that upgrading to 10.4.9 via Software Update created problems, mainly for people who run a MP or MBP.
    Try re-installing 10.4.9 from the combo updater available at the Apple site, or try to revert to 10.4.8, which runs nice and stable here with LP 7.1.1.
    Maybe from 10.4.9 on we have to use LP 7.2.x..., hum?

  • Can anyone help out with an ongoing issue?

    I have been informed by Apple that my ISP is allowing my computer to be accessed remotely via some type of bridge support or ad hoc network! I have tried to remain proactive w/ addressing this issue but things have been frustratingly tumultuous within my county for some time now. It seems as if a business is assumig co ownership of my MacBook, That being said I know all stems from my ISP and their ability to manipulate my network! Can anyone offer any suggestions? I have been informed my best route is to sell my devices and leave this small minded county in my rear view, That's my plan moving forward but I don't want my computer os phone to be compromised repeatedly!

    Tony_CEE wrote:
    I have been informed by Apple that my ISP is allowing my computer to be accessed remotely via some type of bridge support or ad hoc network!
    How did Apple inform you of this, it s a most unusual move on their part (in fact it is the first time I have ever heard it)
    Unless you have sharing enabled and sharing services turned on this is highly unlikely (if another person has physical access to your Mac not so unlikely)
    What makes you think that some other person has control of yor Mac?

  • How can I sort out iphoto with my external hard drive?

    Hello, and sorry if this has been answered before, i did have a look, but with no results.
    a while ago my ibook filled up, and so i bought an external hard drive. i then dragged the photos across onto it, deleted them off my i book. no problems.
    a while later i read about setting up my external hard drive to use it as an iphoto library. i did this, pressed the "alt" key whilst iphoto opened and i was able to open my photos from the external drive.
    however, all the photos that i'd orignally transferred were not there, only the most recent ones.
    so, to sum up, when i look at the photos on my external drive, they are all there, but when i try opening them with iphoto i can only see some of them.
    how can i re-set up my external drive so i can see all my photos using i book?
    i was thinking i could drag the photos that don't open from the external drive into iphoto, then redrag the entire iphoto library back onto the external drive. however, i only have 2 gb of space on my ibook, and about 20000 photos in total.

    sorry for being unclear.
    i will try and explain again.
    i still have my iphoto library on my internal drive.
    i initially dragged and dropped the photos from iphoto onto the external drive and deleted them off my internal drive to free up space.
    then i read how i better way to do it would be to drag my iphoto library from the finder, onto my external drive, because then i would be able to open it from iphoto. so i did that and when i pressed the option key whilst iphoto was setting up, accessed my iphoto file on my external drive.
    the only photos to appear were the ones from when i dragged the entire iphoto file from finder, not the previous lot that i had dragged from iphoto itself.
    so, any ideas how i can get the photos that aren't showing up using iphoto, to show up?

  • I am trying to use window.scrollto in javascript that is part of my extension however the page is not scrolling at all, can anyone point out what i need to do

    I have written an extension that I want to call from a windows program to make part of the page scroll into view. I have sucessfully got my windows program talking to the extension and calling my code to scroll into view however when I call window.scrollTo and provide the new coordinates nothing happens.
    window.scrollTo(parseInt(myNewScrollLeft), parseInt(myNewScrollTop));
    I have tried to use the nsiScrollBoxObject interface instead however I cannot work out how to get the interface for the main document window from within my javascript.

    I have worked out what is wrong. I need to call gBrowser.contentWindow.scrollTo() to get it to work.

  • Can't sort out the following errors...

    continued from routing system message.....
    *****CODE****
    package routingSystem;
    public class Router {
    //attributes
    private Machine machineArray[]; //this array is of type Machine. the name
    // could be different.
    private Machine packingMachine; //The machines that get passed into this class - need to use
    //these in the code
    private Food processedFood;
    //Constructor.
    public Router(Machine machineArray []) {
    processedFood = null;
    public void run(Food processedFood) {
    this.processedFood = processedFood;
    Machine shortestMachine = machineArray[0];
    for (int i = 0; i<machineArray.length; i++){  //check if you need machineArray.length OR use i<machineArray.numberItemsWaiting() method.//
    if (machineArray.numberItemsWaiting() < shortestMachine.numberItemsWaiting()) {
    shortestMachine = machineArray[i];
    shortestMachine.addItem(processedFood); //check machine method names for adding food to the queue.
    ****end of code****
    errors:
    Error(12,11): class Food not found in class routingSystem.Router
    Error(20,19): class Food not found in class routingSystem.Router
    Error(29,23): method addItem(<any>) not found in class routingSystem.Machine
    any help would be appreciated...

    Error(12,11): class Food not found in class
    routingSystem.Router
    Error(20,19): class Food not found in class
    routingSystem.RouterThese errors are because your code refers to the class Food
    but the compiler can't find the class Food.
    Is the class Food in the same "routingSystem" package?
    Otherwise, you need to import it with a line like
    import Food;
    goes after the package declaration before the class declaration
    Error(29,23): method addItem(<any>) not found in class
    routingSystem.MachineYou're invoking a method here:
    shortestMachine.addItem(processedFood);
    The class of shortestMachine is Machine and the error message says that
    you can't invoke addItem(...) on Machine because Machine has no such method. Check your Machine class. Did you write an addItem method?
    Fix the Food bug first and recompile - sometimes later bugs disappear when you fix earlier bugs, anyway.
    Jean

  • Basic aperture help? Can anyone help out!?

    Iam adventuring into the art of editing photos but having trouble deciding if Aperture is for me. I tried Capture Nx2 but watermarking is a major component ill be using and it doesnt support that. I tried Gimp but it works with X11 and it doesnt seem to be compatable with my Mac. Now iam thinking about Aperture Due to its water marking ability. I fairly take good photos so Ill prob. just be needing the bare minimal tools to enhance my photos. I mean Should i just use I photo or will Aperture be better suited for me?
    I also Take pics in .NEF and I know you can't view those settings in Aperture But cant i Just re apply them In aperture?

    Just tweak Waynes answer to fit your definition of Gross Profit margin. (just change one cell reference as far as I know) If you need a definition of Gross Profit Margin, please use google and find a web site that gives you what your looking for exactly. I dont want to be responsible for you reporting the wrong answer to your boss.... or teacher, due to miscommunication or misunderstanding on our part as to definitions of financial questions.
    If you need instructions on how to enter equations or modify existing ones, you can refer to the numbers user manual, linked to in the help menu i believe. That should give you everything you need.
    Jason

  • With blackberry instant messenger, can anyone find out what you have been typing once cleared

    dying to know if boss can see what im typing or retreive what i sent to friend on the blackberry instant messenger service.
    my boss is very nosy and yes i know its their phone, but still wondering if it can be retreived like txting or email???
    thanks    
    Solved!
    Go to Solution.

    Agree with JSanders - why take the chance?  If you're doing something you shouldn't on a corporately-owned device, you're just asking for trouble.
    As far as turning on logging for BlackBerry Messenger, you'd know it was on since the way it works is you'd see an item in your Sent Items that is a record of all of your BBM chat being sent to whatever email address the BES Admin set up.
    It's not something that is done 'behing the scenes' like logging text messaging or phone calls.  The user KNOWS they are being tracked for BBM.
    If you find a post here helpful, please consider giving the poster some Kudos

  • Can anyone figure out why this runs into an infinite loop?

    Hi,
    I have the following class, and if i run it, I encounter an infinite loop. I have pinpointed the problem and it is because of the lines:
    try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            catch (Exception exp) {
                   System.err.println("Failed");
                exp.printStackTrace();
            }Here is the class. Any and all help is greatly appreciated. Thanks!
    package org.aemf.clinical.tol.gui.printing;
    import org.aemf.clinical.tol.model.TOLBion;
    import org.aemf.clinical.tol.model.Range;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.*;
    import java.awt.print.*;
    import java.awt.*;
    import java.util.Iterator;
    import java.util.ArrayList;
    * Created by IntelliJ IDEA.
    * User: arashn
    * Date: Feb 9, 2005
    * Time: 1:26:38 PM
    public class printTableTest implements Printable, Pageable {
         private PageFormat pf;
         private String[] headers = { "Heading 1", "Heading 2", "Heading 3"};
         private java.util.List bions = null;
         private ArrayList<Object[][]> data = new ArrayList<Object[][]>();
         public printTableTest(PageFormat format) {
              this.pf = format;
         public int getNumberOfPages() {
            return 1;
        public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException {
            return pf;
         public void setBions(java.util.List b) {
              bions = b;
              for(int x=0; x < 3; x++) {
                   //TOLBion bion = (TOLBion) bions.get(x);
                   int ndx = 0;
                   //Object[][] tempData = new Object[bion.getNumRanges()][3];
                   Object[][] tempData = new Object[2][3];
              //     for (Iterator itr = bion.getRanges(); ndx < 2 && itr.hasNext(); ) {
                   for (; ndx < 2 ; ) {
                   // Range range = (Range)itr.next();
                        //tempData[ndx] = new Object[] { new Integer(range.getFrequency()), range.getLowerBound(), range.getUpperBound() };
                        tempData[ndx] = new Object[] { "col 1: " + x, "col 2: " + x, "col 3: " + x };
                        ndx++;
                   data.add(tempData);
        public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException {
            return this;
         public int print(Graphics g, PageFormat format, int pageIndex) throws PrinterException {
              if(pageIndex > 1) {
                   return Printable.NO_SUCH_PAGE;
                                                                              System.err.println("Page: " + pageIndex);
              JFrame frame = null;
              JTable tableView = null;
              Graphics2D g2 = (Graphics2D) g;
              //Object[][] data = new Object[3][3];
              g2.setColor(Color.black);
              g2.translate(format.getImageableX() + 72, format.getImageableY() + 72);
              for(int x=0; x < data.size(); x++) {
                   tableView = new JTable(new PrintTableModel(headers, data.get(x)));
                   frame = new JFrame();
                   JScrollPane scrollpane = new JScrollPane(tableView);
                   scrollpane.setPreferredSize(new Dimension(300, 80));
                   frame.getContentPane().setLayout(new BorderLayout());
                   frame.getContentPane().add(BorderLayout.CENTER,scrollpane);
                   frame.pack();
                   tableView.paint(g2);
                   g2.translate(0, - tableView.getTableHeader().getHeight());
                   tableView.getTableHeader().paint(g2);
                   g2.translate(0, format.getImageableHeight()/3);
              return Printable.PAGE_EXISTS;
         public static void main(String args[]) {
              PrinterJob printerJob = PrinterJob.getPrinterJob();
              try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            catch (Exception exp) {
                   System.err.println("Failed");
                exp.printStackTrace();
             int INCH = 72;
              double LETTER_WIDTH = 8.5 * INCH;
              double LETTER_HEIGHT = 11 * INCH;
            Paper paper = new Paper();
              int margin = INCH/6; // << set your margins here
              double pageWidth = LETTER_WIDTH - 2 * margin;
              double pageHeigth = LETTER_HEIGHT - 2 * margin;
              paper.setImageableArea(margin, margin, pageWidth, pageHeigth) ;
              PageFormat format = printerJob.defaultPage();
              format.setPaper(paper);
            printTableTest pp = new printTableTest(format);
            pp.setBions(new ArrayList());
              printerJob.setPageable(pp);
              boolean doPrint = printerJob.printDialog();
              if (doPrint) {
                   try {
                        printerJob.print();
                   } catch (PrinterException exception) {
                        System.err.println("Printing error: " + exception);
             System.exit(0);
         private class PrintTableModel extends AbstractTableModel {
              private Object[][] data = null;
              private String[] headers = null;
              public PrintTableModel(String[] headers, Object[][] data) {
                   this.headers = headers;
                   this.data = data;
              public int getColumnCount() { return headers.length; }
              public int getRowCount() { return data.length; }
              public Object getValueAt(int row, int col) { return data[row][col]; }
              public String getColumnName(int column) { return headers[column]; }
              public Class getColumnClass(int col) { return getValueAt(0,col).getClass(); }
              public boolean isCellEditable(int row, int col) { return false; }
              public void setValueAt(Object aValue, int row, int column) { data[row][column] = aValue; }
    }

    I have managed to create an even simpler version which tries to print the same header 3 times. Again, if you remove the setLookAndFeel line, everything works out great.
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.print.*;
    import java.awt.*;
    * Created by IntelliJ IDEA.
    * User: arashn
    * Date: Feb 9, 2005
    * Time: 1:26:38 PM
    public class printTableTest implements Printable, Pageable {
         private PageFormat pf;
         public printTableTest(PageFormat format) {
              this.pf = format;
         public int getNumberOfPages() {
            return 1;
        public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException {
            return pf;
        public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException {
            return this;
         public int print(Graphics g, PageFormat format, int pageIndex) throws PrinterException {
              if(pageIndex > 1) {
                   return Printable.NO_SUCH_PAGE;
              System.err.println("Printing Page: " + pageIndex);
              Graphics2D g2 = (Graphics2D) g;
              g2.setColor(Color.black);
              g2.translate(format.getImageableX() + 72, format.getImageableY() + 72);
              DefaultTableColumnModel dtcm = new DefaultTableColumnModel();
              TableColumn tc = new TableColumn();
              tc.setHeaderValue("Heading 1");
              dtcm.addColumn(tc);
              tc.setHeaderValue("Heading 2");
              dtcm.addColumn(tc);
              tc.setHeaderValue("Heading 2");
              dtcm.addColumn(tc);
              JTableHeader tableHeader = new JTableHeader(dtcm);
              JScrollPane scrollpane2 = new JScrollPane(tableHeader);
              scrollpane2.setPreferredSize(new Dimension(300, 80));
              JFrame frame2 = new JFrame();
              frame2.getContentPane().add(BorderLayout.NORTH,scrollpane2);
              frame2.pack();
              for(int x=0; x < 3; x++) {                   
                   tableHeader.paint(g2);
                   g2.translate(0, format.getImageableHeight()/3);
              return Printable.PAGE_EXISTS;
         public static void main(String args[]) {
              PrinterJob printerJob = PrinterJob.getPrinterJob();
              try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            catch (Exception exp) {
                   System.err.println("Failed");
                exp.printStackTrace();
             int INCH = 72;
              double LETTER_WIDTH = 8.5 * INCH;
              double LETTER_HEIGHT = 11 * INCH;
            Paper paper = new Paper();
              int margin = INCH/6; // << set your margins here
              double pageWidth = LETTER_WIDTH - 2 * margin;
              double pageHeigth = LETTER_HEIGHT - 2 * margin;
              paper.setImageableArea(margin, margin, pageWidth, pageHeigth) ;
              PageFormat format = printerJob.defaultPage();
              format.setPaper(paper);
            printTableTest pp = new printTableTest(format);
              printerJob.setPageable(pp);
              boolean doPrint = printerJob.printDialog();
              if (doPrint) {
                   try {
                        printerJob.print();
                   } catch (PrinterException exception) {
                        System.err.println("Printing error: " + exception);
             System.exit(0);
    }

Maybe you are looking for