Absence calculations with 3 decimals

Hi All,
Whenever Employee having 8 hours shift and if he is absent for 1 hrs, then Absence is deducting with 0.13 (1/8=0.13). But my requirement is Absence should get deducted with 0.125 (1/8=0.125).
I hv done with PCR like
Zero= N
num=1
num/8
addwt&leave
Please help me out to get absene calculated with rate 0.125.
Thanks in Advance,
Sandeep

Hi
You can try like in this thread & let me know how it is working,
https://scn.sap.com/thread/2138464

Similar Messages

  • Issues with Decimals

    I have an issue with decimals in calculation : -
    Data : G_SUM TYPE p DECIMALS 2.
       KOMV-KBETR = 2.00  (KBETR TYPE IS P(6) Decimal 2)
       WG_A650-ZZBILL_QUNT = 10.00 (ZZBILL_QUNT Type is P(7) Decimal 3)
            Loop at I_A650 into WG_A650.
                 G_SUM = G_SUM + ( KOMV-KBETR * WG_A650-ZZBILL_QUNT ).
            Endloop.
               XKWERT = G_SUM. (XKWERT Type is P(7) Decimal 2)
    Form the above calculation : - G_SUM should be 20.00
             But the result is : -  20000.00
    To aviod this i changed the declartion of G_SUM as below : -
    Data : G_SUM TYPE p DECIMALS 5.
    Now it is calculating correctly but i need to assign this value to a another field.
          Its data type is (TYPE p DECIMALS 2)
    Now the result is again changed to 20000.00
    Any sugesstion to fix this issue will be apprecaiated.
    Regards,
    Kittu

    Hi Florian Kemmer,
    Thank you for your quick response!
    It is my mistake, i could have explained in more efficient manner. 
    The below values are from Internal table only and it has only 1 record.
    KOMV-KBETR = 2.00    
       WG_A650-ZZBILL_QUNT = 10.00
    (G_SUM = G_SUM + ( KOMV-KBETR * WG_A650-ZZBILL_QUNT ).)
    After the above formula is executed it shoudl display the value as 20.00
    Due to issues with the decimals it is displaying as 20000.00
    And the declaration is not exactly done as described...It is just for understanding.
    KBETR --> is of type  P(6) Decimal 2.
    Any suggestion will be appreciated
    Regards,
    Kittu
    Edited by: Kittu on Mar 29, 2010 12:34 PM

  • WithHold Tax with Decimals

    Hi,
    Is it possible to calculate the Withold Tax with value in Decimal places? i.e., If the base amount is 11111 and the withold tax % is 3 then the WT amount is 333.33 wherein SAP calculates it as 333 only. We had recently implemented B1 in Thailand and the requirement is that, the withold tax should be calculated with exact decimals and not rounded off.
    When I checked the Withold tax definition, there are only 2 options for rounding off, either to a lower amount or to a higher amount and there's no option to keep it as it is.
    Anybody has any solution?
    sriram

    Hi Adele,
    It has nothing to do with the decimal places.
    In the withold tax configuration, there are 2 types of rounding off methods available
    "commercial values" or "truncated AU" and you need to select any one of them.  commercial values setting, makes it to the next higher numeric and truncated au rounds it off to a lower value.
    There is a possibility that, at the time of carrying out the A/R or A/P transaction, the calculation can be done manually and we can enter the amount with decimals and SAP takes it as it is.  But when calculates it on it's own, then it doesn't.  That's why I wanted to know, whether anybody else is having this problem and whether they have any solution in place?
    sriram

  • Average calculations with dates

    Hi,
    I have a problem with calculating the average time a call lasts. I have a start and finish time to a call that are stored in a database in datetime format. How do i find out the time of the call and then get an average over the number of calls made in a month. I have to hold the time format and show the result in the same time format that is in the database. How do you do this? I know how to do it with decimals but how to manipulate time confuses me.
    Cheers
    Niall

    You can use the method getTime() of the class java.sql.Timestamp, which returns milliseconds in the long type, and toString() method of java.sql.Time may serve your aim here.

  • Preference calculation with batch management

    Hi experts,
    I am trying to find any documentation or manuals about how to set-up and use preference calculation in SAP-SD-FT or GTS based on batch management.
    Does anyone of you know how to do it and use such kind of "standard"-SAP-solution or is customer-specific programming essential.
    Any reply would be much appreciated.
    Best regards,
    Corinne

    Hi Corinne,
    Did you get anything for your requirement specific to Preference calculation with batch management. I am also looking for the same. let me know if you found something useful or if you created an enhancement to resolve this issue.
    Regards,
    Sumit

  • How Achieve timedseries calculations with out using AGO And ToDate function

    Hi,,
    1)
    How Achieve timedseries calculations with out using AGO And ToDate functionion
    this question asking in interview ..is it possible..?
    if yes please response as soon as possible..
    2) i have 2 cloumns Product and value...
    client requirement is they need ranks based on Value ..in dashboard .using dashboard prompt..edit box...if user enter any number (ex :5 ) report should show top 5 ranks if he enter 20 should be top 20 ranks..
    how to achive this ?
    thanks,
    raj

    Consider yor first question:
    1. Yes, we can create timeseries measures without using AGO and TODATE
    1. Create ALIAS of fact tabe in the physical layer
    2. Join the Time id from the ALIAS fact table with the YAGO_MONTH_ID column from your time dimension table (For calculating Year Ago variants) similarly join with MAGO_MONTH_ID column for Month Ago measures.
    3.Pull the ALIAS tables as an additional Logical table source in the Lgical layer
    4.Keep the mapping of the columns from the ALIAS table as its is
    5. For e.g If you pick Revenue from the Year Ago Alias table it will give you the "Prior Year Revenue"
    See if this helps you

  • APD-Issue with Decimals

    hi,
    I am using APD to get the report results as CSV file. I have restircted not to show the decimal places for the values in the report  but the file that is genarated always comes with two decimals.
    The business  does not wants the value with decimals.  I have looked at all the options to get this possible in APD.
    Please help with this issue. I am not good at ABAP and I may not be able to write a program.
    Regards,
    Raghu

    Hi;
    APD seeks to direct the base, then it makes sense to try to change the decimal places in the query, there is documentation that shows how to Creation of Key Figures with Higher Decimal Place Precision (https://service.sap.com/sap/support/notes/460652)
    Sá Freire
    Edited by: Luiz André Sá Freire on Feb 2, 2011 4:35 PM

  • Calculating with attributes occurs problems in aggregation ...?

    Hi Gurus, I have a question concerning the calculation with attributes:
    I have created variables (as replacement path) based on a product attribute. The variables (with the attribute value) do work properly and I get the right numbers in the lowest hierarchy level.
    Problem: within my hierarchy structure the query does not aggregate but reports errors ("X") in the upper hierarchy levels. How can I solve this problem?
    Thank you for answering.
    Greetings from T. Duong

    Hi, I already have tried this but it didn't lead to the required result.
    Still thank you for answering. I have seen in SAP Help that the options in extend properties might solve similar problems ... still mine cannot be solved by this. The problem is not the attribute value itself, as I found out.
    I have another thread here, where I defined my problem that occurs due to a formula collision between a structure and a hierarchy.
    Thank you.
    Best regards
    T. Duong

  • DYNP_UPDATE_FIELDS  with decimals

    Hi all,
    I need your help i am updating fields on dynpro using FM DYNP_UPDATE_FIELDS  but the probles is that i need to display amounts with decimals and actually it is  updating without decimals. Somebody knows how can i update my field showing decimals?  Please!!!
    Thanks in advance.
    Mar.

    Hi Marisol,
    Please find the link Below
    [Fields |Updating attributes of screen table]
    Hope this will be very useful to you.
    Thanks
    Kalyan

  • KP06 cannot enter number with decimals in fxd. consumption

    Hi!
    When using transaction
    KP06 Change Cost Element/Activity Input Planning with
    Planner Profile SAP102,
    layout 1-102 Std.layout Activity input ActInd/ActDep
    we cannot enter number with decimals in field Fxd. consumption
    Field name MEF
    Data element MEFXXX
    When we enter number with decimals like 12,45 it gets rounded in 13.
    I have tried to change number format of this collumn from Not defined
    to 0,00 but this is not helping. The rounding still takes place.
    My question is where can I assign the unit (of measurement) for posting of quantities.
    Regards,
    Marina

    The UOM is assosiated with Activity Type, and has a certain number of decimal points in the definition of UOM.  The other place to influence decimal points in the proper planning layout (column settings).

  • Using Modulus (%) arithmetic operator with decimals

    When trying to use the arithmetic operator modulus with decimals there seem to be some errors in the results. Is there a restriction on the number/value of decimals that can be used with this operator? Am I perhaps just using it incorrectly?
    example ...
    Double valA= new Double("12.4");
    Double valB = new Double("1236");
    double result = valB.floatValue() % valA.floatValue();
    System.out.println("valB : " + valB );
    System.out.println("valA: " + valA);
    System.out.println("result : " + result);
    produces :
    valB : 1236.0
    valA : 12.4
    result : 8.40003776550293
    But :
    Double valA= new Double("12.5");
    Double valB = new Double("1236");
    double result = valB.floatValue() % valA.floatValue();
    System.out.println("valB : " + valB );
    System.out.println("valA: " + valA);
    System.out.println("result : " + result);
    produces :
    valB : 1236.0
    valA : 12.5
    result : 11.0

    Floating point arithmetic in general is not exact. The problem is that you are expecting exact results.
    In the second example where you use 12.5 and 1236.0 is just so happens that both of those numbers can be represented exactly, so you do get an exact result.

  • Absence Report with Approver

    Hi All,
    I need to develop absence report with approver name for example.
    Emp No, Name, Absence Type , Sdate, Edate, Days, Approvers
    I need to show the actual approver instead of supervisor who is attached with employee, for this I am using the table per_absence_attendances but approver information is not available.
    Regards,
    Ssali

    Hi,
    What I understand from your question is that you want to bring the last approver name on your report. if it's so then in the per_absence_attendances table there is filed called created_by which is the user id of the last approver. So you can get the last approver name by this following query.
    select ppx.employee_number Emp_No, ppx.full_name Name, paa.AbsenceType , paa.Sdate,paa. Edate, paa.Days, fu.user_name Approvers
    from per_people_x ppx
    ,per_absence_attendances paa
    ,fnd_user fu
    where fu.employee_id=paa.person_id
    and paa.person_id=ppx.person_id
    and ppx.business_group_id=?
    and paa.business_group_id=?
    Hope it will help you.
    Thanks
    Asif

  • Generic calculations with changing number of channels

    Hello,
    I would like to make some basic calculations with a flexible number of channels. The point is that I get an error if I specify channels which are not existing in my calculations. For example :
    CCh("[1]/CNV",2)-CCh("[2]/CNV",2)+CCh("[3]/CNV",2)-...
    I think it should be possible to do it by using a script, but do you have any idea how to do it only with the calculator?
    Thank you in advance
    Jérémy
    Solved!
    Go to Solution.

    You can do easily by using Recoding mode for VBScript described in the following KB:
    http://digital.ni.com/public.nsf/allkb/B769AE10EDB656D28625692D00583166?OpenDocument
    Paolo_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • CCM2.0 Upload files with decimals in prices

    Hi experts
    We use a csv-file to upload into CCM2.0.
    We now have a problem when a price in the file is with decimals. We use "," as decimal seperator (100,25 EUR) but we can only upload prices if the decimal seperator is "." (100.25 EUR).
    I means a lot of work changing decimal seperators from "," to "." in the file from our vendors
    Do anyone have an idea how we can change this - so it is possible to upload prices with "," ?
    Thanks in advance
    Jesper

    Hi Jasper
    are you keeping 100 25 in separate column? why?
    Are you receiving the Excel file from vendor and making into CSV file ?
    csv file can delimit ; instead of ,
    if  you want to make delimiter set up for the above file
    go to control panel ->regional and language options-> click->go to regional option tab-->right hand side you may see customize -> list separator , ( you can change so when you save excel file data into csv file and open a file with notepad mode -> you can see this file in ; instead of ,
    br
    muthu

  • Formula variable for date calculations with date-characteristics (2004s)

    Hi SDN,
    I'd like to calculate the number of days between to date-characteristics. In 3.5, I was used to create 2 formula variables of the type 'replacement path', with 'date' as the dimension indicator. In my formula, I used the 'proces value as date' function for each variable, and I could perform calculations with them.
    I'm trying to do the same in 2004s. However, I can't create replacement path's with 'date' as a dimension indicator. So I use 'number' instead, but it doesn't work: my query shows 'x'.
    I can use the variables that I created using the 3.5 query designer as a workaround. But I hope there is a better solution.
    If other people experience the same problem, please respond. Then I know it's probably a bug.
    Kind regards,
    Daniel

    Daniel,
    Try to look at the formula variables defined before the upgrade and see what is different to the newly defined. I am guessing just the terminology used is different.
    If not the date value might be blank or something for one of the f-variables used. Try to display the formula variable values as KF in the query results and check what it is showing.
    I hope this helps.
    -Bala

Maybe you are looking for