Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны Забыли пароль?

Опции темы Поиск в этой теме Опции просмотра
Старый 11.02.2016, 22:12   #1  
Blog bot is offline
Blog bot
14,207 / 617 (49) +++++++
Регистрация: 28.10.2006
dynamics-coe: “Cost accounting” for multi-level process manufacturing

In the series “Dynamics AX modules we rarely implement”, imagine a dialogue between a financial controller (C) and a Dynamics pre-sales consultant (S):
- C: I would like to see the contribution of raw materials (direct costs) separately from the energy, machine depreciation and wages (indirect costs) in the cost price of my finished goods.
- S: Nothing is easier: use Dynamics AX’ standard costing for products. It allows for a “cost breakdown” by user-defined cost groups in the BOM calculation sheet.
- C: Fine. And how do my indirect costs propagate this calculation sheet?
- S: You enter them as a constant machine hour cost rate or as a surcharge in percent of the raw material costs.
- C: But my indirect costs vary by accounting periods, don’t they?
- S: Yes, they do. You should verify and update the hour cost rates regularly.
- C: How can I do that?
- S: Hmm… You can use Excel… or unleash the power of BI!
- C: Can you suggest any systemic and automated approach?

In fact, we can: in the German-speaking countries (the so-called DACH area, Deutschland- Austria- Confoederatio Helvetica) there is a long established school of the formal cost accounting. It introduces the cost center (CC) accounting where the actual monthly costs of ‘service’ cost centers (accounting, marketing) are iteratively allocated to the ‘manufacturing’ cost centers (machine shops or single machines). By dividing this cost by the number of hours the machine has been running the past month you get the revised cost rate for the next month. In the cost purpose (CP) accounting direct material costs are recorded against cost purposes (e.g. finished products, groups of products, customers or market segments), where indirect costs booked on cost centers are periodically allocated to cost purposes by a certain basis, which gives the full cost per product on month average.

This scheme was first implemented in Axapta 3.0 for Columbus IT Austria by a Byelorussian near-shore company CS&IE and then acquired by Microsoft. Later Microsoft recognized those “Cost center accounting” and “Cost purpose accounting” modules were a bit crude, and replaced them with the “Cost accounting” solution initially developed by the Swiss partner Circon Circle Consulting. The latter module has been in existence since Dynamics AX 4.0 through Dynamics AX 2012 R3. In the forthcoming version “AX7” this module may appear in a later release.
In this blog I am going to show how to leverage the standard capabilities of this "Cost accounting" module.

Setting the scene

In chemical manufacturing or metalworking, it is not always possible to record even the direct material costs against the finished product order, let alone the indirect ones. The product “individualization” begins in the late production stages where for example an addition of a perfume to the basis makes a distinct hair shampoo SKU, or where the steel is alloyed with vanadium and molybdenum to reach the steel grade ordered by the customer. The “semi-finished materials” i.e. intermediate products are manufactured continuously, and immediately transported further in pipes or railway cars.

The smallest “cost purpose” for such an intermediate product may be a daily order or a team shift batch. The batches should preferably have the constant chemical composition, and they are barely distinguishable. The factory does not record which intermediate product (molten iron) batches are consumed by which individual order (steel grade). Only the quantity of the intermediate product is tracked, i.e. metric tons of the iron used, or liters or cubic meters of a gas or a fluid inflow, etc.
To make the things worse, by-products are collected and re-processed and fed to the earlier stages in the production. For example, an accumulating scale – the oxidized crust left from forging - may be collected and fed back to the blast furnace, building a loop in the cost flow. This results in a loop in cost calculation.

Sample case

