COUNTING RECORDS AND DETERMINING AVERAGES IN REPORT WRITER

I HAVE 10 GROUPS. I WANT TO BE ABLE TO COUNT RECORDS AND DETERMINE THE AVERAGE DAYS FOR EACH GROUP. I GET DAYS BY SUBTRACTING THE RECEIVED DATE FROM THE RESULT DATE. I WANT TO DETERMINE THE AVERAGE DAYS AND THE NUMBER OF RECORDS IN THE TOP 10%, THE TOP 20%, THE TOP 30%, THE TOP 40%, THE TOP 50%, THE TOP 60%, THE TOP 70%, THE TOP 80%, THE TOP 90%, AND THE TOP 100%. HOW DO I CODE MY LOOP IN PLSQL TO DO THIS? CAN I DO THIS IN REPORT WRITER?

I am not sure about the exact thing that you are requiring. but you can get the top 100 and top 20 or top 300 etc. by using the ROWNUM function in sql statement.
thanks

Similar Messages

  • Average in report writer

    Hi experts,
    I've created a LIS on quality. But I can't create a colomn with the average in the colomn header.
    In my structure, i've got informations such as below :
    Quality ratio
    10
    blank
    20
    blank
    30
    Currently in the header, i've got 60. And I would like to have 20.
    I don't want to have 12 (average of the 5 lines).
    Is it possible in report writer to make such a request ? Is it possible using celluls ?
    Any interesting help will be rewarded.
    Regards,
    Christophe

    To complex to have an answer

  • How to print OS User name and PC Name in report writer 3.0

    Hi,
    I want to display OS User name and PC name in the reports
    using report writer 3.0.
    How to this, please help me...
    Cyp

    This is the wrong forum for reports issues - particularly for such an old version :-) However, you'll have to write a user exit to do that kind of stuff. And no don't ask me how, it was all too long ago, but there should be a section on that in your manual.

  • Missing records and history after Crystal Reports Server v0 to v1 upgrade

    I went though and followed the steps outlined in this video
    http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/5048d962-8fa6-2c10-e2ae-d32b3562cb9c&overridelayout=true
    during the export and import a few things failed,
    now i am hearing this from our report writers...
    It looks like we still have some problems. Some reports that run and go to a file location failed. Error Message: destination DLL disabled. []: [CrystalEnterprise.Smtp]. Plus we didnu2019t get our alert email that these failed.  When I looked at the instance manager and had it show recurring schedules it only came up with 61 instances. That is not correct when you consider that some reports have 30 instance each because of it going to multiple locations. One report that I know that runs daily, Broken Apptu2019s with appointments is missing its history and schedule recurrence.
    Strange how some of the schedules are ok and others are gone.
    can anyone help me? I hate crystal reports and I hate SAP this whole experiance has been a 3 month long nightmare.

    i put in a ticket and they walked me through a different way of backing up and restoring the CR

  • Count records and update total in table

    I have a class schedule that people use to register for a class. The schedule displays how many people are registered but that is a manual entery be me in the database. Is there a way to set this up to where all of the registrations for a class are counted and the total displayed in the schedule?
    Using Access 2007.
    registratron form
    action page
    schedule page
    thnks Jim

    Hi Again,
    I tried both the subselect and the two query method with no luck. The two query method did return less errors. I have included code and would really appreciate some feeback  thank you --jim
    form--------------------- 
    <cfinput type="text" name="name" message="Please enter your full name." required="yes" id="name">
            </div>
    <div class="register">
    <label for="county">COUNTY:</label>
      <cfselect name="county" query="qcounty" value="county">
                <option value="" selected="selected">Select a County</option>
                </cfselect></div
    <div class="register">
    <label for="email">EMAIL:</label>
                            <cfinput type="text" name="email" message="Please enter a valid email address" required="yes" validate="email"></div>
                <br />
              <div class="register">             
                <cfinput type="submit" name="submit" value="Register">  <cfinput type="reset" name="Reset " value="Reset Form">
           </div></fieldset></cfform>
    action page-------------------
      <cfinsert datasource="WebAdmin" tablename="mobiltyTrainingRegistration"
              formfields=" Name, Email, County, Phone1, Phone2, Phone3, Class, classID, Comment">
    <!--- populate #registered field in schedule--->
              <cfquery name="qAttendance" datasource="webAdmin">
           select count(class) as total
           from mobiltyTrainingRegistration</cfquery>
           <cfquery name="qAttendance" datasource="webAdmin">
           insert into mobilityClassSchedule(status) values ("#qAttendance.RecordCount#")</cfquery>
    schedule page-------------------------------------
    <cfoutput query="training">
        <tr>
          <td class="c7" width="39%" align="left" style="font-size:0.90em;"> #Class#</td>
            <td class="c7" width="19%" align="center" style="font-size:0.90em; text-align:left;">#Location#</td>
            <td class="c7" width="21%" align="center" style="font-size:0.90em;">#DateFormat(DropDate, "mmm-dd-yy")#</cfoutput>
      <cfoutput query="qAttendance">
              <td width="21%" align="center" style="font-size:0.95em;">#qAttendance.Recordcount#</td> 
    </tr></cfoutput></table>

  • BEX Report Writer

    Hi Guru's
    Can anyone send me the interview questoins and answers regarding BEX Report Writer this is urgent please,  Advance thanks
    Thanks & regards
    Sunitha

    these threads can be useful:
    Reporting  Interview questions
    Re: answer please...?
    BEx Questions
    Assign points if useful,
    Gili

  • Report Writer in a Report Tree

    All,
    I am having a problem migrating a report tree from a 3.1i environment to a 5.0 upgrade.
    I have been successful with SAP Reports, Custom Z reports and ABAP Queries, but
    Report Writer reports pose a problem. 
    To migrate I used the RTTREE_MIGRATION transaction SAP recommends.  Seems this creates Y_…  type transactions for some Custom Z reports and ABAP Queries.  I have had to create Z t-code for the Queries and then override the generated Y_... transaction with the Z t-codes in the Area Menu.
    The problem I am encountering with Report Writer / Report Painter is I believe the generated ABAP name assigned when the report is created seems to be a $TMP reports and the name seems to change whenever changes are made.   
    I’m not sure if I can assign a Z t-code to Report Writer reports? 
    Any Suggestions?

    <b>The problem I am encountering with Report Writer / Report Painter is I believe the generated ABAP name assigned when the<u> report is created seems to be a $TMP reports and the name seems to change whenever changes are made.</u>
    <i>Well lots of reports in sales are using GR51/52 I dont think so its name changes every time , llike for example you have cost analysis report in Tr.Co02 as well as you have series of reports in MM like Mc.1 to MC.9 .</i>
    I’m not sure if I can assign a Z t-code to Report Writer reports?</b>
    You can assign the Z T-codes to the program it `ll work !!
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • Help - need a report writer for printing labels

    Hello,
    I need an inexpensive and easy to use report writer that will allow me to print mailing lables from a JSP web app.
    What is a good report writer?
    Thanks
    Frank

    We've used JasperReports (open source) for this

  • Differences between info records and conditions

    In pricing of purchasing, I have found using both info records and conditions. Also in the menu path <b><i>Logistics->Material Management->Purchasing->Master data</i></b> have both 'Info record' and 'condition' menu folder.
    I want to know the differences between info record and condition and where to use them respectively. Anyone can help me?
    Thanks a lot!
    --Alex

    Hi ,
    Condition enables you to store pricing stipulations agreed with the vendor (such as applicable discounts or surcharges, or stipulations regarding the payment of freight costs) in the system. You can enter these conditions in quotations, outline purchase agreements, and info records. You also have the option of entering general conditions at vendor level, for example. The system then applies the conditions in determining the price in purchase orders (POs). You can enter further conditions in the PO itself.
    Simply put - Info-record is a type of condition record.
    Purpose of Condition Records for S&D
    Condition records allow you to store and retrieve pricing data in the system. All the pricing elements of your daily business - the prices, discounts, and surcharges for freight and taxes - that you want to use for automatic pricing must be stored in the system as condition records. You can define as many condition records as you want for the different pricing elements for any validity period.
    You create condition records for all the pricing elements that the system takes into account during automatic pricing. During document processing, the system transfers data from the condition records and determines the amounts for individual pricing elements (prices, discounts and surcharges) and the final amount for the sales document.
    For MM and S&D related condition information refer to the following URL :
    http://help.sap.com/saphelp_47x200/helpdata/en/75/ee0b3655c811d189900000e8322d00/frameset.htm and
    http://help.sap.com/saphelp_47x200/helpdata/en/f0/b5d468077c11d3ad020000e8a5bd28/frameset.htm

  • How to count records from 2 tables and show in RDLC Report

    hi all,
    its being a one day searching for the solution but No Luck.
     I have two SQL tables tblstudetail and tblfeereceiptdetail.
    i just want to count records from both tables and show in RDLC report.
    I tried SQl Query Like This:
    select a.session, a.course,
    Count(CASE a.ADstatus WHEN 'OK' THEN 1 ELSE 0 END ) AS Admission,
    Count(CASE s .I_receiptstatus WHEN 'OK' THEN 1 ELSE 0 END) AS Feeprint
    from
    tblstudetail a
    FULL join
    tblfeereceiptdetail s on s.studentID = a.studentID
    where a.session = '2015' AND s.Fsession = '2015' AND a.adcat = 'Regular'
    GROUP BY a.session,a.course
    ORDER by a.course
    The result Show the Same Value in Both columns
    Session    Course      Admission       FeeDetail
    2015          B.A. I               275              275
    2015          B.A. II              307             307
    2015         B.A. III             255            255
    2015          B.Sc. I             110             110
    2015           B.Sc. II           105            105
    2015          B.Sc. III            64               64
    Actully I want to Count How many ADMISSION have been Taken(FROM tblstudetail) and How many FEE RECEIPT have been Print (From tblfeereceiptdetail).
    please guide me for this as soon as possible.
    thanks in advance...

    I am counting 'OK' in both the table columns I.e 'ADstatus' in tblstudetail and 'feereceiptstatus' in tblfeereceiptdetail
    please suggest me

  • REPORT WRITER AND REPORT PAINTER

    Hi Techis,
    Will anybody pls tell me the details workin of reort painter and report writer along with Tr code and also will u pls give me the steps to execute such type of report.
    Rewards will be given for each reply.
    Regards
    Santosh L.

    hi santosh,
    Where Is Report Painter/Report Writer Used?
    Initially, both tools were only available to the FI/CO modules. Later, with the introduction of the Logistics Information System and Flexible Analyses in Release 3.x, the functionality of these tools was further expanded. It still is not widely known that the Report Painter/Writer can be used for reporting against structures other than those delivered in FI and CO (see TechTalk on page 8-4).
    A common misconception in the user community is that Report Painter/Report Writer can only be used to report against a single table. However, some reporting structures do report against multiple tables. For example, CCSS (for Cost Center Accounting) refers to tables COSP, COSS and more, depending on the key figure configuration. Similarly, FI-SL (Special Purpose Ledger) reporting structures include summary and line-item tables (the key figure set determines where the data comes from).
    To configure other table joins, views may be created joining the necessary tables, and views can be added to the control tables, via Flexible Analyses in LIS. Report Painter/Report Writer can be used in almost any application area in R/3 to report on currencies and quantities.
    Data tables supported
    Both Report Painter and Report Writer can be used to report on the following tables and tables types:
    < Evaluation structures set up in the Logistics Information System (LIS). These structures normally begin with an “S” or “ZF.” Several different tables and views within the R/3 System can be added as evaluation structures.
    Note: You cannot add cluster tables, such as BSEG.
    < CCSS is used for Cost Center Accounting (CO-CCA), Internal Orders (CO-OPA), Activity Based Costing (CO-ABC) and for cost element reports in Project Systems (PS).
    < GLFUNCT is used for functional area reporting in cost-of-sales accounting.
    < GLPCT and GLPCOP are used for Profit Center Accounting (CO-PCA/EC-PCA).
    < FILC is used for Legal Consolidations (FI-LC).
    < COFIT is used for the Controlling Reconciliation Ledger (CO-CEL).
    < ZZ tables are created for the Special Purpose Ledger (FI-SL).
    < FIMC is used for consolidations in the Enterprise Controlling module (EC-LC).
    < GLT0 is used for Financial Accounting (General Ledger) reports by account, company, and business area (FI-GL).
    < KKBC, KKBE, and KKBU are used for the Controlling Product Costing module (CO-Costing).
    < New in Release 4.0A: RWCOOM is used for CO-CCA, CO-OPA, and CO-ABC. RWCOOM is used for special standard reports like internal order budget reports, cost center budget reports and cost component reports.
    Note: RPPS was used for Project Systems (PS). However, it is obsolete and will no longer be supported in Release 4.0. In Release 3.x there were only two special reports (6P70 and 6P71) using RPPS. These reports cannot be called directly, but via ABAP reports RKOPLAN0 and RKOPLAN1.
    How to Access Report Painter/Report Writer?
    To access the Report Painter you may use either of the following two methods:
    < Transaction FGRP
    < From the SAP main menu, choose Information systems ® Ad hoc reports® Report painter.
    Report Writer functions can be accessed from within the Report Painter. To access Report Writer, choose the following menu path from the SAP main menu:
    Information systems ® Ad hoc reports® Report painter® Report Writer.
    How Is Report Painter/Report Writer Organized?
    Report Painter/Report Writer has four main components:
    < Sets: Sets are logical groupings of characteristic values. For example, a cash line on a balance sheet is made up of a set of cash accounts or an energy product line on an inventory report is made up of a set of energy products. Variables can also be created which are placeholders for sets, or values within sets.
    < Libraries: Libraries control which characteristics and key figures from a table are available for reporting.
    < Reports: Reports hold a definition of the rows, columns, and overall data selection. They also include the header and footer texts and layout settings.
    < Report Groups: Report groups can contain one or more reports. The report group is what you execute—not the actual report. A report group is generated to create a set of ABAP programs that produce the reports.
    How Does Report Painter Differ from Other Reporting Tools?
    < With the exception of row titles which have text fields, Report Painter/Report Writer reports display numerical fields only (for example, dollar and quantity fields). This is not a requirement for ABAP Query and typical line item reporting tools, which can display arbitrary text columns.
    < While printed Report Painter/Report Writer reports appear much the same way on paper as they do on screen, the Drilldown reporting tool produces a different output format. Drilldown reporting is an online analytical tool which can be used to drill down to different levels of detail, but it is infrequently used for printing.
    < Report Painter/Report Writer reports are hierarchical and take advantage of configured hierarchies (for example, with cost center hierarchies). You can also execute Report Painter/Report Writer reports from each level within a hierarchy.
    < Report Painter/Report Writer reports can handle multiple currency/quantity units within a single column.
    < Report Painter/Report Writer is well suited to handle reports that require mass production. For example, Report Painter/Report Writer is a particularly effective tool for creating month-end reports.
    refer this link
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://abaplearner.blogspot.com/2007/12/more-abap-tutorials.html
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    regards,
    sravanthi

  • Counting records in crosstab report

    I am very new to the reporting world so apologies if this seems so simple.
    I am trying to understand how count records that meet certain criteria and I am at a loss as to how to make it work (Crystal Reports 2008)
    I am setting up a cross tab report where I am want to count records that vwSubscription.status="Active" AND vwSubscription.isDues=True
    I think I should be creating a Formula Field that tests the status and dues record and when they both meet the correct criteria then have the Formula Field in the Summarized field of the Cross Tab Expert...
    make sense? please help

    Yes. You should create a formula like this
    IF vwSubscription.status="Active" AND vwSubscription.isDues=True THEN
    1
    And in Cross tab Create A Sum  of this field under Summary fields.
    If you want this value to be displayed based on some group, cross tab will be a good option, else you can create a sum of this field and place it in Report header to get the total.
    HTH,
    Jyothi

  • Nodata in the [DiskRead and Write]&[Network Received and Transmitted] of the reports

    Hello everyone!
    I'm a newbie.
    The problem is the column of [DiskRead and Write]&[Network Received and Transmitted] has nodata.The others are OK(CPU,Memory etc.).  I already set the base rate for [DiskRead and Write]&[Network Received and Transmitted]  and I do some operations like copy files from one to another VM in the VM. But it still 0.00 in the report .
    Can anybody tell me why? Is anything wrong in my vCenter Database?
    Thank you very much!

    Hello,
    Thanks for sending the data.
    The query that we asked you to run gives the values of network transmit-receive and disk read-write that CBM data collector has collected from VC.
    A closer look at the output of the query shows that CBM has been able to collect data for network received and transmit (resource_id=6) from VC. The attached report contains costs for network received and transmit.
    But there is no data for disk read and write (resource_id=2). So the report shows 0 costs for disk read and write.
    Now we need to know the cause of  absence of this data from CBM DB. As a first step, we will like to see if VC DB contains disk read-write related data. Can you please attach the output of following steps?
    1)  Please run following query on CBM DB
    select entity_moid from cb_vc_entity where vc_entity_id=(select vc_entity_id from cb_vc_entity_mapping where cb_entity_id=(select entity_id from cb_entity where entity_name='work_GJL'))
    This will give 'moid'. This moid should be used in the next query.
    2) Please run following queries on VC DB.
    We need outputs from 4 tables namely:
    i) VPXV_HIST_STAT_YEARLY
    ii) VPXV_HIST_STAT_MONTHLY
    iii) VPXV_HIST_STAT_WEEKLY
    iv) VPXV_HIST_STAT_DAILY
    Substitute <table name> in the following query with each one of these and store the outputs of different queries independently and attach here.
    select SAMPLE_TIME, SAMPLE_INTERVAL, STAT_VALUE from <table name> where ENTITY LIKE 'moid from above query' AND STAT_NAME = 'usage' and STAT_GROUP = 'disk' and STAT_ROLLUP_TYPE = 'average' order by SAMPLE_TIME
    Thanks,
    Mugdha

  • Access Web Database - Select record and make report with all associated records

    Hey everyone,
    Right now I'm in the middle of trying to convert an Access client database to be web compatible and I'm running into some problems. For this question, I think I may need to explain a little bit about the database:
    The database I'm making is designed to store information about music rights for different songs. The users can input information about writers, producers, organizations, properties, businesses - which is stored all in different related tables. Then, when a
    user inputs a song, they choose which writers, produces, organizations, etc. are affiliated with that song. 
    What I'm trying to do is make a report where you can choose a writer from the list of all the writers and then produce a report with all of the songs by that writer. 
    I was able to do this in the Access client by making a report that, when opened would trigger (using the On Open event) a form to open where you would choose a writer from a combo box and then click a button. When the button was clicked, it would use the value
    in the combo box in a query, which would find all of the songs by that writer and then open up the report which would have the writer and all of their songs on it. 
    Because web reports don't have many event options and web queries are very limited, I have not found a way to make this report.
    Any help at all would be greatly appreciated!

    Hi,
    I found that you've cross post the quesion on our Answer forum, are you satisfiled the reply from there?
    http://answers.microsoft.com/en-us/office/forum/office_2010-access/web-database-select-record-and-make-report-with/04ce4e25-a964-4146-9a34-f9cb26bb0496
    Regards,
    George Zhao
    TechNet Community Support

  • Differences Between Report Painter and Report Writer

    Hi,
    Anyone knows the differences between report painter and report writer?
    Thanks,
    CW

    Hello CW Teo,
    Yes report writer can be used in logistics also. One of the way which I am aware of is described below.
    Flexible analyses allow you to can tailor the way in which key figures are combined and aggregated. This means that it is possible to both provide administrators with detailed information and management with aggregated information.
    Flexible analyses enable easy access to the Report Writer, a user-friendly tool with which you can create reports for various analyses. The Report Writer is integrated in other SAP applications, such as Extended General Ledger and Cost Center Accounting.
    Evaluation structures form the interface to the Report Writer. Evaluation structures consist of characteristics and key figures and are easy to construct.An evaluation structure with the same name exists for each information structure in the standard system.Even the self-defined information structures created in Customizing can be evaluated via the flexible analyses.
    Evaluations:You can create an evaluation on the basis of the evaluation structure.
    To define an evaluation, all you need to do is select the characteristics and key figures you require (pick-up technique).One of the especially useful features here is that you have the option of tailoring the layout of your report to suit your particular requirements. You can also define extra key figures for the reports, which are derived from existing key figures by means of calculation formulas. You can thereby multiply the key figures or divide one key figure by another.
    ============================================================
    In addition to the above you can also edit a report in logistics module with the help of a report writer. below mentioned is the process for it.
    It is now possible to edit your report data using the Report Writer. You can also change the layout of the report. The most important functions of the layout design are summarized below.
    Summation levels:In the report screen, you can use the menu sequence View ->Summation level to specify the number of summation used to calculate total values. All totals that do not lie within the specified interval will be hidden. A summation level corresponds to a hierarchical level (for example, material level). Summation level 1 is the lowest hierarchical level. Summation level 2 is the next level up, and so on. The individual values are on the summation level 0.
    The summation levels can be specified both universally (for the entire report) or locally (for specific blocks of rows). In this case, the local settings overwrite global values.
    Report views:If a report is displayed on the screen, the Report Writer will then set page breaks so that exactly one page fits into the current window. This view will be defined as the standard view. As the Report Writer always processes exactly one page, you can only use the page keys and page icons to page up and down; the scroll bars cannot be used.
    The page view can be determined via Settings-> Page view. The page breaks in the page view correspond to those defined in the report layout.
    Hide and show rows:The function Edit->Hide rows exclude certain preselected areas of your report from the display. You can undo this command with Edit ® Show rows.
    Expanding and collapsing report rows:View-> Hierarchy->Collapse allows you to hide the report rows of the sub-trees that are located underneath. View->Hierarchy ->Expand allows you to undo this command level by level.
    If you want to display all the report rows that were hidden by collapsing the hierarchy or restricting the summation levels, select, View->Hierarchy-> Expand all.
    View->Collapse all allows you to reduced every row block to the highest summation level.
    Texts and Annotations:You can create an annotation for your report.
    Select: Extras->Annotation.
    You branch into the text editor of the Report Writer.
    Via the menu sequence Settings->Texts, you can create and format a title page, the last page, as well as headers and footers using word processing functions.
    For example, you can store variables in the header for the author of the report, the date of the selection or the name of the person who last changed the report.
    Layout parameters:Using the menu sequence Settings->Layout you can specify the page format, display form, rows and columns of the report according to your needs and you can determine the settings for the graphics function. You can make these layout settings with Report->Save settings.
    Hope I had been able to help you to some extent. please assign points as reward.
    Rgds
    Manish

Maybe you are looking for