Importing and converting from other ERP-programs to Navision

Michael_Schumacher
Member Posts: 81
Hello there,
Is there anyone out there in the dark who had successfully imported Sales Orders and Purchase Orders where some delivery and invoices had been done with all needed financial postings?
I just looked at the code which is performed when you post an order in Navision. Even for Purchase there are 22 tables touched in write mode with codeunit Purchase Post and there are other codeunits called.
I'm getting mad thinking of all the programming which must be done to do this with orders, delivery notes and invoices and cash flow from other programs.
a just created order is not a problem because there are only 2 tables involved, but what about those, which are further in workstate like posted orders asf. :?:
greetings from good old Germany
Michael Schumacher
Is there anyone out there in the dark who had successfully imported Sales Orders and Purchase Orders where some delivery and invoices had been done with all needed financial postings?
I just looked at the code which is performed when you post an order in Navision. Even for Purchase there are 22 tables touched in write mode with codeunit Purchase Post and there are other codeunits called.
I'm getting mad thinking of all the programming which must be done to do this with orders, delivery notes and invoices and cash flow from other programs.
a just created order is not a problem because there are only 2 tables involved, but what about those, which are further in workstate like posted orders asf. :?:
greetings from good old Germany
Michael Schumacher
regards,
Michael Schumacher
oh, what day is it? Backup day. OK, let's dump all data to /dev/nul ;-)
Michael Schumacher
oh, what day is it? Backup day. OK, let's dump all data to /dev/nul ;-)
0
Comments
-
Sure, all you need to do is call codeunits 80 or 90. Of course you will have to make sure that the data in the orders is correct, or otherwise your code will cause errors. But codeunits 80 and 90 should take care of everything.
To see this for yourself.... open a sales order and set quantities to ship/invoice. Turn on the debugger. Post the order. walk through the debugger and see what happens. If you want to automate this, you will have to simulate the first few steps and then the posting routines will take care of the rest.0 -
DenSter wrote:Sure, all you need to do is call codeunits 80 or 90. Of course you will have to make sure that the data in the orders is correct, or otherwise your code will cause errors. But codeunits 80 and 90 should take care of everything.
Thanks, but what about the posting dates?
do I have to change the workdates or will the codeunits take care of the dates in the order and orderlines?regards,
Michael Schumacher
oh, what day is it? Backup day. OK, let's dump all data to /dev/nul ;-)0 -
You can just put the correct posting date in the header just before posting.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:You can just put the correct posting date in the header just before posting.
I think this will help a lot, because from the import-XML-Files I can put the dates directly in the needed fields....
and from the code I know that I have to set the fields Shipment, Receive resp. Invoice to yes if this action should be taken. what about Deliveries that are splitted? Do I have to repeat this once for each action date? I think so....regards,
Michael Schumacher
oh, what day is it? Backup day. OK, let's dump all data to /dev/nul ;-)0 -
That is correct. You will have to program the required values, and send the order header into the posting codeunit, and it will take care of everything. The trick is to figure out which values to set to post automatically to prevent errors from occurring. I'll give you a hint: one of them is the posting date
.
0 -
I just have to say this
CHANGE YOUR USERNAME; you don't want to use a LOOSERS name!!!!
Regards,
A very big formula 1 fan which enjoys this season!!!!!!!0 -
Mark Brummel wrote:CHANGE YOUR USERNAME; you don't want to use a LOOSERS name!!!!
IF you want to have trouble, then say it loud and clear and you will get trouble! :evil:
Can you imagine, that someone uses his real name?regards,
Michael Schumacher
oh, what day is it? Backup day. OK, let's dump all data to /dev/nul ;-)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