Quantity of data and Calculation

Hello,
I've a Dataset like that:
Number   -   Creation Date    -   Complete Date
10001     -     25 Feb 2008    -   21 July 2008
10002    -      25 Feb 2008    -   26 Feb 2008
10003      -    20 June 2008   -   21 July 2008
I'm looking to have a report counting Month by Month how many data were created and Complete:
Month     -       Created      -       Complete
Jan 2008      -        0          -              0
Feb 2008       -       2          -              1
June 2008      -       1            -            0
July 2008       -       0           -             2
Do you have any example of formula to set-up in Crystal Report ?
Thanks in advance
Alex
Edited by: Alexandre VANNIER on Jul 22, 2008 3:29 PM

For the 1st Proposal, I can't do a left outer joined because my extract come from a Java Bean, so the DataSet is unique without any Table link, so I don't know how to generate this Month fields.
Concerning the Second proposal, I don't well understand how to do 2 types of Group,
      - I succeed to group by "Create Date" and Count, but I've no clue, how to re-use this count
      - How I can group again on a Second Parameter "Complete Date", then count and extract this value
Thanks for your help

Similar Messages

  • Comparison of single dates and calculation based on these - index

    Hello,
    I need to report on the index of sales for a certain date with the sales for a certain date previous year.
    An example could be having sales data 2000 EUR for 2007.08.02 in column A and sales data 1000 EUR for 2006.08.03 in columns B on the same row so that the two calendar days could be compared in column C (formula 2000/1000 = 2).
    I need help with ideas of how to reach this. I have one info objectin cube containing posting date in format: 2007.08.02.
    Clever ideas highly appreciated..
    thanks,
    F C

    FC,since the offset differs depending on the year in the date, its not possible to hard code it in query designer..
    but this can be done in customer exit.
    1. Create a user entry variable and a  customer exit variable (single value or interval )
    2. Fill in the values of customer exit variable from user entry variable using this logic
    DATA: l_s_range TYPE rsr_s_rangesid,
          loc_var_range TYPE rrrangeexit,
          l_year TYPE n,
          l_date type sy-datum,
    CASE i_vnam.
      WHEN '<custoemr exit varaible>'.
        IF i_step = 2.                    
          LOOP AT i_t_var_range INTO loc_var_range
                       WHERE vnam = '<user entry variable>'.
            l_date = loc_var_range-low.
            l_year = loc_var_range-low(4).
            Case l_year.
                when 2005.
                        l_date = l_date - 365.
                when 2006.
                        l_date = l_date - 364.
            Endcase.       
            l_s_range-low = l_date.
            l_s_range-opt   = 'EQ'.
            l_s_range-sign  = 'I'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    endcase.

  • How to add a new metadata field to iPhoto where new field is calculated as age in years and month based on a specific date and the date photo was taken ? I want to calculate and display the age of my two kids on every photo.

    Hi
    How can I add 2 new metadata-fields to every photo in iPhoto ?
    The new fields should state the age of my kids in years and months based on the date that they were born and the date that photo is taken.
    Exampel:
    My son is born 01.01.2010
    My daughter is born 01.01.2012
    Photo taken by data
    Aage of son
    Aage of daughter
    01.07.2011
    1 year 6 month
    not born yet
    01.01.2014
    4 year 0 month
    2 year 0 month
    I would like to be able to search by kids age and get the info displayed when doing slideshows.
    How to do this in iPhoto ?
    Any alternatives to accomplish the same ?
    Kind regards

    It can't be done with iPhoto.  There are some DAM (digital asset management) applications that can write to other IPTC fields that iPhoto can't read. One such app is Media Pro 1.
    However you would have to calculate the age for each date and add it to one of the fields. There are online age calculators that can do that for you: Age Calculators
    If you go thru that much trouble then use iPhoto, make the calculations and add the age to the Description field.  Then you can use Smart Albums to search for 1year 6 month text.
    OT

  • There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator.

    There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator. However, when i lower it, my safari tab goes out of the screen. What do you guys think i should do? I'm getting very nervous.

    hey HAbrakian!
    You may want to try using the information in this article to adjust the behavior of your function keys to see if that resolves the behavior:
    Mac OS X: How to change the behavior of function keys
    http://support.apple.com/kb/ht3399
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Tolerance Limits with Date and quantity

    Hi Experts,
    We would like to set the GR Tolerance Limits with Date and qty.
    how to set the Tolerance Limits for Date and quantity..??
    if we created PO 100qty and date 01-05-009.
    if we receive the goods on 20-04-2009 and 50qty...
    For GR .. Migo should be give error message..
    where can i set this Tolerance Limit Configuration.... can u please explin me..
    Thanks in Advance,
    Anthyodaya .

    Go to SPRO - Material Managemetn - LIV - Invoice Block - Set Tolerence limit.
    USe company code and maintain a value for ST
    ST: Date variance (value x days)
    The system calculates for each item the product of amount * (scheduled delivery date - date invoice entered) and compares this product with the absolute upper limit defined. This allows relatively high schedule variances for invoice items for small amounts, but only small schedule variances for invoice items for large amounts.

  • Tolerance Limits for Date and quantity..??

    Hi Experts,
    We would like to set the GR Tolerance Limits in the Configuration level.
    how to set the Tolerance Limits for Date and quantity..??
    if we created PO 100qty and date 01-05-009.
    if we receive the goods on 20-04-2009 and 50qty...
    For GR .. Migo should be give error message..
    where can i set this Tolerance Limit Configuration.... can u please explin me..
    Thanks in Advance,
    Anthyodaya.

    Hai
    for  quantity tolerence limit  u can do it  while creating  P O  in item details-->delivery tab.
    for date go to SPRO-->mm>purchasing->material master> define purchase value key>in that   st.del.time var               here it wil compare the dates and shows how much deviation is occuring for GR date
    configure messages in SPRO-->mm>environment data--> define attributes of system messages
    hope it may help u
    regards
    chandrasekhar

  • Promised Date Calculation based on Need by Date and Transit Time

    Hi,
    I have created PO with NBD as D25 (Day 25) and approved it. This means that i need the goods to be at my premisis by D25.
    Now the requirement is
    Promised date in my PO should be calculated to D25 - Transit Time. So that supplier will be notified D25-Transit time.
    Or Is there any workaround to overcome this.
    Thanks,
    Jey

    Jey-SCMFG wrote:
    Hi,
    I have created PO with NBD as D25 (Day 25) and approved it. This means that i need the goods to be at my premisis by D25.
    Now the requirement is
    Promised date in my PO should be calculated to D25 - Transit Time. So that supplier will be notified D25-Transit time.
    Or Is there any workaround to overcome this.
    Thanks,
    JeyHi Jey,
    Where you are capturing your lead time. You can do it in item master.
    Once it is there, write a personalization to calculate the promised date and update the field.
    Thanks,
    PS.

  • Interest calculation on due date and not on invoice

    Hello,
    Pls can some one let me how to start interest calculation on due date and not invoice date.
    In the interest calculation, T code FINT, the system calculates interest from invoice date till clearing date and not from due date till clearing date.
    BR,
    Zulfikar

    Hello,
    We have selected the Always calculate interest from net due date check box. but now when i run FINT transaction for a customer it is calculation interest from invoice date and not on due date. the item is already cleared.
    The scenarion is
    the net due date of the docuemnt is 30.07.2008 so the interest calculation should stard from 31.07.2008 till clearing date. but the interest calcualtion is starting from 01..07.2008 which is the invocie date.
    BR,
    Zulfikar

  • Date and time diffrence calculations

    Dear Experts,
    I have a doubt regarding the date and time diffrence calculation please help me out.
    This is regarding the report called u201CVehicle tracking systemu201D. The purpose of this report is to give the user information like how many vehicles have come in and how much time each vehicle has parked in the filling in the refinery and also the average time taken for a customer.
    For this we have created 4 info objects called
    1)     Park In Time
    2)     Park In Date
    3)     Gate Out Time
    4)     Gate Out Date
    We have created a routine which calculate the difference in Vehicle Park In Date & Time to Gate Out Time and Date
    The Time difference is number format.
    Example: For Vehicle1
    Park in Date and Park in Time are         27.11.2008 and 17:43:35
    Gate out Date and Gate out Time are     29.11.2008 and 09:36:16            
    Here routine will calculate the difference in the above date and time and the output is like this     1,155.138,000 (i.e. 1day, 15 hours 51 mins and 38 seconds) that means the vehicle has parked for 1 day and 15 hours etc.
    But we require the output like    1 day, 15:51:38
    Please give us the solution how to go about it.
    Thanks in advance,
    venkat

    Hi,
    I think in regard to your problem, the solution will be to make the variables in the query runtime by the replacement path variable.
    Please find the below link, its very much self explanatory and in regard to your problem.
    Hope it helps!
    [http://sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html]
    Regards,
    Neha.

  • Date and Time calculation in the Service Module

    Dear all,
    I have quite of a challenge here and i need serious guidance from your side.
    My client is in services industry and requires to calculate the date and time when the service call as to be closed. Not only it depends on the contract type the service is linked to but as well on the priority.
    The priority in Business One is unique, therefore we created a UDT (User Defined Table) to store the different 'response time' per contract/per priority. Example: a Platinum contract is always 24/7. But a gold contract priority 1 has to be closed in 240 minutes (4 workable hours) while a gold contract priority 2 has to be closed in 480 minutes (8 workable hours).
    I created 7 user defined fields on the Service Contract header that calculates the workable minutes per day. So if my coverage for Monday is from 8 AM to 4 PM, my UDF called DiffMon will show 480. For Tuesday, they start a bit later, and the coverage is 8:30 untill 16:00, therefore my UDF called DiffTue = 450.If the check box before the day in the Service Contract window is not ticked, then the UDF shows zero.
    I succeeded to calculate the expected closing time by using CASE WHEN statements as following, (all calculated in minutes):
         First, I need to check which day the Service call is created: A Monday or Thursday or... since my time coverage can change every day! I use SET DATEFIRST = 1 and compare today's date accordingly with my UDF DiffMon, DiffTue, etc.
         Then, When end of coverage time today Monday (4PM) minus the create time on the Service Call (1PM) is less then the time stored in my user defined table for that contract and that priority (i.e.480), then just add that to the create time and the create date (DateAdd(mi,...,...) ).
        When end of coverage time Monday (4PM) - Create time (1PM) + DiffTue(450) is bigger than 480, then I know I have enough time to solve my service call tomorrow Tuesday and I take the start time of Tuesday (8:30) + remaining time from yesterday (480-180 -> 180 = 3hours from 1PM to 4PM) and add that to the Create date + 1 so the end result will show Tuesday date and a time of 13:30
       Etc. untill I cover all possibilities based on which day is the service call created.
    NOW, I need to include the holiday table !!!!!!!!!!  And I can't foresee how the hell I am going to do that.
    The maximum coverage can go up to 60 hours, that means more than a working week! What happens if I have more than one bank holiday in that week period? What happens when my holiday table tells me that  date is a bank holiday but it is actually a Sunday and my contract is only running from Monday to Friday?
    Am I going straight to a big mess up?
    I will highly appreciate your comments,
    Regards,
    Frederic

    Hi,
    it is possible in query designer,
    u do the two things for getting the days between to dates
    1) in CMOD write the code for sy-datum create a customer exit variable in query as on caldate like eg zcedate
    when 'zcedate'.
    clear l_s_range.
    l_s_range-sign = 'i'.
    l_s_range-opt = 'eq'.
    l_s_range-low = sy-datum.
    append l_s_range to e_t_range.
    u write this code exit_saplrrso_001.
    it givs the sydatum
    2) then u create one more variable on zdate limit with replacement path
    then u go forto create the formula variable then it display ascreen there u select both customer exit variable and replacement path variable
    zcedate-replacementpathvariable
    it gives days i worked on this and succedded.
    like the same way fortime also u can do but here at the time of creating the customer exit varible u go for option as range here
    l_s_range-low = '20012009'
    l_s_range-high = '29012009'
    l_s_range-sign ='i'.
    l_s_range-opt = 'bt'.
    please try with the above one.
    Thanks & rEgards,
    k.sathish

  • GR  Tolerance Limits for Date and quantity..??

    Hi Experts,
    We would like to set the GR Tolerance Limits in the Configuration level.
    how to set the Tolerance Limits for Date and quantity..??
    if we created PO 100qty and date 01-05-009.
    if we receive the goods on 20-04-2009  and  50qty...
    For GR .. Migo should be give error message..
    where can i set this Tolerance Limit  Configuration.... can u please explin me..
    Thanks in Advance,
    Anthyodaya.

    Hi,
    GR tolerance limits can be set based on the quantity only .It is configuration settings .
    MM-->Inventory Management-->Inventory Management  and physical Inventory --->set tolerance limit/
    Following are the standard settings:
    B1 ( order price quantity variance with error message): 50 %
    B2 (order price quantity variance with warning): 20 %
    VP (variance from moving average price) 25 %
    In case of dates, the tolerance limit settings based on delivery date can be achived by using user exists or create a Z t.code goods receipt copying standard one & write a code to apply your logic while you do the GR.
    Thanks,
    AMIT

  • Set up Tolerance Limits with Date and quantity for GR

    Hi Experts,
    We would like to set the GR Tolerance Limits with Date and qty.
    how to set the Tolerance Limits for Date and quantity..??
    if we created PO 100qty and date 01-05-009.
    if we receive the goods on 20-04-2009 and 50qty...
    For GR .. Migo should be give error message..
    where can i set this Tolerance Limit Configuration.... can u please explin me..
    Thanks in Advance,
    Anthyodaya .

    hi,
    You can do one thing...
    Activate the SLED check...
    BY this when the date goes earlier or late from the expected date, then system show you the messages like:
    1. Earliest delivery date is DD.MM.YY..
    2. Expected delivery date was DD.MM.YY...
    In std sap system, the second message is already error message...so when get late delivery then it'll not be possible to maintain the GR...
    For the qty varinace, activate the quantity variance either via over/under delievery tolerances..or
    Via SPRO settings...
    SPRO >> MM >> LIV >> Invoice block >> check for qty tolerances and make the settings as per your requirement...
    Regards
    Priyanka.P

  • How and where does Delivery Date get calculated in ME51N

    Hi,
    Can anyone please let me know the point where the delivery date is calculated in ME51N ?
    i enter the Material and Plant and press enter and Delivery Date ( = Current Date ) gets populated automatically. I need to find out where it happens.
    Because there is a requirement that the Delivery Date should be equal to the Current Date + some Lead Time, instead of the current Date. So, I need to find a BADI or exit.
    For the transaction ME51N, there is only one Customer Exit - MEREQ001. And if I put a break-point at the compnents of this exit, the control doesnt go to these exits when I press Enter.
    And there is a BADI 'ME_REQ_POSTED', which gets triggered when we save ME51N, but it should be triggered even when we press enter.
    Please help me with all the above details.

    Hi Dagny,
    This is related to PO stuff. Probably the logic may be useful for you.
    You can try out enhancements:
    LMEKO001
    LMEKO002
    And you try out below code.
    FIELD-SYMBOLS: <beket> TYPE ANY TABLE.
    DATA: l_date        TYPE d
         l_ebelp       TYPE ebelp,
         w_beket       TYPE beket,
         t_beket       TYPE STANDARD TABLE OF beket,
         w_data        TYPE ty_data.
    * Get the item number in the correct format.
    l_ebelp = komp-kposn+1(5).
    * Get the tabe with Delivery Schedule data.
    ASSIGN ('(SAPLMEPO)ETT[]') TO <beket>.
    t_beket[] = <beket>[].
    READ TABLE t_beket INTO w_beket WITH KEY ebelp = l_ebelp.
    *l_data = w_beket-eindt.*
    Here l_data has the delivey date field you can even modify this data and update what ever u want.
    Thanks,
    Raj
    Edited by: Raja gurrala on Jul 23, 2009 3:24 PM

  • Create work flow for date and quantity change in Purchase order

    Hi SAP Guru's,
           Kindly share abt how to create a workflow in SAP for purchase order date and quantity change and link it with SAP PS.
    Scenerio : If someone change the Date n Quantiy of PO , the system should trigger a mail to the person responsible.
    Thanks a Lot
    Regards
    Janani

    I did create a Workflow in SWDD for PO date n quantity change , but am not sure how to map the same with the project . Kindly explain step by step.
    Thanks
    Janani A

  • Explain How delivery date is calculated using backward and forward schedul

    How can anyone please explain how delivery date is calculated using forward and backward scheduling
    I want to have it broken down into the following steps
    for eg for delivery date calculation following dates are used
    Material Availabilty Date
    Material Staging Date
    Pick/pack time
    Transportation PLanning date
    Loading date
    Goods issue date
    Transit Date
    Delivery Date
    Can some one please give me an example and explain wht these dates are
    for eg customer needs delivery date on  11/20/2008
    how would the system cacluate whether it can meet the delivery date using backward scheduling
    and if it doesnt meet how does the system do the forward scheduling
    also i am not clear with the following dates
    material avaialibilty date
    material staging date
    transportation date
    can some one please explain me all this in detail
    Thanks

    Hi,
    Basically this is the CRSD(Customer requested ship date logic)logic in which system calculates the ship date depends upon the material availability. If material is available system calculates ship date on the basis of master data maintained in customisation.Master data is maintained in the  following link.
    If material is not available then system takes into consideration vendor delivery date & then calculate customer ship date.
    Please go through the link in SPRO
    LE-Shipping -Basic shipping functions-Scheduling -Delivery scheduling & Transportation scheduling-Maintain duration.
    In customisation following data is maintained
    Material Availabilty Date
    Material Staging Date
    Pick/pack time
    Transportation PLanning date
    Loading date
    Goods issue date
    Transit Date
    Delivery Date
    Hope you got the idea of CRSD calculation
    Regards,
    Prashant.

Maybe you are looking for

  • How does one view all scheduled reports?

    I am scheduling 12 reports to run monthly. I don't find any view in which to see all of my scheduled reports, in order to verify  success (or failure) of last instance run, to delete or modify a report's schedule, etc. I also see no such "I am schedu

  • DVD Playback Artifacts (mini with 50" plasma)

    Mac mini hooked up to 50" panasonic plasma using dvi/hdmi cable. When in front row or using as a "computer" the display looks great. (1920x1080) If I play a DVD or playback a movie that I used mactheripper to store on an external drive (using front r

  • Someone know about Filenet ?

    I would like know more about Filenet, and know if it's is similar with Portal of Oracle.

  • Oracle Policy Manage

    Hello forum, How can I start the application named Oracle Policy Manager?, thanks

  • Can I use 1066mhz in my 800mhz?

    I have a 2008 2x2.8ghz Quad-Core Intel Xeon which uses DDR2 800mhz? A friend is offering me 2x2gb of 1066mhz memory. Can I use it?