If condition in calculated keyfig
Hi All
I have 3 calculated keyfigures in my query
A,B,C
please tell me how to put if condition in calculated keyfig.
example:If A =0 and B=0 then C=0
if not A-B/C*100
Please help me out
how to proceed
thanks
sreelatha
Dear Latha,
have a look at this Help file example...
http://help.sap.com/saphelp_nw04/helpdata/en/1b/55d979fd5ca54d96fdb605f22b677e/frameset.htm
Conditional Calculations (IF-THEN-ELSE)
You can make conditional calculations using Boolean operators An expression in the form
IF<Logic Expression> THEN <Expression1> ELSE <Expression2> can also be made using a formula in the form
<Logic Expression> * <Expression1> + NOT <Logic Expression> * <Expression2>
Example: IF Actual Costs > Plan Costs THEN Plan Costs + Plan Deviation ELSE Actual Costs
can be written as the following formula:
(Actual Costs > Plan Costs)* (Plan Costs + Plan Deviation) + (NOT (Actual Costs > Plan Costs)) * Actual Costs
or
(Actual Costs > Plan Costs)* (Plan Costs + Plan Deviation) + (Actual Costs <= Plan Costs) * Actual Costs
Hope it helps...
Similar Messages
-
PO condition type calculation formula.
Dear there,
Hallo, i going to develop a customize create Purchase order screen (same like ME21n), and i facing a problem in the condition type calculation part, because i dun know how to get the formula of each condition type calculation so i cannot calculate the price for the PO ,
Is there any menthod we can get the formula for each condition type ? or any standard function we can use to calculate the price instand of using coding to calculate it?
THanksHi,
Hope this link will help you. Condition Type Formula--G -
Dear All,
We created a condition type (Calculation Type : A (percentage) ) and assigned access sequence and maintained in pricing procedure but later decided to change the calculation type to B (Fixed Amount) on this condition type.
I am wondering, what impact it will have ?? Can I simple change the calculation type on this condition type or should I take care of any thing else ??
Let me know, What things I have to take care of. Thanking you.
Anu.Hi Anu,
No need of worry if it is independent condition type, means other conditions are not depending on it OR it is not depending on others.
Also check the condition records if they have any impact.
Else not a big issue, simply go ahead. -
TAXINJ WITH CONDITION BASED CALCULATION
Hi MM Gurus
We are using TAXINJ procedure for tax calculation with formula base calculation (i.e. tax rates are maintains in J1ID ). As we now that TAXINJ procedure support both condition based and formula based tax calculation. But when I want to use the condition based tax calculation with TAXINJ by maintaining the condition record in FV11, I am getting the tax calculated with formula based only. System is ignoring the condition record maintain in FV11. So please explain how to use the TAXINJ procedure with condition based calculation by maintaining the condition record.
Reward point will be given please ..
J K Patel
Ahmedabad
GujaratHi JK,
if you r using taxinj, then system picks up the rate from J1ID only. if you want to maintain the condition records in FV11 then delete the rates in J1ID. hope this will solve your problem.
Regards,
patil -
Sql query with conditions and calculations???
Hi,
how I can build a query with conditions and calculations?
E.g. I've got this table
Start | End | Working Place | Mandatory
01-JAN-13 | 11-JAN-13 | Office | 1
14-JAN-13 | 25-JAN-13 | Home Office | 0
04-MRZ-13| 15-MRZ-13 | Office | 0
11-FEB-13 | 22-FEB-13 | Office | 1
Now if column working place=Office and column mandatory=0
the new column "price" has to calculate: (End-Start)* $25.00
and if working place=Office and column mandatory=1
the "price" column has to calculate: (End-Start)* $20.60
else $0.00
I tried it with the case statement but I didn't know how
to calculate my values and display it to the virtual column "price".
Something like
case
when Working_Place = 'Office' and Mandatory=1
then ...
else '0.00'
end as PRICE
Or is it not possible?
Edited by: DB2000 on 12.03.2013 05:09Use CASE:
select start_dt,
end_dt,
working_place,
mandatory,
case
when working_place = 'Office' and mandatory = 0 then (end_dt - start_dt) * 25
when working_place = 'Office' and mandatory = 1 then (end_dt - start_dt) * 20.60
else 0
end price
from tbl
START_DT END_DT WORKING_PLA MANDATORY PRICE
01-JAN-13 11-JAN-13 Office 1 206
14-JAN-13 25-JAN-13 Home Office 0 0
04-MAR-13 15-MAR-13 Office 0 275
11-FEB-13 22-FEB-13 Office 1 226.6
SQL> SY. -
Can I extract Conditions and Calculations from the Discoverer V5 EUL?
I have been using The Discoverer V5 EUL Business Area to extract information on workbooks such as the owners, report names, descriptions etc. I am trying find out if the conditions and calculations within reports are stored separately within the EUL5 tables? So far I have only been able to extract the entire SQL.
Does anyone know if the conditions and calculations are stored within the EUL5_DOCUMENTS.DOC_DOCUMENT field or elsewhere? I am looking for a quick way to access them which avoids having to look at each report manually.
Thanks
GBHi GB
You are out of luck. Conditions and calculation associated with a workbook are embedded within the workbook itself and are not accessible outside of it. Workbooks themselves are stored as binary objects within the database and are not decodable.
Best wishes
Michael -
IF Condition in Calculated Key Figure .
Hi,
can anyone can tell the syntax for using "If Statement in Calculated key figure ".Hi,
If amt1 ne amt2.
select amt1.
endif.
Try the following for above condition :
Create a formula varible.
1) select 'amt1'.
2) Go to boolean, select 'is not equal to'.
3) select 'amt2'.
4) select '*'.
5) select 'amt1'.
its looks like
'amt1'<>'amt2'*'amt1'
hope this helps..
regards,
raju -
Conditions in Calculation Schema not reflecting in Purch Info Record
Hi,
We are using calculation procedure TAXIN.
We have maintained Calculation Schema & maintained required conditions.
When we checked for maintaining these conditions in Purchasing Info Record, (Transaction Code - ME11 / ME12), these conditions are not appearing in the info record. But, the conditions appearing in the info record are not same as those in the Calculation Schema.
Also, the conditions maintained in Info Record are not getting copied to Purchase Order (except Base Price P000).
What could be the reason behind this? How to correct the same?
Regards,
Prashant KolhatkarTax procedure condtions will not appear in the info record. for the conditon which is not reflecting in the PO, you may check in inforecord whether there is a check mark in condition record saved for approval; if so it is deleted
-
Issue in Return sales, condition value calculation.
Hello All,
I am creating return sales order (order type-RE) with reference to a Billing document, and reducing the quantity while creating the sales order (Example: Ref billing quantity-60 and sales order quantity-30). Here even though the quantity is reduced to 30 PC the basic excise duty value shown in the sales order is same as in the reference billing document (with 60 PC quantity).
In pricing procedure for condition type (basic Excise duty) calculation type used is 355.
Kindly help me out to over come this issue.
Regards,
ManojYour post is not sufficient to understand your requirement. Let me know whether your client are into TAXINJ or TAXINN. Also as requested already, share your pricing procedure screen shot. Moreover, have you checked the Analysis screen from condition tab of that sale order ? If not, better check there which will give a clear picture. Finally, ensure that there is no manual condition type JMAN used in billing document in which case, as per routine 355, system will copy that value.
G. Lakshmipathi -
Shipment Cost: Group Condition Type calculated on a special weight...
Here is the scenario: A shipment (truck) combines multiple deliveries, grouped on a stage when same destination (happens often).
A condition per LB is to be calculated on the cumulated weight per destination (per stage) BUT not simply on the gross weight, but on the heavier of 2 special weights: the business here uses a special formula according to the packaging, and it gives 2 weights (stored in Z fields of LIKP), an actual weight and a cubic weight.
The purpose is to identify for each delivery the heavier weight and to use cumulated the weight across the deliveries to the same destination to calculate the per CWT cost.
This is my first issue: the condition type is defined at Delivery calculation base, Calculation Type Multi-dimensional, and as a group condition). How do I define to use the cumulated of each delivery heavier weight ? In the Scale for condition type view, I used the scale basis D Gross Weight (which is not right..), there is also a field for a Scale Base Value formula, I wondered if that is what I should use..
My 2d issue: once the cost is calculated, I have to re-distribute it on the deliveries as per the proportion of their heavier weight compared to the total weight used for the calculation Should that be an alternate Condition Base Value formula in the pricing procedure (where xkwert would be .the heavier weight .would that be then a new Z field to be filled in by the user exit determing the heavier value) ??
Thanks a lot, it is a tough one, I know...who is the best ever shipment cost pricing consultant ? !Hi Guys
Unfortunately I do not think that you will get an answer now. Either your question is not simple or we do not know.
So in the interest of keeping the Forum tidy and easier to surf through could you please close your thread and either try one of the other forums or try another post. I do not think that most people will bother to look this far back anymore.
Sorry I cannot help as I would if I could.
Regards
Frenchy. -
Pricing condition record, calculation type F volume, scale basis E net weig
HI SAP Gurus,
I have a question on pricing condition records.
I have a requirement that needs to populate discount based on total net weight on the PO. For example, if total net weight is greater than 1000 LB, it should give 10 cents discount per GAL. The base UOM of the material is EA, GAL is an alternative UOM and Order Pricing Unit. I can make the pricing condition works if the discount is per LB. However, it doesn't work for discount given per GAL. The calculation type is F volume and sacle basis is E net weight. Pls advise what I need to do to make it work. Thank you so much!closed
-
Adding WHERE condition in "Calculations" tab of SSAS Cube Designer
HI,
I am using SSAS 2012 version to develop SSAS cube
and need help on following scenario :
In the BIDS designer, on the Calculations tab:
I am creating one calculated member called [% Jobs] for which I am writing MDX expression as below :
'([Measures].[On Time jobs]/[Measures].[Total Jobs])*100'
Till here all is well...
Now, How do I implement here WHERE condition ?
For ex., in my fact table I have a column Line_Number
I want to implement above MDX expression such that it only considers Line_Number=1
while doing the above calculation.
Hope it is clear.
Thanks...I tried with below method :
While keeping the expression as it is :
'([Measures].[On Time jobs]/[Measures].[Total Jobs])*100'
What I did was in the partition tab, i choose option "Query binding" (instead of Table binding) and over there I mentioned the condition
WHERE Line_Number=1
So it should do the calculations only for the first line.
Is this approach also correct ?
Thanks -
Condition for Calculated KeyFigure
Hi everyone,
I need to have an additional Keyfigure based on a Condition. For example, If Staus is Completed , then I need to take the Net Price as Allocated Price. And if Status is Incomplete , then I need to fill the Net Price as UnAllocated Price.
So , in this case , I will have 2 Calculated KeyFigures in the Query Designer. One for Allocated Price and the other for Unallocated Price. But how can I restrict t the values based on Status.
For Example
Status Net Price Allocated Price UnAllocated Prcie
Complete 100 100 0
InComplete 200 0 200
1) Is there any way tht we can avoid displaying Unallocated Price for Complete Status(Since value will be Zero) and Allocated Price for Incomplete Status
2)Is it better to have these values calculated in END ROutine in the BackEnd.(But this might affect the performance as I require these values only for this Report and I have more than 2 Reports based on the same InfoProvider)
Thanks and Regards,
SamirHi,
Could you please let us know what will be the value of the status field if it is incomplete. Suppose if you have an EMPTY value if it is not complete, you can use the IF ELSE condition with the Boolean operation in the Calculated Keyfigure or Formula as below,
(Status ==1)* Unallocated Keyfigure + (Status NOT EQUAL 1)*allocated Keyfigure
If it is not the case then better to handle it at the routine level. Hope this helps.
Regards,
Mani -
Exclude conditions for calculating vbap-netwr
Hi,
I know the net price field is calculated automatically as a total of the pricing procedure excluding tax condition types, but is possible to exclude another condition wich type is discount or surcharge or a price???
Thank you!Hi
You can exclude any condition type from net price in your pricing procedure calculatio. Did you try it in your system by maintaining condition type in pricing procedure and deducting that from net price?
Thank$ -
Va01 condition type calculation
1 want the net value to be the total of all condition tyoe amounts on the condition tab. at the moment it is only summing up the total of two condition types even if there are more than 2 condition types
Hi,
These settings are done in the Pricing procedure related to the sales order.
GOTO --> Header --> Conditions --> Click on the Aalysis tab at the bottom.
Get the pricing procdure from the next screen.
Transaction --> VoK0 --> display the pricing procedure.
click on the controls - you will find the list of condition types related to this pricing procedure.
Check the column for total which indicates which all condition types to be added.
I think here you should take help of Functional Consultant and get this resolved. Its all related to settings.
Hope this helps..
Regards,
Shahu
Maybe you are looking for
-
Disk Repair Boot from OSX Disc...
Have a bad issue: my iMac has been found (using disk verify) to be corrupt. It tells me to boot from the installation disc to repair. Only problem is my DVD SuperDrive is dead! How can I boot from a disc if the drive won't mount? I've used three othe
-
First, please let me know which community to post this to? I'm just making a wild guess. Background: I have an iMac that was purchased in mid-2011. I currently am using Mtn Lion OS 10.8.5, but am preparing to upgrade to Yosemite. I then plan to buy a
-
What's a good cross-platform choice?
Hey, I use LE and GB, but I would like to have any suggestions about a good cross-platform program that I could use to do some collaborations with a friend who is stuck with a Windows-based system for now. Anyone?
-
I BOUGHT a used ibook g4 and cant upload pictures, help
i have mac os x as far as i can tell .. want to download some program like iphoto if i can
-
Does anyone know where to find V3 drivers rather than v4. I'm having issues with XP working in my server 2012 environment. Thanks in advance!