Study guide

12.2 Cost Type Codes, Auto-Costs, and Allocation Methods

Microsoft Dynamics 365 Supply Chain Management Functional Consultant MB-330

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Product Master and Released Products

1.1 Product Masters, Variants, and Configuration Technologies 1.2 Product Templates, Category Hierarchies, and Product Lifecycle States 1.3 Product Attributes, Attribute Types, and Attribute Groups

2 Chapter 2: Bills of Materials (BOM) and Formulas

2.1 BOM Lines, Line Types, and Component Configurations 2.2 BOM Versions, Activation, Approvals, and Circularity Checks 2.3 BOM Calculations, Cost Group Types, Flushing Principles, and Scrap Handling

3 Chapter 3: Product Prerequisites and Dimension Groups

3.1 Product, Storage, and Tracking Dimension Groups 3.2 Item Model Groups, Inventory Models, and Physical/Financial Posting 3.3 Reservation Hierarchies and Unit Sequence Groups

4 Chapter 4: Additional Product Details and Warehouse Fit

4.1 Bar Codes, GTINs, and Product Unit Conversions 4.2 Default Order Settings and Site-Specific Order Settings 4.3 Product Filter Codes and Physical Warehouse Dimensions

5 Chapter 5: Inventory Costing and Pricing

5.1 Costing Versions, Costing Sheets, and Standard Costing 5.2 Base Item Prices, Price Groups, and Price Tolerances 5.3 Trade Agreements, Price/Discount Journals, and Smart Rounding

6 Chapter 6: Inventory Journals and Core Transactions

6.1 Movement, Adjustment, and Transfer Journals 6.2 Counting Journals, Tag Counting, and Cycle Count Adjustments 6.3 Item Arrival Journals, Output Orders, and BOM Journals

7 Chapter 7: Inventory Operations, Blocking, and Closing

7.1 Transfer Orders, In-Transit Warehouses, and Delivery Schedules 7.2 Inventory Blocking Mechanisms, Batch Disposition Codes, and Inventory Status 7.3 Inventory Closing, Recalculation, Settlement, and ABC Classification

8 Chapter 8: Quality Management and Nonconformance

8.1 Quality Control Setup: Tests, Test Groups, and Item Sampling 8.2 Quality Associations, Automatic Generation, and Quality Orders Processing 8.3 Nonconformances, Corrections, Corrective Operations, and Quarantine Orders

9 Chapter 9: Asset Management: Setup and Maintenance

9.1 Assets, Asset Types, and Functional Locations Setup 9.2 Asset Lifecycle Models, Lifecycle States, and Asset Loans 9.3 Work Orders Configuration, Work Order Settings, and Maintenance Capacity Management 9.4 Maintenance Plans, Maintenance Requests, Work Order Scheduling, and Journal Consumption

10 Chapter 10: Procurement and Sourcing Configuration

10.1 Vendors, Vendor Groups, and Procurement Category Hierarchies 10.2 Purchasing Policies, Spending Limits, Procurement Workflows, and Charge Codes 10.3 Purchase Agreements, Vendor Rebates, and Vendor Collaboration Portal

11 Chapter 11: Purchase Order Lifecycle and Consignment

11.1 Purchase Requisitions, Requests for Quotation (RFQs), and Bidding Processes 11.2 Purchase Orders Creation, Over/Under-Delivery Tolerances, Delivery Schedules, and Product Receipt 11.3 Consignment Inventory Replenishment/Ownership Change and Vendor Return Orders

12 Chapter 12: Landed Cost and Inbound Logistics

12.1 Landed Cost Architecture: Voyages, Shipping Containers, Folios, and Journey Templates 12.2 Cost Type Codes, Auto-Costs, and Allocation Methods 12.3 Tracking Control Center, Goods in Transit Orders, and Over/Under Tolerances

13 Chapter 13: Sales Management and Order Processing

13.1 Customers, Customer Groups, Sales Agreements, and Sales Quotations 13.2 Sales Order Processing, Manual and Automatic Reservation, and Sales Returns 13.3 Order Promising: ATP, CTP, Delivery Schedules, and Product Bundles 13.4 Intercompany Trading Chains, Sales Commissions, and Customer Rebates

14 Chapter 14: Warehouse Setup and Core Infrastructure

14.1 Warehouse Topology: Sites, Warehouses, Locations, Profiles, Formats, and Zones 14.2 Work Policies, Work Breaks, and Packing Dimensions 14.3 Wave Templates, Work Templates, and Location Directives Configuration 14.4 Label Layouts, Document Routing, Wave Label Printing, and GS1 Number Sequences

15 Chapter 15: Warehouse Execution Processes

15.1 Inbound Receiving Processes, Planned Cross-Docking, and Putaway 15.2 Outbound Waves, Wave Processing, Picking (Order, Cluster, Batch), and Manual Packing 15.3 Replenishment Strategies (Wave vs. Min/Max) and Inventory Movements via Warehouse Work 15.4 Cycle Counting Plans, Thresholds, Blind Counting, and Automated Containerization

16 Chapter 16: Transportation Management and Logistics

16.1 Shipping Carriers, Carrier Groups, Carrier Services, and Rate/Route Engines 16.2 Route Plans, Route Guides, Inbound/Outbound Loads, and Dock Appointment Scheduling 16.3 Freight Bills, Freight Invoicing, and Manual/Automatic Freight Reconciliation

17 Chapter 17: Warehouse Management Mobile App

17.1 Mobile App Installation, Display Settings, Connection Profiles, and Warehouse Worker Setup 17.2 Mobile Device Menus, Work-Based and Indirect Menu Items, and Inventory Inquiries 17.3 Step Detours Configuration and GS1 Barcode Scanning Implementation

18 Chapter 18: Master Planning and Planning Optimization

18.1 Master Planning Parameters, Coverage Groups, and Planning Optimization Cloud Service Architecture 18.2 Item Coverage Settings, Positive/Negative Days, Time Fences, and Action Messages 18.3 Running Master Planning, Analyzing Results, Planned Orders Firming, and Supply Schedule 18.4 Safety Stock Journals, Safety Margins, and Copilot in Dynamics 365 Supply Chain Management

12.2 Cost Type Codes, Auto-Costs, and Allocation Methods

Key Takeaways Explain This Topic AI

Cost type codes categorize landed expenses and dictate general ledger integration via Debit (Item, Ledger, Cust/Vend) and Credit (Vendor, Ledger, Item) posting categories.

Auto-costs automate cost estimations at the Voyage, Container, Folio, or Item level using dimension-matching rules based on shipping carriers, delivery terms, and ports.

Apportionment methods distribute header-level costs down to item lines using Percent, Quantity, Amount, Volume, Weight, or Measurement formulas.

Estimated landed costs are posted during Goods in Transit invoice processing, debiting inventory and crediting a landed cost clearing accrual account.

When actual freight invoices are matched via Cost invoice matching, variances are calculated and posted to item inventory valuation or price variance accounts based on costing models.

Last updated: September 2026

12.2 Cost Type Codes, Auto-Costs, and Allocation Methods

Quick Answer: The financial engine of the Landed Cost module in Dynamics 365 Supply Chain Management (D365 SCM) manages the accurate capitalization of ancillary import expenditures into item inventory valuation. Cost type codes classify expense types (ocean freight, customs duty, port handling) and define Debit/Credit posting paths. The Auto-costs engine automatically attaches estimated costs to voyages, containers, folios, or items based on logistics criteria. These shared costs are allocated down to item lines using six distinct Apportionment methods (Quantity, Amount, Volume, Weight, Percent, Measurement). Finally, Cost invoice matching compares actual carrier invoices to estimated accruals, automatically posting variances to inventory or general ledger variance accounts.

1. Cost Type Codes: Definition and Ledger Posting Setup

A Cost type code identifies and categorizes a specific type of landed cost expenditure incurred during the transportation and importation of goods.

  • Navigation : Landed cost > Setup > Costing setup > Cost type codes
  • Core Parameters and Posting Categories

Each cost type code establishes fundamental accounting behavior when estimated or actual costs are posted:

Cost category : Defines how the cost is entered or calculated:

Fixed : A flat monetary amount regardless of shipment size.

Pcs. : A rate applied per inventory piece/unit.

Percent : A percentage applied against purchase order line amounts.

Rate : A rate applied against physical measurements (e.g., rate per kg, rate per cubic meter).

Debit posting category : Dictates where the cost is charged:

Item : The cost is capitalized directly into the inventory valuation (or Goods in Transit asset value) of the item. This ensures true landed valuation on the balance sheet.

Ledger account : The cost is expensed immediately to a designated General Ledger expense account rather than capitalized.

