Count of fields for a specific date

Hi.
I have a report that is running on parameter field of  date range.  I have the report grouped by that same date range.  The dates showing up on my report are payroll dates.  So since there are two payrolls in one month I see both.  For example:
5/8
5/18
I then have another group below the above date for "Type" of check "amount" and "count".  So the report looks something like this when I run it:
5/8
Type#1      $5000.00               / 100 people
Type #2 -   $6000.00              / 85 people
5/18
Type#1       $5300              /102 people
Type#2       $6600             /60 people
Grand Total:                     $22900
So far, everything works great and this is all good.
I now want to add two fields to the report (without changing my main report data (above) and since the fields are from the same table, I created a subreport for each field.  I have an "added to payroll date" and a "taken off payroll date" field.  And since I just want a count per payroll date of the number of people added/taken away, I created a subreport for each date (they exist in the same table).
I linked the subreports to the main report by checkdate since that is what it is grouped on... and I did a "count" formula to provide me with the count of people. (I also added a group to the subreports so the records are grouped by checkdate.
The total number for MAY is correct, but it is not putting the correct # of added and taken off in the respective check date?
Confused yet?
Its doing this:
5/8             added 50 / taken away 60
Type#1      $5000.00               / 100 people
Type #2 -   $6000.00              / 85 people
5/18         added 100/taken away 20
Type#1       $5300              /102 people
Type#2       $6600             /60 people
Grand Total:                     $22900
The total # of Added "150" in this example is correct, but it is distributed incorrectly... same for the taken away.  What am I doing wrong?
Also, can anyone think of another way of doing this outside of the two subreports I just created since my report runs really really slow now?
Your help is much appreciated
Thanks
Using Crystal-8

Please re-post if this is still an issue

Similar Messages

  • Sync with Outlook ONLY for a specific date range

    I have a Zire 31 that I'm syncing with Outlook via latest Palm Desktop/HotSync.   I did just install the latest conduit.
    I was getting several repeating calendar entries that were not syncing with the Zire (annual birthdays, etc.) - turns out that they did not have an "end-date" specified when created in Outlook.  Creating an end-date solved the problem.
    However - I would like to know if it is possible to specify a certain date range for the device to sync (e.g., sync calendar only for years 2007 through 2050, or in other words sync from 1 year ago to 50 years in future, etc...)
    I recall specifying this once years ago, but I may have been using a third party to sync with Lotus Notes at the time.  I'm wondering if this option is also available with syncing directly with Outlook using HotSync???  I can't imagine it's not, but I can't find where you specify it.
    One more interesting note:  while my Zire 31 had issues syncing those repeating calendar entries - my much older HandSpring Visor Deluxe syncs them no problem!  Go figure.
    Thanks much -
    Post relates to: Zire 31

    I'm not actually looking to purge old items.
    Rather - I would like to ONLY sync calendar entries between a specified range of dates.  For example - ONLY sync for calendar entries between Jan 1 2007 and Jan 1, 2050.
    the problem is that I have some repeating entries (birthdays, etc.) that are set up in Outlook with no end date.  Apparently Palm/HotSync is having trouble syncing these (they don't show up at all - for any year.)
    One resolution is to apply an end-date for each repeating calendar entry.  However, this is just another step my wife needs to remember to do.  If you happen to forget to to this, then Hotsync will ignore that entry.  Fine if you realize that's happening, but if you forget and forget to check - you won't even know it didn't sync!
    The other possible resolution is to only have HotSync sync for a SPECIFIC date range - one that does not presumably go to infinity.  That is my question - how does one sync ONLY for a specific date range.  Has nothing to do with purging old entries.
    Thanks!!
    Post relates to: Zire 31

  • Table and fields for " Batch Code Date " and "Shelf Life days".

    Hi All,
    What is the field for " Batch Code Date " and "Shelf Life days".
    And in which table are they present.
    Thanks & Regards,
    Ahmed.

    Check the table
    MCHA  Batches
    Field VFDAT  Shelf Life Expiration or Best-Before Date

  • Count records for a specific date range

    Hi,
    I am using BI Publisher with Siebel 8.1.1.1. I have a monthly report where I want to count the number of service requests entered per customer per month.
    I am using the following expression that works for one month:
    <?count(ssServiceRequest[ssSeverity[.='1-Critical'] and xdoxslt:date_diff('d',psfn:getCanonicalDate(ssCreated), xdoxslt:current_date($_XDOLOCALE,$_XDOTIMEZONE), $_XDOLOCALE, $_XDOTIMEZONE) <=28])?>
    However, I want to be able to specify a specific date range for my count, i.e ssCreated >= '01/02/2011' and <= '28/02/2011', as opposed to count for the past 28 days. Can you please advise what syntax I can use to specify a date range?
    Any help will be greatly appreciated!
    Claire

    Hello,
    Many many thanks for your reply.
    I'm doing as you suggest and am using the date_diff to the end of the period in question. I've tried the following to get the number of Service Requests with Severity 1-Critical, created in Jan 2011, feb 2011:
    <?count(ssServiceRequest[ssSeverity[.='1-Critical'] and xdoxslt:date_diff('d', (psfn:getCanonicalDate(ssCreated), $_XDOLOCALE, $_XDOTIMEZONE), '2011-01-31', $_XDOLOCALE, $_XDOTIMEZONE) <=31])?>
    <?count(ssServiceRequest[ssSeverity[.='1-Critical'] and xdoxslt:date_diff('d', (psfn:getCanonicalDate(ssCreated), $_XDOLOCALE, $_XDOTIMEZONE), '2011-02-28', $_XDOLOCALE, $_XDOTIMEZONE) <=28])?>
    In my xml sample data that I'm using I have 2 service requests that mean the criteria for Jan, yet when I run my report I'm getting '0'. The problem seems to be with my end of period date '2011-01-31'. I've also tried with both start and end period date (using a negative value as per your suggestion), but I still get '0':
    <?count(ssServiceRequest[ssSeverity[.='1-Critical'] and xdoxslt:date_diff('d', (psfn:getCanonicalDate(ssCreated), $_XDOLOCALE, $_XDOTIMEZONE), '2011-01-01', $_XDOLOCALE, $_XDOTIMEZONE) <=-31 and xdoxslt:date_diff('d', (psfn:getCanonicalDate(ssCreated), $_XDOLOCALE, $_XDOTIMEZONE), '2011-01-31', $_XDOLOCALE, $_XDOTIMEZONE) <=31])?>
    Many thanks,
    Claire

  • How to count ONLY fields with a specific value

    I modified the code below from the API reference to count combobox fields with a value of "MT" so I could total the number of a specific choice the form user input.
    var count = 0;
    for (var i=0; i<this.numFields; i++)
    var fname = this.getNthFieldName(i);
    if ( this.getField(fname).type == "combobox" && this.getField(fname).value == "MT" ) count++;
    this.getField("mTurb").value = count.value;
    Here's the problem: I tried to use a similar script, modified only slightly from this form, in another total field to tally a different choice made with comboboxes and the script continues to tally the first choice. An example of one of the modified versions of the script is below.
    var gcount = 0;
    for (var i=0; i<this.numFields; i++)
    var gname = this.getNthFieldName(i);
    if ( this.getField(gname).type == "combobox" && this.getField(gname).value == "MT" ) gcount++;
    this.getField("gPack").value = gcount.value;
    I suspect I'm just missing something painfully obvious to seasoned scripters, but I can't seem to figure it out and I need this script to be able to count the number of 9 different options in the comboboxes.

    OK, you can use a script like the following as the custom calculate script for the text fields that perform the counts:
    // Custom calculate script for text field
    (function () {
        // Declare and initialize variables
        var fn, s = "MT", count = 0;
        // Loop through the combo boxes
        for (var i = 1; i < 25; i++) {
            // Determine the current field name
            fn = "M" + util.printf("%02d", i));
            // See if the field value matches
            if (getField(fn).valueAsString === s) count++
        // Set this field value to the count
        event.value = count;
    Change the value of the "s" variable to match the item that you want to count. The first and last lines prevent the unnecessary creatio of global variables, which is good. It also makes it easy to transfer to a more general document-level routine, which would be event better, something like:
    // Custom calculate script for text field
    function getCBCount(s) {
        var fn, count = 0;
        // Loop through the combo boxes
        for (var i = 1; i < 25; i++) {
            // Determine the current field name
            fn = "M" + util.printf("%02d", i));
            // See if the field value matches
            if (getField(fn).valueAsString === s) count++
        // Set this field value to the count
        event.value = count;
    You would then call this function from the individual text boxes with the following custom calculate script:
    getCBCount("MT");
    and replace "MT" with the vlaue you want to count.

  • How to get users' login logout time for user IDs for a specific date?

    Dear All,
    There is a case I being requested to retrieve the Userid, User Name,
    User Group, User Dept, Date, Login Time, Logout Time in a specific date, for example, 21.05.2009.
    How should I retrieve the information? The user want to input specific date and user group then return the details that mentioned above.
    I try with SUIM->Users->By Logon Date and Password Change... but I can't specific the date that I want ...
    I try with SM19 (Security Audit Log), but unfortunately in my system this is not activated.
    I've seek for SAP's advise, and they say need to ask abaper to developr a report in order to get such details....
    Do you guys have any other methods?
    Do you guys know which tables will contain the details as mentioned above?
    Best Regards,
    Ken

    Unfortunately without the audit log, you're going have a hard time finding this information.  As mentioned, ST03N will give you some information.  If your systems daily workload aggregation goes back to the date you require then you'll be able to get a list of all users who logged on that day.  ST03N doesn't keep time stamps just response times.
    My only idea is VERY labor intensive.  If your DB admin can retrieve a save of the database from that day then table USR02 will hold a little more information for you.  It will contain last login times for that day.  If your system backup policy happened to have saved the contents of folder "/usr/sap/<SID>/<instance>/data" then you potentially have access to all the data you require.  The stat file will have recorded every transaction that took place during that day.  If that file is restored you could use program RSSTAT20 to query against it.
    Good luck and turn on the audit log as it makes your life much easier!

  • Custom Report for the Stock and Stock value for a specific date

    Hi SAP Gurus,
    Is there any SAP standard t-code or any logic to get the transcations (additions (for example: Purchases) and subtractions (Sales) to the inventory) for a particular materials in a plant and with Total Stock and also Total Stock value when that particular transaction happened?
    Our system is R/3 4.7
    I looked at the MB5B, MBCE, MBCA, MC44, MB51 and some other standard T-codes but could not find the total stock value at the time of Transaction happened.
    The history tables MBEWH and MARDH  are updated after the month end closing procedures, right, which means I will have the inventory value changing every month if material has Price "S".
    Thank you,
    -Harter

    Hi Harter,
    Unfortunately, you cannot see in a single tcode the value of stock and stock quantity on a specific date. As you yourself have pointed out, we only have to make use of the history table MBEWH, MARDH for the month wise stock quantity and value. Along with that you should also make use of the table MBEW to take teh stock quantity and value. So the total value of stock on a particular date will be
    Stock qnty = MBEWH value until the previous month (for teh specific valuation class, period etc) + MBEW value for the present date.
    But this will nto work out if you want to find out teh stock quantity and stock value on a past date basis. For past data, only  m onthwise data is available. For this anyway you can refer to MC.1 and so on reports.

  • Field for actual delivery date

    Hi ABAP gurus,
    i want to find actual delivery date field and table and also expected delivery date for delivery .
    can you please tell me the table for actual delivery date.
    Thanks,
    Jignesh .

    Jack,
    LIKP-WADAT_IST - Actual Delivery Date in a Delivery
    LIKP-WADAT - Expected Delivery Date / Planned Goods Movement date
    HTH
    VB

  • Looking for a specific data in all the cubes and ods

    Hi Gurus
    "i am looking for all the cubes/ods that contain a specific Controlling area(lets say 0123) and a specific 0plant (lets say plant 4567), now i can go down to every cube and ods and search for it in its contents but i have like hundereds of cubes it will take days, is there a simple way to look for some particular data in all the cubes/ods, and it tells me which cube/ods contains these plants and controlling area."
    <b>now based on this above post i got a reply that abaping can help.</b>
    "you could write an ABAP where you call for every InfoProvider function RSDRI_INFOPROV_READ_RFC like
    loop at <infoprov-table> assigning <wa>.
    call function 'RSDRI_INFOPROV_READ_RFC'
    exporting
    i_infoprov = <wa>
    tables
    i_t_sfc = i_t_rsdri_t_sfc
    i_t_range = l_t_rsdri_t_range
    e_t_rfcdata = l_t_rsdri_t_rfcdata
    exceptions
    illegal_input = 1
    illegal_input_sfc = 2
    illegal_input_sfk = 3
    illegal_input_range = 4
    illegal_input_tablesel = 5
    no_authorization = 6
    generation_error = 7
    illegal_download = 8
    illegal_tablename = 9
    illegal_resulttype = 10
    x_message = 11
    data_overflow = 12
    others = 13.
    endloop.
    i_t_sfc should contain 0PLANT and i_t_range the restriction on you plant value.
    with a describe table statement on l_t_rsdri_t_rfcdata you can get the hits.
    check test program RSDRI_INFOPROV_READ_DEMO for details
    best regards clemens "
    <b>now my question is how do  i use this code to check each and every cube in bw, it seems like it is meant to be for only one cube at a time. and what does he  mean by  "for every infoprovider function"</b>
    thanks

    THANKS

  • CTS+ Configuration in PI 7.4 for SLD specific data

    Hello Guys,
    I am doing CTS+ configuration for PI System SLD Vesrion 7.4 to transport J2ee as well as SLD specific data through transports. My CTS server is Solman System.
    I have created a CTS user in Solman System and in PI NWA I have defined destination to point to Solman System. But i am running into several errors.
    Could anyone please help me what user authorization are required for CTS user in Solman to transfer Non-Abap Data and SLD specific data through transports.
    Its very urgent.

    Did you happen to see this document of a CTS+ configuration for 7.3 (should be fairly the same for 7.4)?   CTS+ Configuration for PI 7.3
    Steps 1.2 and 8.2 have references to roles.

  • Field for selection-generic data source

    Hi All,
    I have created a generic datasource with 4 fields from VBPA table the fields are
    VBELN
    PARVW
    PERNER
    POSNR
    and set the delta based on VBELN.
    My client want all the fields for slection in RSA3.
    Now in RSA3 except VBLN all fields are available for selection.
    I tried to select the VBLN field in RSA6 there i can see the selection box is disabled.
    Could any one please let me know how i enable this field for selection
    Many thanks in advance and pls respond to this as it is very urgent
    Thanks
    S VR

    Hi..
    Check whether any one had collected this extractor in Transport.. which is why its in display mode...
    And also.. get into change mode in RSA6 for ur DS and then check if u can see that check box is enabled for u?
    Let us know the details..
    Thanks
    Hope this helps

  • How do I change the text of a specific MESSAGE field for a specific Alert

    I want to change the text for the "Message" field (10.2.0.5 OEMGC) for the "Blocking Session Count" alert that shows up in Notifications.
    Does anyone know where the text is stored? I do not find it in Preferences>Rules in the Console nor in any obvious views or tables in the OMS.

    What is the Agent version monitoring the Database for which this alert is raised?
    You need to apply the fix for Bug : 9110313 to the Agent on the database machine.
    Refer to Note 9110313.8: Bug 9110313 - Metric clear alerts reported when warning and critical threshold are crossed

  • A query to create sales information for a specific date.

    Hi,
    Please look at attached image, you will see how this query look like. This query will generate all sales from 1/1/2014 until today. I would like to see if the query can create the sales report for a range from 1/1/2014 until yesterday (does not included any sales for today). Any help will be appreciated.
    -Bill

    Hi Bill,
    The query attached looks like it is selecting results based on the salesorder name starting with the current year. As is written, it won't be able to filter out today.
    If you want to exclude today, you'll need to modify the current selectivity predicate for today to perhaps a BETWEEN predicate ( e.g. table.datefield BETWEEN '2014-01-01' and DATEADD(day,-1,GETDATE()) ) or add an exclusion predicate ( e.g. table.datefield <> DATEADD(day,-1,GETDATE()) ).
    Note that you'll need to have a field in the data that has the day. Your query does not have any schema information, and all it seemingly reveals is that a salesorder name starts with the current year.
    Hope this helps,
    Tyson

  • How to see Control chart for a specific date range in QGC3

    Hi
    I am developing SPC for my client.I am facing one problem.
    I am using one control chart for all inspection lot for a particular MIC.Free inspection point is used in inspection plan.
    Control chart is used 516.(XMR chart)
    Now when i am calling control chart for MIC executing QGC3,chart is showing results since creation chart date to todays date.
    Now if i want to see chart for a particular period or date range,what is the procedure.
    Thanks in advance
    Nilanjan

    Hi,
    1. Even though when i give the Created on, and to date the system is displaying the report which is prior to the created on date.
    2. Similarly the report data is different when the field is maximum no of Hits is given. for example when i giving this field as 10, 20, 30, etc the report is showing only 10 line items. if i enter 50, 60 etc it is showing the list for half i given.
    Note that system is having more than 1000 line items to display..
    Regards,
    R. Loganathan

  • How to restrict the search help given to a field for a specific program ??

    Hi,
    I have one search help which is attached to a field.
    This seach help is using a Z table and showing values perfectly for one program where I attached earlier.
    The same fields and Z table I am using is some other related program where user wants to see the restricted values only.
    I am not getting, how a search help can be restricted.
    I try to take a example of it.
    If in first program the search help values are:
    Material           Level
    Orange              1
    Mango               2
    Grapes              3
    Now in the second program user wants to see only levels not the material. I Have given only two colums for understanding purposes not all .
    Please suggest what are the possible ways we can do it.
    Thanks right now.
    -=Maddu=-

    Hi,
    Use this event
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cc.
      PERFORM company_code CHANGING p_cc.
    FORM company_code CHANGING p_cc.
      DATA: dynpfld_mapping LIKE dselc OCCURS 0 WITH HEADER LINE.
      REFRESH gt_bukrs.
      SELECT * FROM t001
      INTO CORRESPONDING FIELDS OF TABLE gt_bukrs.
      LOOP AT gt_bukrs.
    **ST AS ON 08.09.2006
        AUTHORITY-CHECK OBJECT 'ZREP_TMF'
              ID 'BUKRS' FIELD gt_bukrs-bukrs
              ID 'VKORG' FIELD gt_bukrs-bukrs
              ID 'VKBUR' DUMMY
              ID 'SPART' DUMMY
              ID 'VTWEG' DUMMY.
       AUTHORITY-CHECK OBJECT 'ZREM_ORG'
             ID 'VKORG' FIELD gt_bukrs-bukrs
             ID 'VKBUR' DUMMY
             ID 'SPART' DUMMY
             ID 'VTWEG' DUMMY.
    **ST AS ON 08.09.2006
        IF sy-subrc NE 0.
          DELETE gt_bukrs.
        ENDIF.
      ENDLOOP.
      dynpfld_mapping-fldname   = 'BUKRS'.
      dynpfld_mapping-dyfldname = 'BUKRS'.
      APPEND dynpfld_mapping.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynpprog        = 'ZREM_AGENCY_REPORT'
          dynpnr          = '1000'
          dynprofield     = 'COMPANY'
          value_org       = 'S'
        TABLES
          value_tab       = gt_bukrs
          return_tab      = return_tab
          dynpfld_mapping = dynpfld_mapping.
    ENDFORM.                    " sale_org
    Reward points

Maybe you are looking for

  • Communication with matlab

    Hi, I have a problem(in HiQ ver4.1) in communicating with Matlab(ver 5.3.1). That problem is as below. >matlab >>x=eye(2) x = 1 0 0 1 >>x ??? Undefined function or variable 'x'. >> What's wrong??? I have launched matlab with "/regserver" option. Plea

  • Create additional column

    I have no experience or training in Illustrator and am trying, with the aid of  Classroom in a Book to pick it up as I go along.  I have a table with several columns.  I need to add an additional one.  I'm thinking I'd do that by using Area Type Opti

  • TC speed problems

    Hi. My TC worked great for about two days and then I started noticing that downloads were taking a very long time, much longer than at first and definitely much longer than the AirPort Extreme it replaced. My two computers also now fail to notice the

  • Forward Bacward Scheduling.

    Dear All, For material-A I run mrp using MD02. For material A i set master data as below: MRP TYPE:PD LOT SIZE: EX PROCUREMENT TYPE : E IN HOUSE PRODUCTION TIME:2 Days. GR PROCESSING TIME: 16 Days. Strategy group:10 Consumption mode:1 Fwd consumption

  • Computer Disconnects from Inter

    I have a Sound Blaster Card 5. surround and when I'm on the internet with MSN, I get kicked out and the message says that I have a sound card issue. I also went to the internet options and turned on all the SSL's like the message said. Please advise