Custom JFileChooser painting

Hi all, still new at swing and customizing their look and have a few questions regarding customizing the painting of a JFileChooser. First I would like to change the gradients of the buttons. Is this possible? Usually I have gone about changing a components paintComponent method(as below). But I have no idea how to do this when trying to set the painting of a child component. Probably possible to loop also through the child components and find the buttons, but then what?
Second I had used a recursive method to set child jpanel components of a JOptionPane to set them opaque and allow the JOptionPanes new custom paint to show through. I tried to apply that to the JFileChooser and am left with an area at the bottom and left that are the default colors.
I have added statement to also change any JComponent to setOpaque(false), but this doesnt help. Any suggestions or help would be appreciated.
heres the sample and thanks again.
package filechoosertest;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.RenderingHints;
import javax.swing.JComponent;
import javax.swing.JFileChooser;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
public class TestFileChooser extends JFileChooser{
    private Color startColor1 = new Color(255,255,255);
    private Color endColor1 = new Color(207,212,206);
     public static void main(String[] args) {
        // TODO code application logic here
        SwingUtilities.invokeLater(new Runnable(){
            public void run() {
             TestFileChooser tfc = new TestFileChooser();
             tfc.showOpenDialog(null);
    public TestFileChooser(){
        super();
         mySetOpaque(this);
     protected void mySetOpaque(JComponent jcomp) {
        Component[] comps = jcomp.getComponents();
        for (Component c : comps) {
            System.err.println("Component class " + c.getClass().getName());
            if (c instanceof JPanel) {
                System.err.println("Setting opaque");
                ((JPanel) c).setOpaque(false);
                mySetOpaque((JComponent) c);
     public void paintComponent(Graphics g) {
        Dimension dim = getSize();
        Graphics2D g2 = (Graphics2D) g;
        Insets inset = getInsets();
        int vWidth = dim.width - (inset.left + inset.right);
        int vHeight = dim.height - (inset.top + inset.bottom);
        paintGradient(g2, inset.left,
                inset.top, vWidth, vHeight, dim.height);
         private void paintGradient(Graphics2D g2d, int x, int y,
            int w, int h, int height) {
        g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                RenderingHints.VALUE_ANTIALIAS_ON);
        GradientPaint GP = new GradientPaint(0, h * 3 / 4, startColor1, 0, h, endColor1, false);
        g2d.setPaint(GP);
        g2d.setPaint(GP);
        g2d.fillRect(1, 1, w, h);
}

Your problem, I think, is that you are not setting the opaque on JPanels nested within other JPanels. a small recursive routine should fix this:
  public MyOptionPane(Object message, int messageType, int optionType,
      Icon icon, Object[] options, Object initialValue) {
    super(message, messageType, optionType, icon, options, initialValue);
    mySetOpaque(this);
  private void mySetOpaque(JComponent jcomp)
    Component[] comps = jcomp.getComponents();
    for (Component c : comps) {
      if (c instanceof JPanel) {
        ((JPanel)c).setOpaque(false);
        mySetOpaque((JPanel)c);
  }

Similar Messages

  • Get state of checkbox in customized JFileChooser

    I have built a custom JFileChooser that displays a JCheckBox as an accessory component.
    // build an accessory panel for the file chooser
    JPanel accesoryPanel = new JPanel(new GridLayout(2, 1));
    accesoryPanel.setBorder(BorderFactory.createTitledBorder("Export options"));
    JCheckBox checkbox = new JCheckBox ("Copy symbol files", isCopySymbolsDuringExportEnabled);
    accesoryPanel.add (checkbox);
    JFileChooser fc = new JFileChooser("c:\\temp");
    fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    fc.setAccessory(accesoryPanel);
    int returnVal = fc.showDialog(null, "Choose export directory");
    exportDirectory = fc.getSelectedFile().getPath();
    How do I refer to the checkbox to see whether the user checked it or not?
    -Phil

    Nevermind. As soon as I hit send I realized I can simply do
    isCopySymbolsDuringExportEnabled= checkbox.isSelected();

  • Help with custom JFileChooser

    Hello everyone,
    I would like to customize JFileChooser to display a panel with some text above the folder browse section.
    Is this possible... if so, could anyone provide some sample code on how to get this started?

    I'm afraid you're on your own. Noone has [ever done something like that before|http://www.google.com/search?q=customizing jfilechooser].

  • Help on custom caret painting

    Hello all!
    I am developing a very custom editor (not only characters, but also drawings, etc) --
    therefore need a caret blinking somewhere text exists.
    Tried out the following code:
    * Paints only caret.
    * @param pGraphics
    * @param pLineHeight
    private void paintCaret(Graphics pGraphics, int pLineHeight) {
         final int x = getCaretX();
         final int y = getCaretY();
         if (x < 0 || y < 0) return;
         pGraphics.setXORMode(Color.BLACK);
         pGraphics.setColor(Color.WHITE);
         pGraphics.fillRect(x, y, CARET_WIDTH, pLineHeight);
    //     caretOn =! caretOn;
         }Cursor blinking is done this way:
         caretBlinkTimer.schedule(new SwingTimerTask() {
              protected void doRun() {
                   final int x = getCaretX();
                   final int y = getCaretY();
                   if (x < 0 || y < 0) return;
                   repaint(x, y, CARET_WIDTH, lineHeight);
         }, 0/*start_jetzt!*/, CARET_BLINK_RATE);The paintComponent(Graphics) code knows if to paint caret only, or more -- to save machine resources, deducing it from area of "dirty" clip rectangle to be repainted.
    Well, what's the problem?
    The problem exists. The editor backgound is somehow yellow color. When application starts and editor is shown up, I can observe the default gray color instead yellow in place of hidden-by-blinking timer caret. In the same situation, if I select another component (out of this editor), which currently paints itself using a kind of turqoise, the caret turns itself in turqoise, and hidden caret even worse, in a kind of violet (I suppose is inverse of turqoise).
    I tried a lot of "dances with flute" around problem, but it doesn't help at all... You see, Graphics has color settings only by setColor(Color) and setXORMode(Color). And, what more (I know 4 sure) the pGraphics object is a brand new one, each another time the "paintComponent(Graphics)" is invoked...
    So, please, any ideas are accepted. Helping me, you help a lot of people with similar problems.
    Thank you in advance.

    What an ungodly amount of the code for the task!
    I tried
    SELECT * FROM SCCM_GetNextServiceWindow('00811A9E08221600', 4)
    Which is said mean "Occurs the Third Monday of every 1 month(s)" and it returned 2015-03-17. Which is a Tuesday. But it is the third Tuesday.
    Turns out that I have British settings on that instance, DATEFIRST is 1. If do SET DATEFIRST 7, I get 2015-03-23. Which is a Monday, but the wrong one.
    The current setting of DATEFIRST can be detected with @@DATEFIRST, and that would make the code even more complex.
    My gut reaction would be to start over and do it all in C#, where at least I don't have to bother about SET DATEFIRST.
    Or maybe first inspect that the ScheduleToken is correct. Maybe it is, but to me that is just an incomprehensible hex string.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Is it possible to optimize a customized report painter?

    Hi Experts,
    Is it possible to optimize a report painter? How?
    It's too risky too edit the codes since all of the programs are SAP Standard programs. I already added indices in to the customized tables. But still it takes me 12 minutes to excute this report painter.
    I tried to debug the codes there are several and nested perform routines inside the loop.Have you tried modifying a report painter program?
    Thanks. Points will be given...

    Hi,
    You can modify Standard report painter programs, but ideally SAP doesnt recommend it.
    SAP has provided Notes for any add-on functionality or to fix bugs.
    Please search for a sap note on www.service.sap.com
    Best regards,
    Prashant

  • Custom text painting using JTextField

    Greetings all!
    I would like to implement a custom JTextField that displays text in gradient colors instead of the usual solid colors.
    I guess I would need to override the default painting mechanism in JTextField, but I'm not sure how to go about it.
    Would appreciate if anyone can give me any suggestions/tips!
    Thanks so much!
    Dora
    public class GradientTextField extends JTextField {
    }

    it will work only if the size of the textfield is large enough (no scrolling).Good point. Here's a newer version that seems to work ok, assuming the text is left justified.
    import java.awt.*;
    import javax.swing.*;
    public class GradientTextField extends JTextField
        private Color from;
        private Color to;
        private Insets insets;
        private Point view = new Point();
        public GradientTextField(Color from, Color to)
            this.from = from;
            this.to = to;
            insets = getInsets();
        public void paintComponent(Graphics g)
            setForeground( getBackground() );
            super.paintComponent(g);
            //  Get the text to paint, assuming left justification
            getInsets( insets );
            view.x = insets.left;
            view.y = insets.top;
            int offset = viewToModel( view );
            String text = getText().substring(offset);
            //  Create the GradientPaint object
            FontMetrics fm = g.getFontMetrics();
            int width = fm.stringWidth( text );
            int x = insets.left;
            int y = fm.getAscent() + insets.top;
            GradientPaint paint = new GradientPaint(x, 0, from, x + width, 0, to);
            //  Use the GradientPaint object to overwrite the existing text
            Graphics2D g2d = (Graphics2D)g;
            g2d.setPaint(paint);
            g2d.drawString(text, x, y);
        public static void main(String[] args)
            JTextField textField = new GradientTextField(Color.blue, Color.green);
            textField.setText("ABCDEFGHIJKLMNOPQRSTUVWZYZ");
            JFrame frame = new JFrame("Gradient Text Field");
            frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
            frame.getContentPane().add(textField, BorderLayout.SOUTH);
            frame.pack();
            frame.setLocationRelativeTo( null );
            frame.setVisible(true);
    }It's probably not a complete solution, but it may be helpful is specific situations.

  • Custom JFileChooser

    Hallo,
    I created a custom filechooser dialog by putting a JFileChooser component on a panel of my dialog. I need to have a SAVE dialog. I did set the type to SAVE_DIALOG, did hide the control buttons...
    When I do not select any file but write the name of the file in the textfield (of the JFileChooser component) I cannot access the file by getSelectedFile(), because this is null.
    If i do not hide the control buttons and click to the approve button, I can access the file with getSelectedFile().
    What happens, when the approve button is pressed? And what do I need to do to get the filename?
    Thanks a lot.
    Steffen

    Some code would be appreciated, otherwise it's more difficult to recreate your scenario. Keep the code as minimal as can be though.
    Cheers.

  • Custom Border painting over scrollpane and toolbar

    I found a LineNumberBorder class in these here forums (I'll post this same question there too) and adapted it to add line numbers to a JTextPane derived class.
    When the border is added to the textpane it paints line numbers to the left of each line in the editor.
    When this composite (textpane and border) is added to a tabbedpane, all is well, unless I switch to another window. When I come back to the editor, the line numbers are being painted beyond the top and/or bottom of the jscrollpane.
    package com.marklawford.editor.textpane;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.text.*;
    * LineNumberBorder.java
    * Created: Wed Aug 25 22:15:12 1999
    * @author Sandip Chitale ([email protected])
    * Copyright 1999. All rights reserved.
    * originally handled text area components
    * adapted by Mark Lawford to accept SyntaxedEditor components which extend JTextPane
    * the getLineStartOffset(int i) method had to be implemented in SyntaxedEditor
    * the int getLineCount() method had to be implemented in SyntaxedEditor
    public class LineNumberBorder extends AbstractBorder {
    private Color numberColor;
         public LineNumberBorder() {
         public LineNumberBorder(Color lineNumberColor) {
              numberColor = lineNumberColor;
         * Paints the border for the specified component with the specified
         * position and size.
         * @param c the component for which this border is being painted
         * @param g the paint graphics
         * @param x the x position of the painted border
         * @param y the y position of the painted border
         * @param width the width of the painted border
         * @param height the height of the painted border
         public void paintBorder(Component c, Graphics g, int x, int y, int width, int height){
              if (!(c instanceof SyntaxedEditor)) {
                   return;
              Insets insets = getBorderInsets(c);
              Color oldColor = g.getColor();
              if (numberColor == null) numberColor = c.getForeground();
              g.setColor(numberColor);
              g.translate(x, y);
              SyntaxedEditor ta = (SyntaxedEditor) c;
         // Mask the left margin area
              Graphics cg = g.create();
              cg.setClip(0, insets.top, insets.left, height - insets.top);
              Font f = ta.getFont();
              FontMetrics fm = cg.getFontMetrics(f);
              int lines = ta.getLineCount();
              for (int i = 0; i < lines; i++) {
                   try {
                        Rectangle r = ta.modelToView(ta.getLineStartOffset(i));
                        int lx = insets.left - fm.stringWidth("W" + (i+1));
                        int ly = r.y + fm.getLeading() + fm.getMaxAscent();
                        //draw the line number (as a string) at the coordinates provided
    //how can I tell whether ly is outside of the viewable area?
                        cg.drawString("" + (i+1), lx, ly);
                   } catch (BadLocationException ble) {
              cg.dispose();
              g.setColor(oldColor);
         * Returns the insets of the border.
         * @param c the component for which this border insets value applies
         public Insets getBorderInsets(Component c){
              if (!(c instanceof SyntaxedEditor)) {
                   return new Insets(0,0,0,0);
              FontMetrics fm = c.getFontMetrics(c.getFont());
              //int margin = fm.stringWidth("WWWW");
              int margin = fm.stringWidth( new String("W"+((SyntaxedEditor)c).getLineCount()) );
              return new Insets(0,margin,0,0);
         * Returns whether or not the border is opaque. If the border
         * is opaque, it is responsible for filling in it's own
         * background when painting.
         public boolean isBorderOpaque(){
              return false;
         public static void main(String args[]){
              JFrame jf = new JFrame();
              Container cp = jf.getContentPane();
              cp.setLayout(new BorderLayout());
              SyntaxedEditor ta = new SyntaxedEditor();
              //all we need to do is this...
              ta.setBorder( new LineNumberBorder(Color.red) );
              //ta.setLineWrap(true);
              cp.add(new JScrollPane(ta), BorderLayout.CENTER);
              jf.setSize(300, 400);
              jf.setVisible(true);
              jf.addWindowListener(new WindowAdapter() {
              public void windowActivated(WindowEvent e) {}
              public void windowClosed(WindowEvent e) {}
              public void windowClosing(WindowEvent e) {System.exit(0);}
              public void windowDeactivated(WindowEvent e) {}
              public void windowDeiconified(WindowEvent e) {}
              public void windowIconified(WindowEvent e) {}
              public void windowOpened(WindowEvent e) {}});
    } // LineNumberBorder

    The LineNumberBorder just extends AbstractBorder which extends Object, so there can't be any issues about mixing heavy weight and light weight components... can there?
    I'm stumped. The border is painting all the line numbers, as I would expect from the code, but the Scrollpane isn't hiding them. The numbers paint right on top of surrounding components until some action on my part causes those comps to explicitly repaint themselves.
    Any ideas? Anyone?

  • Customizing JFIleChooser

    Hi,
    I have an issue with JFileChooser. My application uses a JFileChooser to select a folder location. I need to customize the JFileChooser so that the user shud be able to select folders and only view files not select it. He shud be allowed to select/open only folders, not the files within it.
    Thanks

    Read the API docs... there's an option for DIRECTORIES_ONLY

  • Custom component painting

    Hi
    I want to paint graphics as fast as possible,
    meaning slow cpu and memory loss. In this
    case Im looking over a header panel, one of
    the smaaler components. Its painting 1 background
    image and another one on top, it also have a
    title and description.
    Can anything here be done more effective?
    public final class HeaderPanel extends JPanel {
       private static final Font fntTitle = UIManager.getFont("Header.titleFont");
       private static final Font fntDescription = UIManager.getFont("Header.descriptionFont");
       private static final Dimension preferredSize = new Dimension(UIManager.getDimension("Header.prefferedSize"));
       private static final Image imgBackground = (Image) UIManager.get("Header.imageBackground");
       private static final Image imgForeground = (Image) UIManager.get("Header.ImageForeground");
       private static final Image imgIcon = (Image) UIManager.get("Header.icon");
       private static final int overlayWidth = imgForeground.getWidth(null);
       private static final int overlayHeight = imgForeground.getHeight(null);
       private static final BufferedImage bufferedImage = new BufferedImage(preferredSize.width, preferredSize.height, BufferedImage.TYPE_INT_RGB);
       private static final BufferedImage bufferedOverlay = new BufferedImage(overlayWidth, overlayHeight, BufferedImage.TYPE_INT_ARGB);
       private final BufferedImage bufferedText = new BufferedImage(overlayWidth, overlayHeight, BufferedImage.TYPE_INT_ARGB);
       static {
          bufferedImage.getGraphics().drawImage(imgBackground, 0, 0, preferredSize.width, preferredSize.height, null);
          bufferedOverlay.getGraphics().drawImage(imgForeground, 0, 0, overlayWidth, overlayHeight, null);
          bufferedOverlay.getGraphics().drawImage(imgIcon, overlayWidth - 10 - imgIcon.getWidth(null), overlayHeight / 2 - imgIcon.getHeight(null) / 2, imgIcon.getWidth(null), imgIcon.getHeight(null), null);
       public HeaderPanel(String title, String description) {
          super(true);
          Graphics2D g2d = (Graphics2D) bufferedText.getGraphics();
          g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
          g2d.setColor(Color.BLACK);
          g2d.setFont(fntTitle);
          g2d.drawString(title, 31, 31);
          g2d.setFont(fntDescription);
          g2d.drawString(description, 41, 51);
          setPreferredSize(preferredSize);
       public void paint(Graphics g) {
          g.drawImage(bufferedImage, 0, 0, getWidth(), getHeight(), null);
          g.drawImage(bufferedOverlay, getWidth() - overlayWidth, 0, overlayWidth, overlayHeight, null);
          g.drawImage(bufferedText, 0, 0, overlayWidth, overlayHeight, null);
    }

    Hi
    I want to paint graphics as fast as possible,
    meaning slow cpu and memory loss. In this
    case Im looking over a header panel, one of
    the smaaler components. Its painting 1 background
    image and another one on top, it also have a
    title and description.
    Can anything here be done more effective?
    public final class HeaderPanel extends JPanel {
       private static final Font fntTitle = UIManager.getFont("Header.titleFont");
       private static final Font fntDescription = UIManager.getFont("Header.descriptionFont");
       private static final Dimension preferredSize = new Dimension(UIManager.getDimension("Header.prefferedSize"));
       private static final Image imgBackground = (Image) UIManager.get("Header.imageBackground");
       private static final Image imgForeground = (Image) UIManager.get("Header.ImageForeground");
       private static final Image imgIcon = (Image) UIManager.get("Header.icon");
       private static final int overlayWidth = imgForeground.getWidth(null);
       private static final int overlayHeight = imgForeground.getHeight(null);
       private static final BufferedImage bufferedImage = new BufferedImage(preferredSize.width, preferredSize.height, BufferedImage.TYPE_INT_RGB);
       private static final BufferedImage bufferedOverlay = new BufferedImage(overlayWidth, overlayHeight, BufferedImage.TYPE_INT_ARGB);
       private final BufferedImage bufferedText = new BufferedImage(overlayWidth, overlayHeight, BufferedImage.TYPE_INT_ARGB);
       static {
          bufferedImage.getGraphics().drawImage(imgBackground, 0, 0, preferredSize.width, preferredSize.height, null);
          bufferedOverlay.getGraphics().drawImage(imgForeground, 0, 0, overlayWidth, overlayHeight, null);
          bufferedOverlay.getGraphics().drawImage(imgIcon, overlayWidth - 10 - imgIcon.getWidth(null), overlayHeight / 2 - imgIcon.getHeight(null) / 2, imgIcon.getWidth(null), imgIcon.getHeight(null), null);
       public HeaderPanel(String title, String description) {
          super(true);
          Graphics2D g2d = (Graphics2D) bufferedText.getGraphics();
          g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
          g2d.setColor(Color.BLACK);
          g2d.setFont(fntTitle);
          g2d.drawString(title, 31, 31);
          g2d.setFont(fntDescription);
          g2d.drawString(description, 41, 51);
          setPreferredSize(preferredSize);
       public void paint(Graphics g) {
          g.drawImage(bufferedImage, 0, 0, getWidth(), getHeight(), null);
          g.drawImage(bufferedOverlay, getWidth() - overlayWidth, 0, overlayWidth, overlayHeight, null);
          g.drawImage(bufferedText, 0, 0, overlayWidth, overlayHeight, null);
    }

  • Customizing JFileChooser using Synth

    I'm creating custom Look&Feel using synth, and I'm having problems with the toggle buttons which commute between list view an table view. I'm unable to set the inset margins for thos buttons,
    I've tried to use:
         <property key="JToggleButton.margin" type="insets" value="4 4 4 4"/>
    and
         <property key="ToggleButton.margin" type="insets" value="4 4 4 4"/>
    with no success.
    Any ideas ?

    user1285890 wrote:
    Which thread ?The first thread you started: Splash screen in stand alone FXML application
    db

  • Customizing JFileChooser (File Size) Need Help

    Can you help me with this. I want to customize my JFileChooser. I'm in a Windows environment so the file view that I see is same with that of the option pane of windows. What I would like to do is make the size that is viewed from the screen from ##KB to specific bytes size. (ex. 34421245). Can someone help me on this. I was able to see some codes on the net but those codes are not straightforward. They override the BasicFileChooserUI. Can someone help me on this. I don't want to override the BasicFileChooserUI instead I want to use the JFileChooser and change the size from ###KB to bytes. Thank you. ^_^

    Hi Rachel,
    My best idea for that is to load the swf files externally, so
    that each page is a different swf. A technique like this would be
    very simple and quick to use, because it only loads what you need
    when you need it.
    For example, you'd set the intro page to load right away, and
    then when you select "At Work" the intro page unloads and is
    replaced by the at work page.
    Another thing you may want to consider is holding the images
    in an xml file, and then using some basic flash/xml intergration to
    load each image as it's called. That way each image isn't stored in
    the flash file causing it to increase in size, and instead is
    actually loaded externally which is must faster.
    There are some great tutorials, if you're intrested, on how
    to do both of these at:
    http://www.kirupa.com/
    Hope I helped some!

  • Custom JButton Painting

    Hello ,
    I need to make a gradiant button , i can override paintComponent and paint the gradiant as i wish but the problem is that i need to paint with another gradiant when the button is in focus and another gradiant when it is pressed , is there a simple way to do that inside the paintComponent method , i don't want to use setIcon and setPressedIcon because i need to only draw the background as a gradiant and need it to be updated on resizing .
    Best Regards ,

    You can obtain the state of the <tt>JButton</tt> in the <tt>paintComponent(...)</tt> override, so where's the problem?
    If you need more than one button with the same customization, I would strongly suggest creating a <tt>ButtonUI</tt> that extends <tt>BasicButtonUI</tt> instead of extending <tt>JButton</tt>.
    db

  • Report Painter insert blank line after report header

    Hi Expert,
    I have a problem to insert a blank line (a spacing) after the report header of my customized report painter.
    For example, in standard cost center report, S_ALR_87013611, there is a small box listed information like cost center/group ... and reporting period.
    Right after reporting period, the report header box ends, and there is a space line between it and the cost element data ...
    For my customized report painter, I cannot make this space line.
    I tried edit > row > insert blank line ... but not successful ... kindly advise.
    Thanks and regards,
    -CK

    Hi
    In KKO2 go to output tab, here under layout, tick header and then press pencil symbol and in the editor you write your header. I think this will give you desired result.
    Regards
    Rajneesh Saxena

  • Issue with Report Painter

    Hi All,
    I have came across a strange problem in a current issue where a custom Repost Painter have been developed for 'New GL Reporting Library', it has to show Actual/Plan/ZGRS/FI10 outputs in a single report.
    The report layout is like this,
    Report                 ZPC-0001      ZGRS & FI10 Reporting - Act/Plan//Var                             Horizontal page 1  /
    Section                0001          Act/Plan/Var - ZGRS
    Standard layout        ZPC-001
    Format group:                                      0                  0                  0                  0
    Account Number/Account Description-ZGRS                  Actual              Plan            Var.(abs.)          Var.(%)
    ******       Goodwill Cost                            XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX
    ******       Goodwill Amort.                          XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX
    *******      Goodwill NBV                             XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX
    *****        Patents and Trademarks Cost              XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX
    *****        Patents and Trademarks Amort.            XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX
    ******       Patents and Trademarks NBV               XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX
    *****        Development Costs Cost                   XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX
    *****        Development Costs Amort.                 XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX     XXX,XXX,XXX.XX
    Now, when we are executing the output transaction with the desired inputs we are getting correct data for fiscal year 2011 whereas for fiscal year 2010 we are not getting Sales Cost data for ZGRS output whereas for fiscal year 2012 we are not getting the Sales Cost in FI10 output, whereas as per the standard output both Sales Cost data present in ZGRS and FI10 have to be synchronous.
    The selection screen is like below:
    Fiscal Year                     2011
    Plan Version                    0
    From Period                       1
    To Period                        16
    Company Code                    0100               to
    Profit Centre Group
    Or value(s)                     1602               to
    Financial Statement Version     ZGRS.Z
    Or value(s)                                        to
    Cost Element Group
    Or value(s)                     841000             to
    Target Currency (Local Crcy)    GBP
    Exchange Rate Date              28.09.2011
    Exchange Rate Type              M
    Edited by: subhajit.roy on Sep 28, 2011 12:31 PM

    The output for fiscal year 2011 is coming as :
    Report: Plan/Act/Var - ZGRS                                                       Page:   2 /  4
    Profit Centre/Group: 1602            Description: Speciality Legacy AR.
    Reporting Period:   1 to 16          Report Executed On:   28.09.2011
    Fiscal Year: 2011                    Time Report Executed: 07:55:35
    Account Number/Account Description-ZGRS                  Actual              Plan            Var.(abs.)          Var.(%)
                841000  Sales Costs                            18,947.26                             18,947.26
    *           Other General Expenses                         18,947.26                             18,947.26
    **          Other Operating Charges                        18,947.26                             18,947.26
    ***         Total Other Operating Charges                  18,947.26                             18,947.26
    ****        Total Operating Costs                          18,947.26                             18,947.26
    *****       Operating Profit/(Loss)                     9,260,718.91-                         9,260,718.91-
    ******      Profit/(Loss) Before Interest               9,260,718.91-                         9,260,718.91-
    *******     Profit/(Loss) Before Tax                    9,260,718.91-                         9,260,718.91-
    ********    Profit/(Loss) After Tax-Cont Operation      9,260,718.91-                         9,260,718.91-
    *********   Group Profit/(Loss) for Financial Year      9,260,718.91-                         9,260,718.91-
    **********  Profit/(Loss) for Financial Year            9,260,718.91-                         9,260,718.91-
    *********** Account
    Report: Act/Plan/Var - FI10                                                       Page:   3 /  4
    Profit Centre/Group: 1602            Description: Speciality Legacy AR.
    Reporting Period:   1 to 16          Report Executed On:   28.09.2011
    Fiscal Year: 2011                    Time Report Executed: 07:55:35
    Cost/Revenue Element & Description-FI10                  Actual              Plan            Var.(abs.)          Var.(%)
      841000  Sales Costs                                      18,947.26                             18,947.26
    * Variance Total                                           18,947.26                             18,947.26
    I hope I am clear in making you all understand the issue, please let me know how i can rectify this issue and provide proper data for fiscal year 2010 and 2012.

Maybe you are looking for

  • How can I delete only one part of my xml file?

    Hello, I stored more than 100 users in only one xmltype column. For instance Create table agro(users XMLTYPE); ... and I inserted all users inside INSERT INTO agro values(XMLTYPE ('<?xml version="1.0" encoding="ISO-8859-1"?> <authentication><users><u

  • Running perl scripts off the preinstall script during a pkgadd

    Hello, I'm trying to build a custom package (apache2 + mysql + php + other stuff) and get stuck on some stone wall that I can't figure. Correct me if I'm wrong in my assumptions, and if able, could you provide a work around ? Here it is : - The prein

  • Steps in BI Content Objects Install & Activation

    Hi We are planning to activate new Business Content Objects (Info objects, Cubes, DSO, Datasources...etc) in our BI 7.0 System Our BI System already got objects that are customized and in use. What are the pre activation steps I need to perform to se

  • Why no built in support to change toolbar colors, sizes etc...?

    I would like to modify the colors and contrast of windows boarder. Especially in Safari the tabs are very dark and I don't want to turn the brightness up and kill my battery sooner. I find no built in support for modifying windows themes or colors. I

  • Sync ipod nano with a new computer

    My hard drive in my MacBook crashed and I now have a new computer. I am trying to sync my ipod nano with iTunes but i get a message stating that the content on my ipod will be replaced with the songs and playlists from my iTunes library (which is not