Importing serial Numbers

taher.bha
Member Posts: 48
Hi all,
Am trying to import an initial warehouse for a customer.
I am using a dataport so as to fill the Item Journal. But i cannot figure out How to import Item tracking lines (Serial Numbers).
The code in the 'Item Tracking Lines' Form (Id 6510) seems to be really Complex.
As a workaround I tried calling the form and adding the 'Tracking Specification' record loded by the dataport using a Function I created.
The problem that am facing is that when running the dataport on the serial numbers file, i cannot Run then Close Form 6510 on the OnAfterImportRecord() call, the dataport seems to keep all the forms open although CLEAR(frm6510) is called and then cause an error because data has been changed.
Hope I was clear enough. Any solutions/Ideas ?
Thx in advance.
Am trying to import an initial warehouse for a customer.
I am using a dataport so as to fill the Item Journal. But i cannot figure out How to import Item tracking lines (Serial Numbers).
The code in the 'Item Tracking Lines' Form (Id 6510) seems to be really Complex.
As a workaround I tried calling the form and adding the 'Tracking Specification' record loded by the dataport using a Function I created.
The problem that am facing is that when running the dataport on the serial numbers file, i cannot Run then Close Form 6510 on the OnAfterImportRecord() call, the dataport seems to keep all the forms open although CLEAR(frm6510) is called and then cause an error because data has been changed.
Hope I was clear enough. Any solutions/Ideas ?
Thx in advance.
0
Answers
-
All lot/serial tracking prior to posting is stored in the Reservation Entry table (337).
The way NAV handles this table is quite complex, so you need to make sure that you fully test any solutions, but don't be too scaredit's not that bad...
This is the best way to achieve what you want.
1. Manually track a journal line as you would do if you were an end user filling in the journal.
2. Open the reservation entry table and look at the entries which have been created as a result.
3. Write code (in your Dataport) which populate the reservation entry table in the same manner as the system does.
You don't need to populate all fields, but it should become apparent when you look at the entries the system generates, which ones you need to populate.
Trial and error should get you there. Good luck
..also take a decision on the time you would spend writing code to do this, against the time it would take to have a user manually enter the journal. If there's not masses and masses of data, you may be better allowing the end user to take charge of the data entry themselves.0 -
Search should help you out. I have asked and answered questions on this topic.0
-
taher.bha wrote:Hi all,
Am trying to import an initial warehouse for a customer.
I am using a dataport so as to fill the Item Journal. But i cannot figure out How to import Item tracking lines (Serial Numbers).
The code in the 'Item Tracking Lines' Form (Id 6510) seems to be really Complex.
As a workaround I tried calling the form and adding the 'Tracking Specification' record loded by the dataport using a Function I created.
The problem that am facing is that when running the dataport on the serial numbers file, i cannot Run then Close Form 6510 on the OnAfterImportRecord() call, the dataport seems to keep all the forms open although CLEAR(frm6510) is called and then cause an error because data has been changed.
Hope I was clear enough. Any solutions/Ideas ?
Thx in advance.
If you are using warehouse management with directed pick and putaway, you need to import into warehouse journal. One line for serial/lot.0 -
Also take a look at this thread on how to populate the reservation using Navision Codeunits.
http://www.mibuso.com/forum/viewtopic.p ... light=tada0 -
Thank you all for your help. The two following links helped me resolve my issue.
http://www.mibuso.com/forum/viewtopic.p ... light=tada
http://www.mibuso.com/forum/viewtopic.p ... ght=serial
That wasn't as difficult as i expected it to be
Thx again.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