Header and Selectedrow in the Jtable

Hello, I want some help please,
I have a JTable with a variable number of columns and rows. When a row is selected, all the data of this row are selected and I want to recupere the data in the column which header is "name". how can I do , is it possible to recupere data using the selected row and the header of the column.
thanks.

If you want to select only a column :
jtable.setRowSelectionAllowed(false);
jtable.setColumnSelectionAllowed(true);

Similar Messages

  • Avoid printing Header and Footer in the last page

    Hi,
    Could anyone please let me know how to avoid print the header and footer in the last page?
    Note: I'm printing RTF template for publishing the output.
    Looking forward for your valuable inputs/suggestions.
    Thanks in advance,
    Regards,
    Muru

    Hai,
    My report got FROM PO & TO PO parameters and i need to print footer only in first page of each PO. Tried with section but now i am getting first page of all PO contionious and then all lines together.
    Please call me or sent replies to [email protected]

  • Customizing header and footer in the printed documentation

    Hi,
    I'm using a trial version of RoboHelp 2007 and Word 2003.
    I have two question about customizing the header and footer
    of the printed documentation.
    In the printed documentation the footer repeat at the bottom
    of each page and contain page numbers, which appear left-justified
    on even-numbered pages and right-justified on odd-numbered pages.
    How can I customize the footer, that pages numbers appear
    always right-justified?
    In the printed documentation the header repeat at the top of
    each page and are blank on the first page of sections. The name of
    the manual appears on even-numbered pages, left-justified. The name
    of the root chapter appears on odd-numbered pages, right-justified.
    How can I customize the header, that
    on every page the name of the root chapter and the name oft
    the manual appears? Furhermore I want to include a picture in the
    header. How can I realise this?

    You can't from RH. See the article on my site.
    Images in the header are tricky. If you use the setting that
    I think enables that, you will also get the images in the TOC. Try
    putting a two cell table and putting the heading in one and the
    image in another.

  • Keeping heading and detail on the same page

    Hi, I have a report with a group header section and a detail section.  How can I keep the heading section and all the detail section on the same page without starting each group on a new page?
    The detail section will have either 2 or 3 records with some of the objects set to grow if the data doesn't fit on one line.  This results in several changes of group appearing on the same page which is what I want.  However, what I don't want is the header section on one page with the detail section on the next, or the header and some of the detail records on one page with the rest of the detail records on the next.  What I would like is the report to start a new page if the header and all the detail records don't fit on the same page but without starting a new page for every group change.  How can I achieve this?

    you can put the group header and details into a sub report on the old group header section.
    then hide the details section

  • How to change the header and footer in the Section Breaks Next Page using OpenXML?

    I have a word document file in which I added a Section Break of Next Page, now I want to change the header and footer of that page.
    Scenario of example, I have a doc file which has four pages with headers and footers and added fifth page in the section break next page, I want to change the header and footer of the fifth page only. This is achievable manually by deselecting the Link to Previous
    button in the Word Application but I don't know how to change it using XML?
    My code that adds the new page in the section breaks is:
    class Program
    static void Main(string[] args)
    string path = @"C:\Riyaz\sample.docx";
    string strtxt = "Hello This is done by programmatically";
    OpenAndAddTextToWordDocument(path,strtxt);
    public static void OpenAndAddTextToWordDocument(string filepath, string txt)
    using (DocX document = DocX.Load(@"C:\Riyaz\sample.docx"))
    document.InsertSectionPageBreak();
    Paragraph p1 = document.InsertParagraph();
    p1.Append("This is new section");
    document.Save();
    Please help.

    Here is the sample for your reference:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using DocumentFormat.OpenXml;
    using DocumentFormat.OpenXml.Packaging;
    using DocumentFormat.OpenXml.Wordprocessing;
    namespace WordAddNewFooterHeader
    class Program
    static void Main(string[] args)
    string path = @"E:\Document\TestHeaderandfooter-Copy.docx";
    string strtxt = "OpenXML SDK";
    OpenAndAddTextToWordDocument(path, strtxt);
    public static void OpenAndAddTextToWordDocument(string filepath, string txt)
    // Open a WordprocessingDocument for editing using the filepath.
    WordprocessingDocument wordprocessingDocument = WordprocessingDocument.Open(filepath, true);
    MainDocumentPart part = wordprocessingDocument.MainDocumentPart;
    Body body = part.Document.Body;
    //create a new footer Id=rIdf2
    FooterPart footerPart2 = part.AddNewPart<FooterPart>("rIdf2");
    GenerateFooterPartContent(footerPart2);
    //create a new header Id=rIdh2
    HeaderPart headerPart2 = part.AddNewPart<HeaderPart>("rIdh2");
    GenerateHeaderPartContent(headerPart2);
    //replace the attribute of SectionProperties to add new footer and header
    SectionProperties lxml = body.GetFirstChild<SectionProperties>();
    lxml.GetFirstChild<HeaderReference>().Remove();
    lxml.GetFirstChild<FooterReference>().Remove();
    HeaderReference headerReference1 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = "rIdh2" };
    FooterReference footerReference1 = new FooterReference() { Type = HeaderFooterValues.Default, Id = "rIdf2" };
    lxml.Append(headerReference1);
    lxml.Append(footerReference1);
    //add the correlation of last Paragraph
    OpenXmlElement oxl = body.ChildElements.GetItem(body.ChildElements.Count - 2);
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    SectionProperties sectionProperties1 = new SectionProperties() { RsidR = oxl.GetAttribute("rsidR", oxl.NamespaceUri).Value };
    HeaderReference headerReference2 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = part.GetIdOfPart(part.HeaderParts.FirstOrDefault()) };
    FooterReference footerReference2 = new FooterReference() { Type = HeaderFooterValues.Default, Id = part.GetIdOfPart(part.FooterParts.FirstOrDefault()) };
    PageSize pageSize1 = new PageSize() { Width = (UInt32Value)12240U, Height = (UInt32Value)15840U };
    PageMargin pageMargin1 = new PageMargin() { Top = 1440, Right = (UInt32Value)1440U, Bottom = 1440, Left = (UInt32Value)1440U, Header = (UInt32Value)720U, Footer = (UInt32Value)720U, Gutter = (UInt32Value)0U };
    Columns columns1 = new Columns() { Space = "720" };
    DocGrid docGrid1 = new DocGrid() { LinePitch = 360 };
    sectionProperties1.Append(headerReference2);
    sectionProperties1.Append(footerReference2);
    sectionProperties1.Append(pageSize1);
    sectionProperties1.Append(pageMargin1);
    sectionProperties1.Append(columns1);
    sectionProperties1.Append(docGrid1);
    paragraphProperties1.Append(sectionProperties1);
    oxl.InsertAt<ParagraphProperties>(paragraphProperties1, 0);
    body.InsertBefore<Paragraph>(GenerateParagraph(txt, oxl.GetAttribute("rsidRDefault", oxl.NamespaceUri).Value), body.GetFirstChild<SectionProperties>());
    part.Document.Save();
    wordprocessingDocument.Close();
    //Generate new Paragraph
    public static Paragraph GenerateParagraph(string text, string rsidR)
    Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = rsidR };
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    Tabs tabs1 = new Tabs();
    TabStop tabStop1 = new TabStop() { Val = TabStopValues.Left, Position = 5583 };
    tabs1.Append(tabStop1);
    paragraphProperties1.Append(tabs1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = text;
    run1.Append(text1);
    Run run2 = new Run();
    TabChar tabChar1 = new TabChar();
    run2.Append(tabChar1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    paragraph1.Append(run2);
    return paragraph1;
    static void GenerateHeaderPartContent(HeaderPart hpart)
    Header header1 = new Header();
    Paragraph paragraph1 = new Paragraph();
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Header" };
    paragraphProperties1.Append(paragraphStyleId1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = "";
    run1.Append(text1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    header1.Append(paragraph1);
    hpart.Header = header1;
    static void GenerateFooterPartContent(FooterPart fpart)
    Footer footer1 = new Footer();
    Paragraph paragraph1 = new Paragraph();
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Footer" };
    paragraphProperties1.Append(paragraphStyleId1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = "";
    run1.Append(text1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    footer1.Append(paragraph1);
    fpart.Footer = footer1;
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unsupported version Error while generating header and footer for the PDF

    hi
    I want to genrate header and footer for the PDF file however on the call of the EndPage class i got a Unsupported Version Error Unsupported major minor Version Error and Class loader Define class
    What has gone wrong ?.

    Can you provide more information about what you were trying to do? In particular, what does your code like like?
    Also, can you include the stack trace, and the complete error message?

  • How to outline selected cells during drag and drop in the jtable

    Hi,
    I have spent a lot of time to find out how to outline selected cells during drag in the jtable, but I did not find the answer.
    Can anybody give me a tip, where to read more about this problem or even better, give an example...
    I have the following situation:
    1.Table has 10 rows and 10 columns
    2.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION) and setCellSelectionEnabled(true)
    3.user select 5 cells in 4th row (for example cell45,cell46,cell47,cell48 and cell49)
    4.user starts dragging. During dragging an outline should be drawn. Outline should be a rectangular with width of 5 cells and height of one cell. Outline should move according to the mouse position.
    5.rectangular disappears when dropped
    Regards,
    Primoz

    In "createTransferable" you can create a drag image
    which you can paint in "dragOver" and clear in "drop" method of DropTarget :
    package dnd;
    * DragDropJTableCellContents.java
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.dnd.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.io.IOException;
    public class DragDropJTableCellContents extends JFrame {
        public DragDropJTableCellContents() {
            setTitle("Drag and Drop JTable");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            getContentPane().add(createTable("JTable"), BorderLayout.CENTER);
            setSize(400, 300);
            setLocationRelativeTo(null);
        private JPanel createTable(String tableId) {
            DefaultTableModel model = new DefaultTableModel();
            for (int i = 0; i < 10; i++) {
                model.addColumn("Column "+i);
            for (int i = 0; i < 10; i++) {
                String[] rowData = new String[10];
                for (int j = 0; j < 10; j++) {
                    rowData[j] = tableId + " " + i + j;
                model.addRow(rowData);
            JTable table = new JTable(model);
            table.getTableHeader().setReorderingAllowed(false);
            table.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
            table.setCellSelectionEnabled(true);
            JScrollPane scrollPane = new JScrollPane(table);
            table.setDragEnabled(true);
            TableTransferHandler th = new TableTransferHandler();
            table.setTransferHandler(th);
            table.setDropTarget(new TableDropTarget(th));
            table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            JPanel panel = new JPanel(new BorderLayout());
            panel.add(scrollPane);
            panel.setBorder(BorderFactory.createTitledBorder(tableId));
            return panel;
        public static void main(String[] args) {
            new DragDropJTableCellContents().setVisible(true);
        abstract class StringTransferHandler extends TransferHandler {
            public int dropAction;
            protected abstract String exportString(JComponent c);
            protected abstract void importString(JComponent c, String str);
            @Override
            protected Transferable createTransferable(JComponent c) {
                return new StringSelection(exportString(c));
            @Override
            public int getSourceActions(JComponent c) {
                return COPY;
            @Override
            public boolean importData(JComponent c, Transferable t) {
                if (canImport(c, t.getTransferDataFlavors())) {
                    try {
                        String str = (String) t.getTransferData(DataFlavor.stringFlavor);
                        importString(c, str);
                        return true;
                    } catch (UnsupportedFlavorException ufe) {
                    } catch (IOException ioe) {
                return false;
            @Override
            public boolean canImport(JComponent c, DataFlavor[] flavors) {
                for (int ndx = 0; ndx < flavors.length; ndx++) {
                    if (DataFlavor.stringFlavor.equals(flavors[ndx])) {
                        return true;
                return false;
        class TableTransferHandler extends StringTransferHandler {
            private int dragRow;
            private int[] dragColumns;
            private BufferedImage[] image;
            private int row;
            private int[] columns;
            public JTable target;
            @Override
            protected Transferable createTransferable(JComponent c) {
                JTable table = (JTable) c;
                dragRow = table.getSelectedRow();
                dragColumns = table.getSelectedColumns();
                createDragImage(table);
                return new StringSelection(exportString(c));
            protected String exportString(JComponent c) {
                JTable table = (JTable) c;
                row = table.getSelectedRow();
                columns = table.getSelectedColumns();
                StringBuffer buff = new StringBuffer();
                for (int j = 0; j < columns.length; j++) {
                    Object val = table.getValueAt(row, columns[j]);
                    buff.append(val == null ? "" : val.toString());
                    if (j != columns.length - 1) {
                        buff.append(",");
                return buff.toString();
            protected void importString(JComponent c, String str) {
                target = (JTable) c;
                DefaultTableModel model = (DefaultTableModel) target.getModel();
                String[] values = str.split("\n");
                int colCount = target.getSelectedColumn();
                int max = target.getColumnCount();
                for (int ndx = 0; ndx < values.length; ndx++) {
                    String[] data = values[ndx].split(",");
                    for (int i = 0; i < data.length; i++) {
                        String string = data;
    if(colCount < max){
    model.setValueAt(string, target.getSelectedRow(), colCount);
    colCount++;
    public BufferedImage[] getDragImage() {
    return image;
    private void createDragImage(JTable table) {
    if (dragColumns != null) {
    try {
    image = new BufferedImage[dragColumns.length];
    for (int i = 0; i < dragColumns.length; i++) {
    Rectangle cellBounds = table.getCellRect(dragRow, i, true);
    TableCellRenderer r = table.getCellRenderer(dragRow, i);
    DefaultTableModel m = (DefaultTableModel) table.getModel();
    JComponent lbl = (JComponent) r.getTableCellRendererComponent(table,
    table.getValueAt(dragRow, dragColumns[i]), false, false, dragRow, i);
    lbl.setBounds(cellBounds);
    BufferedImage img = new BufferedImage(lbl.getWidth(), lbl.getHeight(),
    BufferedImage.TYPE_INT_ARGB_PRE);
    Graphics2D graphics = img.createGraphics();
    graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1f));
    lbl.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
    lbl.paint(graphics);
    graphics.dispose();
    image[i] = img;
    } catch (RuntimeException re) {
    class TableDropTarget extends DropTarget {
    private Insets autoscrollInsets = new Insets(20, 20, 20, 20);
    private Rectangle rect2D = new Rectangle();
    private TableTransferHandler handler;
    public TableDropTarget(TableTransferHandler h) {
    super();
    this.handler = h;
    @Override
    public void dragOver(DropTargetDragEvent dtde) {
    handler.dropAction = dtde.getDropAction();
    JTable table = (JTable) dtde.getDropTargetContext().getComponent();
    Point location = dtde.getLocation();
    int row = table.rowAtPoint(location);
    int column = table.columnAtPoint(location);
    table.changeSelection(row, column, false, false);
    paintImage(table, location);
    autoscroll(table, location);
    super.dragOver(dtde);
    public void dragExit(DropTargetDragEvent dtde) {
    clearImage((JTable) dtde.getDropTargetContext().getComponent());
    super.dragExit(dtde);
    @Override
    public void drop(DropTargetDropEvent dtde) {
    Transferable data = dtde.getTransferable();
    JTable table = (JTable) dtde.getDropTargetContext().getComponent();
    clearImage(table);
    handler.importData(table, data);
    super.drop(dtde);
    private final void paintImage(JTable table, Point location) {
    Point pt = new Point(location);
    BufferedImage[] image = handler.getDragImage();
    if (image != null) {
    table.paintImmediately(rect2D.getBounds());
    rect2D.setLocation(pt.x - 15, pt.y - 15);
    int wRect2D = 0;
    int hRect2D = 0;
    for (int i = 0; i < image.length; i++) {
    table.getGraphics().drawImage(image[i], pt.x - 15, pt.y - 15, table);
    pt.x += image[i].getWidth();
    if (hRect2D < image[i].getHeight()) {
    hRect2D = image[i].getHeight();
    wRect2D += image[i].getWidth();
    rect2D.setSize(wRect2D, hRect2D);
    private final void clearImage(JTable table) {
    table.paintImmediately(rect2D.getBounds());
    private Insets getAutoscrollInsets() {
    return autoscrollInsets;
    private void autoscroll(JTable table, Point cursorLocation) {
    Insets insets = getAutoscrollInsets();
    Rectangle outer = table.getVisibleRect();
    Rectangle inner = new Rectangle(outer.x + insets.left,
    outer.y + insets.top,
    outer.width - (insets.left + insets.right),
    outer.height - (insets.top + insets.bottom));
    if (!inner.contains(cursorLocation)) {
    Rectangle scrollRect = new Rectangle(cursorLocation.x - insets.left,
    cursorLocation.y - insets.top,
    insets.left + insets.right,
    insets.top + insets.bottom);
    table.scrollRectToVisible(scrollRect);
    Edited by: Andre_Uhres on Nov 18, 2007 10:03 PM

  • Error occured while genrating header and footer for the PDF

    Hi All ,
    I am getting a following error whenever i try to excecute the code to print header and footer while genrating a PDF what could be the reason.Any help would be greately appreciated. following is the error stack trace: i am excecuting it in the command prompt an using jdk1.5.0.1
    C:\Program Files\Sun\Creator2_1\java\Test>java EndPage
    Exception in thread "main" java.lang.UnsupportedClassVersionError: EndPage (Unsu
    pported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

    Looks like the EndPage class was compiled with a later version of Java (49.0 == Java 1.5) and you are trying to run it with older version of java.exe. Type
    java -version
    to verify.
    Also this forum is for Sun Java Studio Creator related questions. Please ask such questions on java tools forum.
    Sandip

  • How to print (on paper) expected header and footer while printing Jtable

    Hello,
    I am printing jtable on paper using dot mtix printer.In header i want to print some name date and number like below
    Sun
    Date:12/8/20010 No.12334
    | col1 | col2 |
    | col1 | col2 |
    footer
    When i am trying to print header its Font size is very big and its in one line.How i can use expected font and expected text here.
    i am using jtable print method(which contin header and footer printing facility)
    Edited by: Ashtekar on Aug 12, 2010 5:18 AM

    I also once hoped for an easy way to modify a table's header and footer, but found no way.
    Yet it is possible.

  • Header and Trailer updating the same record

    Hi all
    I have a requirement in SQL loader in which the header should go to a header_trailer table. ( only 5 out of 10 columns are updated by the header record).
    All the data records go to a second table.( some xyz table)
    The trailer record should again update the record inserted by the header record in header_trailer table(the remaining 5 columns)
    How can I do this
    Each record in the header_trailer record will be identified by a sequence which should be populated when the header inserts the record
    Thanks
    Ashwin N.

    You're in luck, I'm a bit bored so I wrote a little script. This is just one way of doing it. It makes sure you can run this code in parallel as much as you want. However, you do get a lot of control and log files, but there is no escaping that. If the parallel option is not a requirement there are easier solutions (e.g. using a function called in the control file to fetch the last batch number from the lb_hf table). That way the control file can remain static.
    I also experienced some problems with the nummeric value in a definition variable. I solved it by turning it into a char and later in a number again, but this must be simpler. Anyways, this works and should suffice for your learning purposes:
    Create 2 files. One called 'l.dat' with the following data in it:
    a,b
    c,dThe other file called 'l.sql' with the following script in it:
    -- script to test loading data in staging area and create/update header table
    define usr=scott
    define pwd=tiger
    define db=oracle
    whenever sqlerror exit
    conn &usr/&pwd@&db
    whenever sqlerror continue
    create table lb_stage (-- this is the staging table in which the data will be loaded
      batch_num number,
      c1 varchar2(30),
      c2 varchar2(40));
    create table lb_hf (--  this is the footer table
      batch_num number,
      load_start date,
      description varchar2(30),
      records_loaded number,
      load_end date);
    create sequence lb_hf_seq;
    set verify off
    -- fetch new sequence for this particular load
    col hf_seq_nr format a30 new_value v_hf_seq_nr
    select to_char(lb_hf_seq.nextval) hf_seq_nr from dual;
    -- create header record
    insert into lb_hf values (to_number('&v_hf_seq_nr'), sysdate, 'Automated load', null, null);
    commit;
    -- create control file (needed to hardcode the sequence number in)
    set feedback off
    spool l_&v_hf_seq_nr..ctl
    prompt load DATA
    prompt INTO TABLE lb_stage
    prompt FIELDS TERMINATED BY ';' OPTIONALLY ENCLOSED BY '"'
    prompt TRAILING NULLCOLS
    prompt (
    prompt batch_num char "&v_hf_seq_nr",
    prompt c1,
    prompt c2
    prompt )
    spool off
    set feedback on
    -- load data (also have batchnum in log file name)
    host sqlldr &usr./&pwd.@&db. data=l.dat control=l_&v_hf_seq_nr..ctl log=l_&v_hf_seq_nr..log
    -- update header record with load information
    update lb_hf set records_loaded = (select count(1) from lb_stage where batch_num = &v_hf_seq_nr), load_end = sysdate where batch_num = &v_hf_seq_nr;
    commit;
    select * from lb_stage;
    select * from lb_hf;
    drop table lb_stage;
    drop table lb_hf;
    drop sequence lb_hf_seq;
    prompt End of script.Change the login at the beginning to something appropriate and run l.sql from the sql prompt.
    Hope this helps,
    Lennert

  • IPad (1) bluetooth only "searches".. doesn't find. All works on my IPhone 4, but the IPad can't "find" the devices. Using Motorola behind the head and Rocketfish behind the head headphones.

    I have both Motorola and Rocketfish behind-the-head earphones.  Both work fine on my IPhone 4.  But the bluetooth setting on my IPad only "searches" and doesn't find the devices.  Any ideas? (Using Latest OS for IPad

    I had the same problem for the last 2 weeks and today it just started working with nothing changing.  I've also read reports of others having it just start working today.  Give it a shot again.  I think it was a problem that AT&T sorted out.

  • Merge the total line about header and item in the Hierarchical Seq ALV

    Hello guys,
    Now i used CL_SALV_HIERSEQ_TABLE to create a Hierarchical Sequential ALV. but there are two total lines, one is to calculate the numerical fields in the header(main) and another is calculate the numerical fields in the item(slave).
    my requirement doesn't contain the calculation for header line, so the first line is unuseful and i want to merge these two  line. 
    how i should do with it?
    Any clues is appreciated.
    Thanks a lot

    could anyone help me? i am very urgent!

  • ALV Header and details in the report

    Hi Experts,
    I have the following requirements for the report:
    Company Code:                                                                                -->Report Header
    Plant:
    Posting Date:
    Material                      Jan Amount                 Feb Amount                March Amount  --> Header info
                        Sales order number     Delivery dates     Order dates     Qty UOM   Amount  -->Details Info
    1234                          1,000.00                         500.00                       300.00         --> Header info
                            0001                    02/02/2008            01/02/2008      10  PC     60.00     -->Details Info
                            0002                    02/03/2008            01/02/2008        5  PC     30.00
                            0003                    02/03/2008            01/02/2008      12  PC     70.00
                            0004                    02/04/2008            01/02/2008      14  PC     90.00
                            0005                    02/06/2008            01/02/2008      10  PC     60.00
    5678                          2,000.00                         400.00                       300.00         --> Header info
                            0001                    02/02/2008            01/02/2008      10  PC     60.00     -->Details Info
                            0002                    02/03/2008            01/02/2008        5  PC     30.00
                            0003                    02/03/2008            01/02/2008      12  PC     70.00
                            0004                    02/04/2008            01/02/2008      14  PC     90.00
                            0005                    02/06/2008            01/02/2008      10  PC     60.00
    the report should look like the one above. How can I develop this in ALV Grid or List? Thanks so much!
    Best Regards,
    Kurtt

    Hi,
    You can use Hierarchial ALV.
    Refer:-
    BCALV_TREE_01 ALV : tree control: build up the hierarchy tree
    BCALV_TREE_DND ALV : tree control: Drag & Drop within a hierarchy tree
    BCALV_TREE_DND_MULTIPLE ALV : tree control: Drag & Drop within a hierarchy tree
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Help: the header and footer in the dreamweaver are doubled

    http://coolsite04.businesscatalyst.com/
    this is my site how can i fix it.
    i'm using the basic template

    Issue resolved.
    had to change the Main Template.html to  {tag_pagecontent}

  • I want to access the "Page Setu " menu item of the "File" menu of the Netscape using Applet or JavaScript so that i can remove the header and footer from the page that will be printed.

    A print command should be given from a button on the page. Hope someone helps me

    If you have secondary hard drives or other writable volumes connected to your Mac, each contains an invisible Trash folder named .Trashes at the root (top) level of the volume, which in turn contains an invisible Trash folder for each user.
    -from -> Solving Trash Problems.
    Clinton

Maybe you are looking for

  • Mapping to intermediate XML

    Hi, I am reading a flat file and converting it to XML. I use a file adapter to read flat file and write to flat file in this scenario. Now I want to insert the XML into database as CLOB. Can I do this in one SOA composite canvas? I can put file adapt

  • Issue with gamecenter?

    I updated my OS on my iPod touch 4th gen on a Mac,  I run off a windows xp professional laptop.  It did erase all my apps, music, etc. but thought it would not be a big deal since I had a backup on my laptop's external drive.  I was able to reload al

  • Lucreate with zfs system

    Hello, Am relatively new to using liveupgrade to patch solaris 10 systems, but so far have found it to work pretty well. I have come across an oddity on a system that I would like to have explained. The system has solaris 10 installed, with one zfs p

  • Decentralized Content Server

    Hello, We are trying to configure a system where the R/3 system is on the West Coast of the US and the CAD systems are in Florida. If I position the Content Server in Florida, is there a way to access the Content Server directly without sending large

  • Lm sensors not getting info from intel board

    Greetings, I am having the same issue that was posted here in 2008 but i can't seem to find a resolution: http://www.spinics.net/lists/lm-sensors/msg21829.html does anyone know how to get the intel dp35dp to work with lmsensors? thanks! Adam