Two sub columns under a column of a table

Dear Gurus,
I've a requirement which is very new to me. I've an ALV table with say some 9 fields. Of 9 fields, 2 fields or say columns should 2 sub columns each under which the related data will come.
For ex:
Field 1         Field 2        Field 3         Field 4        Field 5       Field 6      Field 7      Field 8       Field 9
                                                            F4.1 | F4.2       F5.1 | F5.2
And the corresponding data is passed from the z table.
Is it possible to achieve this requirement?? 
Please suggest the logic for the same.
Regards,
-Syed.
Edited by: wahid hussain syed on Jun 5, 2009 7:57 PM
Edited by: wahid hussain syed on Jun 5, 2009 7:58 PM
Edited by: wahid hussain syed on Jun 5, 2009 7:58 PM

Hi Syed,
Header grouping functionality is possible in case of normal Table UI element. You can refer standard component WDR_TEST_TABLE for this. But such functionality does not exists in case of ALV. Just go through Thomas' comments in this [thread|header group in wd alv.]:
Regards
Uday

Similar Messages

  • Two date column in a table

    I have a Sales Data warehouse of Retail shops which operate 24x 7 with 2 shifts of 12 hours each. Time for each shift is 7 to 7.
    I have a Calendar Dimension which has all the dates listed.
    TABLE_CALENDAR
    -DAY_KEY NUMBER
    -DAY_DATE NUMBER
    I have a Sales table which has two dates columns: one is the Sales Date whereas another one is the shift date. So there are two joins (Foreign keys) from Sales Table to the Calendar Table.
    TABLE_SALES
    -SALES_KEY
    -SALES_DAY_KEY
    -SALES_TIME_KEY
    -PRODUCT_KEY
    -SHIFT_KEY
    -SHIFT_SUPERVISOR_KEY
    -SHIFT_CASHIER_KEY
    -SHIFT_DAY_KEY
    -SALES_QTY
    -SALES_AMOUNT
    -COST_AMOUNT
    I need to develop an analysis on these tables where the Area managers look at the sales by day, month and year and Shift Supervisor and Shift Managers want to look at sales by shifts. (Shift Date).
    When I define two joins in OBIEE Administrator, it say that I can have a single join from one dimension. (From Calendar Dimenstion to Sales). this way I can report only by Sales Date.
    How can I report by Shift Date?

    Create 2 date dimensions: one for calendar date, one for shift date.
    Paul

  • New columns in the table control do not appear

    Hi,
    We have a requirement to add two fields(columns) in a table control  for a transaction upon clicking Create button and those two fields should be editable. We have added the two fields in the table control. But, they do not appear in the transaction ( If I delete an existing column, then I am able see the new column).  Have checked everywhere, but not sure if I am missing something here. There is no hide statement used.
    Appreciate help on this.
    Thanks,
    Pavan

    Hi Pavan,
    What I understood is you are adding fields to the table control dynamically.\
    For that you have to use field-symbols to add fields to the work area dynamically.
    ( If this is not your actual requirement share your code with me I will try to solve it. )
    Regards,
    Swaroop

  • Sub Column to be displayed in ALV

    Hi All,
      The requirement is to display an ALV report with sub columns under a column.
      Can anyone guide me on how to display the sub columns under a particular column using ALV?
      Appreciate your help.
    Thanks and Regards
    Krunal Raichura

    Hi,
      we can'd do this by using  Alv no other go, if u want show the sub columns go by Classical reporting.

  • How to Display Sub-Columns using ALV Grid

    Hi ,
      Could someone tell me how to display sub-columns under a parent column using ALV Grid. Do we have any standard Program which has this scenario. Please let me know.
    Thanks,
    Abaper.
    Message was edited by:
            ABAP'er

    you can check all with <b>BCALV* or RSDEMO*</b> in SE38 for all Std
    check below
    BCALV_DND_01                   Drag ALV Row to Tree Folder
    BCALV_DND_02                   Drag Icons from Tree to Rows of the Grid
    BCALV_GRID_DND_TREE            ALV Grid: Drag and Drop with ALV Tree
    BCALV_GRID_DND_TREE_SIMPLE     ALV GRID: Drag and drop with ALV tree (simple)
    BCALV_TEST_COLUMN_TREE         Program BCALV_TEST_COLUMN_TREE
    Rewards if useful............
    Minal

  • How to setup sub columns for a list?

    I've setup a team site (SP 2013 on-prem), and the team wants a list with three columns (Letter, Pleading and Priority.) They would like to select a sub column under the Priority column if it's chosen. For example, if they choose the Priority column they
    could choose "High", "Medium" or "Low".

    Hi,
    This is not possible Out Of the Box (OOB).
    Instead you can create 2 lists and relate these columns between them.
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • How to split a column into 4 sub columns of table in adf

    i hav a table and i need to make a column in to 4 sub columns. ie i havae column called scheduled under the same
    column i have 3 column releted to scheduled . how i make it possible
    Regards
    Rajesh

    Hi Rajesh,
    Something like this?
    <tr:column headerText="Schedules">
      <tr:column headerText="Schedule A">
        <tr:outputText value="#{row.bindings.ScheduleA.inputValue}"/>
      </tr:column>
      <tr:column headerText="Schedule B">
        <tr:outputText value="#{row.bindings.ScheduleB.inputValue}"/>
      </tr:column>
      <tr:column headerText="Schedule C">
        <tr:outputText value="#{row.bindings.ScheduleC.inputValue}"/>
      </tr:column>
      <tr:column headerText="Schedule D">
        <tr:outputText value="#{row.bindings.ScheduleD.inputValue}"/>
      </tr:column>
    </tr:column>Regards,
    Chan Kelwin

  • Column having minimum value of two calculated columns

    Hi All
    Please help me out in the following scenario.
    I have to get the data from two tables so whatever columns I need put it in the select statement but for two columns I have to do calculations and did assigned an alias name to those two calculated columns, lets say X & Y.
    I have to show the data for column Z, the rule for this column is to take minimum value of columns X & Y.
    I have to use purely a select statement and retrieve the data. Camnt do any changes or creating functions on database.
    thnaks in advance.

    @Sven
    First thought is using minimum function and throwed me error and then realized that min function can be used on a column and then searched for function to find minimum of calculated columns, could n't find out.
    Then thought of using case or if statement to find out the minimum, felt thats not a good idea and also thought of using nested sub query, could n't achieve the desired.
    Actually I didnt know about the least function, now I
    Anyway thnak you all.

  • How to Display Sub-Columns using ALV

    Hi experts,
        Could someone tell me how to display sub-columns under a parent column using ALV. Do we have any standard Program which has this scenario. points are guaranteed for the right answer.
    Thanks in advance
    Sreenivas

    you can check all with <b>BCALV* or RSDEMO*</b> in SE38 for all Std
    check below
    BCALV_DND_01                   Drag ALV Row to Tree Folder
    BCALV_DND_02                   Drag Icons from Tree to Rows of the Grid
    BCALV_GRID_DND_TREE            ALV Grid: Drag and Drop with ALV Tree
    BCALV_GRID_DND_TREE_SIMPLE     ALV GRID: Drag and drop with ALV tree (simple)
    BCALV_TEST_COLUMN_TREE         Program BCALV_TEST_COLUMN_TREE
    Rewards if useful............
    Minal

  • How to add a column that shows the difference of two metrics columns?

    I created a pivot table with two metrics columns. One metrics column has the aggregation rule of 'Min', the other has 'Max'. Now I want to add a column to show the difference of these two metrics for each row. Is this possible? How to do it? Thank you in advance.

    Use TimeStampdiff:
    TIMESTAMPDIFF(SQL_TSI_HOUR, MIN(xxxx), MAX(xxx))
    It's in the help file if you need more help.
    regards
    Alex

  • Creation of Z reports for client adding two more column that is Purcahse order and delivery dates with Internal order wise

    HI Experts,
    Can any one help me to add two more column for standard report that is purchase order and delivery dates for Internal order wise.
    But here problem is when i checked with ABAP team they said there is no standard functional module to add two column.
    Please note below :
    Selection criteria is: 1) controlling area
                                  2) Fiscal Year
                                  3) From date and To date
                                  4) Plan Version
                                  5) Order Group.
    My client suggested : S_ALR_87012993 this tcode to run, but we suggested with S_ALR_87013019 as in this tcode we can get all the details
    That is required output fields, as it is showing all details but on yearly basis, he wants this to be period wise and also Abap team is not able to find standard functional module in the second tcode as well.
    Out Put fields to Pop up
    1) Orders.
    2) Budget
    3) Actual
    4) commitment
    5) Alloted
    6) Available
    These are two additional column
    7)Purchase order
    8) Delivery date.
    Require your help to know which all tables are included to extract above out put fields please help me.
    Thanks in Advance.
    Regards,
    Sudesh

    Hi Preeti,
    Thanks for reply, can you please let me know is there any other way to show the output fields.
    As my client is very specific to run the report on period wise, i also tried to execute the standard tcode S_ALR_87013019 and were we are getting all the required outputs to pop up but this is on year wise, but we can also check by period basis by clicking on order number and actual period basis where we can see period basis.
    Also one more question,what is the commitment table which is popping up in this, please advise.
    Thanks in advance.
    Regards,
    Sudesh

  • Sub columns in alv grid display

    hi everyone,
        can anyone tell me the way in which we can include sub-column headings in alv grid display. i.e., for example as shown below.
        column1             column2              column3 
    scol1   scol2         scol3   scol4        scol5   scol6........................
    thanks in advance. Here we are generating the column headings by using fm field catalog merge.
    regards,
    rajsekhar.k

    check this thread, check the sample code in my post
    Re: multiple headers in ALV.

  • How do I count the unique value pairs in two columns of a table?

    I have a table (Table 2) that is populated with data from an imported .csv file. On table 1 I need to count the unique value pairs in two columns of Table 2.
    Here's what I have:
    Date                                        Person
    7/10/2011                         A
    7/12/2011                         W
    7/12/2011                         X
    7/12/2011                         X
    7/12/2011                         X
    7/12/2011                         Z
    7/14/2011                         Z
    7/15/2011                 X
    7/16/2011                         Z
    I'm focusing on person "X" and can easily count how many days that person shows up but what I want is to see on how many unique days that person shows up.
    Here's the result I'm looking for (Person "X" shows up on 2 different days - 3 times on 7/12/2011 and once on 7/15/2011):
    X                    2
    I can't seem to find a function that allows me to do that. I also am not allowed to modify Table 2 so that leaves me to come up with a solution on Table 1.
    Any ideas would be greatly appreciated.

    Hi John,
    Not being allowed to modify Table 2 is a minor inconvenience. Just copy (using a formula) the necessary two columns onto Table 1.
    Yellow columns may be hidden. The procedure progresses from left to right. All formulas are entered into row 2 then filled down that column to the end of the table. The table must be as long as the list in column A of Table 2.
    A2: =Table 2::A
    Fill right to column B.
    Fill both columns down as far as needed.
    I've used actual Date and Time values in column A, formatted to show only the Date part, but the technique will work with text in these cells, provided all cells representing the same 'date' have exactly the same content.
    C2: =A&B
    This concatenates the contents of each row of columns A and B into a single text string.
    D2: =COUNTIF($C$2:C2,C)
    This counts the number of occurrences of the Date&Name string on the current row from the first regular cell in column C (C2) to the current cell.
    E2: =IF(COUNTIF($B$2:B2,B)=1,MAX($E$1:E1)+1,"")
    This constructs the index of first occurrences of each name, in the order they first occur. The index is used by LOOKUP in column F.
    F2: =IF(ROW()-1>MAX(E),"",LOOKUP(ROW()-1,$E,$B))
    This uses the index value created in E as a search-for value to extract a single copy of the names in column B. The result is a list of all distinct names in the list. Note that spelling differences will be counted as distinct names.The IF statement stops the listing when the last distinct name is extracted.
    G2: =IF(LEN(F)>0,COUNTIFS($B,"="&F,$D,"=1"),"")
    This counts the number of 'first occurrences of distinct Date & Name strings for each name on the list (ie. the number of distinct dates on which each name appears in the original list).
    All of the functions used are described, with at least one example for each, in the iWork formulas and Functions User Guide. You can download the guide, and the Numbers '09 User Guide, via the Help menu in numbers.
    Regards,
    Barry

  • Filename seperately & Putting data from Hash Map to two different columns

    The following code produces the output as :
    $ java getNamefile
    File Name : reaper.txt
    File Name : Testing
    Is it possible to just get the file name "reaper" from it instead of reaper.txt
    import java.io.*;
    class getNamefile
         public static void main(String[] args)
              File f1 = new File("C:/javamyprograms/reaper.txt");
              File f2 = new File("C:/javamyprograms/Testing/");
              System.out.println("File Name : " + f1.getName());
              System.out.println("File Name : " + f2.getName());
    }Secondly I am trying to put the values from a HashMap into ".xls"
    PrintWriter out = new PrintWriter (new FileWriter("Unique_words_count" + file) + ".xls");
    and out.write(key + " " + hm.get(key));
    This put the values in the same columns. I want the results to be two different columns like
    column1 column2
    key1 value1
    key2 value2
    Please do advise. Thanks in advance.

    Is it possible to just get the file name "reaper"from it instead of reaper.txtActually, I ran a test, and
         System.out.println(  "file name portion == " + ( f.getName().split( "\\." ) )[ 0 ] );works also:
    This has the same effect as:
         String fileName = f.getName();
         String splitFileName[] = fileName.split( "\\." );
         System.out.println(  "file name portion == " + splitFileName[ 0 ] );Now that I think about it, the second form is more easily understood. There is really no reason to do it the first way. Just interesting to note that you can.

  • How to get two empty columns in reporting?

    Hi Experts,
    How to get Two empty columns in  a report, i have taken a formula and i have given '=0' in the formula box after executing the query that two columns containing zero's, but i don't want zero's, i want to display empty columns.
    pl help to do this,
    thanks & regards
    venakt

    Hi
    In the Query designer go to Properties and Select Active n Zero Supression
    also select Supress Zeros from the drop down.
    Regards
    M.A

