Hi All,
Can somebody please let me know how to transfer data from Excel Buffer table to currency exchange table(No.330) using a codeunit.
In NAV 2009 SP1 ,We managed to import the data from Excel file to Excel Buffer table using the below functions,
Excelbuf.OpenBook(FileName,SheetName);
Excelbuf.ReadSheet;
Appreciate your help.
Thanks,
Ashish
0
Comments
I will explain it assuming you've already imported to buffer:
[*]First, it doesn't affect your code if it's written in a codeunit or any other object. Generally they will be similar.
[*]Create a function in a new or existing codeunit.
[*]Loop through Excel Buffer by repeat until.
[*]Map fields in a Init(or Clear) - Insert block.
Something like:
Try to complete it yourself. If you couldn't succeed I can help you later...
Pargesoft
Thanks for your reply.You are right we have already imported the data into Excel buffer table and trying to transfer the data from Excel buffer table to Currency Exchange Rates(No. 330) table.
I will try this and let you know.
Appreciate your help.
What you have done is the correct way.