PanelGrid Border Formatting

Hi guys,
Well, I wanted to do some colspan's with h:panelGrid, but everything I read so far says that it isn't possible. So I'm forced into nesting panelGrids inside each other. That's fine. However, the borders are "doubling" ontop of each other. I just want one smooth border around everything (that I say should have a border).
So is there any way to remove top and/or bottom borders of the row/table/cell while leaving the left and right intact? Maybe there's some CSS way to do this?
I've tried a number of things, and none of it has worked. Google isn't turning up much helpful advice either.
This is my style class right now, but it doesn't work:
.noRowBorders td{
     border-bottom-width: 0px;
     border-top-width: 0px;
     border-left-width: 1px;
     border-right-width: 1px;
     vertical-align: top;
     text-align: left;
     border-bottom-style: hidden;
     border-top-style: hidden;
}Any help would be appreciated.
CowKing

Thank you for the suggestion, but that did not work. I'm going to use f:verbatim and h:outputText tags for this job I think. It'll be messy, but it will work.
Thanks for your time.
CowKing

Similar Messages

  • Border format for Page Items

    So, in order to get a derived value to show in something resembling a header, I've followed a tip found elsewhere in the forum and created a calculated item, then put that calculated item into the Page Items area. Voila, this value now prints on every page. Not perfect, but close enough.
    So, is there any way to fix the 'border' or 'outline' formatting? Where currently I have black lines around my Page Items that look like |______|______| ?
    At the same time, is there a way to suppress the single vertical line in the data area lines? [I have only horizontal grid lines turned on... so why do we have this single vertical line on the left side?]

    Hi all
    Also, when alternate sorts are in use these will generally trigger Discoverer to add the NOREWRITE hint to the SQL, which can cause horribly slow performance.
    I used to use alternate sorts a lot but these days I use them very sparingly. When I want a list of values to come up in a certain order I now use a custom folder and add the ORDER BY in there. This allows the list to come up right when my users are picking and stops the NOREWRITE hint, but it also removes the alternate sorting from the display.
    There are other causes for the inclusion of NOREWRITE hint but this is the main one.
    Best wishes
    Michael

  • PanelGrid column formatting

    I know this has been asked before, but are there plans to allow column formatting with panelGrid? It sure would be nice to have a 3 column panel grid with the first column right justified (for labels), and the second and third left justfied (for input/output fields and h:message output)
    The first thought that came to mind was to assign a style or styleClass attribute for each table element (which I thought was logical, and tried, but doesn't work), so I'm open to ideas. It's available in the HTML, so there should be no reason (beyond time and resources ;) ) that it can't be done.
    Don

    it's actually plural ie "columnClasses" and also "rowClasses".
    you can provide lists of CSS classes for both of these properties, and it will "cycle-through" them as it builds the table.
    you now must become fluent in CSS, because that is your only way to effectively control the JSF's visuals.

  • Cell border selection problem

    I have a spreadsheet that is a week at a glance schedule for a dance school. There are three columns per day, each representing a different studio location. Each row represents a 15 minute block time. I have been trying to create a border for each class (class times vary from 45 minutes to 2 hours) while leaving the in-between lines blank. For each 45 minute class, I select the three cells in a column, scroll down the border selection tool and select the outside border icon, next select the type of line, then the weight, finally the color, and so on. Once I get about 50% done working my way across the spreadsheet, buggy things start to happen. For example, a horizontal line will extend across several columns, sometimes intersecting previously defined class blocks. If I try removing the errand lines, then all the frames that do require a border at that position get their border errased. I them have to go back to those cells to re-assign a border segment, but then the unwanted horizontal line will reappear in the blank cells again. Very frustrating. Also, in my opinion, there are some cell frame options that are missing in this program. I t would be nice to have a button to select the top and bottom of a frame or group of frames at the same time. At present, you have to first select the top border, format it, then the bottom border and format it. Same goes for left and tight border sections. You can't select the two outside edges to apply the same style/thickness/color. Excel's border formatting commands are much better in this regard.
    Title was edited by: Host

    Hi Jim,
    I played around with the border options today and although I didn't have the borders going where they were not wanted I understand your frustration having to set either all four or just one border at a time.
    Just as an option, would filling the sets of cells with a light colour for each class work better for you?

  • DocFlex/Javadoc 1.5.6, a multi-format doclet development tool and more

    DocFlex/Javadoc is both a multi-format Javadoc Doclet and a rapid doclet development tool, which allows easy creation of professional quality Java API documentation generated by Javadoc in various output formats.
    More in this article:
    Key Features
    Availability
    This Version
    What is DocFlex?
    Main Concepts
    Other Applications
    Links
    KEY FEATURES
    Template-driven doclet architecture
    - Actual doclets are created in the form of special templates interpreted by the DocFlex Doclet, which is the template interpreter / output generator wrapped in the form of a Javadoc Doclet.
    - The high quality graphic Template Designer allows you to visually design most of things, whose development was possible so far only by direct Java coding.
    - The templates are designed independently on a particular output format. All formatting is specified in some universal way using properties of template components. During the generation, it is rendered with the suitable features available in the selected output format.
    - The elaborated support of template parameters (including multivalued list parameters). The parameters are defined and accessed within templates to adjust dynamic properties of template components. Most of options previously used to control an ordinary doclet now simply become template parameters!
    - The possibility to call templates from one another. This feature (along with the template parameters) makes possible re-using the same templates for different tasks as well as organizing template libraries.
    Data processing
    - The entire Doclet API is represented in the form of a virtual XML document (called Doclet DSM), on which the designing and processing of all templates is based.
    - Sophisticated capabilities for data querying and sorting based on an extension of XPath.
    - Full support of new Java 5.0 language features: Generic Types, Enums, Annotations.
    - Simultaneous support of Java 1.4 and Java 5.
    Creating hyperlinks
    - Generation of an extensive network of hyperlinks interconnecting the whole documentation.
    - The hyperlinks can be generated in all output formats that support them (this currently includes HTML and RTF).
    - The universal way of defining documentation cross-links based on the link/target keys specified in templates.
    - In RTF, the cross-links can be generated in the form of page number references, which effectively makes them usable even in the printed documentation.
    - In HTML, the possibility of loading several frame windows from a single hyperlink at once.
    Universal support of various formatting techniques
    - text formatting: fonts, colors, borders
    - paragraph formatting: margins, pagination control, borders, colors
    - border formatting: styles (solid, double, dashed, dotted), thickness, colors
    - tables: arbitrary cell layouts, borders, nested tables
    - lists: bulleted, numbered, delimited
    - document fields (RTF): page number, number of pages, TOC, etc.
    - page formatting: size, orientation, margins, headers/footers
    - formatting styles
    - rendering of embedded HTML, which means interpreting in non-HTML output formats (such as RTF) the HTML tags embedded in text data (e.g. documentation comments). Almost all HTML tags practically usable in doc-comments are supported.
    Inserting images
    - statically specified in templates
    - dynamically, obtained by <img> tags found in Java comments
    - supported image formats: GIF, PNG, JPG, WMF, EMF, BMP
    Output formats
    - HTML (both framed multi-file and single-file output)
    - RTF (version 1.6 - supported since Word 2000).
    - TXT (plain text), which may be particularly useful for various utilizations of the Java code information provided by the Doclet API generate XML files by it, or SQL files to import into a database).
    Standard Template Set
    - The ready-to-use Standard Template Set included in all editions of DocFlex/Javadoc allows you to immediately generate:
    (*) The framed HTML Java API documentation similar to that generated by the standard Javadoc.
    (*) The same documentation packed in a single HTML file.
    (*) The unmatched quality RTF JavaDoc.
    - Special features supported by standard templates:
    (*) Excluding classes/methods/fields by custom tags and annotations.
    (*) Selective omitting of package qualifiers.
    (*) Selective documenting of custom tags (similar to -tag option of Standard Doclet).
    - By modifying the standard templates, you can quickly customize the generated documentation according to your needs.
    Doclet GUI
    - Besides command line options, DocFlex Doclet supports an alternative user-friendly way to control the template-based doclets interactively -- the high quality Doclet GUI.
    - The Doclet GUI starts with the Generator Dialog, where you can specify all general settings (such as the main template, the output format and the output directory), start the generation, track its progress and stop at any moment you need.
    - The grid-tree-based Parameter Inspector invoked from the Generator Dialog for a selected template allows you to view the descriptions of all template parameters controlling the doclet and set their values according to the parameter data types.
    - The generator options specific for the selected output format can be set in the corresponding Format Option Inspector (also invoked from the Generator Dialog).
    - Once the generation is finished (or cancelled), you can start it again with different settings or a new main template without restarting the whole Javadoc.
    Integrations
    - With any system that runs Javadoc (in particular, see below)
    - Apache Ant
    - Apache Maven 2
    - Eclipse
    For lots more information, see DocFlex/Javadoc homepage: [http://www.filigris.com/products/docflex_javadoc/]
    AVAILABILITY
    DocFlex/Javadoc comes in two editions:
    (1) The full edition called "DocFlex/Javadoc" as it is. This is commercial software, which includes all the implemented functionality.
    (2) The reduced freeware edition called "DocFlex/Doclet". It includes only the output generator and can be used as an interpretor of any custom templates. It also includes the standard template set, which allows you to instantly use it as an HTML doclet (similar to the standard one, however with some special features) plus an excellent quality RTF doclet.
    Both editions are available for downloads on the page: [http://www.filigris.com/downloads/]
    THIS VERSION
    New features:
    - The template interpretor works 15-20% faster
    - Improvement of RTF output
    - Multi-valued (list) template parameters
    - Custom elements
    - Standard Templates: Selective documenting of custom tags (similar to -tag option of standard doclet)
    For more details, see product Readme | Change Log on the downloads page: [http://www.filigris.com/downloads/]
    WHAT IS DOCFLEX?
    DocFlex is an innovative technology for development of high quality template-driven documentation/report generators by any kind of data obtained from various software applications via the Java APIs they provide.
    MAIN CONCEPTS
    The whole DocFlex technology is based on four generalizations:
    (1) The mapping of an entire Java API onto a virtual XML-like representation made of some elements and attributes so as to process any such a representation in a universal way using techniques borrowed from the field of XML, like XPath (or more precisely, a conceptual analogue of XPath with some extensions not present in it).
    (2) The abstract formatting concept based on four layouts (flow of text, flow of paragraphs or paragraph-like objects, tables and lists), which can be rendered in most modern document formats (e.g. HTML, RTF, XSL-FO etc.)
    (3) The automatic generation of hyperlinks (or their page number reference equivalents) by matching the sets of keys produced from certain natural properties of the things (entities) being documented and hyper-linked.
    (4) The representation of the object controlling structure of the output generator (made on the first three principles) in the form of a plain-text template with a possibility to create and edit such templates using a graphic Template Designer, which visualizes the controlling objects (now becoming template components) in a form resembling the output they will produce.
    OTHER APPLICATIONS
    In fact, DocFlex/Javadoc is not the only application of DocFlex technology. The following is a summary of other DocFlex software:
    DocFlex/XML
    The SDK and runtime environment for rapid development and execution of template-driven automatic documentation/report generators by any data obtained from XML files.
    This is currently the most complex and advanced application of DocFlex technology. Actually, this tool can be considered a powerful alternative to XSLT. At least, it is definitely able to do what XSLT apparently not (for example, see “XSDDoc” below). We will publish a more detailed comparison “DocFlex/XML versus XSLT” with the next DocFlex/XML release, which is coming very soon.
    DocFlex/XML home page: [http://www.filigris.com/products/docflex_xml/]
    DocFlex/XML | XSDDoc
    A template set for DocFlex/XML that implements a high quality W3C XML Schema documentation generator in HTML and RTF output formats.
    For more details, please see: [http://www.filigris.com/products/docflex_xml/xsddoc/]
    DocFlex/XML | WSDLDoc
    A similar template set for DocFlex/XML that will implement a high-end WSDL documentation generator.
    This product is not released yet.
    DocFlex/Together
    A template-driven documentation generator for [Borland Together|http://www.borland.com/us/products/together/] (which is a UML modeling tool).
    This is the earliest application of DocFlex technology and probably the most beautiful one. It works only with Together Architect 1.x, which is now obsolete. Unfortunately, since Together 2005, Borland eliminated any open APIs (for unknown reasons). Because of this, further development of DocFlex/Together was impossible.
    DocFlex/Together home page: [http://www.filigris.com/products/docflex_together/]
    See also examples of the UML documentation generated with it: [http://www.filigris.com/products/docflex_together/examples/]
    The future DocFlex/UML is going to generate something like this as well.
    DocFlex/UML
    A template-driven UML documentation generator based on [Eclipse EMF|http://www.eclipse.org/emf/]. This tool is in early development stage yet. In a sense, it will continue DocFlex/Together with the focus on integration with other UML tools that use Eclipse EMF.
    LINKS
    This original article can be found at:
    [http://www.filigris.com/ann/docflex_javadoc_v1.5.6/]
    DocFlex/Javadoc home page:
    [http://www.filigris.com/products/docflex_javadoc/]
    DocFlex/XML home page:
    [http://www.filigris.com/products/docflex_xml/]
    DocFlex/XML | XSDDoc, the XML schema documentation generator:
    [http://www.filigris.com/products/docflex_xml/xsddoc/]
    Free downloads:
    [http://www.filigris.com/downloads/]

    Now, DocFlex/Javadoc v1.4 has been released specifically dedicated to Linux (Mac OS X) support:
    (*) Some early bugs have been fixed, which prevented it working properly under Linux.
    (*) A special RTF option was introduced to generate OpenOffice.org friendly RTF (see below)
    (*) Improved support for external document viewers.
    (*) Now, DocFlex/Javadoc software includes the shell script files prepared to quickly install and launch it under Linux
    New RTF option
    A new RTF output option "Tune output for MS Word� has been introduced. This option, actually, allows switching off that very tuning (which until now was the default mode) to produce an RTF friendly to open with other non MS Word applications, e.g. OpenOffice.org Writer under Linux.
    Read full announcement (and screenshot) by this link:
    http://www.filigris.com/ann/docflex_javadoc_v1.4/
    Regards,
    Leonid Rudy
    http://www.docflex.com

  • Cell border will not hold.

    A cell will not maintain a border.  When I try to select which line to use, it immediately goes back to "none", thoughts?

    Hi keirby,
    Border format controls may be found in the Format bar near the top of the document window (top image) and in the Table Inspector (bottom image).
    Note that there are four controls in the Format bar. The Inspector splits the first one, the border selection menu, into three sets of buttons. The remaining controls are uses to set the border Style, the border Width, and the Border Colour. If you use only the first (which is what I suspect you have done), you will have Selected the border that you want to change, but haven't specified what changes you want to make.
    Here are the steps to set a wide, dashed red border on a set of three cells:
    Select the cells to which the border will be applied.
    In the Format bar, select the bottom border, using the first pop-up menu button.
    When you release the mouse button,the blue Selection rectangle showing the three selected cells (above) will be replaces by a blue Selection line showing the bottom edge of these cells in selected. No change has yet been made to the border.
    Use the Style button to choose the dashed line.
    Use the Stroke Thickness button to choose 2 pt.
    Click the Stroke Color Well and choose a Red from the Color Palette that opens.
    The selection line will change to reflect each of these choices as it is made and applied to the selected border.
    Click any unselected cell on the table to deselect the cells just changed, or click away from the table to deselect the whole table and view the changes.
    Regards,
    Barry

  • How to align the components in panelGrid right?

    I have a panelGrid with two column, the left column is a image and the right colum is commandLink.
    <h:panelGrid border="0" columns="2" width="100%" columnClasses="headerColumn1, headerColumn2">
    .headerColumn1 {
    vertical-align: top;
    width: 50;
    .headerColumn2 {
    vertical-align: top;
    width: 100%;
    text-align: right;
    But the output is both column width are equal and the text in right column is align left. Can anyone points out what is the problem here?

    Check if the generated HTML and CSS outputs are correct.

  • I format a cell with a double line at the bottom and it appears until I move to another cell and the formatting is lost.

    In Numbers, I format a cell with a double line at the bottom and it appears until I clik on another cell and then it disappears.

    When you describe the "double" line are you talking about something like this?
    If so this is only selecting an edge of a cell.  You still have to select:
    1) Line style using the menu to the right of the one I have circled (currently  "Thin")
    2) Line width using the menu to the right of the previous one and, finally,
    3) the line color using the menu to the right of the previous one
    Even so I have not found a way to copy cell border formatting so I ALWAYS wait until the very end to add border formatting.

  • Paste with borders formatting?

    I want to copy and paste a few cells and retain the border formatting. Is this possible in Numbers '09?
    If so how do I do it?

    Badunit wrote:
    By "outside borders" I was referring to "complete borders (4 edges).
    A new proof that my English is far from perfect
    The English version works the same as yours in this respect.
    With border selection, it first selects the entire line but if you click again it switches to single segment mode.
    Thanks, I missed that !
    It's all a bit confusing, especially if trying to do a combination of full lines and single segments.
    When we click a second time to pass in 'select segment' mode, it stays in this mode so we may select several non-adjacent segments 'easily'.
    The procedure for copying a border style is to select the border segment, copy style, select the borders you want changed, paste style.
    One more feature which I missed. I thought (wrongly) that we where saving the style of the cell but knowing that we select only the style of an edge is really interesting.
    I see the same problem as you when I copy the style of the cell: sometimes I get four borders, sometimes none.
    All in all, today I learnt several things so I will go to sleep happy
    "See" you tomorrow.
    Yvan KOENIG (VALLAURIS, France.) vendredi 14 août 2009 22:08:33

  • H:panelgrid help to control width, alignment of TD etc in JSF

    Hi
    I am new to JSF. Just started to crawl in the technology. I have html table like this,
    <TABLE BORDER="2" CELLSPACING="0" CELLPADDING="0">
    <TR>
    <TD WIDTH="226" HEIGHT="1" CLASS="lbgcolor">
    <IMG SRC="null.gif" WIDTH="226" HEIGHT="1"></TD>
    </TR>
    <TR>
    <TD ALIGN="CENTER" WIDTH="226" HEIGHT="87" CLASS="lbgcolor">
    <IMG SRC="nnnn.gif" BORDER="0">
    </TD>
    </TR>
    </TABLE>
    I like to implement the same using core JSF tags and it looks like,
    <h: panelGrid border="0" cellspacing="0" cellpadding="0" columns="1"
    columnClasses="lbgcolor" >
    <h:graphicImage value="null.gif" width="226" height="1"></h:graphicImage>
    <h: panelGroup >
    <h:graphicImage value="nnnn.gif" > </h:graphicImage>
    </h: panelGroup>
    </h: panelGrid>
    1. Is this the way to do ?
    2. I am not able to set width, alignment, height to TD using JSF core tags. Can anyone suggest how to do this ?
    3. How to provide hyperlink on the image ?
    Advance Thanks,
    Regards,
    Vetri.

    1. basically.
    2. use css
    3. nest the graphic image in a commandLink/outputLink

  • Templates loosing formatting!!!!!

    Hi,
    We are using SAP BPC v7 SP4 on Excel 2007. On some of our templates (which has multiple complex sheets) we are loosing all thw formatting when we save via eTools. This means we basically loose all out work, because reformatting just takes too long (these are 8000 line input sheets).
    Can someone please explain to me why this is happening and how i can prevent it from happening.
    Regards,
    AvdB

    Hi,
    Since you seem an experienced format user, let me please ask a question related to formatting.
    I'm experiencing problems with the format (EvDRE). When we try to apply a color background for specific columns -not rows- (QUARTER or YEAR), the report applies a different color (not the one that is on the FORMAT cell in the RANGEFORMAT).
    Do you know why? How can I solve this?
    I've also tried to use xlEdgeRight, XlEdgeLeft for BORDER formatting in the USE column, but it does not work. By any chance, do you know how to correctly write these parameters?
    Thanks in advance,

  • Stack Explodes when i try to run the application

    Hi all,
    First of all let me tell you that i am very new to the concepts of JSP/ JSF and so on. And that i have searched for answers via google and within this forum but was unsuccessful.
    The application is based on the tutorial that is available here under the tutorial link
    http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jst.jsf.doc.user/html/tasks/create_managedbean.html
    1. The 1st problem that i had was that i was getting a "Resource Not Found" error
    The reason for this i think is that the initial page name i was using was Login.jsp which was not within the web.xml file
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>by adding it to the file i was able to fix the problem.
    2. The 2nd problem was a runtime exception
    java.lang.RuntimeException: Cannot find FacesContextThis was apparently due to the fact that my file extention was .jsp and the application was not being run as a jsf.
    i was able to fix this by adding this entry to the web.xml file.
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>
    3. The 3rd problem was now i was getting a Class not found exception
    java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConfigAnd i was able to fix this by adding the jstl.jar and standard.jar files to the classpath
    4. The current problem that i am facing now is that there are multiple exceptions and eventually the stack explodes.
    here is part of the stack
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    Nov 24, 2009 4:23:47 PM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /index.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@edbca8]
    Nov 24, 2009 4:23:47 PM org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.StackOverflowError
         at org.apache.catalina.session.ManagerBase.findSession(ManagerBase.java:862)
         at org.apache.catalina.connector.Request.doGetSession(Request.java:2283)
         at org.apache.catalina.connector.Request.getSession(Request.java:2075)
         at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:545)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:545)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:545)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:545)pls help me with this. I have no idea how to fix this problem. Thanks in advance

    hi, thanks for the reply.
    i managed to get the begining of the stack trace. Hope this helps
    Nov 25, 2009 10:27:49 AM org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.StackOverflowError
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:545)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:545)This repeats it self unill
            at com.sun.faces.context.ExternalContextImpl.getSession(ExternalContextImpl.java:139)
         at javax.faces.application.ViewHandler.calculateCharacterEncoding(ViewHandler.java:166)
         at javax.faces.application.ViewHandler.initView(ViewHandler.java:267)
         at com.sun.faces.application.ViewHandlerImpl.initView(ViewHandlerImpl.java:119)
         at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:102)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) And then the below trace repeats it self
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)Is it possible for you to tell me where most likely the problem is ?
    If its any help below is the code of the login.jsp file
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib
         uri="http://java.sun.com/jsf/core" prefix="f"%><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>JSF Tute</title>
    </head>
    <body>
    <f:view>
    <f:loadBundle basename="com.tutorial.message" var="msg"/>
    <h:form>
    <h:outputLabel value="#{msg.name}"></h:outputLabel>
              <h:panelGrid border="1" columns="2">
                   <h:outputText value="#{msg.name}"></h:outputText>
                   <h:inputText value="#{loginBean.name}"></h:inputText>
                   <h:outputText value="#{msg.password}"></h:outputText>
                   <h:inputSecret value="#{loginBean.password}"></h:inputSecret>
                   <f:validator validatorId="com.tutorial.ValidatePassword"/>
                   </h:panelGrid>
              <h:commandButton value="Login" action="login"></h:commandButton>
         </h:form>
    </f:view>
    </body>
    </html>And heres the content of the web.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>JSF_Tute</display-name>
      <welcome-file-list>
        <!-- welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file-->
        <welcome-file>login.html</welcome-file>
        <welcome-file>login.htm</welcome-file>
        <welcome-file>login.jsp</welcome-file>
      </welcome-file-list>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>*
    *  </servlet-mapping>*
    *  <context-param>*
    *    <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>*
    *    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>*
    *    <param-value>client</param-value>*
    *  </context-param>*
    *  <context-param>*
    *    <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>*
    *    <param-value>resources.application</param-value>*
    *  </context-param>*
    *  <listener>*
    *    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>*
    *  </listener>*
    *  <servlet-mapping>*
    *    <servlet-name>Faces Servlet</servlet-name>*
    *    <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.faces</url-pattern>*
    *  </servlet-mapping>*
    *    <servlet-mapping>*
    *    <servlet-name>Faces Servlet</servlet-name>*
    *    <url-pattern>*.jsp</url-pattern>
      </servlet-mapping>
    </web-app>

  • Having a problem with commandButton attribute when i am using it under tabl

    Having a problem with {color:#800000}commandButton {color}{color:#339966}attribute {color}when i am using it under{color:#ff0000} table{color}
    I am using a command button under a table.
    here is the example
    <h:dataTable value="#{wlmHandler.plexes.plexes}" var="{color:#ff0000}onePlex{color}" border="0" cellspacing="0" cellpadding="0" width="100%" border="0">
    <h:column>
    <h:panelGrid border="0" cellpadding="0" cellspacing="0" columns="5">
    <h:commandButton action="" styleClass="tixbutton" value="#{labels.ADD}" onclick="#{onePlex.tran}"/>
    <f:verbatim> </f:verbatim>
    <h:commandButton action="#{createTransaction.transactionCommand}" styleClass="tixbutton"
    value="#{labels.SUBMIT}" actionListener="#{createTransaction.processAction}">
    <f:attribute name="dbName" value="#{wlmHandler.dbName}"/>
    <f:attribute name="plexName" value="{color:#ff9900}#{onePlex.name}"{color}/>
    </h:commandButton>
    </h:panelGrid>
    <h:/column>
    </h:dataTable >
    when i am using this plex name atribute it is giving nullPointerException
    {color:#ff9900}this value #{onePlex.name} i cant able to access inside the command button{color}

    balu i have tried by seeing u r blog.
    this is my structure of tables
    plexes (if i iterate plexes table gives plex object)
    |
    ------ plex (plex table gives transaction object)
    |
    ------transactions(transactions table gives transaction table)
    |
    here i will have a command link to this link i have to pass the plex name which
    will come from
    i tried in this command action with HTMLDataTable getRowData()
    i am not getting the selected row data .i am downcasting this getRowData() to plex.

  • How  to filter by manager's name using selection screen

    Hi all,
      I am trying to modify the report to filter data from the report based on the manger name given in selection screen. As the manger's name was given in selection screen.. records have to come only of the employee how were working under that entered manager name.
      I am unable to follow this code to modify.. where to add select criteria to filter... please make modify to my code..
      I am pasting my code here, Can any one kindly help for this scenario.
    TABLES: PA0001,  "HR Master Record: Infotype 0001 (Org. Assignment),
            PA0002,
            P0000,
            PA9001,
            PA0007,
            HRP1001, "Infotype 1001 DB Table
            PA0034. "HR Master Record: Infotype 0034 (Corporate Function)
    *Internal table for holding output data
    DATA: IT_PA0002 LIKE PA0002  OCCURS 100 WITH HEADER LINE,
          IT_PA9001 LIKE PA9001  OCCURS 100 WITH HEADER LINE,
          IT_PA0007 LIKE PA0007  OCCURS 100 WITH HEADER LINE,
          IT_PA0034 LIKE PA0034  OCCURS 100 WITH HEADER LINE.
    DATA: IT_RET LIKE BAPIRET2,
          IT_ACT LIKE BAPI_SWHACTOR OCCURS 0,
          IT_STR LIKE BAPI_STRUC OCCURS 0,
          IT_ORG LIKE BAPI_OBJEC OCCURS 0,
          IT_POS LIKE BAPI_OBJEC OCCURS 0,
          IT_SUP LIKE BAPI_OBJEC OCCURS 0,
          IT_FCAT LIKE BAPI_HRAQFIELDDESCRIPTION OCCURS 0,
          IT_FDAT LIKE BAPI_HRFIELDDATA OCCURS 0,
          IT_ORGS TYPE STANDARD TABLE OF BAPI_OBJEC WITH HEADER LINE,
          IT_POSS TYPE STANDARD TABLE OF BAPI_OBJEC WITH HEADER LINE,
          IT_SUPR TYPE STANDARD TABLE OF BAPI_OBJEC WITH HEADER LINE,
          V_DATE  TYPE SY-DATUM,
          IT_T500P LIKE T500P OCCURS 0 WITH HEADER LINE,
          IT_TT500P LIKE T500P OCCURS 0 WITH HEADER LINE,
          IT_T001P LIKE T001P OCCURS 0 WITH HEADER LINE      .
    DATA: IT_PA0001 LIKE PA0001 OCCURS 100 WITH HEADER LINE,
          P_ENDDA LIKE sy-datum.
    DATA: Begin of I_HRE,
            pernr  like  pa0001-pernr,  "Emp Number
            nachn  like  pa0002-nachn,  "Last Name
            vorna  like  pa0002-vorna,  "First Name
            plans  like  BAPI_OBJEC-LONG_TEXT,  "Position
            div_text  like  pa9001-div_text,
            kztim  like  ZKZTIM_VAUES-name,
            stext  like  T591S-STEXT,     "Corporate function text
            werks  like  BAPI_OBJEC-LONG_TEXT,
            btrtl  like  pa0001-btrtl,
            orgeh  like  BAPI_OBJEC-LONG_TEXT,
            kostl  like  pa0001-kostl,
            mstbr  like  pa0001-mstbr,  "Supervisor
          End of I_HRE.
    DATA: I_HR like I_HRE occurs 100 with header line.
    DATA: V_PLANS LIKE PA0001-PLANS,
          V_EMP   LIKE PA0001-PERNR,
          V_KOSTL LIKE PA0001-KOSTL,
          V_SUPER LIKE BAPI_OBJEC-LONG_TEXT,
          V_EMP_POS LIKE BAPI_OBJEC-LONG_TEXT,
          V_SUPER_POS LIKE BAPI_OBJEC-LONG_TEXT,
          V_HEADER TYPE N VALUE 1,
          V_COUNTER TYPE N VALUE 1,
          EMP_INDICATOR TYPE N,
          V_ORGEH LIKE BAPI_OBJEC-LONG_TEXT,
          V_WERKS LIKE BAPI_OBJEC-LONG_TEXT,
          V_KZTIM LIKE ZKZTIM_VAUES-NAME,
          V_STEXT LIKE T591S-STEXT.
      DATA: v_file TYPE string,         "Detail Filename
            v_filerecord(1000),
            f_filerecord(1000),
            drive(3),
            mstbr  like  pa0001-mstbr,  "Supervisor
            count  type n value 0.
    SELECTION-SCREEN BEGIN OF BLOCK SELECTION WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_PERNR FOR P0000-PERNR,
                    S_WERKS FOR PA0001-WERKS,
                    S_BTRTL FOR PA0001-BTRTL,
                    S_PERSG FOR PA0001-PERSG,
                    S_ORGEH FOR PA0001-ORGEH,
                    S_DIV   FOR PA9001-DIV_CODE,
                    S_KZTIM FOR PA0007-KZTIM,
                   S_sname for pa0001-sname, " this is to enter name
                                                             " as manager name
                    S_FUNKT FOR PA0034-FUNKT.
    SELECTION-SCREEN END OF BLOCK SELECTION.
    SELECTION-SCREEN BEGIN OF BLOCK SELECTION1 WITH FRAME TITLE TEXT-002.
    PARAMETERS:     P_BEGDA LIKE SY-DATUM DEFAULT sy-datum.
    *                P_ENDDA LIKE SY-DATUM DEFAULT '99991231'.
    SELECTION-SCREEN END OF BLOCK SELECTION1.
    START-OF-SELECTION.
    if P_BEGDA is initial.
      p_begda = sy-datum.
    endif.
    if P_ENDDA is initial.
      p_endda = sy-datum.
    endif.
    if S_PERSG is initial.
    *    S_PERSG-SIGN = 'I'.
    *    S_PERSG-OPTION = 'EQ'.
    *    S_PERSG-LOW = '1'.
    *    APPEND S_PERSG.
    *    S_PERSG-SIGN = 'I'.
    *    S_PERSG-OPTION = 'EQ'.
    *    S_PERSG-LOW = '6'.
    *    APPEND S_PERSG.
        S_PERSG-SIGN = 'I'.
        S_PERSG-OPTION = 'NE'.
        S_PERSG-LOW = '5'.
        APPEND S_PERSG.
    endif.
      SELECT * FROM PA0001 into IT_PA0001
        WHERE PERNR IN S_PERNR
          AND WERKS IN S_WERKS
          AND BTRTL IN S_BTRTL
          AND PERSG IN S_PERSG
          AND ORGEH IN S_ORGEH
          AND BEGDA LE P_BEGDA
          AND ENDDA GE P_ENDDA.
        APPEND IT_PA0001.
      ENDSELECT.
      IF not S_DIV[] is initial.
        SELECT * FROM PA9001 into IT_PA9001
          WHERE DIV_CODE IN S_DIV.
          APPEND IT_PA9001.
        ENDSELECT.
      ENDIF.
      IF not S_KZTIM[] is initial.
        SELECT * FROM PA0007 into IT_PA0007
          WHERE KZTIM IN S_KZTIM.
          APPEND IT_PA0007.
        ENDSELECT.
      ENDIF.
      IF not S_FUNKT[] is initial.
        SELECT * FROM PA0034 into IT_PA0034
          WHERE FUNKT IN S_FUNKT.
          APPEND IT_PA0034.
        ENDSELECT.
      ENDIF.
      SORT IT_PA0001 by SNAME.
      LOOP AT IT_PA0001.
        IF not S_DIV[] is initial.
          READ TABLE IT_PA9001 with key pernr = IT_PA0001-PERNR.
          IF sy-subrc ne 0.
            continue.
          ENDIF.
        ENDIF.
        IF not S_KZTIM[] is initial.
          READ TABLE IT_PA0007 with key pernr = IT_PA0001-PERNR.
          IF sy-subrc ne 0.
            continue.
          ENDIF.
        ENDIF.
        IF not S_FUNKT[] is initial.
          READ TABLE IT_PA0034 with key pernr = IT_PA0001-PERNR.
          IF sy-subrc ne 0.
            continue.
          ENDIF.
        ENDIF.
          V_COUNTER = 1.
                V_EMP = IT_PA0001-PERNR.
                V_KOSTL = IT_PA0001-KOSTL.
    *            WRITE: (10) V_EMP, (20) PA0002-NACHN, (20) PA0002-VORNA.
          WRITE: / SY-VLINE.                   " Left border
            WHILE V_EMP NE ''.
                PERFORM GET_SUPER CHANGING V_EMP V_SUPER
                                    V_EMP_POS.
              if v_emp ne ''.
                  select single * into it_pa0002 from pa0002
                    where pernr = v_emp
                      and begda LE p_begda
                      and endda GE p_endda.
                  IF V_HEADER = 1.
                        PERFORM HEADING.
                    V_HEADER = 0.
                  ENDIF.
                  WRITE:  (10) V_EMP, (17) IT_PA0002-NACHN
                          ,(17) IT_PA0002-VORNA, (40) V_EMP_POS.
                  move v_emp  to  i_hr-pernr.
                  move IT_PA0002-NACHN  to  i_hr-nachn.
                  move IT_PA0002-VORNA  to  i_hr-vorna.
                  move V_EMP_POS  to  i_hr-plans.
                  EMP_INDICATOR = V_COUNTER.
                  IF V_COUNTER = 1.
                    select single * into it_pa9001 from pa9001
                      where pernr = v_emp
                        and begda LE p_begda
                        and endda GE p_endda.
                    select single * into it_pa0007 from pa0007
                      where pernr = v_emp
                        and begda LE p_begda
                        and endda GE p_endda.
                    PERFORM GET_KZTIM_TEXT CHANGING it_pa0007-kztim V_KZTIM.
                    select single * into it_pa0034 from pa0034
                      where pernr = v_emp
                        and begda LE p_begda
                        and endda GE p_endda.
                    PERFORM GET_FUNKT_TEXT CHANGING it_pa0034-funkt v_stext.
                    write: (8) IT_PA9001-DIV_CODE, (17) V_KZTIM,
                           (25) V_STEXT.
                    move  IT_PA9001-DIV_CODE  to  i_hr-div_text.
                    move  v_KZTIM  to  i_hr-kztim.
                  ENDIF.
                  IF V_COUNTER = 0.
                    WRITE: (1) '|'.
                  ENDIF.
                  IF V_COUNTER = 1.
                    PERFORM GET_NAMES.
                    WRITE: (20) V_WERKS, (5) IT_PA0001-BTRTL
                            ,(20) V_ORGEH,(11) V_KOSTL, (3) '|'.
                    V_COUNTER = 0.
                    move  V_WERKS  to  i_hr-werks.
                    move  IT_PA0001-BTRTL  to  i_hr-btrtl.
                    move  V_ORGEH  to  i_hr-orgeh.
                    move  V_KOSTL  to  i_hr-kostl.
                  ENDIF.
                clear it_pa0002.
                refresh it_pa0002.
              endif.
                V_EMP = V_SUPER.
                move V_SUPER to i_hr-mstbr.
                if EMP_INDICATOR EQ 1.
                  append i_hr.
                endif.
                clear i_hr.
            ENDWHILE.
      NEW-LINE.
      CLEAR : V_KZTIM, it_pa9001, it_PA0007.
      ENDLOOP.
    * Check if its a background Job
      IF SY-BATCH NE SPACE.
        perform write_file.     "Output File
      ENDIF.
      ULINE.
    *&      Form  GET_SUPER
    *       This subroutine takes the position number and get the position
    * number that it reports to and then who is holding that position and
    * then the name of the person who is holding that position in order to
    * provide the supervisors name for the person in that position.
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_SUPER CHANGING EMP_SUB EMP_SUPER
                               EMP_SUB_POS  .
      DATA: v_reporto like hrp1001-varyf value space,
            v_holder  like hrp1001-varyf value space,
            v_filled  like hrp1001-varyf value space,
            v_otype   like hrp1001-otype value space,
            v_objid   like hrp1001-objid value space.
      CLEAR: v_reporto, v_holder, v_filled, v_otype, v_objid,
                              EMP_SUB_POS.
      Select single plans
        into v_plans
        from pa0001
            where pernr = emp_sub
              and begda LE p_begda
              and endda GE p_endda.
            CALL FUNCTION 'BAPI_ORGUNITEXT_DATA_GET'
               EXPORTING
                  PLVAR                = '01'
                  OTYPE                = 'S'
                  OBJID                = v_PLANS
                  KEYDATE              = SY-DATUM
                  SCENARIO             = '    '
    *                 EVALPATH             = 0
                  EVALDEPTH            = 0
               IMPORTING
                  RETURN               = IT_RET
               TABLES
    *                 ACTORTAB             = IT_ACT
    *                 STRUCTURALDATA       = IT_STR
                  OBJECTSDATA          = IT_SUP
    *                 FIELDCATALOGUE       = IT_FCAT
    *                 FIELDDATA            = IT_FDAT
            IF SY-SUBRC EQ 0.
              READ TABLE IT_SUP INTO IT_SUPR
                 WITH KEY PLAN_VERS  = '01'
                          OBJECTTYPE = 'S'
                          OBJECT_ID  = v_PLANS.
              IF SY-SUBRC EQ 0.
                MOVE IT_SUPR-LONG_TEXT TO EMP_SUB_POS.
              ENDIF.
            ENDIF.
      Select Single varyf
         into v_reporto
         from hrp1001
            where otype = 'S'
              and objid = v_plans
              and rsign = 'A'
              and relat = '002'
              and begda LE p_begda
              and endda GE p_endda.
      if sy-subrc = 0.
        move v_reporto+0(1) to v_otype.
        move v_reporto+2(8) to v_objid.
        Select single varyf
           into v_holder
           from hrp1001
              where otype = v_otype
                and objid = v_objid
                and rsign = 'A'
                and relat = '008'
              and begda LE p_begda
              and endda GE p_endda.
        if sy-subrc = 0.
          move v_holder+0(1) to v_otype.
          move v_holder+2(8) to v_objid.
          EMP_SUPER = v_objid.
        IF EMP_SUB = EMP_SUPER.
           EMP_SUPER = ''.
        ENDIF.
    *      Select single varyf
    *         into v_filled
    *            from hrp1001
    *               where otype = v_otype
    *                 and objid = v_objid
    *                 and rsign = 'A'
    *                 and relat = '209'.
    *      if sy-subrc = 0.
    *        CLEAR: IT_RET, IT_ACT, IT_STR,  IT_FCAT, IT_FDAT,
    *               IT_SUP, IT_SUPR.
    *        REFRESH: IT_POSS.
    *        move v_filled+0(2) to v_otype.
    *        move v_filled+2(8) to v_objid.
    *        CALL FUNCTION 'BAPI_ORGUNITEXT_DATA_GET'
    *           EXPORTING
    *              PLVAR                = '01'
    *              OTYPE                = v_otype
    *              OBJID                = v_objid
    *              KEYDATE              = V_DATE
    *              SCENARIO             = '    '
    **                 EVALPATH             = 0
    *              EVALDEPTH            = 0
    *           IMPORTING
    *              RETURN               = IT_RET
    *           TABLES
    **                 ACTORTAB             = IT_ACT
    **                 STRUCTURALDATA       = IT_STR
    *              OBJECTSDATA          = IT_SUP
    **                 FIELDCATALOGUE       = IT_FCAT
    **                 FIELDDATA            = IT_FDAT
    *        IF SY-SUBRC EQ 0.
    *          READ TABLE IT_SUP INTO IT_SUPR
    *             WITH KEY PLAN_VERS  = '01'
    *                      OBJECTTYPE = v_otype
    *                      OBJECT_ID  = v_objid.
    *          IF SY-SUBRC EQ 0.
    *            MOVE IT_SUPR-LONG_TEXT TO EMP_SUPER.
    *          ENDIF.
    *        ENDIF.
    *      endif.
        endif.
      endif.
        if sy-subrc <> 0.
           EMP_SUPER = ''.
        endif.
    ENDFORM.                    " GET_SUPER
    *&      Form  HEADING
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM HEADING .
      FORMAT INTENSIFIED OFF.              " Remove any INTENSIFIED
      FORMAT COLOR COL_HEADING INTENSIFIED." Title color
      WRITE:  (10) 'Employee', (17) 'Last Name'
                          ,(17) 'First Name', (40) 'Position'
                          ,(8) 'Division', (17) 'Management Type'
                          ,(25) 'Corporate Function'
          ,(20) 'Personnel Area', (5) 'PSA'
          ,(20) 'Org. Unit',(11) 'Cost Center',(3) '|'
              ,(10) 'Supervisor', (17) 'Last Name'
                          ,(17) 'First Name', (40) 'Position', (1) '|'
              ,(10) 'Supervisor', (17) 'Last Name'
                          ,(17) 'First Name', (40) 'Position', (1) '|'
              ,(10) 'Supervisor', (17) 'Last Name'
                          ,(17) 'First Name', (40) 'Position', (1) '|'
              ,(10) 'Supervisor', (17) 'Last Name'
                          ,(17) 'First Name', (40) 'Position', (1) '|'
              ,(10) 'Supervisor', (17) 'Last Name'
                          ,(17) 'First Name', (40) 'Position', (1) '|'
              ,(10) 'Supervisor', (17) 'Last Name'
                          ,(17) 'First Name', (40) 'Position', (1) '|'
              ,(10) 'Supervisor', (17) 'Last Name'
                          ,(17) 'First Name', (40) 'Position', (1) '|'
              ,(10) 'Supervisor', (17) 'Last Name'
                          ,(17) 'First Name', (40) 'Position', (1) '|'
              ,(10) 'Supervisor', (17) 'Last Name'
                          ,(17) 'First Name', (40) 'Position', (1) '|'
      ULINE  .                    " Line below titles
        NEW-LINE.
          WRITE: / SY-VLINE.                   " Left border
      FORMAT COLOR OFF.
    ENDFORM.                    " HEADING
    *&      Form  GET_NAMES
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_NAMES .
      CLEAR: IT_RET, IT_ACT, IT_STR, IT_ORG, IT_POS, IT_FCAT, IT_FDAT,
             IT_ORGS, IT_POSS, V_ORGEH, V_WERKS.
      REFRESH: IT_ORGS, IT_POSS.
      MOVE SY-DATUM TO V_DATE.
      CALL FUNCTION 'BAPI_ORGUNITEXT_DATA_GET'
         EXPORTING
            PLVAR                = '01'
            OTYPE                = 'O '
            OBJID                = IT_PA0001-ORGEH
            KEYDATE              = V_DATE
            SCENARIO             = '    '
    *         SCENARIO             = 'MDT1'
    *         EVALPATH             = '0       '
            EVALDEPTH            = 0
         IMPORTING
            RETURN               = IT_RET
         TABLES
    *         ACTORTAB             = IT_ACT
    *         STRUCTURALDATA       = IT_STR
             OBJECTSDATA          = IT_ORG
    *         FIELDCATALOGUE       = IT_FCAT
    *         FIELDDATA            = IT_FDAT
      IF SY-SUBRC EQ 0.
        READ TABLE IT_ORG INTO IT_ORGS
           WITH KEY PLAN_VERS  = '01'
                    OBJECTTYPE = 'O '
                    OBJECT_ID  = IT_PA0001-ORGEH.
        IF SY-SUBRC EQ 0.
          MOVE IT_ORGS-LONG_TEXT TO V_ORGEH.
        ENDIF.
      ENDIF.
      CALL FUNCTION 'HR_TMW_READ_T500P'
        EXPORTING
          PERSA          = IT_PA0001-WERKS
        IMPORTING
          W500P          = IT_T500P
        EXCEPTIONS
          NO_ENTRY_FOUND = 1
          OTHERS         = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF SY-SUBRC EQ 0.
        MOVE IT_T500P-NAME1 TO V_WERKS.
        CLEAR:  IT_T500P.
        REFRESH: IT_T500P.
      ENDIF.
    *  CALL FUNCTION 'HR_TMW_READ_T001P'
    *    EXPORTING
    *      PERSA          = PA0001-WERKS
    *      BTRTL          = PA0001-BTRTL
    *    IMPORTING
    *      W001P          = IT_T001P
    *    EXCEPTIONS
    *      NO_ENTRY_FOUND = 1
    *      OTHERS         = 2.
    *  IF SY-SUBRC <> 0.
    *    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *  ENDIF.
    *  IF SY-SUBRC EQ 0.
    *    MOVE IT_T001P-BTEXT TO IT_HRR05-BTRTL.
    *  ENDIF.
    ENDFORM.                    " GET_NAMES
    *&      Form  GET_KZTIM_TEXT
    *       text
    *      <--P_V_EMP  text
    *      <--P_V_KZTIM  text
    FORM GET_KZTIM_TEXT  CHANGING P_KZTIM_ID
                                  P_KZTIM.
      select single NAME into P_KZTIM from ZKZTIM_VAUES
              where TYPE eq P_KZTIM_ID.
    ENDFORM.                    " GET_KZTIM_TEXT
    *&      Form  GET_FUNKT_TEXT
    *       text
    *      <--P_V_EMP  text
    *      <--P_V_KZTIM  text
    FORM GET_FUNKT_TEXT  CHANGING P_FUNKT_ID
                                  P_STEXT.
      select single STEXT into P_STEXT from T591S
              where SPRSL eq 'EN' and
                    INFTY eq '0034' and
                    SUBTY eq P_FUNKT_ID.
    ENDFORM.                    " GET_KZTIM_TEXT
    *&      Form  write_file
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM write_file .
    *   Checking the System ID
      if sy-sysid = 'RD1'.
        drive = 'D:\'.
      else.
        drive = 'M:\'.
      endif.
    *  concatenate drive sy-sysid
    *              '\Output\Reports\HR\HR_Public\Emp_Hierarchy'
    *              sy-datum
    *              '.xls' into v_file.
      concatenate drive sy-sysid
                  '\Output\Reports\HR\HR_Public\Emp_Hierarchy.xls'
                  into v_file.
      OPEN DATASET v_file FOR OUTPUT in text mode encoding default.
      concatenate 'Employee'
                  'Last Name'
                  'First Name'
                  'Position'
                  'Division'
                  'Management Type'
                  'Corporate Function'
                  'Personnel Area '
                  'PSA'
                  'Org. Unit'
                  'Cost Center'
                  'Supervisor'
                  'Last Name'
                  'First Name'
                  'Position'
                  'Supervisor'
                  'Last Name'
                  'First Name'
                  'Position'
                  'Supervisor'
                  'Last Name'
                  'First Name'
                  'Position'
                  'Supervisor'
                  'Last Name'
                  'First Name'
                  'Position'
                  'Supervisor'
                  'Last Name'
                  'First Name'
                  'Position'
                  'Supervisor'
                  'Last Name'
                  'First Name'
                  'Position'
                  'Supervisor'
                  'Last Name'
                  'First Name'
                  'Position'
                  'Supervisor'
                  'Last Name'
                  'First Name'
                  'Position'
                  'Supervisor'
                  'Last Name'
                  'First Name'
                  'Position'
                   into v_filerecord
                   separated by CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
      transfer v_filerecord to v_file.    "Writing to file
      clear v_filerecord.
      loop at IT_PA0001.
        do.
          if count eq 0.
            read table i_hr with key pernr = IT_PA0001-pernr.
            concatenate i_hr-pernr
                        i_hr-nachn
                        i_hr-vorna
                        i_hr-plans
                        i_hr-div_text
                        i_hr-kztim
                        i_hr-stext
                        i_hr-werks
                        i_hr-btrtl
                        i_hr-orgeh
                        i_hr-kostl
                        into v_filerecord
                        separated by CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
             mstbr = i_hr-mstbr.
             count = count + 1.
          else.
            read table i_hr with key pernr = mstbr.
            concatenate v_filerecord
                        i_hr-pernr
                        i_hr-nachn
                        i_hr-vorna
                        i_hr-plans
                        into f_filerecord
                        separated by CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
            v_filerecord = f_filerecord.
            mstbr = i_hr-mstbr.
            clear i_hr.
          endif.
          if mstbr eq space.
            exit.
          endif.
        enddo.
        transfer v_filerecord to v_file.  "Writing to file
        clear: v_filerecord, f_filerecord, count.
      endloop.
      CLOSE DATASET v_file.
    ENDFORM.                    " write_file
    Edited by: Surender Batlanki on Feb 20, 2008 7:50 AM
    Edited by: Surender Batlanki on Feb 20, 2008 7:59 AM
    Edited by: Surender Batlanki on Feb 20, 2008 8:12 AM
    Edited by: Surender Batlanki on Feb 20, 2008 3:16 PM
    Edited by: Alvaro Tejada Galindo on Feb 20, 2008 9:26 AM

    Hi Surender,
    In the Perform GET_SUPER, you are getting manager's OBJID. Use this OBJID and from PA0001 get Manger's name.
    While passing data to output table, filter that table by Manager's name and then pass output table for display.
    Hope this helps u.
    <REMOVED BY MODERATOR>
    Regards,
    Preeti
    Edited by: Alvaro Tejada Galindo on Feb 20, 2008 9:26 AM

  • Change color in alv list header

    hi experts,
    how can i change the color in a alv header... for example...
    number         docum     year  
    001              13245      2006
    002              13245      2007
    the header.. number, docum and year appears in light blue (all the cell) , how can i do that it appears without a color like the regular rows.
    thx in  advance

    Hi Carlos,
    FORM HEADING.
      FORMAT INTENSIFIED OFF.              " Remove any INTENSIFIED
      ULINE AT (WIDTH).                    " Upper frame border
      FORMAT COLOR COL_HEADING INTENSIFIED." Title color
      WRITE: / SY-VLINE.                   " Left border
      WRITE: 'No |Colour        |intensified    |intensified off|',
             'inverse' NO-GAP.
      WRITE: AT WIDTH SY-VLINE.            " Right border
      ULINE AT (WIDTH).                    " Line below titles
      FORMAT COLOR OFF.
    ENDFORM.
    regards,
    Prabhudas

Maybe you are looking for

  • MacMini as a Filemaker Server

    Hi I want to use a Mac Min as a server for my Filemaker 13 Server. Several questions if I may: 1. Will I be required to add a monitor or can I control the MacMini from my iMac. 2. Should I purchase the regular Mini or server version? Thanks Herbert

  • Partition on internal drive not appearing on desktop

    This is a funny one. I have a 200 GB, data-only partition on my internal drive. The other partition has an unused OSX on it (I boot from FW). A few days ago, when I was playing around trying to write-protect this particular disk, I set all the parama

  • Adding secondary ACE Back to production

    I had to take out the standby ACE from production today and want to insert it back now .. what is safe way to add it back ..It will be good if we can remove the peer address from the standby ACE and add it.. But for that i have to insert the ACE to t

  • 1403 errors from links on this page:

    Page: [http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=304] Country (United Kingdom) Links under Certification Exams ..\ Course Title rutnr 1403 error: eg: [http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?p

  • Why not Notes in Ovi Suite?

    Why can't we view Notes in Ovi Suite?  There is no way to configure the sync of Notes except very generically.  We can edit contacts, calendar, and messages in Ovi Suite, but not notes.  Why?  I would really like to be able to do this. Bruce