Calling the CreateReservEntryFor and CreateEntry functions
Kisu
Member Posts: 381
Hi,
I'm trying to add serial numbers (multiple) for purchase order lines during import.
I have two tables, one with the imported lines (lines in temp table include order nubmer, line number, types and item numbers all that you need to make a line where you can go and add serial number)
and one table that has the serial numbers for these lines
The import should add the serial numbers to the open purchase order lines (there is a check that the order and lines are in place)
and I have a codeunit that runs with Nas.
The question is what and which parameters I need to use for CreateReservEntryFor and CreateEntry functions to add the lines.
I tried this topic but I'm failing to call the functions
viewtopic.php?f=32&t=54485&hilit=import+serial+number
Where do I get the quantities tracspec? and do I need the lotno if its just needs to add serial number and what is resstatus?
:-k
Any help would be great. Its my last piece of puzzle for this project n_n
I'm trying to add serial numbers (multiple) for purchase order lines during import.
I have two tables, one with the imported lines (lines in temp table include order nubmer, line number, types and item numbers all that you need to make a line where you can go and add serial number)
and one table that has the serial numbers for these lines
The import should add the serial numbers to the open purchase order lines (there is a check that the order and lines are in place)
and I have a codeunit that runs with Nas.
The question is what and which parameters I need to use for CreateReservEntryFor and CreateEntry functions to add the lines.
I tried this topic but I'm failing to call the functions
viewtopic.php?f=32&t=54485&hilit=import+serial+number
Where do I get the quantities tracspec? and do I need the lotno if its just needs to add serial number and what is resstatus?
:-k
Any help would be great. Its my last piece of puzzle for this project n_n
K.S.
0
Comments
-
hmm so when I add the serial number manually to the purch order line, the entry goes to table 337. Reservation Entry
positive, qty 1 table 39 and with sn
I could write code to do this straight but as there is ready function to do this I'd rather use that.
But when I call the function it says I cant add line cause the entry type is 0 in reservation entry table, entry no=0 and positive = no
](*,)K.S.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions