how to create Purchase Invoice using import process

ismailthesacrificer1@gmail.com
Member Posts: 76
One header record and all the available rows will be invoice lines.
0
Comments
-
@ismailthesacrificer1@gmail.com,
WHAT, AGAIN?!
We already discuss it here https://forum.mibuso.com/discussion/70580/can-any-one-suggest-meLet's go!0 -
But i didn't get the solution for it. only header information is moving not the Line information. I need both information should move in purchase invoice0
-
@ismailthesacrificer1@gmail.com,
I suggest you have a mistake in logic in your code. You can post you code here and we will take a quick look on it.Let's go!0 -
0 -
@ismailthesacrificer1@gmail.com,
Sorry, but major part of you code looks like you just taken it from blender.
And gInsertData function has obvious mistakes. E.dg you use RowNo as parameter but always read data from row no. 1.Let's go!0 -
Can you evaporate it.. Please0
-
Thanks @logger for your Support and respond I got the solution for this.0
-
Hi @ logger but it should accept even the record already exists is there any method to not to get this error
0 -
hello @ logger
I was waiting for your reply it will be helpful if you respond.0 -
Notes to your code:
- you use RowNo as parameter but always read data from row no. 1 as logger says
- values in purchase line should be used from previously created header, not from columns
- purchase line Document Type is missing
- purchase line Line No. is missing0 -
Thanks @ lubost
Yes i added purchase line Document Type and Line No.
Can you please evaporate it i didn't understand it, yes its read only one record
0 -
Document type and line.no. are not enough u have to choose the most important thing which is Document No., btw u can also use rapid services in nav2016 and choose the fields u want and whether to validate or not on each one, but the file u import should be excel0
-
Your code can create header and one line. If your Excel has more lines linked to one document no., you have two possibilities:
- divide headers data and lines data into two sheets/files and create loop for import headers and loop for import lines
- you can (theoretically) import data your way, but you have to change code to IF gPurchaseHeaderRec.INSERT(TRUE) THEN ; to avoid attempt to insert the same document twice. Bad message is that this code doesn't differentiate between double inserting and other error in insert trigger.0 -
... and the best way is use Dataport/XMLPort.0
-
TQ lubost and nizar_mneimneh for responding.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