ModifyAll Item Costing Methods

Antonis
Member Posts: 6
Greetings to all of you.
CASE: My customer needs to change all of his items costing method, from average to FIFO.
The items have already related ledger entries which means that i am not capable of modifying the value of the costing method , within BC.
Due to that , i am trying to create a codeunit which will allow me to do so.
This is what i tried to do.
https://prnt.sc/sJqeO1OWUZRS
https://prnt.sc/JO0RQzfdrGHu
Unfortunately , when i press the action button within BC, nothing happens.
Am i missing anything? It's really important for us to solve this case because we need to avoid renaming the old item codes and create new ons from scratch.
CASE: My customer needs to change all of his items costing method, from average to FIFO.
The items have already related ledger entries which means that i am not capable of modifying the value of the costing method , within BC.
Due to that , i am trying to create a codeunit which will allow me to do so.
This is what i tried to do.
https://prnt.sc/sJqeO1OWUZRS
https://prnt.sc/JO0RQzfdrGHu
Unfortunately , when i press the action button within BC, nothing happens.
Am i missing anything? It's really important for us to solve this case because we need to avoid renaming the old item codes and create new ons from scratch.
0
Comments
-
Hello,
as far as i know it is not recommended to change the costing method, that's why it's usually not possible. That can cause problems in the future.
See here:
https://docs.microsoft.com/en-us/dynamics365/business-central/design-details-changing-costing-methodsSummary
Changing the costing method on items that have been used in transactions is a process, and not a standard action in Business Central. You can use the steps described in this topic as a template for the process.
The process can be time consuming because there are several manual steps. However, taking the time to complete it will minimize the impact of mistakes on your general ledger.
We recommend the following:
Assess the feasibility of the process by taking one, or maybe a few, representative items through the entire process.
Consider contacting an experienced partner who can help you with the process.
In your Code you are not calling your function. You just call Codeunit.Run, but in that trigger u have nothing included. That's why nothing happens.1 -
Hello,
as far as i know it is not recommended to change the costing method, that's why it's usually not possible. That can cause problems in the future.
See here:
https://docs.microsoft.com/en-us/dynamics365/business-central/design-details-changing-costing-methodsSummary
Changing the costing method on items that have been used in transactions is a process, and not a standard action in Business Central. You can use the steps described in this topic as a template for the process.
The process can be time consuming because there are several manual steps. However, taking the time to complete it will minimize the impact of mistakes on your general ledger.
We recommend the following:
Assess the feasibility of the process by taking one, or maybe a few, representative items through the entire process.
Consider contacting an experienced partner who can help you with the process.
In your Code you are not calling your function. You just call Codeunit.Run, but in that trigger u have nothing included. That's why nothing happens.
With the aid of your notice, i managed to change the costing method from Average to FIFO.
Whoever , now , when i am re-running the adjust item cost/prices , the system makes no new correcting entries to adjust the cost amount of the entries , based on the new costing method.
Why is that?
Any help..?!0 -
Hello,
as far as i know it is not recommended to change the costing method, that's why it's usually not possible. That can cause problems in the future....
With the aid of your notice, i managed to change the costing method from Average to FIFO.
Whoever , now , when i am re-running the adjust item cost/prices , the system makes no new correcting entries to adjust the cost amount of the entries , based on the new costing method.
Why is that?
Any help..?!
Refer to the above statement from Aluan....
There are no bugs - only undocumented features.0 -
Hello Antonis,
please create a backup first and create a new test database.
In this database you can try following changes:
1. in the table item (27) all items which you want change get the value "Cost is Adjusted" = false
2. in the table item ledger entries (32) all positiv entries get the value "Applied Entry to Adjust" = false
3. in the tabel Avg. Cost Adjmt. Entry Point (5804) all items which you want change the the value Cost Is Adjusted = false
4. run the report 795 and have fun and check the values0 -
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions