Piot table customized grouping of column header

Dear Friends.
I have a requirement from the client. I have 4 measures with the column heading A,B,C,D year wise
Now my requirment in I want to add header on top of the A,B,C,D column, Say X and Y.
Under X - A,B and under Y-C,d will be grouped.
.......X.....!.....Y........
.....A..B...!...C..D......
Please suggest how to do this in 11g.
thanks nd regards
fiaz

Hi Ian,
You can't directly set the alignment of column headers or data. The way it works is that you can specify a columnFormat inside your column for example:
<columnFormat columnDataFormat="iconButtonFormat"/>
And then UIX will decide how to align the header and data in teh column for that type of data. I don't believe there is a way to control the alignment of the column header independently of the columnDataFormat.

Similar Messages

  • Select from table in group of columns and generate a sequence number

    I have to select data from a table in group of columns and generate a sequence for every group resetting the sequence to start from 1 onwards.
    For example:
    Data:
    Col1 Col2 Col3 Col4
    A NA KA 2009-08-13
    B NA KA 2009-08-13
    C NA KA 2009-08-13
    A NA KA 2009-08-13
    B NA KA 2009-08-13
    A NA KA 2009-08-13
    Expected output from Select Statement:
    Col1 Col2 Col3 Col4 Seq_No
    A NA KA 2009-08-13 1
    A NA KA 2009-08-13 2
    A NA KA 2009-08-13 3
    B NA KA 2009-08-13 1
    B NA KA 2009-08-13 2
    C NA KA 2009-08-13 1
    How can this be possible with a SELECT statement? Is it possible to assign seq numbers for a group of columns and reset it when it changes? In the above example, all columns form the key to generate the seq number
    I know it can be done using Stored procedures and that is how I am doing it now by introducing a temporary table.
    Can anyone help me in this regard? Please let me know if the question is vague to understand!
    Thanks,
    Nachi

    with t as(select 'A' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
    union all
    select 'B' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
    union all
    select 'C' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
    union all
    select 'A' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
    union all
    select 'B' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
    union all
    select 'A' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual)
    select t.*,row_number() over (partition by col1,col2,col3,col4 order by col1,col2,col3,col4) from tYou can replace partition by col1,col2,col3,col4 with only columns that you need for grouping condition
    and also order by you can just do on the column you need.

  • Internal Table to Excel with Column Header line

    Hello everyone,
    I need to download Internal table data to excel with a column header line.
    My Code is as follows:
    TYPES:  BEGIN OF y_hdr,
            head(30) TYPE c,
            END OF y_hdr.
    Data:  t_hdr TYPE STANDARD TABLE OF y_hdr.
    Fill internal table t_adrcdata
    fill the header table t_hdr
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename                      = C:\test.xls
            filetype                        = 'DBF'
        IMPORTING
          TABLES
            data_tab                        =  t_adrcdata
           fieldnames                       =  t_hdr
         EXCEPTIONS
           file_write_error                = 1
           no_batch                        = 2
    This code gives me a row with column headers.
    However they are all truncated after 10 chars.
    The truncation is independent of column data length. Data could be of length 2,5 or 40 but the header always displays upto 10 chars.
    Keeping the filename as test.xls, when I download it in ASC format instead of DBF the headers are of proper length.
    What could I be doing wrong?
    I know this topic has been discussed before but my question is pertaining to DBF Format download. The reason I chose DBF format is because it downloads the data in DB format and does not give in to Excel formatting.
    FOr example in ASC format:
    1, A field of type Char(12) used to get downloaded into excel without the leading zeros. 000012345678 --> 12345678
    2. Date in format dd-MMM-yyyy in a char(11) field used to get downloaded to excel in dd-MMM-yy format.
    When I chose DBF, this issue was resolved. However, the column headers got truncated at 10 chars.
    Please feel free to recommend any other way of downloading to Excel and preserving format if this method is incorrect/ there is a better way.

    Hi,
    Take 'ASC' format for file type.
    But when you declare your internal table to pass for FM you have to create all the fields with char.
    Example:
    data: begin of it_exl occurs 0,
            bukrs(04) type c,
            belnr(10) type c,
            buzei(03) type c,
    end of ut_exl.
    You need to manipulate your date format and other stuff before appending to this internal table.
    Thanks,
    Deepak.

  • Longitudinal table allignment with out column heads

    I need a table should be popup in the new window but without column heads but it consists all the columns one under one in a single column and the corresponding values are in the next column.
    Requirement:
    I have a page consists a table with columns "Acc No, service No, Bill Amt, Older Bills". This older bills column consists a button in its column.
    When ever we click on the button the "Older Bills" page have to be opened with a table automatically populated the Acc No, Service No, 1st mont bill, 2nd month bill, 3rd month bill.All these colums are to be shown in a single column but the values should be shown in the next column.

    Pop up window>> Several old threads which will tell u approach for js window.
    I need a table should be popup in the new window but without column heads
    >>You can give column header promt as null.
    Requirement:
    I have a page consists a table with columns "Acc No, service No, Bill Amt, Older Bills". This older bills column consists a button in its column.
    When ever we click on the button the "Older Bills" page have to be opened with a table automatically populated the Acc No, Service No, 1st mont bill, 2nd month bill, 3rd month bill.All these colums are to be shown in a single column but the values should be shown in the next column.
    >>Have same AM for pop up and base page, so that VO state is shared. In pop up page.... u need to get values from one VO and build another longitudinal table VO .
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Change the column header according to the filter value ?

    Hello Experts,
    I have a requirement in which the customer wants to change the column header of the Sales Volume Key Figure to change according to the filter selected for the Calender Year / Month in the Free characteristics.
    I could display the header as 'Sales Volume for OCT 2000' as this is the value restricted intially in the free characteristics for Calender Year / Month.
    Any suggestion is appreciated.
    Thanks,

    Ioan Thanks for the reply.
    Probably my previous explanation of the problem was a little incomplete. Let me give a better description.
    The situation is something like this.
    I have a requirement in which the customer wants the column header to reflect the 'keep filter value' restriction that he does dynamically in the query report.
    i.e:
    -- usually the kf column header shows 'sales volume'
    -- column header with text variable of the Calender year / month variable -- 'sales volume for 2000 oct'
    -- but when the report is run, if the user wants to go and change the filter:   calender year / month > rt clk > keep filer value > select Jan 2003.
      The kf column header still shows 'Sales Volume 2000 Oct'
    How to make the column header change to 'sales volume for Jan  2003' ?
    Any suggestions greatly appreciated.
    Thanks,

  • In Pivot table how to show folder heading of a Measures column

    Hi gurus
    I am using 11.1.1.6.6 version
    Any idea how to show column heading of a measure column in Pivot table view.
    for Dimension its working fine
    I have 3 dimension column and 12 measure column in my report

    Hi Santosh Sutar,
    Did you mean that you want to hide/show the rows in an worksheet? If I understood correctly, there is no such API in apps for Office at present. Most of functions are used interop with data.
    If you want apps for Office to support this function, I suggest that you submit the feedback from link below:
    Customer Feedback for the Office Developer Platform
    And you get learn more about apps for developing from link below:
    Build apps for Office
    Regards & Fei
    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.

  • How to group few columns in ALV in web dynpro under a common column header?

    Hi All,
    Please let me know the way to group few columns in ALV display under a common column header in a web dynpro application .
    For e.g.
    year
                                 |  Q1      |    Q2      |......
    Thanks in advance.
    Regards
    Archana

    Hi Archana,
    Creating a group header is possible in case of normal Table UI element. I don't think any such functionality exists in case of ALV. Just go through Thomas' comments in this thread: header group in wd alv.
    I hope it helps.
    Regards
    Arjun

  • Table Column Header Text - Refresh Table

    Hi. A question about programmatically changing the Header Text property of a Table Component.
    I've added code, in the backing bean Setter for the Table component, to change the header text as required.
    The problem is that when the page is rendered, the header changes are not displayed initially. Only after a PPR is performed (on a different component) does the table render with my property changes displayed.
    Am I doing the header text manipulation in the wrong place? Is there a way to refresh the table programmatically prior to it rendering initially (e.g. after the RENDER_RESPONSE phase?)?
    Cheers.

    Hi Bala,
    After following your invaluable advice I now have the table displaying more or less as a I need. The labels are set correctly (from the Attribute Hint that I set in the AttrDefImpl), and the Rendered property for each column is now derived from Expression Language pointing to the same AttributeHints...
    However, I'm still struggling with the DisplayIndex for the table columns. I'm attempting to set the DisplayIndex column property using EL that gets a value from the VO binding FieldOrder control attribute (which contains a numeric value). However, this does not resolve properly and in the column Property Inspector the DisplayIndex doesn't seem to display correctly itself...
    I'm wondering if this is because the FieldOrder control attribute is a String while the DisplayIndex takes an Integer. Is there a way to perform some conversion on this in the EL itself? Or maybe that is not the problem.
    Thanks again for all your assistance!

  • SQL recursion problem in custom groups table

    hi all,
    Consider the following seemingly simple table structure ( with sample rows ) :
    PERMISSION_ID P_ID DESCRIPTION DESIGNATION
    ============= ==== =========== =======
    1776 Null Z-ENGINEERING 88888
    1860 Null Z-LABORATORY 88888
    1909 Null Z-RESEARCH 88888
    1902 Null Z-PLANT 88888
    1905 Null Z-SOFTWARE DESIGN 88888
    1903 Null Z-BLANKET 88888
    1904 Null Z-OFFICE 88888
    40000 1909 James Gosling 67890
    40001 1909 Edgar Codd 21135
    40002 1904 Alan Turing 85542
    40003 1909 Z-SOFTWARE DESIGN 88888
    40004 1905 Dennis Ritchie 12111
    40005 1909 Z-OFFICE 88888
    40006 1776 Brian Kernighan 84251
    40007 1904 Z-ENGINEERING 88888
    Explanation of table structure :
    (1) All rows with P_ID = {Null} are the root groups, and they all have a uniform DESIGNATION of 88888.
    (2) All rows that starts with 40000 are memberships; under these memberships scheme, a root group can become a member of another root group, cascaded, which means that root groups can be members of another root group or they can be members of multiple root groups ( and cascaded even ), as long as the cascade do not end up in a circular reference, or an endless cycle. The idea here is so that the memberships for both groups and human members can be chained.
    (3) Both root groups and human memberships are stored in the same table above, using rules (1) & (2) as the logic.
    (4) No additional table may be added to this table in order to implement rules (1), (2), & (3); columns may be added, though.
    (5) Use only plain SQL statements ( SELECT, CONNECT BY, PRIOR, NOCYCLES, etc ... ); PL/SQL, functions, and procedures are strongly discouraged.
    Desired output of the query is as follows :
    The SELECT query should return a list of all human members which belongs to a specific root group. Using the example table above, the initial query should have the following intended result set:
    (start with p_id = 1909) -- 1909 is root group Z-RESEARCH
    PERMISSION MEMBERS
    ========== =======
    40000 James Gosling
    40001 Edgar Codd
    40003 Z-SOFTWARE DESIGN
    40005 Z-OFFICE
    However, Z-SOFTWARE DESIGN has it's own member , Dennis Ritchie, so the updated result set should be :
    PERMISSION MEMBERS
    ========== =======
    40000 James Gosling
    40001 Edgar Codd
    40004 Dennis Ritche
    40005 Z-OFFICE
    Same is true for Z-OFFICE, but it's member is another root group, Z-ENGINEERING, whose member is Brian Kernighan, thus the final result set list would be as follows, which is the final intended list :
    PERMISSION MEMBERS
    ========== =======
    40000 James Gosling
    40001 Edgar Codd
    40004 Dennis Ritche
    40002 Alan Turing
    40006 Brian Kernighan
    The problem now would be, how to generate the final intended list using the table scheme illustrated above, with no additional tables, but possible additional columns, using Oracle's SELECT ... START WITH ... CONNECT BY PRIOR ?
    Any theoretical advice is greatly appreciated; even our consulting firm cannot solve this problem. Coming here to the Oracle Forums itself is a last resort. Perhaps someone here can take a gander at this seemingly simple problem. Fact is, solving this problem has lots of applications, one of which is the ability to mimic Outlook's nested distribution groups list.
    Thank you so much for your time.

    Ok, first time back at a database, here my 2 cent.
    I use the with-clause to simulate your sample-data, i have also added the master-reference-column i suggested. Just restrict the result to the group you want to. (i only put the id's in the query)
    WITH DATA AS (SELECT 1776 PERMISSION_ID, TO_NUMBER(NULL) P_ID, TO_NUMBER(NULL) MASTER_PERMISSION_ID, 'Z-ENGINEERING' DESCRIPTION,  88888 DESIGNATION FROM DUAL
                  UNION ALL
                  SELECT 1860, Null, Null, 'Z-LABORATORY', 88888 FROM DUAL
                  UNION ALL
                  SELECT 1909, Null, Null, 'Z-RESEARCH', 88888 FROM DUAL
                  UNION ALL
                  SELECT 1902, Null, Null, 'Z-PLANT' ,88888 FROM DUAL
                  UNION ALL
                  SELECT 1905, Null, Null, 'Z-SOFTWARE DESIGN', 88888 FROM DUAL
                  UNION ALL
                  SELECT 1903, Null, Null, 'Z-BLANKET', 88888 FROM DUAL
                  UNION ALL
                  SELECT 1904, Null, Null, 'Z-OFFICE', 88888 FROM DUAL
                  UNION ALL
                  SELECT 40000, 1909, Null, 'James Gosling', 67890 FROM DUAL
                  UNION ALL
                  SELECT 40001, 1909, Null, 'Edgar Codd', 21135  FROM DUAL
                  UNION ALL
                  SELECT 40002, 1904, Null, 'Alan Turing', 85542 FROM DUAL
                  UNION ALL
                  SELECT 40003, 1909, 1905, 'Z-SOFTWARE DESIGN', 88888 FROM DUAL
                  UNION ALL
                  SELECT 40004, 1905, Null, 'Dennis Ritchie', 12111 FROM DUAL
                  UNION ALL
                  SELECT 40005, 1909, 1904, 'Z-OFFICE', 88888 FROM DUAL
                  UNION ALL
                  SELECT 40006, 1776, Null, 'Brian Kernighan', 84251  FROM DUAL
                  UNION ALL
                  SELECT 40007, 1904, 1776, 'Z-ENGINEERING', 88888  FROM DUAL
    SELECT GROUP_REFERENCE,
           THE_USERS.PERMISSION_ID,
           USER_NAME,
           FROM_GROUP
      FROM (SELECT PERMISSION_ID,
                   DESCRIPTION FROM_GROUP,
                   CONNECT_BY_ROOT(PERMISSION_ID) GROUP_REFERENCE
              FROM (SELECT PERMISSION_ID, TO_NUMBER(NULL) P_MASTER, DESCRIPTION
                      FROM DATA
                     WHERE DESIGNATION=88888
                       AND P_ID IS NULL
                    UNION ALL
                    SELECT MASTER_PERMISSION_ID PERMISSION_ID,  P_ID P_MASTER, DESCRIPTION
                      FROM DATA
                     WHERE DESIGNATION=88888
                       AND P_ID IS NOT NULL       
            CONNECT BY PRIOR PERMISSION_ID=P_MASTER
            START WITH P_MASTER IS NULL
           ) THE_GROUPS,
           (SELECT P_ID PERMISSION_REFERENCE,
                   PERMISSION_ID,
                   DESCRIPTION USER_NAME
              FROM DATA
             WHERE MASTER_PERMISSION_ID IS NULL
               AND P_ID IS NOT NULL
           ) THE_USERS
    WHERE THE_GROUPS.PERMISSION_ID=THE_USERS.PERMISSION_REFERENCE

  • How to insert a button on the column header of a table in webdynpro java

    Hi
    Can anyone tell me how to insert a button on the column header of a table in webdynpro java?
    regards
    sunit

    Hi sunit,
    Instead of adding button in the column header , in the column
    add a fixed top cell.
        right click on the column
        Insert FixedTopCell
        Right click on the fixedTopCell
        insert Editor.
       select button.
    then button will be only in the top most row.
    Hope it will satisfy ur requirement
    Regards
    Smitha

  • How to set title/text for ALV table column header in WD ABAP

    Hello,
    I am working in WDA using SALV_WD_Table to display data in table. I need to change the column header text, the obvious way is to get the column header and call the method SET_TEXT to set new text / title. However, this method does NOT work, it does not change the column header text. I also tried the SET_TOOLTIP, this one works, but SET_TEXT does not work. Anyone has idea why this not working and do you find any go-around solution?
    My version is NW 7.0
    Thank
    Jayson

    Hi jason ,
    For setting Heder text for your ALV table
    ip_confing type ref to CL_SALV_WD_CONFIG_TABLE.
    "set alv table header
      ip_config->if_salv_wd_table_settings~r_header->set_text( 'Test ALV Header functionality' ).
    first you have to hide the DDIC text and then try to set your own text .
    "modify columns
      LOOP AT lt_columns INTO ls_column.
        lr_column = ls_column-r_column.
        CASE ls_column-id.
          WHEN 'MANDT'.
            "hide this field
            lr_column->set_visible( cl_wd_abstr_table_column=>e_visible-none ).
           WHEN 'SEQNR'.
            "set header to different string
            lr_column->r_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_none )." use this line to hide ddic text
            lr_column->r_header->set_text( 'Position' ).     
        endcase.
      endloop.
    Regards
    Chinnaiya P

  • Download internal table data into excel sheet with column heading and data

    Hi,
      I am having one internal table with column headings and other table with data.
    i want to download the data with these tables into an excel sheet.
    It should ask the user for file name to save it on their own name. They should give the file name in runtime and it should be downloaded into an excel sheet.
    Can anyone tell what is the right function module for downloading these two internal table data with column heading and data.
    what we have to do for storing the file name in runtime.
    Can anyone help me on this.
    Thanks,
    Rose.

    Hi Camila,
        Try this
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = PATH2
       FILETYPE                        = 'XLS'
      TABLES
        DATA_TAB                        = IT_DATA
       FIELDNAMES                      = IT_HEADINGS
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22

  • How to display the sorting arrows in the table column header

    Hi
    I am doing a sorting for some columns from the click of the table column headers, In Developer studio, we are able to view the up and down arrows, I need that also to be made visible at run time, so that the user knows that there exists sorting based on that particular column. Is there any other way of doing it ? I cant place more than one control on the header or wrap the text to two lines..also. please clarify. thanks

    I assume you are using NW 04.
    The table column header contains a IWDCaption element which may display an icon and a text. See property IWDCaption.imageSource.
    The table tutorial might also be helpful.
    Armin

  • Variable column header in table control

    Hi all, I need a variable column header text in table control. I am doing the following but is not working,
    I have deleted the header field that the wizard created me thorugh a internal table, and put a I/O field instead.
    I have assigned a variable in the name of this field.
    In the PBO I am writing the following:
      LOOP AT   i_details
           WITH CONTROL tc_detail
           CURSOR tc_detail-current_line.
        MODULE m_modify.
      ENDLOOP.
    MODULE m_modify OUTPUT.
      IF tc_detail-current_line EQ '1'.
        var1(header column text) = 'text1'.
        var2(header column text) = 'text2'.
      ENDIF.
    ENDMODULE.
    But with this is not working, the rare thing is that the first time that the screen is shown, this value is not appearing. After press Enter or some action, the value appears.
    I am not doing anything in PAI. The only code that is in PAI is:
    Loop at i_details.
    endloop.
    Nothing more.

    Hi,
    First just drag and drop all the fields that are to be a part of the table control. Then drag the label on the column header. Give name and text to the label.
    Regards,
    Nikhil

  • Dynamic Column Heading in Table Control

    Hi
    I have a table Control which needs dynamic heading for the first column. So i dragged a label and placed it on the Column 1 header. I gave the corresponding declaration and assignment in TOP include for that screen field. I also tried assigning values in the PBO of the screen also. I even tried replacing the Label with an I/O field. It is not allowing.
    Nothing is working. Any suggestions.

    Instead of the text field for your column heading, put an input/output field there, and specify the field for output only. Then assign the field with the header that you want on your PBO.

Maybe you are looking for

  • ADF-Faces and JDeveloper 11

    I have an application that already done and running, the JSPs of this application almost generated with JHeadStart, the components are ADF-Faces components with the ADF-Faces implementation of the release 10.1.3.3 of Jdeveloper. I'd like to find a wa

  • Copying Master Data Tables

    Hi Currently we have 0COSTELMT which is compunded to 0C0_AREA. Now I have to create ZCOSTELMT which is not compunded to 0CO_AREA. Also I have to create a new Cost Element Master table which is a copy of the existing Master table, except that Controll

  • Media in IBook Author

    Is there a limit to how much media you can include in a book created in IBooks Author? At some point would it become slow and cumbersome with too many photos, video, etc.

  • Mail to group reveals individual addresses

    Hi, I used to be able to send mail to a group, only the group name showing in the To: field. Now, when I try the same, as soon as I select the group in Address Book to go into the To: field in Apple Mail, it shows all the addresses in the group. When

  • Upgrading wordpress from the wp admin panel. How?

    Hi, I have major problems getting wordpress running properly with the LAMP settings found in the wiki. Thing is, the wordpress blog runs fine, but fails when updateing, installing or upgrading from the wordpress admin panel. I've tried chown http:htt