Purchase Invoice

Vazid_490
Member Posts: 52
How to create Purchase invoice using import process. One header record and all the available rows will be invoice lines.
0
Answers
-
Given the questions you currently ask in other threads as well, this might be a bit heavy for you at the moment.
Generally, you should search for similar tasks handled in standard NAV already and learn from those existing objects. In this case I suggest you start by analyzing XMLPort 99008514 and how it is used.
Basically, the external data is read into staging tables, then checked and finally processed.
Always make sure you validate the data when filling it into tables used by NAV's business logic.
Never import into tables that only are populated while posting/registering. If your data needs to go there, always fill in source documents or journal lines and post or register them.0 -
use a dataport with 2 dataitems.
purchase header
purchase line
for details followhttps://m.youtube.com/watch?v=UFnOHQ8VOSY
http://navguides.blogspot.co.at/2013/07/create-dataport.html
https://msdn.microsoft.com/en-us/library/dd339001.aspx
best regards
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/0 -
Hi,
No I want to to use reports not data ports.0 -
then use virtual table integer as dataitem in your report
then open the textfile in trigger onprereport in read mode.
for details follow my answer in http://forum.mibuso.com/discussion/67184/import-text-file
read the lines in onaftergetrecord trigger
there parse line, create purchase invoice
stop import when file.read gives 0
best regards
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/0 -
Thank you,
Can you elaborate more.plz its very urgent form me
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