How to display sub table and NOT repeat each detail line?

I am going nuts trying to get this thing to display correctly, so I am someone can help me. I am trying to display a sub table (not subreport - tried that and it doesn't work) for detail records. For Example on an invoice items may have child items.
I am using Crystal 11
I have two tables iDetail and iSubDetail
My detail section looks like this:
D   iDetail.itemNum                              iDetail.price
           iSubDetail.itemNum
I have a Left Outer link from iDetail.itemNum  --> iSubDetail.itemNum
I should see something like this:
itemOne                  $50.00
     subItemOne
     subItemTwo
     subItemThree
     subItemFour
itemTwo                $25.00
itemThree              $30.00
etc...
Instead, my Crystal report displays this:
itemOne                  $50.00
     subItemOne
itemOne                  $50.00
     subItemTwo
itemOne                  $50.00
     subItemThree
itemOne                  $50.00
     subItemFour
itemTwo                $25.00
itemThree              $30.00
etc...
and of course the total for the invoice is wrong.
I have tried all the different links and a subreport, but I cannot get it to display correctly. Does anyone have any ideas??

I tried subreport but I can't figure out how to turn it OFF for non-relative items; from the above example data I would get with a subreport:
itemOne $50.00
  subItemOne
  subItemTwo
  subItemThree
  subItemFour
itemTwo $25.00
  subItemOne
  subItemTwo
  subItemThree
  subItemFour
itemThree $30.00
  subItemOne
  subItemTwo
  subItemThree
  subItemFour
Looks great for itemOne, but I can't turn it off for itemTwo and itemThree. I have tried hiding the subreport if iDetail.itemNum =
iSubDetail.itemNumi, but if SubDetail table is accessed it repeats the iDetail record like the original post.
I tried hiding it in the subreport, but it does not know what the main report record is. I couldn't find anyway to PASS the itemNum from the main report to the subreport. If I could pass it as a variable, I could just hide the subreport when it is NE to iSubDetail.itemNum.
I kind of got it working by grouping the iDetail record by itemNum. However, the problem with that is when there really is multiple iDetail records, the invoice only shows one!! So, I would still like to find a better solution,
Thanks for your reply.

Similar Messages

  • How to force BI Server to pick from the Agg table and not the Fact table?

    Hi All,
    I have 3 tables as the Sources in the Key measures. 2 are fact tables and the other one is the agg table.
    E.g.
    Fact 1 at A,B,C,D and E level
    Fact 2 at A,B,C level
    Agg at A,B,C level which contains the measures from the Fact1 and Fact2
    So when I select the measures from the Agg which are coming from Fact1 the Agg table get fired and when I select measures from Agg which are coming from Fact2, the Fact2 table gets fired in the SQL Query.
    Now my question here is there anyway to tell BI Server that when I select Fact2 measures fire the Agg table and not the Fact2 table. The reason being the Agg and Fact2 tables are at the same level.
    But I need to keep the Agg table as it is one level higher than the Fact1 tables.
    Any pointers would be helpful.

    hi,
    you explain us your situation really good.but you forgot to tell us the most import,the measures in aggregate table and the aggregated dimensions.
    meaning,you have 7 measures aggregated in some levels of your dimensions tables?if yes,there is no possibility Bi goes anywhere else..(by choosing only these measures and the defined levels at your dimensions..)
    One more thing,if you choose a combination of your 2 fact data sources,bi goes?where???
    hope i helped...
    http://greekoraclebi.blogspot.com/

  • ALV: how to display only subtotals and total rows in the output

    ALV: how to display only subtotals and total rows in the output
    i am getting output
    i am getting subtotals for respective fields
    but i want to display only subtotals and totals rows in the output
    i have tried the
    totals_only   parameter in slis_layout_alv
    but it is not working.

    hi,
    For TOTAL
    For the amount field / quantity field in the field catalog give DO_SUM = 'X'    for WHOLE total
    For SUBTOTAL
    For subtotal you will have to create an internal table sort..Let's say you want to do subtotal for each customer..
    DATA: lt_sort type SLIS_T_SORTINFO_ALV,
    ls_sort type slis_sortinfo_alv.
    CLEAR ls_sort.
    ls_sort-spos = 1.
    ls_sort-fieldname = 'Give the field name that you do the sum'.
    ls_sort-up = 'X'.
    ls_sort-subtot = 'X'.
    APPEND ls_sort TO lt_sort.
    fieldcatalog-do_dum = 'X'.
    for subtotals
    WA_SORT-FIELDNAME = 'ERSDA'.
    WA_SORT-SPOS = '2'.
    WA_SORT-UP = 'X'.
    WA_SORT-SUBTOTAL = 'X'.
    APPEND WA_SORT TO IT_SORT.
    Refer
    http://help.sap.com/saphelp_erp2004/helpdata/en/ee/c8e056d52611d2b468006094192fe3/content.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/doesnt-function-event-subtotal_text-in-alv-713787
    regards,
    Prabhu
    reward if it is helpful

  • How to display all tables residing in my database

    i'm using 10g express edition.
    i'm developing a .net application using oracle
    i want display table infomation in a datagrid
    for that i need to select tables fromthe database using the interface given by them
    in that i found server name field.....what it actually means?
    also how to create a new database in 10g and how to display all tables residing in the database?
    pls help me
    thanking u
    chaitanya

    user11359516 wrote:
    i want display table infomation in a datagrid
    select owner||'.'||table_name owner_table_name
      from all_tables   
    user11359516 wrote:in that i found server name field.....what it actually means?i'm not sute what you mean by server name field? if you refer to table column name see this code below:
    select owner||'.'||table_name||'.'||column_name table_column_name,
           decode(data_type,'VARCHAR',data_type||'('||to_char(data_length)||')',
                            'VARCHAR2',data_type||'('||to_char(data_length)||')',
                            'NUMBER',decode(data_scale,0,data_type||'('||to_char(data_precision)||')',
                                                      null,data_type,
                                                      data_type||'('||to_char(data_precision)||','||to_char(data_scale)||')'),
                            data_type) type,
                            nullable
      from all_tab_cols
    order by table_name, column_id

  • How to display multiple tables from database using netbeans swing gui

    plz reply asap on how to display multiple tables from database using netbeans swing gui into the same project

    Layered Pane with JTables or you can easily to it with a little scripting and HTML.
    plzzzzzzzzzzzzzzzzz, do not use SMS speak when posting.

  • How to display Current Year and Month in Drop Down list

    Hi Dear friends,
    I am devloping a report. It has got 2 pages--input and output(Report) page.
    IN input page, user will select Month and Year from drop down list as one of the input parameters. (seperate drop down list 4 month and year)
    Now, my problem is:
    HOw to display current month and year by default in the dropdown list...........
    I hope my question is clear.
    Please help.
    Regards,
    ASh

    NO da,
    it is not working.
    First i tired with for-loop. I initialized variable "i" to -2 (i=-2) I would get the year drop down list from 2003 but, by default 2003 would come.
    So, i posted the question.
    I tried your code. It is giving following error.
    A Servlet Exception Has Occurred
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured between lines: 122 and 127 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:182: Invalid type expression.
    first.set(Calendar.YEAR, 2003)
    ^
    An error occured between lines: 127 and 131 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:186: Invalid declaration.
    out.write("\r\n \r\nYear : \r\n \r\n"); ^ An error occured between lines: 198 and 203 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:282: Invalid type expression. first1.set(Calendar.YEAR, 2003) ^ An error occured between lines: 203 and 207 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:286: Invalid declaration. out.write("\r\n \r\nYear :\r\n \r\n");
    ^
    4 errors
    Pls. Help.
    Regards,
    Ashu

  • How to display column headings only once in each page with repeated blocks

    Hi,
    I have a report with 1 block on one column. The block has a table in it and will repeat in one page.
    I need to display the column headers only in the beginning of each page. Can someone share your experience in implementing this ?
    Thanks for your help.

    >
    andyhchsu wrote:
    > Hi,
    > I mean in each block within section, I only need to display the table header once in each page.
    > However if I check table header, it will display repeatedly. Any way to get around this ? Thx.
    The trick I use to do that is turn off all the headers on the block (table and break) and put the header information in its own block above the section and set the new header block to repeat on each page.  You just have to remember to resize the columns in the header block if you make changes to the column sizes in your data block.

  • 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

  • Urgent : how to calculate sub total and grand total in smart forms

    Hi Friens..how to calculate sub total and grand total in smart forms..How to print them in smart forms...Also kindly explain how to handle events in smart forms..Thanks in advance

    Re: Subtotal with Table Node in smartforms

  • Inner join on Buffred table and not buffered table.

    Hi guys,
       Can you suggest me how can i write select query using inner join on buffered table and not buffered table. i written like this. is it right?
    SELECT a~vbeln                         
             a~vkorg   
             a~kunnr                         
             a~kunag                         
             a~wadat_ist 
             a~xblnr                         
             b~bukrs
       FROM likp AS a INNER JOIN tvko AS b
        ON avkorg = bvkorg BYPASSING BUFFER
      INTO TABLE itab_likp
      WHERE vbeln = s_vbeln.              
    Thanks.
    RAJ

    Hi Raj ,
    Please find below my Commentes :
    1. When you use "Bypassing buffer" clause in Select statement , the data what is there in the buffer of application sever is always ignored and Read is performed from the Physical database always. This Clause is advisable where you require realtime data (Not recommended generally in reporting)
    2. It is advisable that you should not use small table in the innerjoin with big table. In the query you have written there are 2 tables:- LIKP and TVKO outof which TVKO is a master table containing very few records than LIKP (Contains huge data for Delivery header).
    So my recommendation will be : -
    1. Eliminate the "Bypassing Buffer" clause from your Query
    2. Break the select query into 2 select queries breaking the join and with some ABAP logic populate the Internal table "itab_likp".
    This will be optimum way inwhich you can write the select query for your senarion. Also Ensure that indexes are being used for better selectivity.
    Hope this will help to you.
    Regards,
    Nikhil

  • How to display smartforms table lines useing different background colour

    Hi all:
    How to display smartforms table lines useing different background colour .
    for example:
    line1:green
    line2:red
    line3:green
    line4:red
    line5:green
    line6:red
    line7:green
    line8:red
    Any help is highly appreciated!!
    启明星

    Hi,
    Create a two lines one for header and second for data in the table.
    1)In table painter we can find the pencil mark.
    2)select the pencil mark
    3)now select the line which you need to shade
    4) now select the shading colour in the table painter and the provide the resolution up to 100% and select table pattrn for that line.
    5) Now you can use this for the header now only the header gets shaded and the remaining gets unshaded.
    reward points if useful
    Thanks and Regards,
    Nishant

  • How Clean ip Route Table and configuration

    How Clean ip Route Table and configuration?
    Cisco have any best practice?

    Hey Juan,
    your question is not very clear but i believe you want to know how to clean ip route table and configuration. So:
    1. Cleaning IP routing table - clear ip route * - This will refersh the routing table.
    2. Cleaning configuration - It depends on the device however in most of Cisco devices you may clear the startup configurtion and its done :)
    HTH.
    regards,
    RS.

  • 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

  • I have my iTunes on my PC and have an iPod Classic, I have just purchased an iPod touch and want to load all of my Itunes music onto it, how do I do this and not loose my library, I'm not very computer savvy.

    I have my iTunes on my PC and have an iPod Classic, I have just purchased an iPod touch and want to load all of my Itunes music onto it, how do I do this and not loose my library, I'm not very computer savvy.

    You sync music the same way as on the Classic. What you sync to an iPod does not effect the iTunes library on your computer.
    iTunes 11 for Windows: Syncing overview
    or
    iTunes 11 for Mac: Syncing overview

  • I have a 17" Mac Book Pro and a 13" Mac Book Pro...both use the same Apple ID. My wife now wants to change the Apple ID on the 13" to her Apple ID.  How do I do this and not loose the information on that computer?

    I have a 17" Mac Book Pro and a 13" Mac Book Pro...both use the same Apple ID. My wife uses the 13" and now wants to change the Apple ID on the 13" to her Apple ID.  How do I do this and not loose the information on that computer?

    Hello Teddy53149 and welcome to Apple Support Communities,
    Follow this procedure:
    Change your OS X account name and home directory name - Apple Support
    As they recommend and as always when you're messing with administrator accounts back everything up first.

