How to Change Date-Type to Char-Type with Format?, When it.....

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')

Similar Messages

  • 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

  • How to change the default IDOC basic type from CREMAS05 to CREMAS04.

    Hi All,
    How to change the default IDOC basic type from CREMAS05 to CREMAS04 when sending Vendor Master Data.
    When I generate partner profile, the system will add the latest version of IDOC type which is CREMAS05 to the Outbound message. In my project, I'm asked to use CREMAS04.
    I want to use BD14 to send master data directly, but the program will generate IDOC using CREMAS05. Is there a way that I can change it to CREMAS04? And also for using Change Pointers, I want to use the report RBDMIDOC, but i have the same problem.
    Thanks
    Sai Krishna

    execute WE20 and edit the outbound parameters
    here is a pretty good example: http://documentation.softwareag.com/webmethods/sapr3_gateway/sap231/pages/sapdist.htm
    Edited by: Jürgen L. on Sep 7, 2011 9:49 PM

  • How to change a label of User Type in OIM 11g

    How to change a label of User Type in OIM 11g. If we have to change label of First Name or Last name then we can change in User.xml and some in resource properties file but what is the procedure to change for User Type.

    Follow this: http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309/uicust.htm#BABDEGFE
    i .Copy the $OIM_ORACLE_HOME/server/apps/oim.ear/admin.war/WEB-INF/lib/IdentityTaskFlow.jar to a local work directory, unzip it and locate UserAttributes.properties at /oracle/iam/resources/IdentityTaskFlow.
    ii. Update the userAttributes.properties file in the IdentityTaskFlow.jar/oracle/iam/resources/IdentityTaskFlow and create a new IdentityTaskFlow.jar
    iii. Copy the updated IdentityTaskFlow.jar to $OIM_ORACLE_HOME/ server/apps/oim.ear/admin.war/WEB-INF/lib/
    For "User Type", try putting the property name as "user_type" or try "role". One should work.
    HTH,
    BB

  • In SAP 4.6c In classical reports output how to change Font size and Font type

    Dear Experts,
    In SAP 4.6c, in classical and interactive reports  output how to change font size and font type.
    Regards,
    Zaker.

    These are HTML formatting questions. Nothing to do with the Oracle SQL and PL/SQL languages.
    With old-style HTML, the font size and family are set using the font tag.
    With modern style HTML, that is done using cascading style sheets (CSS).
    Your favourite search engine will turn up tons of information on both.

  • How to change date format in select-option (mm.yyyy).

    Hi,
       Plz, How to change date format in select-option (mm.yyyy).
      in my selection screen date type selection-option is there ,when i am enter date   it's  taken  dd.mm.yyyy format,but i want mm.yyyy format.
    how to set that .
    Regards,
    Kk.

    sorry
    parameters : pmonyr type spmon or
    select-options : sspmon for PGPL-spmon .
    or what table ccontains spmon.
    regards
    shiba dutta

  • How to change date format in BR?

    Hi all!
    Does anybody know how to change date format in BR?
    I created global variable with type DateAsNumber and usage type run-time promt and used it in BR
    Then I launched a BR on the form and chose necessary date. Date stored in MM/DD/YYYY format, but I need DD/MM/YYYY.
    I tried to change format through Planning but then I recieved uncorect result(for instance, I selected 4(April)/14/2009 but it was stored as 4/02/2010)

    Hi,
    the date is always stored the same in Essbase. I think it's YYYYMMDD.
    You can change the format you enter the date in webforms and business rules by changing your planning application settings (Preferences->Display Options).
    Cheers.

  • How to convert DATE variable to CHAR variable

    dear all,
    How to convert DATE variable to CHAR variable
    thanq

    Depending on your final goal here are 2 options.
    DATA: datein        TYPE d.
    DATA: dateout(10)   TYPE c.
    DATA: dateout2(8)   TYPE c.
    datein = sy-datum.
    WRITE datein TO dateout MM/DD/YYYY.
    dateout2 = datein.
    WRITE:/ datein, dateout, dateout2.
    and the output
    05022008 05/02/2008 20080502    

  • How to change data source name and context root during deployment

    Hi,
    Env:
    WLS 10.1.3
    JDev 11.1.1.6
    Hudson
    I need to deploy two instances of my ADF application on the same development enviroment. We are using Hudson to deploy. My question is how to change data source name and application context root before second deployment.
    Kuba

    I don't believe there is an inbuilt facility to do this.
    Previously how I've done this is when checking files out using Hudson jovs, before the build I then use an Ant extension called XmlTask (http://www.oopsconsultancy.com/software/xmltask/) to modify the required XML files.
    Can I ask why you're doing this in the first place please? Multi-tenancy? 2 versions of the same app?
    CM.

  • How to change Data Object

    Hi everyone,
    I m trying to change from one D.O. to another using the "Global Change Data Object" at BAM Active Studio, but when I find the D.O. wich I want to use the radio button its greyed out. I really need to change the D.O. and I dont see how to do it.
    Thanks in advance,
    Mario Mesquita

    It will only let you change dataobjects if all the fields are identical to the reports current dataobject.

  • How to change data format from  MM/DD/YYYY to DD/MM/YYYY

    HI,
    How can we change data format from MM/DD/YYYY to DD/MM/YYYY in Prompt and Report Level in obiee 11g.
    Please help me ont this.
    Thanks

    Hi,
    In Prompt:
    Try using EVALUATE function.
    Eg: Evaluate('TO_CHAR(%1,%2)' as character(30),"D5.Times"."Day Date",'DD-MON-YYYY')
    Report level:
    Try this in the column formula-
    Evaluate('TO_CHAR(%1,%2)' as character(30),"D5.Times"."Day Date",'MM/DD/YYYY')
    (or)
    EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 30 ), "Dim- Date".Start Date, 'MON-YY')
    http://108obiee.blogspot.in/2009/03/how-to-change-date-format-mask-in-date.html
    http://obiee-bip.blogspot.in/2011/08/customizing-obiee-calendar-display.html
    Some other methods.
    Metdhod 1:
    'Save System-Wide Column Formats' Option
    Check this.
    http://siebel-essentials.blogspot.com/2010/10/11-obiee-11g-tips-9-system-wide.html?m=1
    Thanks
    satya

  • How to change date format in OBIEE

    Hello
    I have a need to change the date column to a varchar column in OBIEE..
    The date column stores data in the format of 'YYYY/MM/DD', I need to change this to a varchar column with this format 'YYYYMM'..
    Since I am pointing directly at the transactional database, I can't make any changes at the database level, so I will have to do it in OBIEE layer, any ideas how it could be done?
    Many thanks in advance!

    hi user,
    Refer : http://varanasisaichand.blogspot.com/2010/01/how-to-change-data-format-to-our-custom.html
    http://varanasisaichand.blogspot.com/2010/05/evaluate-function.html
    Thanks,
    Saichand.v

  • How to change Date format in Prompts.

    Hi,
    How to change Date format to DD/MM/YYYY in Dashboard Prompts.Kindly let me know.

    Hi,
    try to below ways
    1) By using cast fxn you can solve it.
    SELECT CAST("YOUR COLUMN" AS DATE) FROM "SUBJECT AREA NAME"
    2) This is a known bug get patch Bug 9280334: CALENDAR DD/MM/YYYY PROMPT IN DASHBOARD RETURNING FORMAT YYYY-MM-DD HH:MI:SS from support.oracle.com
    3) refer
    http://108obiee.blogspot.com/2009/04/changing-date-format-mask-in-javascript.html
    Thanks
    Deva

  • How to change date format

    Can anyone help me with this, Please?
    I have a form with start date and end date and the date format I am getting is YYYY-MM-DD. But I would like to change it to MM-DD-YYYY format. How do I achieve this??
    When I went to JFPREAMBLE_1, i see it reads:
    ^define group:PO_DOC_COMM__SVC_STRT_DT!FldNotAvail  \groupG_Commodity_Line\fieldPO_DOC_COMM__SVC_STRT_DT.
    ^define group:PO_DOC_COMM__SVC_STRT_DT!FldUsed      \groupG_Commodity_Line\fieldPO_DOC_COMM__SVC_STRT_DT.
    ^define group:PO_DOC_COMM__SVC_END_DT!FldNotAvail  \groupG_Commodity_Line\fieldPO_DOC_COMM__SVC_END_DT.
    ^define group:PO_DOC_COMM__SVC_END_DT!FldUsed      \groupG_Commodity_Line\fieldPO_DOC_COMM__SVC_END_DT.
    Can I change anything here to change the format??? Or how do I change date format??
    I would really appreciate your help on this. Thanks in advance.

    Hi,
    Try this in the column formula-
    Evaluate('TO_CHAR(%1,%2)' as character(30),"D5.Times"."Day Date",'MM/DD/YYYY')
    (or)
    EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 30 ), "Dim- Date".Start Date, 'MON-YY')
    http://108obiee.blogspot.in/2009/03/how-to-change-date-format-mask-in-date.html
    http://obiee-bip.blogspot.in/2011/08/customizing-obiee-calendar-display.html
    Some other methods.
    Metdhod 1:
    'Save System-Wide Column Formats' Option
    Check this.
    http://siebel-essentials.blogspot.com/2010/10/11-obiee-11g-tips-9-system-wide.html?m=1
    Thanks
    satya
    Edited by: Satya Ranki Reddy on Jul 2, 2012 3:57 PM
    Edited by: Satya Ranki Reddy on Jul 2, 2012 3:59 PM
    Edited by: Satya Ranki Reddy on Jul 2, 2012 4:13 PM

  • How to Change Date Format in Registry

    how to change date format in registry so when u qeury the date column, it display in our specific format like 20-05-2005 instead of 20-may-05. i dont want to use to_char in query
    thanks

    Under HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME{X}
    NLS_DATE_FORMAT = 'dd-mm-yyyy'
    You could also change the database date format :
    SQL> alter system set NLS_DATE_FORMAT = 'dd-mm-yyyy' scope=spfile;
    and restart the DB.

  • Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

Maybe you are looking for

  • Just upgraded to Mavericks. How do I get my Epson Workforce 360 scanner to work again?

    Just upgraded to Mavericks. How do I get my Epson Workforce 360 scanner to work again?

  • Duplicate records in Infoobject

    Hi gurus,   While loading in to a infoobject itz throwing an error as 150 Duplicate records are found in the details tab. My doubt is about temporary correction i.e in the infopackage either we can increase the error handling number and load or we ca

  • Adding tv tuner to dv5 1000 series

    what you need to add the internal tv tuner to a dv5. I used a dv5-1132us 1. ability to completly dissasemble the unit. 2. DC370000V00 antenna cable (listed for a dv7 on ebay) 3. an avermedia tuner card i used an A317. at least in the united states ma

  • Import Numbers spreadsheet and print l;abele

    I am looking for a way to do a bulk mailing / mail merge project WITHOUT using any Microsoft products. I know with Microsoft, I can create an Excel spreadsheet with columns for Company name, address and zip codes. Then I can export/import them into a

  • HT1369 what is the error code mean -42220

    Everytime i start up itunes i get the error code -42220 Also i cant seem to download music to my ipod classic?