Custom report  -LOGIC

Hi,
My Base requirement is to SUM up MB51 material quanity values monthly and also MD04 values for same material, plant, monthly dates and upload it to a custom table .
So my code should update monthly a custom table which consists of
Material,Plant ,quantity- SEP 06,quantity-oct 06,quantity- NOV 06 ..... quantity- DEC 07.
For this I picked entries for MB51  (from MSEG & MKPF)  & later using FM MD_STOCK_REQUIREMENTS_LIST_API to capture MD04 entries.
Am I approaching the right way?
Regards
Praveen

Hi Praveen,
Instead of picking up data from different place's, try to use single view or function module where you will get all required data.
Regards,
Amey

Similar Messages

  • Regarding Customer ageing report logic in R/3.

    Dear
    Experts
    i  have requirement to develop customer ageing  report logic for input 30,60,90,180,360
    i  don' t have any idea hw can i take these values  in input& hw can i caluclate the   values
    i  searched in  sdn, i did n't get any  suitable answer..
    Regards
    Spandana

    Hello,
    Go to transaction code FDI4
    Select Form Type RFFRRD20 Line item analysis
    Give your form name and description
    Structure (Two axis) - as defaulted
    Click on Create
    You will have lead column
    Delete the rows 2, 3 and 4
    Double click on column 1
    Enter the customer numbers from 1 to 999999
    First column double click  (A)
    Slelect following values
    Due date analysis 1
    Days for net due date 0 to 30
    Give the short name, medium name and long text for the column.
    Repeat this step in next columns like 31 to 60, 61 to 90, 91 to 120 and 121 to 99999 days etc in other columns and select due date analysis 1. (B,C,D,E)
    Create one more column by way of formula. To create a new column you need to double click on blue line. Put formula add all five columns you have created above. (F = ABCDE)
    You prepare one more column with
    Due date analysis 2 (G)
    Now you prepare one more column add (F+G) = This will be total open items = over due and not due.
    Now go to FDI1 and prepare a report - assign the form created in FDI4 to the report.
    Characteristics you need to select are
    Account Type (Select Account Type as D for customers)
    Currency
    Customer
    Document Type
    Special G/L Ind
    Company Code
    Change the output types and options according to your requirement.
    Refer FDI2 and FDI3 for other standard reports created.
    Refer FDI5 and FDI6 for other standard forms created.
    Save your report and execute.
    Regards,
    Ravi

  • Logic to filter unpaid employees in the customized report

    Hi Experts,
    We are developing a customized report,which has to show  the full and final settelment employees(Relived employees) provision  whose salary is not proceessed in the particular month.As of now our report is showingup both the employees whose salary is processed and not processed.As per requirement report has to show the employees whose salary is not processed in the particular month.
    Kindly advice me on the logic.
    Regards,
    Vikram.

    You can check for 'accounted to' date in IT0003 to be earlier than current month's payroll end date to only retrieve ees not having payroll run for this month.

  • Vendor aging report logic

    hi
    any one can tell  me the process of Vendor ageing report
    thanks in advance

    Hi,
    Vendor / Customer aging report logic based on payment terms & Base Line Date (BSIK-ZFBDT)
    Standard T.Code Vendot OI shortlist Ex:S ALR87012085
    Refer: http://wiki.sdn.sap.com/wiki/display/Snippets/VendorAgeingReport
    Regards
    Viswa

  • Custom Report issue

    Hi Gurs,
    I am in middle of a custom report developement which proivdes PO numbera and some of its relative dat, PR number and its relative data againust all the status of invoices(posted,parked,cancelled etc)
    the issue i m facing is client wants Purchasing group in input screen, i took the purchasing group from EBAN, but when i run the report its taking lot of time to execute,
    Could any one tell me how can i filtter the data so that i can get all the above mentioned data for a PG, or can i add any other field and make it mandatory to filter,
    please suggest any other approches /idea/ how can i reduce the time interval
    Thanks
    Ravi

    HI,
    At present we are using logic based on input example PR number first program will extract data for PR and then It checks EKKO and EKPO for PO numbers and for filter PO number program will check RBKP for invoice numbers,
    Its real Logic or you give example only?
    But if i provice Purchasing group it checks the whole EBAN and next process the same steps,
    its throwing run time errore,
    As you said your company code and invoice document date are mandatory field
    so your logic should flow from invoice table and end on PR number like below
    RBKP and RSEG you will get invoice document date and Po number
    Now pass Po number into table EKPO and get PR number ,if you want report for purchasing group wise then
    add table EKKO and pass Po number  there and ask ABAP consultant  that when Purchasing group on selection screen ,output show only that Purchase group related
    Regards
    Kailas Ugale

  • Custom report outer-join display problem

    I have written a custom report for Grid that produces info on database options, combined with info on the hardware of the servers where the databases reside. It is a customer requirement that all output be displayed as one huge table, with duplicate cells where logic dictates... so I've used a couple of nested queries + outer joins.
    My SQL query provides the correct data, however Grid appears to be acting clever, and instead of displaying one big table with duplicate values where required, it is splitting the output into a series of tables.
    It might look neater, but it's not what I've been asked to provide.
    Is there anything I can do to prevent this, and force Grid to display the info as one table?
    Thanks,
    Chris

    Hello Chris,
    did you already try to create a View based on your query and use this view in a Report Element?
    Regards
    Rob
    For more info, tips and tricks on oem gc check: http://oemgc.wordpress.com

  • Custom report for vendor evaluation

    Hai All,
    My client requires custom report to show the vendor evaluation i.e., it has to show the working how it has arrived at the final score, to be clear systems works automatically and displays the final score based on certain main and sub criteria that working has to be shown in a table format for the purpose of TPM  audit.
    Regards
    R.Senthilnambi

    Hi Senthil,
    u can download the documents from sap help to show the logic to ur audit, how sap will calculate the scores.
    If they insist for certain data with logic, u can develop a z-report and show them for 10 or 20 materials.
    hope this resolves ur problem

  • Material Order Status Report - Custom report error

    Hi,
    It is a Custom report to list Open PO's with the following logic.
    1. If validity date is less than today, PO is considered closed and that PO wont appear in the report.
        If point 1 failed, (means validity date in future) then goes to point 2.
    2. At item level,
       (a) Check if the quantity ordered is delivered (in service PO if planned/unplanned limit got reached)
                                     or
       (b) if Delivery completed indicator is checked
    in point 2 if either a or b is there, the PO is considered closed and should not appear in the report.
    We checked the program logic is fine.
    Problems:
    1.But the list shows few Closed PO's with Delivery comp ind checked.(Material PO's)
    2.In some service PO's the unplanned limit is not reached but so far some thing is delivered and Del   comp is marked. But still it appears in the report.
    In both cases the PO should not appear in the report. How to check?
    Regards
    Ramprakash

    Hi,
    If the logic that you checked proved correct, then you will have to get your ABAPer to debug your program to find out if change shall be made in the program logic coding.
    Cheers,
    HT

  • Facing Problem while Debugging a custom report using LDB

    Hi Gurus,
    I have requirement to modify a custom report program related to FI. This program used Logical database ZDF ( Copied original DDF) for data fetching.
    when i am trying to see the data in debugging mode, its not allowing to check in start-of-selection event. only in the initialization & end-of-selection i could able to debug.
    when i put breakpoint in initialization, it is allowing to see the flow till a Get Event occurs in the code, once a Get event occur the debugger is coming out and displaying the report.
    If anybody faced this kind of problem when debugging a report using LDB, please share how you resolved it. If there are any other ways to debug a program of this kind please help me.
    Thanks,
    Nanda

    Hi Amith,
    I checked that way also, i put break point in database program of the copied LDB, but its not allowing to check the flow in that program also.
    Please suggest any other ways.
    Thanks,
    Nanda

  • Customized reporting in Crystal reports 2008

    Hi guys,
    I am using crystal reports 2008 and new to it. Can somebody tell me how can i provide customized reporting in this version? I want to give report design in end user's hand.
    Can somebody help me on this?

    Crystal Reports is fine for end users if they have any inclination for thinking logically and have a good knowledge of the underlying data.  In my experience, that's not always (ever?? :->) the case.
    As an alternative, there have been recent (less than a month ago, IIRC) posts asking about how to have user-selectable columns in a report.  Search this forum for some possible suggestions on how to achieve this result.  In this scenario, you create the logic for the report, then there are one or more parameters where the user can select which columns they want to see.
    HTH,
    Carl

  • How to populate the data for additional fields in custom report of fbl5n tr

    hallo friends,
    i ha ve to add some fields to the output of custome report of transaction FBL5N.
    Till now i have only added the fields to the output.
    Now i have to write the code to populate the data for those fields in the program.
    1.     Customer Credit Group(ACM/RCM): (Table: KNKK; Field Name: VKORG )
    2.     Credit Representative Group: (Table: KNKK; Field Name: SBGRP)
    3.     Customer Account Number(CAN#): (Table: KNKK; Field Name: KNKLI)
    4.     Alternative Payer(ALTP#) : (Table: KNA1; Field Name: KUNNR)
    5.     Risk Category: (Table: KNKK; Field Name: CTLPC)
    6.     Credit Info Number: (Table: KNKK; Field Name: KRAUS)
    7.     Rating: (Table: KNKK; Field Name: DBRTG)
    8.     Payment Index: (Table: KNKK; Field Name: DBPAY)
    9.     Credit control area: (Table: KNKK; Field Name: KKBER)
    10.     Company code: (Table: KNB1; Field Name: BUKRS)
    11.     Sales Organization: (Table: KNVV; Field Name: VKORG)
    These are al fields i have to populate in the program..
    MY ATTEMPTS:
    I tried getting the data for KNKK table by GET KNKK ,but it is giving some garbage values...
    And Logical database used here is DDF,and i have to add the VKORG of KNVV too...but KNVV is not there in DDF...
    Can anybody tell me how should i proceed..
    thanks in advance.

    Thnx Andreas,
    i have following doubts again..
    I have to add sales organisation field to the selection screen...(this is given in the req.)
    now if i will say GET KNKK...it would not keep account of this 'sales organisation' field...so how should i fetch the data with these input data( i.e. 'compny code' and 'customer' are the fields given by LDB and 'sales oraganisation' is the field i put it on the selection screen)
    And what about the KNVV-VKORG ,because the KNVV is not present in the LDB.

  • Custom Report Layout in APEX 3.0 PDF

    How much freedom do we have when developing a custom report layout using BI Publisher when we create the template file using the Word XML add-on?
    Why I am asking is, I am trying to replicate several Crystal based reports that use multiple lines of for data. They group on several columns and display the grouped data on separate lines in the report.
    Grouping 1 Line one has customer detail information
    Next grouping 1 or more lines are provider of service line information
    Last Line count of detail lines for customer
    Or would I be better off porting these reports to Oracle Reports?
    Thank you!
    Tony Miller
    UTMB/EHN

    Marc, I was able to create reports based on a layout and a report query...Is it possible to let the end user (not apex developers) download the report layout, make modifications and load it again. They will only be changing the text and very rarely will modify the fields..
    Thanks
    Ashlee
    update: i found the following logic in the f4000 app on page 1405 for download
    declare
    l_report_document blob;
    l_file_ext varchar2(255);
    l_mime_type varchar2(255);
    begin
    for c1 in (
    select *
    from wwv_flow_report_layouts
    where id = :P1405_ID
    ) loop
    if c1.report_layout_type = 'RTF_FILE' then
    l_mime_type := 'application/rtf';
    l_file_ext := 'rtf';
    else
    l_mime_type := 'application/xml';
    l_file_ext := 'xml';
    end if;
    l_report_document := wwv_flow_utilities.clob_to_blob(c1.page_template,wwv_flow_lang.get_db_charset);
    sys.owa_util.mime_header (l_mime_type ,false);
    sys.htp.p('Content-Disposition: attachment; filename='||lower(replace(c1.report_layout_name,' ','_'))||'.'||l_file_ext);
    wpg_docload.download_file( l_report_document );
    end loop;
    end;
    and 1406 for upload
    declare
    l_report_layout clob;
    l_report_layout_id number;
    begin
    for c1 in (
    select blob_content from wwv_flow_files
    where name = :P1406_LAYOUT_FILE
    ) loop
    l_report_layout_id := wwv_flow_id.next_val;
    l_report_layout := wwv_flow_utilities.blob_to_clob(c1.blob_content);
    insert into wwv_flow_report_layouts (
    id,
    flow_id,
    report_layout_name,
    report_layout_type,
    page_template
    ) values (
    l_report_layout_id,
    :FB_FLOW_ID,
    :P1406_REPORT_LAYOUT_NAME,
    'RTF_FILE',
    l_report_layout
    end loop;
    end;
    are these the tables/apis i could use ?

  • Modifying customer report

    Hi,
       iam modifying one customer report.This report lists vendor and customer changes.This report to determine the number of creates/changes occuring on a daily basis for all vendor/customer account groups.We need to enhance the report to identify vendor/customer partner function area and add a unique transaction count.
    All creates for one vendor/customer(for different company codes,purchasing organization and sales organization) will be considered together as one unique count.
    All changes for one vendor/customer will be condisdered together as one unique count.
    All making/unmaking for deletion of one vendor/customer will be considered as one unique count.
    Please give me logic.How to conidered the unique count.
    Thanks,
    sairam

    Hi
    There may be Lot of creations for the same Vendor/Customer for different Company codes/SO's/Porgn etc but creation of a Customer/vendor is considereed as one unique record.
    So Customer No/Vendor number is Unique record.
    for a single customer or vendor there may be more number of creations/Changes/deletions, but only once they have to be considered.
    Reward points if useful
    Regards
    Anji

  • How to create custom report plugin using child region report metadata

    Hi,
    I want to ask for help on how to create custom report plugin using child region report metadata. My idea is to create a child region, a classic report and set the condition to never.
    Then i will query the child report metadata from apex view and use it to create a custom report like using jquery jq-grid. Any idea how i can create a process that will use the child report
    metadata? I dont know how i can create a process just like how apex work, how apex render report, coz i want it to be control using the standard apex report attribute. This plugin will
    render according to the child report attribute.
    Is there anybody here had ever done this?

    Hi Nicolette,
    Thanks for the reply. I know where to find the metadata, just asking for idea on how the rendering process will be.
    Start from determining column heading, column order until finish rendering the report. The same way how apex
    render the classic report.
    Previously this imy my rendering process:
    FUNCTION GETCOLUMN(P_REGION IN APEX_PLUGIN.T_REGION,
                         P_PLUGIN IN APEX_PLUGIN.T_PLUGIN,
                         P_VALUE  IN VARCHAR2) RETURN SYS.DBMS_SQL.DESC_TAB2 IS
        VSQLHANDLER     APEX_PLUGIN_UTIL.T_SQL_HANDLER;
        VCOLCOUNT       NUMBER;
        VCOLNAMES       VARCHAR2(2000);
        VAJAXIDENTIFIER VARCHAR2(100);
        VPAGESIZE       TYPEATTR := P_REGION.ATTRIBUTE_04;
        VJSCODE         VARCHAR2(32767);
      BEGIN
        VSQLHANDLER := APEX_PLUGIN_UTIL.GET_SQL_HANDLER(P_SQL_STATEMENT  => 'select * from s_emp',
                                                        P_MIN_COLUMNS    => 1,
                                                        P_MAX_COLUMNS    => 999,
                                                        P_COMPONENT_NAME => P_REGION.ID);
        VCOLCOUNT := VSQLHANDLER.COLUMN_LIST.COUNT();
        FOR I IN 1 .. VCOLCOUNT LOOP
          VCOLNAMES := VCOLNAMES || '{name: "' ||
                       UPPER(VSQLHANDLER.COLUMN_LIST(I).COL_NAME) || '",';
        END LOOP;
        APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
        RETURN VSQLHANDLER.COLUMN_LIST;
      EXCEPTION
        WHEN OTHERS THEN
          APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
          RAISE;
      END GETCOLUMN;
    So this is how i get the header for my report plugin. The same method is use to get the value / data for each column. This process is work. So now
    i want to extend my plugin so that i will use all attributes from the child report to render my plugin. So the column header, column order, all will depend
    on the child report. And the column display condition is set, it will also check the condition before render the column. Sounds like i want to reinvent
    the normal apex rendering process but this is what i want to achieve.
    I need help to find the correct logic for my render process. Don't want too much for starting, just want to render the plugin correctly, same with child report,
    same columns alias, column ordering and column  conditional display.
    Thanks,
    akulala

  • Custom Report Template Issue

    Hi,
    I have a Custom Report Template, it is a Named Column(Row) Report that I have created. It seems I can get the look and feel I want on a per row basis. But when I try and convert it to be able to loop through for a specific type, like a break on the first column, it gets all messed up. I was wondering if someone might be able to shed some light for me on this I have tried everything
    Here is the row template
    <table width="100%"  border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">
       <tr  class="Tabledetail">
          <td class="SectionHeading" width="100%" bgcolor="#336699" valign="middle">
             <img src="spacer.gif" width="1" height="1">  <b>#1#</b> 
          </td>
       </tr>
       <tr class="Tabledetail">
          <td>
             <table width="100%"  border="0" cellspacing="1" cellpadding="1" bgcolor=white>
                <tr class="Tabledetail">
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td class=formlabel>
                      #2#
                   </td>
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td colspan=4 class="SectionHeading" bgcolor="#336699" align=middle valign="bottom">
                      <b>Evaluation Trips</b> 
                   </td>
                   <td>
                      <img src="spacer.gif" width="10" height="1">
                   </td>
                   <td colspan=4 class="SectionHeading" bgcolor="#336699" align=middle valign="bottom">
                      <b>All Other Trips</b> 
                   </td>
                </tr>
                <tr class="Tabledetail">
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td  class=formlabel>
                      #3#
                   </td>
                   <td  align=right class=formlabel>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td align=right class=formlabel>
                      #4#
                   </td>
                   <td align=right class=formlabel>
                      #5#
                   </td>
                   <td align=right class=formlabel>
                      #6#
                   </td>
                   <td align=right class=formlabel>
                      #7#
                   </td>
                   <td>
                      <img src="spacer.gif" width="10" height="1">
                   </td>
                   <td align=right class=formlabel>
                      #4#
                   </td>
                   <td align=right class=formlabel>
                      #5#
                   </td>
                   <td align=right class=formlabel>
                      #6#
                   </td>
                   <td align=right class=formlabel>
                      #7#
                   </td>
                </tr>
                <tr class="Tabledetail" width=50%>
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td  class=formlabel>
                      #8#
                   </td>
                   <td class=formlabel>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td align=right>
                      #9#
                   </td>
                   <td  align=right>
                      #10#
                   </td>
                   <td align=right >
                      #11#
                   </td>
                   <td align=right >
                      #12#
                   </td>
                   <td>
                      <img src="spacer.gif" width="10" height="1">
                   </td>
                   <td align=right >
                      #13#
                   </td>
                   <td align=right >
                      #14#
                   </td>
                   <td align=right >
                      #15#
                   </td>
                   <td align=right >
                      #16#
                   </td>
                </tr>
             </table>
          </td>
       </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td><img src="spacer.gif" width="1" height="10"> </td>
    </tr>
    <tr>
    <td>Here is the before rows
    <table cellpadding="0" border="0" cellspacing="0" summary="" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#">
      #TOP_PAGINATION#
      <tr>
        <td>
          <table cellpadding="0" border="0" cellspacing="0" summary="" class="report-standard">Here is the after rows
            </table>
        </td>
      </tr>
      #PAGINATION#
    </table>But when I try and pull the upper level html tables out of the row template the format goes to heck. Anyone have any ideas?
    Thanks in advance!

    goochable wrote:
    Thanks for the input! Yeah it is based on a query from a collection as all this data is summations that i am pre-populating.
    Yes this html is probably from 1998 or 1999 I think they told me actually lol
    So there is no way to accomplish what I am trying to do then?
    There is no way I could use a break on first column and modify the header info to get the same sort of look and feel?Still not really clear what you are trying to accomplish, and in my view there are so many problems with the "look and feel" that it's not worth perpetuating.
    Making a lot of assumptions, I've come up with the kind of HTML structure I'd use when marking up this kind of data. I added a page 2 to your example on apex.oracle.com, showing a basic presentation of this structure alongside the original for comparison, and another styled using the default theme L&F.
    <li>Given the requirement to use multi-level headers (and because I prefer to have total control over the HTML), I stayed with a custom report template rather than trying to utilise column breaking with a generic column report template. This also permits use of more advanced table structures than can be supported by standard templates, such as s<tt>colgroup</tt>s to organize the table columns as well as the rows:
    Before Rows
      <table cellpadding="0" border="0" cellspacing="0" summary="" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#">
      #TOP_PAGINATION#
      <tr>
        <td>
          <table class="fish">
            <caption>Some fishy summaries</caption>
            <colgroup span="1"></colgroup>
            <colgroup span="4" class="evaluation-trips" align="right"></colgroup>
            <colgroup span="4" class="other-trips" align="right"></colgroup>
    After Rows
          </table>
        </td>
      </tr>
      #PAGINATION#
    </table><li>Rather than separate tables, the report is contained in one HTML table, utilizing the <tt>tbody</tt> element to subdivide this into separate row groups to meet the "break on first column" requirement. This is achieved using conditional row templates, with PL/SQL Expressions based on the values of metadata columns added to the query:
    Row Template 1
    Header rows and first data row for each row group. <tt>scope</tt> attributes are added to multi-column headers for improved accessibility:
      <tbody>
        <tr>
          <th colspan="9" scope="rowgroup">#C1#</th>
        </tr>
        <tr>
          <th></th>
          <th colspan="4" scope="colgroup">Evaluation Trips</th>
          <th colspan="4" scope="colgroup">All Other Trips</th>
        </tr>
        <tr>
          <th>#C2#</th>
          <th>#C4#</th>
          <th>#C5#</th>
          <th>#C6#</th>
          <th>#C7#</th>
          <th>#C4#</th>
          <th>#C5#</th>
          <th>#C6#</th>
          <th>#C7#</th>
        </tr>
        <tr class="#ALT#">
          <td class="desc">#C8#</td>
          <td>#C9#</td>
          <td>#C10#</td>
          <td>#C11#</td>
          <td>#C12#</td>
          <td>#C13#</td>
          <td>#C14#</td>
          <td>#C15#</td>
          <td>#C16#</td>
        </tr>
      #CLOSE_ROW_GROUP#
    Row Template 1 Expression
    This template is used when the row metadata shows that the current row is in a different row group from the previous row:
    #ROW_GROUP# != #PREVIOUS_ROW_GROUP#
    Row Template 2
    This is the "default" template, used for any subsequent data rows in the row group:
        <tr class="#ALT#">
          <td class="desc">#C8#</td>
          <td>#C9#</td>
          <td>#C10#</td>
          <td>#C11#</td>
          <td>#C12#</td>
          <td>#C13#</td>
          <td>#C14#</td>
          <td>#C15#</td>
          <td>#C16#</td>
        </tr>
      #CLOSE_ROW_GROUP#Both templates make use of a <tt>#CLOSE_ROW_GROUP#</tt> column value conditionally generated in the query that returns a <tt>&lt;/tbody&gt;</tt> tag if the current row is the last data row in the row group. (Mixing logic and structure in this way is not good practice, but APEX only allows up to 4 conditional row templates, which is completely insufficient for any moderately complex structure.)
    <li>Several metadata columns (incorporating heavy use of analytic functions) are added to the report query for use in the report template or CSS presentation:
    with fish as (
          select
                    c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16
                      Generate a fixed order for separate report sections/row groups.
                      (This is a guess as the actual requirement is not specified.)
                  , case c1
                      when 'OTC Summary' then 1
                      when 'Retained Catch Summary' then 2
                      when 'Discarded Catch Summary' then 3
                      when 'Discarded Species Composition Summary' then 4
                      when 'Retained Species Composition Summary' then 5
                      when 'Priority Species Biospecimen Summary - Discarded Catch' then 6
                      when 'Other Species Biospecimen Summary - Discarded Catch' then 7
                      when 'Dissection Summary - Discarded Catch' then 8
                    end row_group
                      Calculate row number within row group.
                      Copes with row order in some row groups being determined
                      numerically, while others used standard character semantics.
                  , row_number()
                      over (
                        partition by  c1
                        order by      to_number(regexp_replace(c8, '[^[:digit:]]')) nulls last
                                    , c8) group_rn
                      Calculate number of rows in row group.
                  , count(*)
                      over (
                        partition by c1) group_rows
          from
                  test)
    select
              c1
                Not clear on meaning of "Weight"/"Method" values: assumed this is
                column heading equivalent to "Species".
                Combine both source DB columns into one for HTML heading, dealing
                with various null/space/blank issues...
            , nullif(c2 || ' ', '  ') || c3 c2
            , ' ' c3
            , c4
            , c5
            , c6
            , c7
            , c8
            , c9
            , c10
            , c11
            , c12
            , c13
            , c14
            , c15
            , c16
            , row_group
                Get the rowgroup for the previous row
            , lag(row_group, 1, 0)
                over (
                  order by row_group) previous_row_group
            , group_rn
            , group_rows
                Determine odd/even row number: used for standard or alternate style.
            , mod(group_rn, 2) alt
                Generate a closing element if the row is the last row in the
                row group.
            , case
                when group_rn = group_rows
                then
                  '</tbody>'
                else
              end close_row_group
    from
              fish
    order by
               row_group
             , group_rnThis makes major assumptions about the sort order(s) and break(s) required in the report.
    <li>Finally, the visual presentation is applied using CSS rather than (mainly deprecated) HTML attributes, via an embedded style sheet in the page HTML Header:
    <style type="text/css">
    .fish {
      empty-cells: show;
      border-collapse: collapse;
    .fish tbody tr:first-child th {
      border-top: 1px solid #fff;
      font-weight: bold;
    .fish th,
    .fish td {
      padding: 3px 6px;
    .fish th {
      border-bottom: 1px solid #fff;
      border-left: 1px solid #fff;
      background-color: #275096;
      color: #fff;
      font-weight: 300;
      text-align: left;
    .fish td {
      text-align: right;
      .fish tr.\30  td {
        background-color: #dde;
      .fish td:first-child {
        text-align: left;
    </style>The default theme L&F report adds vertical borders to separate columns and column groups (latter may not be fully effective on IE: I'm not wasting my time on quirks mode fixes for that).
    The resulting report uses 60% less vertical space, and 87% less HTML code[1] than the original. Usability and accessibility are improved by eliminating nested tables and useless table cells and shim images, increasing the contrast between text and background colours, and using alternating row backgrounds for better visual tracking.
    [1] Including whitespace, but neither template is compressed in any way: both are in fully readale format including normal whitespace indentation.

Maybe you are looking for

  • Java gits -- look here please

    How do I convert a .class file to an .exe file using the Date class which extends an interface that doesn't have a classpath?

  • Upgrade to Windows 8.1 Pro from Windows 8 Pro causing issues with Remote Server Administration Tools

    Last night I received the Windows 8.1 update and it has caused Remote Server Administration Tools to stop working. I tried to reinstall the tools using Windows8.1-KB2693643-x64.msu but get the following error: Windows Update Standalone Installer Inst

  • Error in execution webutil_demo

    Hello, I installed Oracle Forms and Reports 11g and Weblogic in a virtual machine with Windows 7 64bit, I did setup webutil following the same steps I took when I made the intalacion them on a computer with Windows 7 64-bit, but ajecutar webutil_demo

  • How to handle user idle time in portal?

    Hi Gurus, We want to make the portal and its content area use the same session time-out on client side. When it reaches the maximal user idle time, let's take 30 minutes for example, it will automatically log out the portal. There is already a wonder

  • Need to find process chain from event

    Dear Experts, I need to find out all process chains which are getting triggered by a certain event. ( I have an event name , need to find corresponding process chain ). Kindly suggest. Regards Vaibhav Halde