Maybe you are looking for

  • PDF shows background color as white. Prints black. HELP!

    I'm trying to print the screen the way I see it which is a white background with black font and an image, but it won't. I went under preferences and accesibility and replaced document colors to black text and white background. However, it still print

  • Please help - computer illiterate trying to install CS5 master suite - Exit Code 6??

    This is what I have gotten over the course of a full day's installing and uninstalling and installing again: Exit Code: 6 -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 42 error(s), 38 warnin

  • Is CL8MSWIN1251 a subset of AL16UTF16 (or other *UTF*) at all?

    DB: Oracle 9.2.0.1.0 on Linux Client: 9.2.0.1.0 on Windows 2000/XP, Bulgarian regional options Hi, I have big trouble using CL8MSWIN1251 as a client charset, WE8ISO8859P1 as a database charset and AL16UTF16 as a national charset. I do this cause I wa

  • Problem with creating a collection from query

    This is driving me nuts. What I am trying to do is create a collection but the sql to create it is produced dynamically. The query I want to end up with in this example is - select pr.code,pr.description, max(decode(pe.period_beginning,'01-NOV-08',fe

  • Can i use any OWB mapping operator when i generate ABAP

    it seems like in OWB mappings, if i have a SAP table as data source and i want to perform some operations (eg. JOIN, input parameters, expressions) i am limited to generating PLSQL code. all i can get if i want ABAP generated code is a simple table (