Conversion of data
Hi
Being there in Oracle or D2K I want to convert whole my data of one table to MS-Access database.
Thanks
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Al Olivier ([email protected]):
<HR></BLOCKQUOTE>
you should be able to bring the data into MS-Access from Oracle all within MS-Access
Create a DSN to your oracle DB
From MS-Acces issue this
insert into myAccesstable( fld1, fld2, fld3, fld4)
select fld1,fld2,fld3,fld4
from oraTable in [uid=scott;pwd=tiger;dsn=MydsntoOracle]
where condition exists.......
look in an MS-Acces book under
SELECT... FROM tbl IN[....]
hope this helps
Al
Similar Messages
-
Open conversions in data dictionary
Dear experts,
We have been trying to install an ST-PI package in an SAP system.However,it gives a warning saying "Open conversions in data dictionary". It says - Some open conversion requests still exists for the following ABAP data dictionary objects.To avoid inconsistencies and data losses you must process these conversions first.
Further it asks us to run the transaction SE14 which points towards the table GLPCA and says Index Z1 does not exist.
What can be the cause behind this?I do not have an ABAP background.So,hoping if you could help me out.
Regards,
Minuj
Edited by: minuj sarma on Feb 22, 2008 2:12 PMhi sagar,
Go to transaction SE14 and choose the following options in the menu
DB requests --> Terminated
Reward points if usefull,
Thanks,
Kalyan. -
Implicit Conversion from data type sql_variant to datetime is not allowed.
Getting a odd error. This code was working perfectly before a SQLServer upgrade.
The linked database is working, I'm able to pull up data from it in separate queries just fine.
I'm getting the following error.
Implicit conversion from data type sql_variant to datetime is not allowed. Use the CONVERT function to run this query.
Invalid column name 'TotalDay'. (.Net SqlClient Data Provider)
can anyone spot the issue? I've tried sever variations of the same code, but still get the same thing.
If I put this section in a query by it self it works just fine.
( DATEDIFF(ss,
CONVERT(VARCHAR(10),( SELECT TOP ( 1 )
TimeDate
FROM [nav].AcsLog.dbo.EvnLog AS X3
WHERE UDF2 = E.No_
AND CONVERT(VARCHAR(10), X3.TimeDate, 101) = CONVERT(VARCHAR(10), @sdate, 101)
ORDER BY TimeDate ASC
),101),
CONVERT(VARCHAR(10),( SELECT TOP ( 1 )
TimeDate
FROM [nav].AcsLog.dbo.EvnLog AS X4
WHERE UDF2 = E.No_
AND CONVERT(VARCHAR(10), X4.TimeDate, 101) = CONVERT(VARCHAR(10), @sdate, 101)
ORDER BY TimeDate DESC
),101)) ) AS TotalDayBadge ,>ANDCONVERT(VARCHAR(10),X3.TimeDate,101)=CONVERT(VARCHAR(10),@sdate,101)
It is not a good idea to use string dates for predicates in WHERE clauses.
Use DATETIME or DATE in predicates.
If you are not interested in the time part of DATETIME, use DATE datatype.
Example:
SELECT CONVERT(DATE, getdate());
-- 2014-08-25
Datetime conversions:
http://www.sqlusa.com/bestpractices/datetimeconversion/
Between dates:
http://www.sqlusa.com/bestpractices2008/between-dates/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Disallowed implicit conversion from data type datetime to data type timestamp
Received error: [Macromedia][SQLServer JDBC
Driver][SQLServer]Disallowed implicit conversion from data type
datetime to data type timestamp, table 'myTbl', column 'duration'.
Use the CONVERT function to run this query.
I have a field named duration hh:mm:ss.lll that I am trying
to insert into MS SQL. DB has field defined as [duration]
[timestamp] NOT NULL,
My insert has this: INSERT INTO myTbl( duration) VALUES(
<cfqueryparam value="2006-05-26 11:12:13"
cfsqltype="CF_SQL_TIMESTAMP"/> )
Why does this not work? rrrrrrrrrrrrrr! BTW: also tried with
seconds as 13.111 which did not work. Does the db duration need to
be date? I just want to store a duration for the time of a movie...
10 Qquote:
Originally posted by:
quiet1
Received error: [Macromedia][SQLServer JDBC
Driver][SQLServer]Disallowed implicit conversion from data type
datetime to data type timestamp, table 'myTbl', column 'duration'.
Use the CONVERT function to run this query.
I have a field named duration hh:mm:ss.lll that I am trying
to insert into MS SQL. DB has field defined as [duration]
[timestamp] NOT NULL,
My insert has this: INSERT INTO myTbl( duration) VALUES(
<cfqueryparam value="2006-05-26 11:12:13"
cfsqltype="CF_SQL_TIMESTAMP"/> )
Why does this not work? rrrrrrrrrrrrrr! BTW: also tried with
seconds as 13.111 which did not work. Does the db duration need to
be date? I just want to store a duration for the time of a movie...
10 Q
Duration as a timestamp? How odd, most people would store it
as an integer. Or, if you want to build your own string, the syntax
is {ts 'yyyy-mm-dd hh:mm:ss'}. The seconds might not be required.
In any event, use createodbcdatetime() for the value you want
to put into your table. -
Conversion of Data between 3.1 to 7.0
Hello Everybody,
I have a need to convert a large volume of data from BW 3.* to 2004s. Due to the volume of data what would be the best conversion practice.
1. I create a RFC between the system and create export data source out of 3.* box and extract the data in 2004s.
2. Create a flat .CSV files from BW 3.* and upload the files into the 2004s server (file copy) and load it as a flat file load.
I am considering ease of use, performance, and no data loss. Please advice what would be the better option. I am leaning toward option 1. Please tell me what is the better approach?
Thanks,
Alex.Hi Alex,
I guess that when you say Convert you mean to copy the information.
The best option is number 1, create the 3.1 system as a source system for the 7.0 system and upload data using infopackages.
Hope this helps.
Regards,
Diego -
Conversion from date to number & display a date in a textfield
I Have 2 issues
The first one:
I need to extract the hour from a date variable.
This is the code I already have:
NUM_TOT := NUM_TEL + to_number('PROGRAMMINGS1.PRG_START','hh24');
NUM_TOT & NUM_TEL are number variables,
PROGRAMMINGS1.PRG_START is a Textfiel with a dateformat. There can only be an houre like 24:59:00 entered.
So in this example I just want the houre and convert it to a number.
The second:
I want to make a date from a few numbers & then display it in a texfield.
This is the code I already have:
VAR_DATE := NUM_TEL || ':' || NUM_LENGTH || ':00';
:PROGRAMMINGS.PRG_END := to_date(VAR_DATE,'hh24:mi:ss');
Between the 2 lines of code i places a message(VAR_DATE) for testing.
When the program display VAR_DATE then i can see the good date at the bottom of the screen.
But when I place my variable in the textfield it looks like: 00:00:00. What am I doing wrong?
Who can help me.
With regards
StefanieVerdi wrote:
Problem: During the conversion (both implicit and explicit conversion with a format mask) I lose the "00" hours and "00" minutes and receive something like this: "10-JAN-13 *12*.00.00.000000000 AM".I don't think you are necessarily losing any information whatsoever. It's probably more of a function of your NLS_TIMESTAMP_FORMAT and NLS_DATE_FORMAT. For example your NLS_DATE_FORMAT could be setup by default for a HH24 (24 hour time) which would report midnight as "00" hours. However, it looks like your NLS_TIMESTAMP_FORMAT is setup with a "HH" format with a meridian indicator which means 12 hours time.
Your comparisons should be using date/timestamp data types anyways so as long as the input value is converted properly into a date type this shouldn't matter anyways.
You can see what is actually stored by using the DUMP function:
SQL> SELECT DUMP(TO_TIMESTAMP(TO_CHAR(TRUNC(SYSDATE,'DD'),'MM/DD/YYYY HH:MI:SS AM'))) AS TSTAMP
2 , DUMP(TRUNC(SYSDATE,'DD')) AS DT
3 FROM DUAL
4 /
TSTAMP DT
Typ=187 Len=20: 218,7,1,13,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0 Typ=13 Len=8: 218,7,1,13,0,0,0,0As you can see the TSTAMP and DT store nearly the same values (218,7,1,13), but the TSTAMP has more precision because of fractional seconds.
HTH!
Edited by: Centinul on Jan 13, 2010 7:23 AM -
Need help in Report.... Conversion of data elements
Hi All,
Iam doing a report. Chk the code below
SELECT roleid
FROM SRRELROLES
INTO gs_roleid
WHERE objkey = gs_guid
AND objtype = BUS2010020.
When i activate this it is throwin an error sayin dat <b>" GS_GUID and OBJKEY is not mutually convertible in a unicode program.... "</b>
<b>Here objkey is RAW 16 and gs_guid is char(70)..</b>
Can anybody help me out in this... and is there any conversion routines for doing this.
Thanks,
Shiva shekar kdeclare a gs_guid variable as raw data type .. and then convert it to char
and for conversion refer
convert raw type to char
Convert RAW 1022 TO CHAR 255
Convert RAW 1022 to CHAR 255 -
Supplier Conversion - Sites data - Country code
Hi,
While doing Supplier conversion from release 11.5.10 to R12.1.3, we see the below value in REJECT_LOOKUP_CODE column of the AP.AP_SUPPLIER_INT_REJECTIONS table:
'AP_NULL_COUNTRY_NAME'
As I understand this looks like the program is looking for a Country code. The country code column is a Nullable column in the AP_SUPPLIER_SITES_INT table, so not sure where validation happening. In 11i data, there are records that do not have the Country code set up and we are tying to bring those in to R12. Any one faced this issue, any ideas / work-around?
Is the program validating the data against any seeded lookups in oracle apps?
Thanks,
gg.Hi Vidhu,
Every supplier will have a site meant for different purposes ... at the backend they are stored in AP_SUPPLIER_SITES_ALL table ...
If you query this table, you can find the list of supplier sites that are enabled for Purchase Site assignment and Payment Sites assignment ....
i.e.
Select VENDOR_ID, VENDOR_SITE_ID, ORG_ID, PURCHASING_SITE_FLAG, PAY_SITE_FLAG from AP_SUPPLIER_SITES_ALL
From Vendor ID you can find the supplier name and number from AP_SUPPLIERS table
From Vendor Site ID you can find the supplier site name from AP_SUPPLIER_SITES_ALL table
From ORG_ID you can find the operating unit name from HR_OPERATING_UNITS
I would recommend enabling the Pay_site_flag for the supplier sites that are enabled for Purchase site flag and assigned to operating unit already .....
Since you cannot create Invoice for a supplier site, if the site is not enabled for Pay_Site_flag, and you cannot create purchase order for a supplier site, if the site is not enabled for Purchasing_site_flag... hence from business perspective they need a site in every operating unit which is enabled for Pay_site_flag and Purchasing_site_flag ...
Regards,
Ivruksha -
Conversion from DATE to TIMESTAMP datatype
Hello,
My issue is as follows:
1. I have one variable of type DATE, which I assign the value of SYSDATE
mydatevar DATE:= SYSDATE;2. I want to find *"today"*, truncated to DAY
TRUNC (mydatevar, 'DD')
TRUNC function returns DATE datatype. So I will receive in point 2 for example *'2010-01-13 00:00:00'*.
3. I want to assign the value from point 2 to a variable of type TIMESTAMP
mytimestampvar TIMESTAMP := mydatevar;which implicitly will convert the DATE variable to TIMESTAMP.
Problem: During the conversion (both implicit and explicit conversion with a format mask) I lose the "00" hours and "00" minutes and receive something like this: "10-JAN-13 *12*.00.00.000000000 AM".
Question: How can I convert from DATE to TIMESTAMP keeping hours and minutes zeros?
Why I need this conversion: I have a table with a column "column1" TIMESTAMP(0) and I would like to take only those rows from the table, where "column1" is in range from today 12 o'clock in the morning till now (whatever hour it is).
NLS characteristics of the database:
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 10.2.0.4.0Session parameters are the same.
DBTIMEZONE is "+02:00".Verdi wrote:
Problem: During the conversion (both implicit and explicit conversion with a format mask) I lose the "00" hours and "00" minutes and receive something like this: "10-JAN-13 *12*.00.00.000000000 AM".I don't think you are necessarily losing any information whatsoever. It's probably more of a function of your NLS_TIMESTAMP_FORMAT and NLS_DATE_FORMAT. For example your NLS_DATE_FORMAT could be setup by default for a HH24 (24 hour time) which would report midnight as "00" hours. However, it looks like your NLS_TIMESTAMP_FORMAT is setup with a "HH" format with a meridian indicator which means 12 hours time.
Your comparisons should be using date/timestamp data types anyways so as long as the input value is converted properly into a date type this shouldn't matter anyways.
You can see what is actually stored by using the DUMP function:
SQL> SELECT DUMP(TO_TIMESTAMP(TO_CHAR(TRUNC(SYSDATE,'DD'),'MM/DD/YYYY HH:MI:SS AM'))) AS TSTAMP
2 , DUMP(TRUNC(SYSDATE,'DD')) AS DT
3 FROM DUAL
4 /
TSTAMP DT
Typ=187 Len=20: 218,7,1,13,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0 Typ=13 Len=8: 218,7,1,13,0,0,0,0As you can see the TSTAMP and DT store nearly the same values (218,7,1,13), but the TSTAMP has more precision because of fractional seconds.
HTH!
Edited by: Centinul on Jan 13, 2010 7:23 AM -
Regarding conversion of date in wd abap
Hi All,
I have created an ui element i.e a table and in that one row is for getting the date of birth.i have binded this table with a table which is in dictionary structure. while running my application I am not getting the date of birth in correct format.
say for example i require the correct output i.e DOB as 01.01.1970 but i am getting the wrong output in this field as 19700101.so if there is any function module or any way to do the date conversion then give it.
Thanking you All in advance.hi,
Use this FM CONVERSION_EXIT_PDATE_OUTPUT.This will always converts from system(YYYYMMDD) to user format.
Thanks,
suman -
Regarding conversion of date in abap
Hi All,
while running my application I am not getting the date of birth in correct format.
say for example i require the correct output i.e DOB as 01.01.1970 but i am getting the wrong output in this field as 19700101.so if there is any function module or any way to do the date conversion then give it i.e. how can I convert the date from string to date format.If any one knows the solution then revert me back.
Thanking you All in advance.say your user setting format is mm.dd.yyyy
now, data: v_date like sy-datum.
move the data to V_date.
write:/ v_date.
as your user setting format is mm.dd.yyyy it displays as 01.01.1997 although internally it stores as 19970101 -
Conversion of Date field to 0FISCPER
Hi,
I have a field ZDATE from old legacy system.
The format of this field is like 05 - MAJ ; 06 - JUNI; 07 - JULI and so on.
I need to map this field to 0FISCPER in the BW system
Please advice a code for a conversion routine as such.Hi john,
Greetings.
For converting it to 0FISCPER, you will need the information of Year as well.
We will have to perform the operation in 2 steps.
1). To convert the legacy date into YYYYMMDD Format.
2). Once we achieve the first part, we can use the Function module 'DATE_TO_PERIOD_CONVERT' by passing the date and it will return the period and year. and you can pass the period to the result.
Sample code is as below. Let me know if it helps.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = wa_result-calday
i_monmit = 00
i_periv = 'Z2'
IMPORTING
e_buper = l_period
e_gjahr = l_year
EXCEPTIONS
t009b_notfound = 4
INPUT_FALSE = 4.
wa_calday-v_period = l_period.
Thanks
Sachin -
Regarding Conversion to date in OBIEE
Hi
I am pulling a date column from an as/400 source wherein I have two issues:
1. The date is displayed 19761027.0 (1976 is the year,10 is the month and 27 is the date). The data type is Integer. I need to convert this to date and in the following format mm/dd/yyyy
2. I need to add 26 to the year so that it shows the current year 2012.
How can I achieve this in the RPD? Which conversion function should i choose?
VikramVikram VV wrote:
Hi
I am pulling a date column from an as/400 source wherein I have two issues:
1. The date is displayed 19761027.0 (1976 is the year,10 is the month and 27 is the date). The data type is Integer. I need to convert this to date and in the following format mm/dd/yyyy
2. I need to add 26 to the year so that it shows the current year 2012.
How can I achieve this in the RPD? Which conversion function should i choose?
VikramCould you create a column where you would add the 260000 to the existing column and then join that on the date WID of the time dimension and retrieve the date from the Time dimension ? You could always use casting but this would give you better flexibility going forward if you ever needed anything from time dimension. -
Conversion of data from legacy into SAP using LSMW(Direct input)
Hi guys,
I need a help from u for the following scenario. The scenario is about <b>FI & MM Vendor Master Conversion</b>.The brief description of this scenario is as follows:
<i>Conversion of Accounts Payable Vendor Master Record from Legacy systems into SAP. The purpose of this document is to define the master data fields that will need to be populated as well as the order in which the different parts of Vendor master should be loaded.</i>
Transaction Code(s) to be used: XK01 Create Vendor Master Centrally RFBIKR00 LSMW Program <b>RFBIBL00</b>.
Please help me to do this scenario.
Regards
Ram.VHi Naveen,
Send me the suitable screen shot to my id. Also if u can, send me the same for batch input too.
My mail id is "[email protected]". -
Text file conversion - EDI data file
Hi experts,
I have a file as below :
N1VNVendorName1VendorID
N2VendorName2VendorName3
N3VendorAddressLine1VendorAddressLine2
N4VendorCityDU*823
N1, N2...... are segment name and "*" is delemeter
after that the data is filled in the attributes of segment. File is ".txt" file.
How i can convert the file by using file adapter ?
what will be the entries in file Comm. Channel tab : Content Conversion parameters ?
Please help, its urgent,
Regards,
Study SAPfollo these blogs for CCP:
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
the field separator here wull be '*' -
Error in Unit conversion while data loading
Hi,
I have maintained DSO in Material (0MATERIAL) info object > Bex tab > Base unit of measure > ZDSO; Then loaded this ZDSO from std data source 0MAT_UNIT_ATTR so that all conversion factors into different units which are maintained in material master data in ECC would get loaded to this DSO.
Then I have created one Conversion type (ZCON) to read source unit from record and convert it to fixed unit "ST" with reference info object as 0MATERIAL. ST is customized UOM here.
I am using ZCON conversion type to convert Qty in base UOM to Qty in ST in Bex reports under conversion tab of key figure. Now as this is std functionally, conversion would automatically takes place using ZDSO (mentioned above) as source and target UOM are not from same dimension (Base UOM is EA and target UOM is ST).
If conversion factor to ST is not found in ZDSO then conversion to base UOM would happen automatically. Now this functionality is happening perfectly in Bex but its giving error if I use the same conversion type ZCON while data loads. Its giving error for those material for which ST conversion is not maintained. But when its not maintained by default it should convert it to base UOM, but its not converting and giving error in data loads.
Hope I am able to explain the issue.
Please help me on on this issue or any way around.
Thanks in advance.
PrafullaGanesh,
Can you please check out the Alpha Conversion Routine and also nodeid for that infoobject..
There might be some inconsistencies in the code..
Hope it helps
Gattu
Maybe you are looking for
-
Final Cut Studio 2 Apple Loops, Jam Packs and Logic express 8 installation?
Hi(Bonjour)! I've currently use Final Cut Studio 2 +Soundtrack Pro 2.0.2+ application with all included Apple Loops. I own several Jam Pack Apple Loops packages (with a less than impressive integration with Garage Band for older one). I purchased Log
-
Templates with Flash don't work
Hello, I have several pages with templates, but with the new Flash player, the swf that are included in the templates don't work, they do'nt appear in the webpage. Any help please!!
-
How can I create a cron schedule that repeats every 2 weeks on Mondays?
I need to create a cron schedule that repeats every 2 weeks on Mondays. Cronmaker.com doesn't have the cron expression for this. Please advice. Using calendarSchedule I can do this, var trigger = TriggerBuilder.Create() .StartAt(new DateTime(2012, 11
-
Alternatives To iTunes Syncing
I want to get my laptop's pictures and videos on my iPad without them becoming read-only, what are my options?
-
How do I get rid of "other" storage
How do I get rid of "other" storage or why is there so much dedicated to it? PLEASE HELP! I have an iPod touch 32Gb 4th generation with: - 19Gb of music - 2Gb of TV Shows - 3Gb of Apps - 3.3Gb of "Other" Here is the troubleshooting attempted: - Not s