export the sales invoice header with sales line

Horse06
Member Posts: 496
Hi expert, when exporting and if the sales invoice line has multiple items, the data will not be exported and have an error as below:
The Excel Buffer already exists. Identification fields and values: Row NO. ='1',Column NO.='38'.
If the sales invoice line has has only one item, the export data is fine.
How to solve this? Appreciate it!
The Excel Buffer already exists. Identification fields and values: Row NO. ='1',Column NO.='38'.
If the sales invoice line has has only one item, the export data is fine.
How to solve this? Appreciate it!
0
Comments
-
-
Since some orders have multiple items and I don't know how to deal with them when export the data.
Appreciate it.0 -
But how to increatment the row? Appreciate it!0
-
I need help in this line of code, how to increment the row if I have two items.
EnterCell(1, 38, FORMAT("Sales Invoice Line".Quantity), FALSE, FALSE, FALSE); Appreciate it!0 -
EnterCell(1, 38, FORMAT("Sales Invoice Line".Quantity), FALSE, FALSE, FALSE); Appreciate it!
OnPreDataItem()
Row := 0;
OnAfterGetRecord()
Row := Row + 1;
EnterCell(Row, 38, FORMAT("Sales Invoice Line".Quantity), FALSE, FALSE, FALSE);0 -
Thank you! But I still have the same error.0
-
Probably because you say your doing a header too. So let's say your header takes up rows 1&2, then you have to start the lines at row 3 not 1 again.
What info are you getting from the header?
Are you using an indented data items? Or a Get in your report?0 -
Here's a perfect example using PO Header & PO Line..
https://docs.google.com/document/d/1JCv ... dit?hl=en#
Save it to text file & Import the report & give it a try.
TempExcelBuffer = Record = Excel Buffer
It's basically the same for SO Header & SO Line0 -
Thank you Harry!
This report on the gooble is only about one table Purchase line.
I might not make myself clear. I have no problem with one table when exporting the data. My problem is to link,for example, the Purchase header with purchase line together in one report. When there is only one record for the purchase line, there should be no problem. But there are mutliple purchase records for the line, there would be an error like this.0 -
I don't know what you are talking about. The sample report prints some header info and the lines on that po. It even gives you a grand total
Look at the report it uses table 38 and 39
I have tested it and it works fine.
If you change the purchase part to sales it will work also0 -
Thank you Harry! I tried to import the text file, but I am not authorized to do it. I can only import fob file.0
-
Fob Version - Report 50079
https://docs.google.com/leaf?id=0BwY098 ... OTNj&hl=en
Demo of how to export PO header & lines.
You can add or remove any fields you like.0 -
Thank you, Harry! It is working now.0
-
http://www.youtube.com/watch?v=WQ63cFCPBOQ
Now you can see the code behind the report and apply it to different areas!
\:D/0 -
Hi
Please increment the row or use random function to give random no. to every line. it set a unique no. which will not conflict when u have more than one item or lines.Sharad Gupta
Navision Technical Consultant & .Net Developer0
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