Doubt in calculated kf

hi,
when we deal with calculated key fig where does the value for those kfs get stored into.
thanks

Hi Ravi,
The value of calculated key figures are generated at run time when the query is executed, therefore the values are not physically stored.
Regards,
Demetrius.

Similar Messages

  • Doubt on calculating Hexadecimal and binary values

    Please give me some tips to find the hexadecimal and binary values of negative numbers for eg:-
    The hexadecimal value of -1 is 0xffffffff. Here I don't know how the corresponding hex value is calculated.
    I calculate the hex value of numbers in this way. For eg: to get the hex value 11
    1*16^1 + 1*16^0 = 17.
    Similar logic to convert binaries to decimal by using the base 10.

    It's about 2s complement arithmatic.
    Hexidecimal representation is used by people interested in the bit patterns, rather than numerical values as such so integers are treated as unsigned. But when working in decimal we're generally treating the variable as signed. Negative integers are represented by "adding" 2^32 to them so -1 becomes 2^32-1. This is stored as a word where all bits are 1s, which means in hex all nybles are 'F'.

  • Doubt in calculating a ratio in a query

    Good afternoon forum,
    I have a question on how to calculate a ratio in a query.
    I have 2 ratios: Actual Cost and Cost Periodificado. And from these two I have to calculate other ratios (WIP).
    So the logic would be the following:
    A) If the actual cost is greater than the cost periodificado, the difference in these two ratios correspond to the ratio WIP (WORK IN PROGRESS).
    B) If the actual cost is <periodificado the cost, the difference in these two ratios correspond to the ratio WIP (PROVISION OF SPENDING)
    To reveal a ratio or the other depending on which of two conditions is met.
    If the condition is fulfilled, will be displayed in the query ratio WORK IN PROGRESS, and if the condition B is displayed on the query ratio
    PROVISION OF SPENDING.
    I do not know if I have explained well. Any suggestions?
    Thank you.

    The logic presented by Rakesh seems to be appropriate .
    u need to follow and utilise the Boolean operators...
    go to query designer
    lets say the ratio u need to display is in columns
    now right clik and say new formulae
    from there select the Formulae operator as Boolean operators
    use follwong formulae
    WORK IN PROGRESS =  (actual cost > cost periodificado) * (actual cost - cost periodificado)
    PROVISION IN SPENDING =  (actual cost < cost periodificado) * ( cost periodificado - actual cost)
    Hit okey
    go to actual costs properties
    put the display option as HIDE
    repeat the same for Cost periodificado
    go to query properties
    use the option SUPRESS ZERO VALUES FOR rows and columns....
    this way u will only display the required result

  • Query to calculate downtime while upgrading from ECC to EHP4

    Hi Folks,
    I am having below doubts for calculating downtime phase for ehp4 downtime.
    1.Do the end users will be able to work (In Production)  in pre-processing phase in EHP4 upgrade u2026?  (I think yes)
    2.How we will count the downtime  like from Preprocessing phase  to until System is up ? or we will count  from Downtime Phase. (I think from downtime phase)
    Regards,
    Sahil

    Hi,
    >
    > 1.Do the end users will be able to work (In Production)  in pre-processing phase in EHP4 upgrade u2026?  (I think yes)
    >
    Yes. Users will be able to work till pre-processing phase.
    > 2.How we will count the downtime  like from Preprocessing phase  to until System is up ? or we will count  from Downtime Phase. (I think from downtime phase)
    >
    There is no formula to calculate downtime as it depends upon number of factors like system resources (RAM &CPU), no. of R3load processes, no. of background processes, Parameters tuning etc.
    Do a test upgrade on your sandbox system (copy of production system) to get idea of downtime required.
    Thanks
    Sunny

  • Difference between Absolute and Relative in scales

    Hi Experts,
    I am creating scales to calculate price in charge calculation for shippers and LSPs.
    Here I have a doubt on calculation type (Absolute, Relative) and the impact of these 2 types.
    So anyone who already gone through same way can tell about the impact of these 2 calculation types ( Absolute, Relative).
    Points will be given for replies.
    Thanks,
    Shakti

    Hi Shaktiprasad,
    Consider this example.
    Rate table
    For 0-100 KM - Fixed Charge $50
    101-200 KM $ 0.75 per KM
    201-300 KM $0.65 per KM
    300+ KM $0.5 per KM
    For the above rate table,
    Scales would be defined as follows.
    >= 0 - Absolute
    >= 100 - Relative
    >= 200 - Relative
    >=300 - Relative.
    When there is a fixed charge, we would use Absolute Calculation type for that Scale.
    Hope this helps.
    Thanks,
    Michael.

  • Formulas in SAP HR

    Hi All,
    How are you all doing?
    I have a doubt in calculating the Sales Commision in my project. The details are hereunder.
    In our client's place, if the sales person reaches a target of 5 lakhs, they will get a commision of 50% of their basic pay, if they reach 3 lakhs target, they will get a commission of 30% of basic pay.
    Could any one suggest me how to get this done?
    Thanks a lot in advance.
    Regards,
    Priyadarshini. M

    hi
    create a custom infotype with wagetype and amount field and use an exit for infotype 8 and calculate the amount and populate it in customized infotype and run payroll for them.
    enhancement would be:
    PBAS0001--PA: Pers.Admin./Recruitment: Default values and checks
    reward points if it helps
    gunjan

  • String height

    hi
    I dont know whether this is the correct forum to ask my doubt.
    i calculated the string width of a string with a font style,font size,name etc.
    eg:
    Font font = new Font(fontName, style, size);
    JButton jButton = new JButton();
    FontMetrics fontMetrics = jButton.getFontMetrics(font);
    width = fontMetrics.stringWidth(inputString);
    i also want to get the height of the string also.how can i get it.i want the height of the string only based on font name, style, size.
    is there any method to find it.
    plz help me.
    rgds

    FontMetrics.getHeight
    FontMetrics.getMaxHeight

  • Formula calculation doubt ?!

    Hello ,
    Can we make a database item in a form store a formula calculation ..?
    :ITEM_QTY * :ITEM_PRICEor we have 2 make it displayed...!
    Regards,
    Abdetu...

    An item in a Data Block does not have to be displayed/visible in your form in order to stored/hold a formula calculation value. Create a test form which displays the calculation field initially so you know it is working correctly. Then set the "Canvas" property to NULL for the item and add a button that displays the value of the non-displayed calculated item in a Message(). When you click the button, you will see the value displayed! ;-)
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Oct 29, 2010 8:48 AM

  • Simple currency data type  calculation doubt

    Hello All,
    net_price2 = '12.10'.
    DATA : NET_PRICE2 TYPE  CHAR20,
           NET_PRICE TYPE KBETR,
           NET_PRICE1 TYPE CHAR20,
           C TYPE CHAR20.
    C = 1.
    LOOP AT ITAB2.
    NET_PRICE = ITAB2-KBETR * C.
    C = NET_PRICE.
    SHIFT C LEFT DELETING LEADING SPACE.
    ENDLOOP.
    NET_PRICE1 = C * NET_PRICE2.
    in this code i have two values for ITAB2-KBETR .those are 5.00 and 2.00
    for first record in loop i am getting value of net_price as (5.00* 1 = 5.00)
    but for secodn record what the problem i am facing in i am getting net_price as (5.00*2.00 = 1000.00)......though i want it to
    come like 10.
    so that net_price1 should come like 12.10 * 10 = 121.....
    what i shd do..this type of code now working..please help
    Abhijeet

    Hello All,
    i have done like this........its working.....but do let me know your commnets ....
    CHECK PREISFINDUNGSART EQ 'B'.
    TYPES : BEGIN OF T_KONP ,
            KBETR TYPE KONP-KBETR,
            MATNR TYPE A073-MATNR,
            KNUMH TYPE A073-KNUMH,
            END OF T_KONP.
    TYPES : BEGIN OF T_A004,
            KNUMH TYPE A004-KNUMH,
            KBETR TYPE KONP-KBETR,
            KSCHL TYPE A004-KSCHL,
            END OF T_A004.
    DATA :  ITAB TYPE STANDARD TABLE OF T_KONP WITH HEADER LINE,
            ITAB1 TYPE STANDARD TABLE OF T_A004 WITH HEADER LINE,
            ITAB2 TYPE STANDARD TABLE OF T_A004 WITH HEADER LINE.
    DATA : NET_PRICE2 TYPE kbetr value '12.10',
    NET_PRICE TYPE P DECIMALS 6,
    NET_PRICE1 TYPE KWERT,
    C TYPE  P DECIMALS 4.
    NET_PRICE2 = '12.10'.
    SELECT KNUMH INTO CORRESPONDING FIELDS OF TABLE ITAB1 FROM A004 WHERE
           MATNR = KOMP-MATNR.
    IF SY-SUBRC = '0'.
      SELECT KBETR KSCHL KNUMH INTO CORRESPONDING FIELDS OF TABLE ITAB2 FROM KONP FOR ALL
        ENTRIES IN ITAB1 WHERE KNUMH = ITAB1-KNUMH.
    ENDIF.
    C = 1.
    LOOP AT ITAB2.
    NET_PRICE = ITAB2-KBETR * C.
    C = NET_PRICE.
    ENDLOOP.
    NET_PRICE1 = ( C * NET_PRICE2 ) / 10000 .
    XKWERT = NET_PRICE1.

  • ''Prepare interest on arrear calculation''

    Dear Sap Gurus,
    Under Prepard interest on arrears calculation there are 4 options available 1. open and all cleared items, 2.open items and items cleared with payment, 3.no open items -all cleard items, 4.no open items -only items cleared with a payment. My doubt is When and where we have to use these options. Could you explain with examples.
    Thanks in advance
    Thanks&Regards,
    Periasamy.M

    Usuallu we select Open and All Cleared Items
    Remaining options purely based on the client interest calculation requirements.

  • Depreciation is not getting calculated correctly

    Dear All,
    I have an issue with Issue with Cut off key. I have created cut off key with 10% scrap value and chosen scrap value deduction from Base value and maintained the same in Depreciation Key.
    I have done some acquisitions of Rs 1,00,000.
    Now, When I see, AW01N,  Depreciation is calculated for the first year on  Rs 1,00,000, which Rs 10,000. Only from 2nd year on wards, Depreciation is calculated on Rs 90,000, which is Rs 9000.
    Pls doubt is that why Depreciation is not calculated on  Rs 90,000, after deducting scrap amount. Pls clarify my doubt.
    Thanks
    Edited by: SRKRISHNA on Mar 7, 2012 12:09 PM
    Edited by: SRKRISHNA on Mar 7, 2012 1:26 PM

    Hi,
    Check your depreciation key wether it is SLM or WDV method, If it is WDV the system doing is correct.
    Thanks
    Laqsh

  • Calculating Percent totals and Averages in SSRS

    Below is a report created using SSRS. I want to be able to calculate the percentage(%) total to add up to 100 % in the Total column. For some reason my averages are not working as you can see from the table. The idea is to calculate the averages of opportunities
    as well as Sold. But from my calculation, things are not adding up as I supposed. This report is not grouped by parent. How do I make this to work as it should? Thank you.
    (NB: Please zoom in to view the image)
    Zionlite

    Hi,
    According  to the description, I doubt you may manually add Total and Averages columns. Did you manually add Local and International or they were in a column group?
    You can use the following expression for the Opportunity Cost(averages) column in the total row:
    =Sum(Fields!opportunitycost.Value)/2
    How did you calculate the percentage column? If it is Sold value divided by Opportunity Cost value, use:
    =Sum(Fields!sold.Value)/Sum(Fields!opportunitycost.Value)
    Also try to define the scope in the expression and see if it make difference.
    If there is no progress, please capture the screenshot of your design tab.(Click on the report and capture the image of your report structure)
    Also, tell us the expression of the text box which in problem.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Interest calculation on bank loan

    Hi guru,
    we have taken long term loan from 10 banks.we have to calculate interest on loan from each bank.we have maintained each bank loan a/c as a vendor.As we know the procedure as given by sap for balance interest calculation will be followed here.is it correct or not.one more doubt is whether treating each loan a/c as a vendor is correct or not.
    Thanks
    shivaji

    Hi,
    Here you need Balance interest calculation.
    Balance interest calculation used for bank loans. It calculate GL balance only
    it will take particular period and need to configure document type SA.
    Item interest calculation used for item wise calculations like vendor wise and customer wise. It depends on payment terms and in this GL accounts Select open item management.
    I hope it is cleared.
    Thanks & Regards,
    Haribabu Bodapudi

  • Macro calculation to change for one particular month of year.

    Hi All,
    I have a query for change in macro. WE have a macro to calculate Target inventory which has same calculation for all through future months for 18 months. Now my user wants to change this all future months calculation would be same except for September every year. Now What function do I use in condition for calculation to check if month is September than do a different calculation.
    Thanks
    siva

    Hi Verma,
    As u need to exclude the spetemner month you need to add the code in of clause.
    If
    new condition
    Month(row) = 9
    result row
    else
    result row.
    Inthe result row u can do ur calcualtions...
    You can do this in a new step  for the exception you want to maintain.Hope this will help you.
    Let me knw if u have further doubts.
    Thanks
    karthik

  • Cost center planning for overhead calculation

    Gurus,
    I have a doubt regarding the cost center planning for overhead calculation.
    My scenario is:
    There is a service cost center from which a certain percentage I want to allocate to the products as overhead. Now while doing so I have created a cost center and a cost element of type 43 (internal activity allocation). This cost element is the base for overhead calculation. Also I have created one cost element of type 41 (overhead rates). I have defined the credit (of cost sheet) with the cost element of type 41 and the cost center as mentioned.
       Now I am facing a problem while planning the cost center with cost element type 43 through KP06.The system is throwing the error message: 'Cost element xxxx can only be used for activity input'. My understanding is we must carry out the planning for the cost center to allocate a certain percentage to the product cost estimate. If I am not allowed to use the cost element of type 43 to plan, what should I use for the planning?
    Request your suggestion.
    Thanks in advance!
    Snigdho.

    Hi
    Since you mentioned catg 43 cost element, I thought you are using Activuty Type
    To apply overhead on the product during CK11N, you need not plan any value on the cost center... The values planned in the cost center can not be used as a BASE in your costing sheet....
    It goes like this
    1. Your cost estimate has BOM + Routing
    2. So, the cost elements that you would see during CK11N, can be broadly classified into 3 types
    a. Primary cost ele - Material Consumption accounts for BOM components
    b. Secondary cost ele (Catg 43) - If you use any actvity type in the routing
    c. Secondary cost ele (Catg 41) - These cost elements are parasites... They need some basis to calculate the overhead value... That basis can be either the (a) or (b) above.....
    I think, what you are planning to do is Plan Primary cost ele in a cost center and trying to use the same as the Basis.. That wont work!
    What you need to do is
    a. PLan the values in the cost center, say, 100,000 USD
    b. Absorb it on the basis of 2.a or 2.b
    If 2.b is not applicable in your case, since you are not using activity types, then 2.a is the Only option left for you
    Hope it is clear....
    Regards
    Ajay M

Maybe you are looking for