Cust/Vend : Billed directly to a customer or vendor account.

Credit posting category : Dictates the offsetting financial credit:

Ledger account : The credit posts to a Landed cost clearing / accrual account . This is the standard setting for estimated costs, holding the liability until the actual invoice arrives.

Vendor : The credit posts directly to a Vendor accounts payable balance (used when posting actual invoices directly from third-party logistics providers).

Item : Credits inventory (rarely used, typically for rebates or allowances).

Cost classification : Groups cost types for reporting and analysis (e.g., Freight , Duty , Insurance , Handling , Demurrage ).

Preferred vendor : Links the default carrier, customs broker, or port authority associated with this charge.

Typical Cost Type Code Configuration Matrix

Cost Type Code Description Cost Category Debit Category Credit Category Financial Impact

FRT-OCEAN Ocean Container Freight Fixed Item Ledger account Capitalizes estimated ocean freight into item inventory; credits freight accrual.

DUTY-HTS Import Tariff / Customs Duty Percent Item Ledger account Capitalizes estimated customs duty based on line value; credits customs accrual.

INS-CARGO Marine Transit Insurance Percent Item Ledger account Capitalizes insurance into inventory; credits insurance accrual account.

PORT-DEM Port Demurrage Surcharge Fixed Ledger account Vendor Expenses unexpected container demurrage directly to P&L; credits shipping line vendor.

DOC-BROKER Customs Brokerage Fee Fixed Item Ledger account Capitalizes administrative customs filing fee into inventory; credits clearing.

2. The Auto-Costs Engine

Manually keying estimated freight, duty, and handling rates for every incoming purchase order line is inefficient and prone to human error. The Auto-costs engine automates cost generation based on defined commercial and logistics criteria.

  • Navigation : Landed cost > Setup > Costing setup > Auto-costs
  • Hierarchy Levels for Auto-Costs

Auto-costs can be defined at four structural levels, matching the Landed Cost hierarchy:

Voyage Level : Costs applied to the entire voyage, such as harbor pilotage fees or whole-vessel charter charges.

Shipping Container Level : Costs applied per physical container, such as standard 40ft container ocean freight rates or container drayage fees.

Folio Level : Costs applied per customs declaration or commercial invoice, such as customs brokerage documentation filing fees.

Item Level : Costs applied directly to specific items or commodities, such as ad valorem customs tariffs based on tariff codes or fumigation fees on agricultural items.

Rule Evaluation and Criteria Matching

The Auto-cost engine evaluates rules using standard Dynamics 365 Table / Group / All dimension-matching logic across multiple criteria:

Shipping carrier : Specific carrier (Table), carrier group (Group), or any carrier (All).

Delivery terms (Incoterms) : e.g., FOB, CIF, EXW, DDP.

From port (Port of Origin) and To port (Port of Destination) : e.g., From Port of Shanghai to Port of Long Beach.

Vendor : Specific merchandise vendor, vendor group, or all vendors.

Item / Cost group : Specific released item, landed cost group, or all items. +-------------------------------------------------------------------------+

  • | AUTO-COST ENGINE |
  • +------------------------------------+------------------------------------+
  • | EVALUATION CRITERIA | MATCHING ATTRIBUTES |
  • | - Shipping Carrier: MAERSK | - Cost Type Code: FRT-OCEAN |
  • | - Delivery Terms: FOB | - Level: Shipping Container |
  • | - From Port: SHG (Shanghai) | - Cost Category: Fixed |
  • | - To Port: LAX (Long Beach) | - Amount: $4,500.00 USD |
  • | - Vendor Group: OVERSEAS | - Apportionment: Volume (CBM) |
  • +------------------------------------+------------------------------------+
  • │ (Applies to)
  • ▼
  • Every 40ft Container moving on the Shanghai -> LAX leg

Note

When a voyage is created or lines are added to containers, D365 SCM scans the Auto-cost table, finds all matching rule records, calculates the estimated costs, and populates the Voyage costs , Container costs , Folio costs , and Item costs tables automatically.

3. Apportionment (Cost Allocation) Methods

When an estimated cost is applied at the Voyage, Shipping Container, or Folio level, it represents a lump-sum expenditure covering multiple diverse inventory items. To capitalize these costs into item valuation, the system must apportion (allocate) the total charge down to individual purchase order lines.

D365 SCM Landed Cost provides six Apportionment Methods configured on Cost Type Codes and Auto-cost rules:

1. Percent

Formula : Line Allocated Cost = Total Cost × Specified Line Percentage \text{Line Allocated Cost} = \text{Total Cost} \times \text{Specified Line Percentage} Line Allocated Cost = Total Cost × Specified Line Percentage

Operational Use Case : Specialized contracts where joint costs are pre-split by negotiated fixed ratios.

2. Quantity

Formula : Line Allocated Cost = Total Cost × ( Line Item Quantity Total Container / Voyage Quantity ) \text{Line Allocated Cost} = \text{Total Cost} \times \left( \frac{\text{Line Item Quantity}}{\text{Total Container / Voyage Quantity}} \right) Line Allocated Cost = Total Cost × ( Total Container / Voyage Quantity Line Item Quantity ​ )

Operational Use Case : Shipments consisting of homogeneous items with uniform size and weight (e.g., 10,000 identical steel bolts or standardized carton packages), where handling effort correlates directly with piece count.

3. Amount

Formula : Line Allocated Cost = Total Cost × ( Line Net Purchase Amount Total Container / Voyage Purchase Amount ) \text{Line Allocated Cost} = \text{Total Cost} \times \left( \frac{\text{Line Net Purchase Amount}}{\text{Total Container / Voyage Purchase Amount}} \right) Line Allocated Cost = Total Cost × ( Total Container / Voyage Purchase Amount Line Net Purchase Amount ​ )

Operational Use Case : Costs that vary directly with merchandise value, specifically Cargo Insurance and Ad Valorem Customs Duties . Higher-value goods legitimately absorb a proportionally larger share of insurance premiums and import tariffs.

4. Volume (Cubic Volume)

Formula : Line Allocated Cost = Total Cost × ( Line Total Volume (CBM) Total Container / Voyage Volume (CBM) ) \text{Line Allocated Cost} = \text{Total Cost} \times \left( \frac{\text{Line Total Volume (CBM)}}{\text{Total Container / Voyage Volume (CBM)}} \right) Line Allocated Cost = Total Cost × ( Total Container / Voyage Volume (CBM) Line Total Volume (CBM) ​ )

Operational Use Case : Ocean container freight . Ocean shipping carriers charge by physical container capacity ( 20 ft 20\text{ft} 20 ft , 40 ft 40\text{ft} 40 ft , 40 ft HC 40\text{ft HC} 40 ft HC ). Bulky goods (such as furniture or plastic moldings) consume container space rapidly while weighing relatively little. Allocating by volume ensures space-consuming items absorb their fair share of ocean freight.

5. Weight (Gross or Net Weight)

Formula : Line Allocated Cost = Total Cost × ( Line Total Weight (kg/lb) Total Container / Voyage Weight (kg/lb) ) \text{Line Allocated Cost} = \text{Total Cost} \times \left( \frac{\text{Line Total Weight (kg/lb)}}{\text{Total Container / Voyage Weight (kg/lb)}} \right) Line Allocated Cost = Total Cost × ( Total Container / Voyage Weight (kg/lb) Line Total Weight (kg/lb) ​ )

Operational Use Case : Air freight and heavy industrial bulk materials (such as raw minerals, steel plate, or machinery). Air cargo carriers bill based on weight or volumetric weight; allocating by physical weight accurately reflects cargo freight impact.

6. Measurement

Formula : Line Allocated Cost = Total Cost × ( Line Measurement Factor Total Measurement Factor ) \text{Line Allocated Cost} = \text{Total Cost} \times \left( \frac{\text{Line Measurement Factor}}{\text{Total Measurement Factor}} \right) Line Allocated Cost = Total Cost × ( Total Measurement Factor Line Measurement Factor ​ )

Operational Use Case : Custom dimensions defined on released products, such as length, surface area, or custom dimensional pallet equivalents.

Comparison of Apportionment Methods

  • Method Allocation Basis Required Master Data Primary Logistical Scenario
  • Quantity Unit piece count Inventory Units of Measure Homogeneous items, palletized uniform goods

Amount Line monetary value Purchase Order unit price & line currency Cargo insurance, customs brokerage ad valorem fees

Volume Cubic measurements ( m 3 / f t 3 m^3 / ft^3 m 3 / f t 3 ) Physical dimensions (Height, Width, Depth on Released Product) Ocean container freight, LCL (Less than Container Load) shipping

