Import txt Files more than 1 lines

bangswit
Member Posts: 265
hi all...
if we want to import txt file using dataport but I have more than I lines
how do i import that?
this is the sample data :
SHR ED 93AEAN007ORDERS0
HDRORDERS E1020
this is 1 record
I'm using fixed format dataport
I confused about StartPos
if we want to import txt file using dataport but I have more than I lines
how do i import that?
this is the sample data :
SHR ED 93AEAN007ORDERS0
HDRORDERS E1020
this is 1 record
I'm using fixed format dataport
I confused about StartPos
0
Comments
-
You cannot do it through dataport in standard way. You will need to read it line by line and parse it yourself. But you can use codeunit for reading the file too... Dataport is not able to read more lines as one record and parse it automatically...0
-
codeunit???
do you have sample like that?0 -
bangswit wrote:codeunit???
do you have sample like that?
Using FILE data type variable to read the file... you know how to use FILE data type, aren't you? ;-)0 -
I already create codeunit
but how to set up start pos and width like in dataport?
and what is the code for ENTER ??
i use ascii code no 13
but the result is like this (the bold one) --> SHR|PARTNER1|E1|1|ORDERS|Test|1|2|3|4|5|6|6|||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