Maybe you are looking for

  • How do I get Front Row to work with Lion?

    Hello fellow Mac users, How do I get Front Row to work with Lion? I have an iMac 27 inch computer and is the sole entertainment provider for my bedroom. I refuse to put a TV in my room and wanted to know how to get Front Row to work again on my mac?

  • How do I view the contents of my ipod on the new itunes?

    I used to always drag and drop and delete manually off my ipod, but now I can't seem to find the ipod itself on itunes. I can switch between the itunes store and my library but I can't seem to view the actual ipod. Is this apple saying I need to sync

  • Trying to capture audio from the computer output.

    I'm trying to figure out how to capture the sound output, and either record it as a .wav, .mp3, or garage band track. The end goal(s): 1. Full screen video and audio capture -- for example, capture a window as a video, and any sound effects generated

  • RAM optimization in macbook pro

    hi there, i have a 2.8 uni mbp that i just upgraded with 6g of ram. however, my system doesn't seem to use all of it. using activity monitor, i see that my system has 3.93g free. i know that my system is capable of utilizing the ram because when i st

  • URGENT: Problems installing 9.2.0.4 on Linux ES 4

    The installation appears to go OK but when I try to bring up the database configuration assistan (dbca) it shows up blank? Is 9iR2 not compatible with Red Hat ES 4? I've tried several installs on the same box with failure every time. Help!