Cost Calculator
Hello,
I am creating a cost calculator for a hobby of mine and was wondering what would be some good ways of handling it. It does not have to be real fancy and I would like it to be contained to one page. Ideally I want to fill in the blanks, click the calculate button and then it will display the results. Here is my base that I am working with. I know how to do the actual calculating routines, I just need some input on some good ways to go about it. TIA.
<cfform name="form1" id="form1" method="post" action="">
<u>Calculator</u><br />
<br />
<table width="64%" border="0" cellpadding="0">
<tr>
<td width="31%"><div align="center"><strong>Component</strong></div></td>
<td width="31%"><div align="center"><strong>Quantity</strong></div></td>
<td width="38%"><div align="center"><strong>Cost</strong></div></td>
</tr>
<tr>
<td>Powder(lbs)</td>
<td>
<cfinput type="text" name="PowderQty" id="PowderQty">
</td>
<td>$
<cfinput type="text" name="PowderCost" id="PowderCost"></td>
</tr>
<tr>
<td>Powder Charge(grains)</td>
<td><cfinput type="text" name="PowderCharge" id="PowderCharge"></td>
<td> </td>
</tr>
<tr>
<td>Primer</td>
<td><cfinput type="text" name="PrimerQty" id="PrimerQty"></td>
<td>$
<cfinput type="text" name="PrimerCost" id="PrimerCost"></td>
</tr>
<tr>
<td>Case</td>
<td><cfinput type="text" name="CaseQty" id="CaseQty"></td>
<td>$
<cfinput type="text" name="CaseCost" id="CaseCost"></td>
</tr>
<tr>
<td>Bullet</td>
<td><cfinput type="text" name="BulletQty" id="BulletQty"></td>
<td>$
<cfinput type="text" name="BulletCost" id="BulletCost"></td>
</tr>
</table>
<p>
<cfinput type="button" name="Calculate" value="Calculate" id="Calculate" >
</p>
Cost/Round: Show calculations when calc button is pressed<br />
Cost/20:Show calculations when calc button is pressed<br />
Cost/50:Show calculations when calc button is pressed<br />
Cost/100:Show calculations when calc button is pressed<br />
Cost/500:Show calculations when calc button is pressed<br />
Cost/1000:Show calculations when calc button is pressed<br />
</cfform>
Thanks. Right, I understand that. Maybe I was not clear in my statement. The actual math part, I understand what needs to be done, I guess what I should have said is what is the best way to kick off the calculations after the calculate button is pressed and to display the dollar amounts for the cost/qty at the bottom of the form.
Similar Messages
-
Bom Component qty & WIP Quantity differ at Trget cost calculation
Dear gurus,
i am facing the problem with WIP at target cost calculation in REM.
My issue is
BOM Component qantity is 9.524 TO and price is 2000 then total cost is 9.521*2000=19048.
but in WIP Report kkas in WIP explation it takes input qty 9.52 T0 and price 2000 then total price is 19040.
Difference is 19048 - 19040 =8
and also when i am issuing actual qty i.e 9.524 in BOM then my price is 19048.00 ant at time of variance calculaton then quantaty variance as 9.52.0-9.524.0=-0.04 then 0.004*2000 =-8
Please suggest solution for this.
Any OSSS NOTE Required
any Quires please revert back
REGARDS
Avinash.pegarlawarHi
Rounding differences between target and actual values and quantities are not unlikely to occur and cannot always be avoided but can be minimized.
Small prices and price unit of 1 are likely to cause more of these rounding differences..
The actual credit is simply calculated as price * quantity. The target credit however is calculated during the variance calculation
and based on the sum of all items in the itemization/cost components of the cost estimate and therefore more accurate.
To avoid this I suggest to store the material price with a larger price unit, i.e. 1000
Std cost release stores price upto 2 decimals and target cost calculation goes upto 3 decimals...
Please check also the note 1265918 for more information to this topic.
Regards
Ajay M -
Actual Cost Calculation in Process Order
Hi All,
I updated Standard cost of a raw material through a cost estimate and also ran cost estimate of the FIN that is using this raw material but when I am creating a Process order, it is taking the cost of this particular raw material from the previous estimate not the recent one to calculate the target cost. Can any body help me with this.
Thanks
MKRHi Ashok,
My Valuation variants for the Costing Variant of Cost Estimate and Production order (Actual/Plan) cost calculation are in Sync to get the prices according to the price indicator in material master. But when it calculates cost for a production order, it is picking up cost from the previous period for that particular raw material. I have updated the standard cost by running the cost estimate but still its not working.
Any lead on this. This will be really appreciated.
Thanks
MKR -
Target cost calculation in Process Order based on Variance Calculation
Hi all,
I have a question on Target cost calculation in Process Order. My understanding is, the Target Costs gets calculated when the confirmation and GR is made for the Process Order.
But if the confirmation/GR is not done, whether the target costs gets calculated for only the activity types after the Variance Calculation (KKS2).
I have two scenarios. In one, the target costs got calculated for the activity types without the confirmation/GR after the Variance calculation.
In another scenario, the target costs are not getting calculated for the activity types without the confirmation/GR if I try to do the variance calculation in KKS2.
SO i want to know which scenario is correct?
Can anyone answer this question?
Thanks and Regards,
BrijeshHi,
In general, the target costs are calculated once you deliver the order.
Target costs for the components and the activities are updated only once you deliver the order and the target cost for the finished product gets updated when you do the variance calculation.
Consider your scenario number 1 - you said the target costs got calculated for activity types without confirmation / GR after variance calculation.
Now, if the order is not having any status like PDLV, DLV or TECO it will not calculate the variances in the first place.
Your second scenario is correct - without GR the system does not calculate any target costs. Also it will not calculate any variances because the order status is still not DLV.
Best Regards,
Sameer -
Dear All,
I know that tariffzone plays a role in determining the price for the freight/Service Agent condition in case of outbound shipment cost calculation
I have the following query in Shipment Pricing.
Can anyone please explain whats the role of the 2 postal code columns in the tariff zone assignment?
Also how & where I have to maintain the data for determining the tariff zone which I have assigned to the above combination.
Please help.
Regards,HI Dave,
Thanks for the response.
Please note that I have maintained postal codes in my Shipping point also in my customer master.
For the combination of TP Point, Service agent, Shipping type & Country I have made the following assignment.
I have given my shipping point Postal code in both the Postal code columns of Tarff zone assignment (say Tariff) & my customer master Postal code in both the Postal code columns of Tariff zone assignment (say Tariff1).
Now I have maintained the condition records in TK11 for the combination of Depart. Tariff zone/Destn.Tariff zone/Service Agent i.e. Tariff/Tariff1/Service Agent
But my condition record value is not getting determined & when I simulate my shipment cost I am getting the following error message.
Shipment costs not yet calculated
Shipment costs item 000001 w/ ref. to doc. $0001 item 0001
Message no. VY104
Goods types directory could not be determined
Message no. VW803
Please help to reolve this issue.
Regards, -
Weighted avg Unit Cost calculation for COGS
Hi friends,
Has any body done weighted avg unit cost calculation for inventory valuation and COGS calculation. In a way we need to mirror ECC material ledger functionality based on the APO data in side the planning tool.
Any ideas on the above!!!
Kind Regards,
KrishHi Jerry,
Thanks for the tip. I actually needed to clean the spreadsheet up and put bogus values in to comply with company policy. Anyhow, here is a sample of the spreadsheet
http://dl.dropbox.com/u/7499586/junk.png
Just imagine about 100 products and several hundred raw materials, a dozen types of labor and about 30 types of packaging. It's a monster spreadsheet.
The "units" under each product is the number of units per batch. You can see each product has two columns. One where you put in how much of a raw material, package type, and labor type go into each batch, the next calculates the cost for each item. Then it gets summed at the top for the total unit cost for that product.
Let me know if you have any other questions about it. Thanks so much for your help! -
How to define routes for freight cost calculation
Hi,
in our company we plan to use LE-TRA Transport with Freight costs calculation. To use Transport it is a must to maintain routes in all sales orders/deliveries. Currently we do not use it and now we have the challenge to define routes and later due to freight costs calculation Stages. There are different solutions for routes. In some other companys we have only routes dependent on the Transit duration, but that's all. They don't use stages and they don't use freight cost calculation in SAP.
As I know routes should describe geographical locations (The way location A till location B). Based on the route we have a defined stage with a distance, shipping type.... That would mean for a company: They need to analyse all delivery channels with different forwarding agents and so on. Is that possible when the forwarding agent is responsible for scheduling? That means for a company with customer around the world thousands of routes?
Alternatively it is possible to create stages in the transport documents. Is that more recommendable? It would be nice, when someone could post his experience with that topic.
Thank you,
RaphaelHi Luis,
thank you for the response. My problem is not the technical view. I know how to create the routes and what kind of information I need. The problem is to unterstand how this concept can operate in practise in a company with many different customer.
The following site describes the concept of routes in SAP:
http://blog.tkreddy.com/2010/09/17/understanding-the-concept-of-routes-le-shp-in-sap-ecc-6-0/
A company with many delivery plants and customer around the world needs to forward all delivery channels they have to us, A route describes an area and includes stages with location A and B. The stages are assigned to a forwarding agend. Based on that information I can start a freigt cost calculation. The structure of stages and routes also depends on the situation how many different forwarding agents are involved in a delivery process.
In my opinion it is really a big effort to find a reliable solution for the amount of routes and stages. I am thinking about to use the solution to create the stage manually in the transport document and to use the routes to describe the transit time.
Raphael -
COFC - Actual cost calculation error
Hi Friends,
I am a PP consultant and i have a issue with cost calculation at the time of confirmation.
There are production orders that were confirmed in year 2010 and year 2011. For year 2010 costing documents were created but not no costing docuemnts for confirmations in year 2011.
I checked tcode COFC and found error log as : A master record for 1111/ABCD exists only in 2010.(where 1111 is cost center and ABCD is activity type.)
I have checked the validaty of both cost center and activity type & both are valid.
can anyone please suggest what has to be maintained for year 2011 from controlling side.
Thanks In Advance.
RohitHi Rohit,
The similar error i have faced just couple of hours back.
I have checked up the plan prices in KP26 for the activity type and could see that they were not maintained for 2011.
I have maintained the same for the current year and the error got resolved.
Pls see that you are choosing the correct cost centre and activity type combination alongwith the costing version for 2011.
Regards
Sachin -
Error in cost calculation for production order
Dear All,
I got error of cost calculation while release of Production Order due to price of some material is not mantain .
What will happen if I release , save the Order with error & do Good Issue ???
IshwarDear Ishwar,
Check the log's created for costing and rectify the same.
I feel its better to rectify the cost related errors and then release the production order and proceed to Good's Issue.
Check whether there is a MAP for all the Raw-materials and an origin group in costing 1 view.
The Finished product must be having a standard cost estimate that's valid for the current period.
Revert back in case of any more help needed.
Regards
Mangalraj.S -
Errors arose during actual cost calculation
Errors arose during actual cost calculation
No prices could be determinedfor object activitytype company code xxxx , cost center XXXX, activity type XXXX
Pls let me know immediately friends deperate,
regards,
sriHi
when you gone to the transaction code Kp26 Activity typ price/ planning after give the input press period screen or F6 function key and check what price was maintained for your period 12.
And even you do one thing go to the transaction code KS02 or 03. Give the cost center and press enter . Then from the meny bar select Environment -> whereused list->.
And let me confirm how you run the cost estimate for the material
bye -
Shipment cost calculation - configuration problem
hello all
we are implementing the shipment cost calculation system and so far configured only 1 service agent .
the problem regarding scenarios that the shipment executed by service agents that is not configured in
the system but the invoicing party is the one ( SA) that we configured .
( the SA that is configured in the system is charging us for the shipments of the
SA that is not configured. )
how can i get the shipment cost document to open for the invoicing party ( the one that we configured )
but still leave the shipment under the origin service agent ( the one that isn't configured ) ?
Regards ,
ASA .Hi ,
sorry, i wasn't precise :
i need to open a service entry whose based on po in order to forward to financial accounting .
( its a separate po that isn't part of the inbound or outbound process and i open it for SA x )
Y and X are differnt transportation companys but i have some cases that SA x is charging me
for the shipment of SA y.
the transportaion agent in VT01N is SA y and there for the shipment cost document opens for SA y and
looks for po for SA y .
i have to direct the system ( by some user exit / badi ) to seek for the po of SA x ( the one whose
charging me for the shipment ) .
hope this help explain my problem ,
Regards ,
ASA
Edited by: ASA MOKED on Apr 12, 2009 5:47 AM -
Actual cost calculation process
Hi, All!
I run the Actual Cost Calculation Process and created IPV is effecting PMAC, but no lines are created in gmf_invoice_distributions.Hi,
Check the unit price of the PO and the Price for the line during AP Invoice matching. If there is a difference then it automatically goes into IPV. Also check the values for profile GMF: Include Invoices in Actual Cost.
Regards,
Malcolm -
Check to restrict release if there is error in cost calculation
Dear all,
I want to have check that production order cannot be released if error is there in cost calculation(CSER)?
How this can be possible?
Is there any direct way possible? Please reply me in detail.
Thanks,
Vijay Modasiya
PP Cons.Vijay,
Create a new user status profile and assign this to the order type which you are going to use.
The defination should be such that user status should get activated if "CSER" is activated on that order, and this should not allow "REL" status.
In general try with "BS02" and "BS22", I am not sure whether CSER and REL can be interlinked.
Hope this helps....Reward your points,
Regards,
Prasobh -
Valuation stragety "Net purchase price " for cost calculation
Hi,i indicate "Net purchase price" used for plan cost calculation,but if there a many PO with different venfor for this material,how the system to determine which PO price used for cost calculation?
thanks in advanceHi ajai,
I agree with your point,we have 3 info record for a material and 2 are valid as such. The price maintained in two info records are as 7.5 & 1.0 respectively(valid info records).
The last price in the purchase order (of the info those records) are 0.41(dated on 09.04.2010) & 0.2(dated on 19.04.2010) respectively, but when we execute the cost estimation the system picks the price of 7.5 not the least price of 0.2(as its the latest purchased price).
Do let us know why and of what logic the system picks the highest price.
Do revert.
Regard, -
CORUPROC is not doing "Actual-Cost Calculation" - still in CO1P.
Hello friends,
As per SAP documentation, and many SCN posts I went through - all of them said CORUPROC is the program to run as batch job, and CO1P is its equivalent online transaction. In my quality system, I see CORUPROC is not doing the "Actual-Cost Calculation" - and even if I execute CORUPROC online (through SE38), it is not clearing them. (It is clearing the goods movement entries). CO1P still shows all the order/operation awaiting actual cost calculations. If I select them in CO1P, and click <save>, they are cleared.
So can someone guide me how can I make CORUPROC to do the actual cost calculation please.
Thanks,
- ChetanHi
I would expect to have this record processed by report CORUPROC.
It's quite easy to analyze this program in debug. Set a break-point on the line below:
IF NOT g_costs IS INITIAL
Now follow the program execution until function module CO_RB_POST_ACTUAL_COSTS is called. If the function module is called, check if it was executed correctly reading the value of variable SY-SUBRC.
BR
Caetano -
Error arose during actula Cost Calculation
SAP PP Experts,
I have a Problem in <u><b>CO11N</b></u>, While Click <b><u>Goods Movements</b></u> the follwing Dialog Box was Appeared.
<i><b><b>Error arose during actual Cost Calculation</b></b></i>
Can You help me how to Reclaim It?Hi,
In COFC you will find the error message. Read error and correct it
Maybe you are looking for
-
How to exclude "Blocked for Purchase" error message in PO creation for particular Order Type
In Article master some times we used to set Site-Specific Article Status = '01'. (MARC-MMSTA) 01 Blocked for Purchase 02 Blocked for Purchase/Sale My requirement is that when Creating PO in ME21N for a particular Order Type (Purchasing). This check n
-
How do I reformat my external hard drive from operating on a mac to a PC?
I have a Lacie 1TB hard drive that was initially formatted for a mac, but now I need to reformat it for a PC. I've read some reformatting forums, and I've gone on discmgmt.msc to assign a letter to the partition but I can't. It doesn't show up on my
-
Okay, so I have a slide show with music - how to upload with Music to .mac
First, I clicked share and it showed only one image at .mac, but I want to do the whole event plus the music. Any ideas? Thanks Or do I need to use iDVD?
-
Can I alter pitch bend range via plugin for synths that default to /- 2 semitones?
I am looking for a way to change the pitch bend range to +/- 12 for an AU instrument that does not have the capability to do so within its own settings. Is there some sort of plug-in I can run "after the fact" and assign to that channel to allow for
-
Panning & scale clips within a PIP template
I have PremPro & AEP CS6. I'm looking for the best way to play 4HD clips (layers 1-4) within a 4-square template (like "24"), but panning & scaling each clip separately within its "window". I would like to retain the highest quality for the sequence