Changing data types in database
Hi,
We are using Oracle 10g database.
We changed the data type from DateTime to DateTimestamp. There are a whole bunch of joins defined in Discoverer's EUL. is there a work around this as all the reports written is not working because of this change?
Thanks.
Hi,
I assume you mean the joins in the EUL. Then, no, if you remap the folders the joins will follow. However, if you use timestamps datatypes in your joins then the column will be converted to date before the data is joined.
Rod West
Similar Messages
-
Changing data types of fields in structures
Hello,
Currently we are working for upgrade to ECC 6.0 .
In some transactions we are using BAPI_MATERIAL_SAVEDATA to create material.
We have some additional fields in MARA and MARC table , which we fill using BAPI_TE_MARA and BAPI_TE_MARC structures.
In these structures we have different data types for fields earlier in 4.6C
Now this function module is only working if we change data types of fields in these structures only to char type. It is going for dump , if we maintain any other data type.
Could any body tell me why should we change for char data type ?
Regards,
SATYAHi,
Check enhancement category (Extras --> Enhancement Category) for structures before enhancement. For example, for BAPI_TE_MARA structure, enhancement category is given as character type or numeric type. That means you can add the fields of data type only C and N. No other data types are allowed. If you select as not classified then you can add any data type. This option plays important role while enhancement.
Regards,
Prasanth -
How to change data type of attribute in caf
hi.
this is my problem.
i been added a attribute in an entity service called emloyee. named "Birthday", use the data type "com.sap.caf.core.date".
when i tried modify the entity service, i hit exception about "DST Daylight Saving Time".
because of DST, the date will add an hour such like "1957/04/01 00:00:00.0" to "1957/04/01 01:00:00.0", and com.sap.caf.core.date will throw an exception.
is anyone had same problem like me?
how to fixed it(if passable)?
and, how to change data type?
thanks.Hi Sruthi,
all you need to do on this is open the report go to the parameters, select the parameter that you wish to change and click "Edit". This will allow you to change thefield to a date rather than a date time.
Regards,
Noel -
Change data type from number(11,6) to number (11,8)
I have a table, which has a million records...I have to change data type of some of the columns from number (11,6) to number (11,8).
I thought of taking the backup of the table , truncating the original table, change the data type and then insert data back.
Is it a safe option considering so many records ?the first number is precision and the second is scale:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/schema002.htm#sthref472
so yes, 11,6 can hold larger numbers than 11,8
create table foobar (two number(5,2),
three number(5,3))
insert into foobar values (123.45,12.345);
--works fine
insert into foobar values (123.45,123.45);
--gives error ORA-01438: value larger than specified precision allowed for this column -
Impact of changing data type of a field in Database table
Hi All,
I need to change the data type of a field(which is not a key field and it has no dependency with any other field) from NUMC to CHAR by maintaining the same length. Please let me know if there will be any impact in doing this. Hope the following things need to be taken care:
- Take backup of entire data in the table before doing the change
- After changing the data type, I need to set the option 'Save Data' and then 'Activate and Adjust Database' in 'Database Utility'.
- Use 'Where Used List' to check the related objects.
Please let me know if there is any impact or any thing else need to be taken care apart from the above things.
Thanks in advance.
Regards
Vidhya.Hi,
even if the length is same there would be no impact.
just v need to adjust the database in the database utility.
check the table maintenence generator also. if not reflected there u need to delete it and create it again.
reward if useful,
teja -
Issue with Info Object Transport after changing Data Type
Hi Experts,
We have a DSO which is running past 5 years. And recently(3 days back) we added new fields into that DSO. Delta loaded for last three days and new info object (Say XXX) data populated into DSO.
Now the problem is, We identified that, info object data type is not correct. We used data type NUMC instead of CHAR.So Character information is missing for that field.
Example:
Data from ECC: ABC123
Data Loaded to DSO: 123 (Missed character ABC)
So we deleted data from DSO and changed the info object data type in Development system.
And also I have deleted only last three days delta records from DSO and transported my info object to Production. But its giving error as: Info object contains data in DSO".
But that info object field is empty in DSO. I have already deleted last three days delta.
Do I need to Delete all 5 years data from DSO to change the data type of recently added new info object ?
Please give me your solutions and ideas to solve this issue.
Thank you,
Best Regards,
SanthoshHi Raman,
Thank you for your answer.
When I changed the data type of info object in Dev, I deleted the content of DSO. And same thing transported to QA as well. Before importing changed info object, I just deleted the content of DSO from QA. So transport done successfully QA.
But in Production we have a history of past 5 years. So I cant delete all contents of DSO.
So just deleted only the delta request's which contains data for that info object(3 days back, we moved that info object(NUMC data type) to production,So last 3 days delta only loaded for that info object). And tried to transport it. But it was failed. I am sure we need to drop all data from DSO, if I am interested to go with same info object.
I have some comments on your first approach,
1. If we delete info objects from Dev DSO and transport to Production will give transport failure, Why because, my previous transports errors clearly saying that info object contains data in DSO . So it wont allow to remove that info object from DSO.
2.We are using same info object technical name in BO Data federator also. So if we change add new info objects again we need to make changes with BO as well. I am thinking this point as my last option if i cant find any other solution.
Thank you.
Best Regards. -
How to change data type of content type column.
Hi all,
I am having one content type. I have 10 columns in it. There are two rich text columns in my content type. I have attached this content type to pages library. I want to change the data type of this rich text column to "Full
HTML content with formatting and constraints for publishing".
Please assist me with this issue.
amolHi,
From your description, my understanding is that you want to change the data type for rich text column in content type.
The field type of Full HTML content with formatting and constraints for publishing is "Invalid", you could refer to this article:https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldtype.aspx.
You also could test it by create a Full HTML content with formatting and constraints for publishing column and get the its type with C# code below:
//change the URL to your SharePoint site
using (SPSite site = new SPSite("http://sp/sites/sharepoint2013"))
using (SPWeb web = site.OpenWeb())
SPFieldType type = web.Fields["Column name"].Type;
I have tested it with the PowerShell, it cannot hange the rich text column to “Full HTML content with formatting and constraints for publishing” column. If you want to edit the rich text column, you could not change the type of the column as the screenshot
below:
As a workaround, you could follow these steps to accomplish your requirement:
Create a “Full HTML content with formatting and constraints for publishing” type column in the content type.
Enter your site columns by clicking gear icon -> Site Settings -> Site columns under Web Designer Galleries under section.
Find and delete the rich text column you want to change.
Find the column you have created in step 1, and change the column’s name to the name of the text column you have deleted in step 3.
But you will lose the data of the rich text column in pages library with this method.
Best Regards,
Vincent Han
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to change data type of input parameter
Hi
In my procedure i declared the data type of "Value Date" Input parameter as Date where as in CR it is showing data type as "Date Time". Can any one please specify how to change to Date.
While prompting for input parameter in description it is showing message as
Please enter Date time in format"yyy-mm-dd hh:mm:ss" . To change the content selected "format field" option. But is there any way to change input parameter data type.
Please suggest how to change.
Thanks SruthiHi Sruthi,
all you need to do on this is open the report go to the parameters, select the parameter that you wish to change and click "Edit". This will allow you to change thefield to a date rather than a date time.
Regards,
Noel -
Want to change data type CHAR32 to CHAR40 in cutomized function module(CRM)
Hi Friends,
I have a requirement to change the data type CHAR32 to char40 .
Pls guide me how to do it.do I need to change it directly or we have do anymore changes?
Thx in Adv.
BabaHello Baba,
In my opinion the length of a data field has little to do with the ITS and it's templates. You should be able to change the length for your function module and then the new length should work on the ITS if using the Webgui. If you have custom templates then maybe you will need to recreate the templates or modify the field length, but this is second to actually changing the datatype length in the R/3 system.
Edgar -
I'd like to Change format Data from Date-Type Column to char-type
especially, as 'YYYYMMDD' Format, But There are some Error Message.
I already know, to_char(sysdate, 'yyyymmdd') from dual,
But When it Applied my Table (has Date Type Column )....
That SQL was Error...
Table Description
===================
GUBUN NOT NULL NUMBER(7)
POLCD NOT NULL NUMBER(7)
TITLE VARCHAR2(200)
VALUE NUMBER(7)
SIDATE VARCHAR2(20)
SQL
================================
SELECT TO_CHAR(SIDATE,'YYYYMMDD') as V_SIDATE , -- <== Error
TO_CHAR(SYSDATE,'YYYYMMDD') as V_TODAY -- <== Ok
FROM T_POLL
Error Msg
================================
ORA-01722: invalid number
.....I don't know Why... plz. help me, it's Urgent...-_-;
ICQ : 40751557
MSN : [email protected]
Finally, sorry for my poor English...The reason for the error is you are applying a TO_CHAR function to a character datatype. SIDATE is a character. That field should be a date field. If for some reason, you need it to stay as a character field then you will need to change it to a date then change it back to a character.
TO_CHAR(TO_DATE(SIDATE,'put format here'),'YYYYMMDD') -
How to change data type for a field?
Hi Experts,
I have one std screen having one field having numeric type. So it will accept only numeric value. Remember I am using standard transaction.
Now my user wants to enter the special character like + or - in that field(having data type numeric).
How i can change the data type for the particular field so that it will also accept + or -?
Plz reply me as earliest as possible.
Thanks in advance.Hi salil ,
u have to change / create Domain of that Data Element.
but u have to check the Implications. i have done the same thing , but that one is Customer defined one , i got nearly 20 short dumps while doing the TP.
regards
Prabhu -
How to edit/change data type on report that was selected by mistake
Hello there
I created a report in APEX and one column is giving error because the data type of one column supposed to be a varchar2 but somehow the report was created with a Date data type. I want to change the data type without recreating the whote report. Can someone help? I tried to edit the report but couldn't be able to figure out.
HELP....I found a solution for this, thank you.
-
Change Date Column in database table format from mm/dd/yyyy to dd/mm/yyyy
Hi I use Jdeveloper 11G with an Oracle Database.
My table is empty currently but I am importing some excel columns into it and the dates in them are throwing errors because you have some dates like 14/09/2012 which would mean the month is out of range even though its not.
This seems like a simple thing to do but I was unable to find how online.
Please HelpI'm not sure I understand COlumn Type is DATE
There is no Simple Date type. This is DATABASE, has nothing to do with Entities and Views etc. This is straigh in the Database Table.
Edited by: Dino2dy on Nov 6, 2012 5:47 AM -
Enabling Change data capture on database
While Enabling CDC on database I am getting below error, Can any body help me please...
Msg 22830, Level 16, State 1, Procedure sp_cdc_enable_db_internal, Line 193
Could not update the metadata that indicates database edFusionODS is enabled for Change Data Capture. The failure occurred when executing the command 'SetCDCTracked(Value = 1)'. The error returned was 15404: 'Could not obtain information about Windows NT
group/user 'CSD\bhaskary', error code 0x6e.'. Use the action and error to determine the cause of the failure and resubmit the request.
Regards Vikas PathakWhere is this stored procedure State 1, Procedure sp_cdc_enable_db_internal
try to open this procedure and see what it is doing, it seems it is not able to find the user CSD\bhaskary
Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
INSQLSERVER.COM
Mohammad Nizamuddin
Hallo Mohammad,
that's not a good advice because the stored procedure is a system procedure and not visible :).
Try to find it in master or the database itself - it will fail!
MCM - SQL Server 2008
MCSE - SQL Server 2012
db Berater GmbH
SQL Server Blog (german only)
Agree, this was just for troubleshooting and understanding the internals to see what might be causing the issue.
@Vikas: make sure you are connected in network (it is a domain account right), or you can try with local admin account see if it works fine
Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
INSQLSERVER.COM
Mohammad Nizamuddin -
Dynamically change data type of a field
Hello,
I'm trying to dynamically create a SQL statement which will insert record sin to my SQL data base.
I dynamically bring field name sand values. then concatenate them in a string and then Execute the SQL string in a native SQL eXEC statement.
It all worked fine till I used signle quotes for all field values.
but now I wante dto insert a field of type "Money" is SQL which is nothing but AMount/currency in SAP.
Now If I remove this quotes it is working fine. but If I have a negative number the "-" sign comes in the end in my abap code and gives a short dump in insert statement.
now I wante dto make that variable dynamic in to currency rather than String.
Please let me know how Can I change it dynamically.
EG: w_field_value = 3000.25- (value in SAP / w_field_value is of TYPE String)
Before I concatenate this , I wanted to change its type to AMOUNT ...
thanks.Just Use the field Symbols.
Regards
Rusidar S
Maybe you are looking for
-
Does anyone know how to print a text message from a bill?
Does anyone know how to print text messages from a phone bill or view them?
-
What battery is compatible with the Panasonic PV-GS85 Camcorder?
The battery that it came with is now busted and won't hold a charge for more than a few minutes (It had a good few years in it though, of me dropping it and what not.) So I'm shopping for a new battery. I found a battery on radioshack's website that
-
VERY slow broadband speeds (0.76mbps) Phoneline?
VERY slow broadband speeds (0.76mbps) Options on 28-10-2012 12h38 ROUTER STATISTICS System Up Time: 0:08:24 Port Status TxPkts RxPkts Collisions Tx B/s Rx B/s Up TimeWANLANWLAN MER 2351 2177 0 136 104 0:00:56 324 0 0 0 0 0:08:24 6762 6743 0 164 132
-
I recently installed new itunes on my PC. The issue is I need to re organize the apps into genres. I am trying to sync the apps from ipad to ituns but it tells me this whats the solution to this?
-
Why new 3d extrusion from selected layer greyed out??
I have an HP6910P and it has 4GB ram AND an intel GPU card why is not working??