Weight Mass ( k g / l b s kg / lbs k g / l b s ) Gross/Net weight on Released Product master Air freight, heavy metallurgy, weight-constrained trucking

Percent Explicit percentage Manual percentage assignment Multi-party joint venture cost splits

Measurement Custom volumetric/linear metric User-defined measurement dimensions Specialized structural beams, piping, textiles

4. Estimated Landed Costs vs. Actual Landed Costs and Variance Accounting

The fundamental accounting lifecycle in Landed Cost separates cost estimation from final invoice settlement, ensuring financial statements remain balanced across extended international transit periods. [1. Voyage Creation / Auto-Costs]

  • │
  • ▼
  • [2. Post Vendor Invoice / Goods in Transit]
  • │ Debit: Goods in Transit Inventory ($5,000 Estimated Freight)
  • │ Credit: Landed Cost Accrual Account ($5,000 Liability)
  • ▼
  • [3. Carrier Submits Actual Invoice: $5,400]
  • │
  • ▼
  • [4. Cost Invoice Matching Workbench]
  • │ Debit: Landed Cost Accrual Account ($5,000 Cleared)
  • │ Credit: Accounts Payable - Carrier ($5,400 Actual Payable)
  • │ Debit: Landed Cost Purchase Price Variance ($400 Expense Variance)
  • Phase 1: Posting Estimated Landed Costs

When the merchandise vendor's invoice is posted at the port of origin (FOB shipping point), D365 SCM calculates all estimated auto-costs attached to the voyage lines:

Debit : Goods in Transit Inventory Asset (capitalizing estimated freight, duty, and insurance into the in-transit balance sheet asset).

Credit : Landed Cost Accrual / Clearing Account (recording the estimated liability for upcoming logistics bills).

Phase 2: Invoicing Actual Costs via Cost Invoice Matching

Weeks or months later, third-party logistics providers (freight forwarders, customs brokers, ocean carriers) submit their actual commercial invoices.

Navigation : Landed cost > Invoices > Cost invoice matching

The accounts payable clerk opens the Cost invoice matching form, selects the relevant voyage, container, or folio, and highlights the corresponding estimated cost lines.

The clerk enters the actual invoiced amounts from the carrier bill.

Phase 3: Variance Ledger Settlement

Discrepancies between estimated landed costs and actual billed amounts are common due to fuel surcharges (BAF), currency fluctuations, demurrage, or port congestion fees. D365 SCM processes variances based on the item's Inventory Model Group and inventory status:

Standard Cost Items :

Under standard costing, item on-hand inventory valuation is strictly immutable between revaluation journals.

Any variance between estimated landed cost and actual invoice cost posts immediately to the Landed Cost Purchase Price Variance ledger account in the General Ledger.

Moving Average / FIFO / Weighted Average Items :

Goods Still In Transit or In Stock : If the inventory is still in transit or on hand at the warehouse, Landed Cost can adjust the inventory asset valuation directly, absorbing the variance into the unit cost of the remaining items.

Goods Already Sold or Consumed : If the inventory has already been picked, packed, and sold to customers (or consumed in production work orders), the system posts the variance directly to the Cost of Goods Sold (COGS) adjustment / Landed cost variance account .

5. Implementation Scenarios and Common Exam Traps

Tip

Exam Tip — Missing Dimensional Master Data: If an Auto-cost rule configured with the Volume apportionment method fails to allocate freight across purchase order lines, inspect the Released product master . Under the Manage inventory FastTab, the physical dimensions (Height, Width, Depth, and Gross Volume) must be populated. If gross volume is zero, D365 SCM cannot calculate the proportional denominator and throws an allocation error.

Important

Exam Tip — Debit Item vs. Debit Ledger: When reviewing cost type codes on the MB-330 exam, verify the debit category. To capitalize logistics charges into product valuation (balance sheet asset), the Debit posting category must be set to Item . Setting Debit to Ledger account bypasses inventory valuation and expenses the cost immediately to the P&L.

Warning

Exam Trap — Multi-Currency Cost Invoice Matching: International ocean freight is frequently quoted and invoiced in US Dollars (USD), while local customs duties are billed in local currency (e.g., EUR or GBP). Landed Cost handles multi-currency transactions natively. When matching cost invoices, exchange rate variances are tracked separately from operational cost variances.