Hi,
I am very new to Navision. I am part of an integration team which is migrating data to and from navision to another database. My Navision setup is based on SQL Server. There is a column called "shipping time" in sales header. When I try to enter some data into that column through Navision, say "CD", the data getting stored in SQL Server is " ".. What does this exactly mean? Can any of you help on this context?
Thanks.
0
Comments
BUT in some cases there are fields with name "... Time..." but are defined as Decimal or Integer in Navision. In this case it is some number representing the time in no. of ms or seconds sience midnight.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
For example:
C = 01
D = 02
M = 05
in this case the '+1D-CM' will be saved as '+1{02}-{01}{05}'
where {xx} is char with ASCII xx. You must replace the characters back (if you use unicode the char code will be 00 01 etc...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
"Date Formula internally is handled as an
information that will be stored independently of language settings."
but, how will a SQL Server user interpret that data..
Here, when I do a SELECT [SHipping Time] FROM ...$Sales Header..
I get ""..what does this mean? As i had already said , I need to migrate this data into some other db..and so it is essential that i read this data properly..
'{01}{02}+1{05}+2{07}+3{04}+4{06}'
C (current) = 01
D (day) = 02
M (month) = 05
Y (year) = 07
W (week) = 04
Q (quarter) = 06
Do replace and it is OK...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I did this:
select replace([shipping time],'C','01')
from [companyname$Customer]
but..nope.. i am still getting .. am i on the right track?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I got the result by giving this..
select replace(replace([shipping time],CHAR(1),'C'),CHAR(2),'D'), *
from [companyname$Customer]
actually, CHAR(1) will give you the character corresponding to ascii value 1..
Thanks a ton for your help!, Kine
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
We use the field for shipping leadtime on overseas items and I am trying to do a report of items purchased from overseas that do not have a value in Safety leadtime.
Any suggestions?
Kevin
Director of Business Systems
Saris Cycling Group - Madison, WI USA
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.