Status of Purchase Header is not updated in Change Log Entry
saranc
Member Posts: 4
Hi all,
My client faced an issue with Change Log entry. They are using NAV 6.0SP1.
With Change Log Setup, they already set All Fields for 3 types: insert, modify and delete.
However, when they change Status of P.O, modification is not updated as expected.
I already checked code 423, but nothing has been pointed out.
Does anyone faced the same and has solution in this case.
Helping is appreciated.
My client faced an issue with Change Log entry. They are using NAV 6.0SP1.
With Change Log Setup, they already set All Fields for 3 types: insert, modify and delete.
However, when they change Status of P.O, modification is not updated as expected.
I already checked code 423, but nothing has been pointed out.
Does anyone faced the same and has solution in this case.
Helping is appreciated.
0
Comments
-
Changing the status of an order is done by C/AL code and not directly by the user. This means that the OnGlobal-trigger is NOT fired. You should run the OnGlobalModify-trigger yourself with both versions of the record.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks Kriki. OnGlobalModify trigger is not fired in this case, and it works well when calling LogModification() function locally in 2 versions of record.
But it was confused the reason why Change Log entry is not updated. As you said that changing status is done by C/AL Code, not directly by the user.
I see some fields which related to amount in Purchase Line are also updated in Change Log when Status of header is changed. So in this case, the amount is calculated by C/AL Code, not by user.
Is there any different that makes distinct actions?0 -
Probably the logging function is called by the codeunit when changing the status.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks for your help. Issue is solved with modification on Changing status Codeunit
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 327 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