Import using reports
haryramani
Member Posts: 48
Hi,
jus lik Financial Management=>General ledger=>Budgets
i want to add a function "Import from excel" in purchase journals...
I tried surfing and also saw report 81 but i cannot understand how they are importing using excel buffer...
can sum1 give a small example on how to import using reports (excel buffer) jus lik dis
http://savatage99.googlepages.com/Excel ... ummies.doc (this 1 is for export and i need for import)...
And also in report which data item should i add,a created table for this (or) table related with purchase journal(general journal line) ???
jus lik Financial Management=>General ledger=>Budgets
i want to add a function "Import from excel" in purchase journals...
I tried surfing and also saw report 81 but i cannot understand how they are importing using excel buffer...
can sum1 give a small example on how to import using reports (excel buffer) jus lik dis
http://savatage99.googlepages.com/Excel ... ummies.doc (this 1 is for export and i need for import)...
And also in report which data item should i add,a created table for this (or) table related with purchase journal(general journal line) ???
0
Comments
-
Did you check DataMigration option under Administration-->Application Setup-->Company Setup?0
-
i jus now checkd..Am not able to get it ,can we do it even without using report...???
XLSDataFile := CommonDialogMgt.OpenFile(Text004,'',DefaultFileType::Custom,'*.Xls',Action::Open);
IF XLSDataFile = '' THEN
EXIT;
MigrationMgt.ImportFromExcel(XLSDataFile);
Wat they have done , i cant understand....[:'(]0 -
Read the Help or contract your senior in office how to use it0
-
I dont have anybody 2 guide here..anyways thanks...!!!0
-
Have a look at this video
http://www.youtube.com/watch?v=O8uyrVi-ADE0 -
or checkout some tools from the download section:
http://www.mibuso.com/dlinfo.asp?FileID=811
http://www.mibuso.com/dlinfo.asp?FileID=984
http://www.mibuso.com/dlinfo.asp?FileID=14740 -
But I need to do only using reports..Can sum1 jus say which data item should i add,and wat are the functions to be used and in which function or trigger we will write code for our necesary changes....0
-
If you want to import to purchase journal - then the dataitem is "Gen. Journal Line"haryramani wrote:Can sum1 jus say which data item should i add
In Purchase Journals there is a function button . you will add a menu item to that that calls your report.haryramani wrote:which function or trigger we will write code for our necesary changes....
**you can look at those downloads, view the code & see how they did it.0 -
am having aa bit complicated excel 6 different columns
Column A-Posting date
Column B-Document No
Column C-Description
Column D-Account Name(not account No.)
Column E-Amount
Column F-Balance Account No.
can sum1 give some basic or example coding for importing these datas into respected table.....0 -
why are you forced to import using a report?haryramani wrote:But I need to do only using reports..
why not an xml port or dataport?
have you looked at the replys and attempted anything?0 -
i have tried seeing the codes...But am not getting a clear picture...0
-
i tried some coding
When i run am getting a dialog box with message
"The Gen.Journal Line already exists"
Identification fields and values
Journal Template Name=",Journal Batch=",LineNo=0;
My coding(i jus tried to import 1 column )
Window.OPEN(
Text007 +
'@\');
Window.UPDATE(1,0);
TotalRecNo := ExcelBuf.COUNT;
RecNo := 0;
ExcelBuf.SETRANGE(ExcelBuf."Column No.", 1);
RecNo := 0;
IF ExcelBuf.FIND('-') THEN BEGIN
REPEAT
RecNo := RecNo + 1;
Window.UPDATE(1,ROUND(RecNo / TotalRecNo * 10000,1));
IF RecNo > 3 THEN BEGIN
GenJournalLine.INIT;
WITH GenJournalLine DO BEGIN
ExcelBuf2.SETRANGE(ExcelBuf2."Row No.",ExcelBuf."Row No.");
ExcelBuf2.SETRANGE(ExcelBuf2."Column No.", 1);
IF ExcelBuf2.FIND('-') THEN
IF EVALUATE("Document No.", FormatData(ExcelBuf2."Cell Value as Text")) THEN;
GenJournalLine.INSERT;
ClearVariables;
END;
END;
UNTIL ExcelBuf.NEXT = 0;
END;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
- 322 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
