What is this err - Another user has modified the record..?

Imaspal
Member Posts: 68
Hi Experts!
I have a report, that I print from Sales Order: Posting => Post and Print... => Ship and Invoice => OK . Report is based on Sales Header table.
Printing seems to get started in Codeunit 82. Posting happens first, printing happens after that.
Problem is, that posting clears data from Sales Header, that is needed to print the report.
I have tried to change the printing happen before posting, but then NAV gives me the following error:
"Another user has modified the record for this Sales Header after you retrieved it from the database. Enter your changes again in the updated window, or start the interrupted activity again. Identification fields and values: Document Type='Order',No.='34'"
Can anyone tell me what I have to do to get the printing and posting happen right and how I can do that? Maybe temporary table, where I save information before posting and after that print the report from temporary table?
************
Mr. Nice Guy
************
I have a report, that I print from Sales Order: Posting => Post and Print... => Ship and Invoice => OK . Report is based on Sales Header table.
Printing seems to get started in Codeunit 82. Posting happens first, printing happens after that.
Problem is, that posting clears data from Sales Header, that is needed to print the report.
I have tried to change the printing happen before posting, but then NAV gives me the following error:
"Another user has modified the record for this Sales Header after you retrieved it from the database. Enter your changes again in the updated window, or start the interrupted activity again. Identification fields and values: Document Type='Order',No.='34'"
Can anyone tell me what I have to do to get the printing and posting happen right and how I can do that? Maybe temporary table, where I save information before posting and after that print the report from temporary table?
************
Mr. Nice Guy
************
0
Comments
-
You could build report on 'Sales Invoice Header' and 'Sales Invoice Line'. Thats the way most Post&Print reports work.0
-
I was just wondering, when you post and print as ship and invoice, why you want to print based on the sales header again? Can't you use sales invoice header and sales shipment header with their respective lines?
Rgds,
Jon.Rgds,
Jon.0 -
Thank you for your wise advice. I'll try to remember them in future.
Still, I have allready made my report, so can you help me with it?
](*,)
************
Mr. Nice Guy
************0 -
Imaspal wrote:Thank you for your wise advice. I'll try to remember them in future.
Still, I have allready made my report, so can you help me with it?
](*,)
************
Mr. Nice Guy
************
Still, best is to modify the report and use the Sales Invoice Header/Line table Just change the table in the dataport. Because nearly all information are in the tables in same fields, you will need no/small changes in your report to use th new tables...0 -
But of course. Still I'm sure, that there is an easier way than create a new report.. And I'm sure that someone here can tell me how.
:-k
************
Mr. Nice Guy
************0 -
Yes, there is better way, to modify existing report as I wrote... 8)0
-
Easy way: modify your report to use the Invoice and Shipment tables
Difficult way: try to trick the system in thinking that the sales order that it just deleted still exists so that you can print a report based of a record that doesn't exist in the database anymore, just so you don't have to change the table in your dataitem.
Trust us, it is a LOT less work to change your report than it is to trick the system. See it as a learning experience.0 -
Definitely, modify the report is the easiest way.
You can modify the system to NOT delete the sales order after posting but it is not worth the effort to change the system default behaviour just to suit your report. It will be easier to modify the report to suit the system.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