On a highly simplified example below I am going to show how to use the Cost accounting module in the first 2 stages of the steelmaking process (sintering and smelting) to absorb the cost of the raw materials in sintering (coke, limestone flux, iron ore) into the cost of the smelting product pig iron. For the simplification I do not take the fuel consumption in the sinter plant, or the highly energetic blast furnace gas into consideration.
The wages are allocated to the respective SP (sinter plant) and BF (blast furnace) cost centers. The intermediary product – the sinter - is produced continuously in daily batch orders, measured in metric tons and reported against the cost purpose “Sint”. The pig iron and the slag fraction are tapped and poured into railway cars from the blast furnace roughly every 6-8 hours, weighted in tons and reported against the cost purpose “Iron”. The by-product has the cost purpose “Slag”. Every tapping is represented by an individual batch production order in Dynamics AX.
The below table summarizes a very schematic material balance in ferrous sintering and smelting. The quantities have been reduced from the month to one day of production:

Raw materialProduct / by-productRef input, t Ref output, t CCCPPrice, USD/tAvg consumption per day, tAvg yield per day, tTotal cost per day 65% Fe iron ore concentrate 1.3 Sint 55 7800 429000 Fuel (Coke) 0.07 Sint 75 420 31500 Limestone 0.1 Sint 20 600 12000 Labor 80 workers in staff SP 2000 per person

per mth

5333 60% Fe sinter 1.4 Sint 8400 per day, aligned with BF

477833 60% Fe sinter 1.4 Iron 8400 477833 Coke 0.4 Iron 75 2400 180000 Skilled labor 8 workers in shift, 100 in staff

BF 3000 per person per mth

10000 Pig iron 1.0 Iron ~2000 every 8h tap-to-tap, i.e. 6000 per day

667833 Slag 0.3 Iron 15 (sales price) 1800

Scenario in Dynamics AX

In the standard demo company USPI, create 6 released products measured in tons as shown below, note the production type necessary to activate the Process manufacturing capabilities:

Set the standard cost price as shown in the table above.
Create the new financial dimension CostPurpose, enter 3 values “Iron”, “Sint” and “Slag”, and add this dimension to the profit and loss accounting structure. Allow for blanks. Add 2 new cost centers: “BF”, “SP”.
Assign the dimension “Iron” to the product “Iron”, “Sint” to “Sinter” and “Slag” to “Slag”. Make sure that in the item group of the products the production issue and receipt ledger accounts are linked to the new profit and loss accounts 500111 “Change in inventory - Raw materials” and 500101 “Change in inventory – Products”. The reason is that the Cost accounting module cannot acquire balance sheet GL transactions.
Procure sufficient stock (e.g. 10000 tons each) of the raw materials Coke, IronOre and Limestone. You may use the shortcut Manage inventory > On-hand inventory > Quantity adjustment.
For the products Sinter and Iron create 2 formulas (Engineer > Formula > Lines) using the above table with the reference input quantities. Beware the Formula size (1.4 tons for the sinter, 1 t for the pig iron).

For the pig iron add the by-product “Slag” (0,3 t per 1 t of iron) with the button Co-products. Set the Burden=None: the slug is not an additional cost but a product that can be sold profitably. Approve and activate the formulas.
In the production control module (Production control / All production orders) create a batch order for 8400 metric tons of Sinter. In reality the orders are not planned but entered daily with the actual output quantity. The Iron batch orders are entered on every tapping, let’s say for 1500 t, 2500 t, and 2000 t.

All formula lines for raw materials are associated with the product cost center “Sinter” and “Iron”, respectively. In our scenario we do not absorb any planned labor into the production cost, inactivate any anticipated overheard in the costing sheet.
Produce 8400 t of Sinter with the Process > Report as finished button. Use picking list back-flashing to automatically consume the appropriate quantity of the raw materials.
Now produce 1500 + 2500 + 2000 t of Iron with 450 + 750 + 600 t of the Slag by-product, use back-flushing to quickly record the consumption of Sinter and Coke.

Sell 1000 t of Slag at 15 USD per ton with a sales order to some customer.

Now simulate the monthly salary allocation with a general ledger journal: post 5333 and 10000 USD to the account 600250 and the respective cost center:

We have now collected data sufficient to start applying the Cost accounting module.

Cost accounting setup

Go to Cost accounting / Setup / Dimensions and make the CostCenter and CostPurpose dimensions available to the module. In Cost accounting parameters, choose Cost category identical with account number. Perform the periodic operation Account reconciliation; this will synchronize all P&L accounts in the company with the cost accounting primary Cost categories:

You will later add the non-numeric “local cost categories” manually. On the General tab, Transaction control activate the dimensions CostCenter and CostPurpose for the cost categories 401100, 500101, 500111 and 600250. You are now ready to inject the GL transactions into the Cost accounting module: Periodic / Transactions / Process ledger transactions. The result can be verified with Inquires / Cost transactions:

There will be some costs without a cost center or cost purpose, because the data does not exist at the GL source. You may use Cost accounting / Setup / Dimension posting control to selectively filter out the blank CostCenter on 401100, 500101, 500111 and the blank CostPurpose on 600250.
We may now start viewing and aggregating the direct raw material costs in the module. The basic setup is the Line structure, Cost accounting / Setup / Grouping / Line structures. Ideally, this line structure should resemble the P&L statement structure. Start with a basic structure with the cost category lines 1_RM, 2_WG, 4_CP, 5_SL and total 3_TC and 6_TS, the remaining nodes you may add later:

he effect of this aggregation can be observed in Inquires / Dimensions, Cost balances. Choose the Total cost and Quantity in Display setup and select your Line structure. The result is an aggregation of costs posted directly against a financial dimension, here for CostPurpose = Sinter:

The indirect costs – the wages – are not yet displayed. They wages are absorbed into the product cost by means of a CC-CP allocation:

CC “SP” --> CP "Sint"
CC “BF” --> CP "Iron"

This kind of an allocation is usually performed in Dynamics AX Cost accounting by a variable basis with the so-called service transactions. They are taken from the production route hour data and allow for the CC-CP allocation of the machine cost (CC) over the product cost (CP) if the same machine have been used to make different products. In our case the “SP” staff only works for the “Sint” production, whereas “BF” people only make “Iron”. I.e. in our case the allocation can be constantly 100%.

In Dynamics AX Cost accounting module there may be distributions and allocations specified for a Calculation version. The “distributions” can re-arrange costs from one CC to another or from one CP to another and while preserving the Cost category. The allocations may move costs from one dimension (CC) to another (CP), but they require special Secondary cost categories. Now you have to create CC-CP and CC-CPwg secondary categories as shown on one of the screenshots above.
Next, create one calculation version (Setup / Calculation / Calculation version) for the Actual cost, and add 2 allocations (you will add the remaining ones later):

Choose the “debit” cost category Allocation account = CC-CP, and the “credit” Offset account = CC-CPwg. Mark Calculate fixed costs and the Offset transaction dimension = Cost purpose. The Calculation value type=Total costs. On the tab page Dimension, you can choose the CP dimension value to distribute the CC cost over: “Sint” and “Iron”, respectively. Enter the Reference quantity = 100. The leftmost symbol in the grid must become green if everything has been set up properly.

Now perform the Periodic / Period calculation. The Inquires / Calculation transactions should start appearing, 4 of them, and in the dimension balance for the “Sint” the wages of 5333 should have appeared.
In the next iteration the resulting full cost of the sinter is allocated over the iron batches: CP Sint --> CP Iron. The raw material in Sinter may be allocated with a distribution; here I may allocate one Line structure node (1_RM) for CP=Sint over the Line structure=1_RM of CP=Iron while preserving the original cost category 500111:

Unfortunately, this trick is not going to work with the indirect wages allocated to the Sinter, because internally the “distributions” are executed before the “allocations”, i.e. there will be no allocated wages to distribute.

Moreover, note that the momentary average cost of intermediate product Sinter is already recorded as a raw material contribution into the Iron. This should be prevented to avoid the misclassification of the labor absorbed in the sinter cost price as a material price. There are several possible solutions how to take it out and not to count twice:
  1. Remove the CP=Iron (the red one in the table) from the formula line “Sinter” in the iron production batches before the back-flushing. The intermediate product cost is now “orphaned” and doesn’t show up under “Iron”. This would require a customization to automate.
  2. Book the intermediate product Issue to a separate GL account = cost category and exclude it from the line structure. This is not always possible because the classification of the product as “intermediate” or “final” may be vague: the intermediate products may also be sold to a customer.
  3. Building on the fact that in a continuous production the intermediate products cannot accumulate, we may subtract the reported-as-finished “revenue” (line 4_CP) of Sinter from the direct costs of the Iron (line 1_RM). The whole yield of sinter has to be spread over CP=Iron with an “allocation”.
I used the latter approach. Create the remaining CP-CP* categories and allocate to the Iron both the wages and the “change in inventory” of Sinter as CP-CPwg and CP-CPrm secondary cost categories, respectively. Execute the Period calculation again, is is going to delere and re-build the Calculation transactions:

Check the cost balance inquiry:

Now you know that the full cost of your daily pig iron batches was 667833 USD, where the raw material contribution over the whole material chain was 652500 USD and the salary was 15333 USD.
You cannot obtain this information elsewhere in the Dynamics AX system.
In this example we allocated Sinter costs fully over the Pig iron, the allocation was 100%. Talking about the later stages in the production process, pig iron may be used for different steel grades. The exact consumption per batch is not necessary for the calculation of the average steel price, but can be derived from the simple proportion
Output(Stage X) * Consumption_for_A (Stage X+1) / Total_consumtion_A_to_Z (Stage X+1) or just
Output(Stage X) * Output_for_A (Stage X+1) / Total_output_A_to_Z (Stage X+1).
The allocation percentage becomes dynamic. Such a CP-CP allocation require the “service transactions” to be derived from the product output i.e. the quantity reported as finished on production orders. This is a customization (extension) of the class COSMovements_Prod, since the Cost accounting can only acquire hour route transactions from the production module, and not the quantity route transactions.
To have an understanding of service transactions in the Cost accounting module, let’s book them manually as opposed to the periodic function Process production transactions. Create a service cost category Output_t and record 2 service transaction against “Sint” and “Iron” with the daily production yield in a journal: Cost accounting / Journals / Service transactions.

In your Line structure you may now refer to the service cost quantity (line 3_TO), and divide the total cost 3_TC by the operand 3_TO in the “calculation” line 3_TT. The resulting cost price per ton appears as 111,31 USD/t. Subtract the Slag sales price with the final CP-CP Slag-Iron allocation, and you get an even lower price of 108 USD per metric ton. This can also be printed on a nice and configurable Dimension statement report.
With such a cost price we may successfully compete with the Chinese, but one substantial position is missing: the maintenance and the amortization of the sinter plant and the blast furnace ;) I leave it to the reader to simulate the monthly fixed assets depreciation run with a subsequent CC-CP allocation: there is not much difference to the wages allocation implemented above.

I imagine you may be slightly puzzled, asking yourself: “What was it? I can achieve the same result with the route cost in production, can’t I?”
Yes, you can, but the route cost associated with the machine operates with estimated cost rates, while the Cost accounting module takes the full Profit and loss statement and breaks it down to the single product. Consider it a huge calculator to deduct the machine cost rate.

Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 15 Blog bot Dynamics CRM: Blogs 1 10.02.2016 10:26
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 17 Blog bot Dynamics CRM: Blogs 0 10.05.2014 06:30
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 16 Blog bot Dynamics CRM: Blogs 0 23.01.2014 03:15
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09:11
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 10 Blog bot Dynamics CRM: Blogs 0 17.08.2012 03:27
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Часовой пояс GMT +3, время: 01:19.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.