Conversion of date format from DD-MMM-YY to YYYYMMDD

Hi all,
i am getting date from oracle database which is in DD-MMM-YY format.   i want to change it to YYYYMMDD format .is there any func module to achieve this.
bye

hi srikanth,
try this code it is exactly suite u r requiremnt
DATA:STR(8),S1(2),DD(2),MM(2),YY(4).
STR=SOURCE_FIELDS-/BIC-DATEFIELD(if bi7.0 )
STR=TRANS_STRUCTURE-/BIC-DATEFIELD(if BW 3.5 )
SPLIT STR  AT  u2018-u2018 INTO DD MM YY
SHIFT DD  RIGHT DELETING TRAILING SPACE.
SHIFT MM  RIGHT DELETING TRAILING SPACE.
OVERLAY DD WITH S1.
OVER LAY MM WITH S1.
CONCATENATE YY  MM DD INTO STR.
RESULT=STR.
regards
sasidhar

Similar Messages

  • Date format from DD/MM/YY to YYYYMMDD

    Hi Guys,
    Date foramt DD/MM/YY(23/09/08) is coming from the flatfiles  
    (text files). I want to convert it to YYYYMMDD format.
    Is it possible to convert date format from DD/MM/YY to
    YYYYMMDD?
      I'm in BI 7.0 environment.When I load date like DD/MM/YY
      (23/09/08) till PSA.In PSA it is showing 08.0/.06/9.
      Please suggest me the right way.It is very impartant for us.
      Thanks
      Prasad

    Hi Guys,
    I understand that this leads to degrade the loading
    Performance.But I don't have the alternative.
    When I use the RSDAT in data source conversion routine it is
    throughing the below error.
    "Error 'Date   .30.0806 contains invalid characters...' at conversion exit CONVERSION_EXIT_RSDAT_INPUT (field CALDAY record 1, value 6/30/08)"
    Can any body suggest me the other way or any other date
    converion routine from 23/09/08 to YYYYMMDD without slash?
    Thanks
    Prasad

  • Convert Date format from YYYYMMDD to MM/DD/YYYY --issue with Mapping

    Hi All ,
    I have IDOC(DESADV.DELVRY03-> file ) scenario which i am working on . While debugging noticed that the field :
    E1EDT13\NATNZ -Data Transformation(from yyyymmdd to mm/dd/yyyy)-Target .This works
    But say if IDOC doesn't pass any value (For Good's issue) I get Error during debugging : RuntimeException in Message-Mapping transformation: Unparseable date: ""
    I did check thsi blog : Convertinf Date format from YYYY-MM-DD to MMDDYYYY  but this is  about the Data Transformtaion.
    I tried using constants , create if , -these function doesn't work /not applicle in this case
    Could you please provide  inputs as to how to handle two condition :
    1. With date -- then transform
    2.Else , pass nothing

    Hi Varalakshmi,
    Plese try to use UDF for date conversion and include logic which would check the Space value from the source structure.
    so if there is space return as such
    else.
    perform the conversion logic.
      Convertinf Date format from YYYY-MM-DD to MMDDYYYY
    (The conversion logic has been provided by micheal in the thread you have provided in the query)
    Thanks,
    Ram.

  • How to get Date Format from Local Object.

    Hi All,
    I am new to Web Channel.
    I need to know Date format From date of locale.
    suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC. 
    Is there any way to get Date format from "Locale" object. I should get date format for local object
    I get local object from "UserSessionData" object but how to get Date format from it.
    I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format.  I could not find example which show how to get date format from "Locale" object.
    Any help will be appreciated with rewards.
    Regards.
    Web Channel

    Hi,
    You can get it from "User" or "Shop" business object.
    Try to get User or Shop Business Object as shown below.
    BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
    User user = bom.getUser();
    char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
    If you are seeing "1,234.00" then above code will return "."
    I hope this information help you to resolve your issue.
    eCommerce Developer.

  • 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

  • Change display Date format from 06.2011 to june 2011 in output of Query

    Hi All,
                Change display Date format from 06.2011 to june 2011 in output of Query  Execution. i used time charcteristics 0calmonth in query, output display is coming 06.2011, i want to display output in june 2011 format, anyone tell me how to convert this Date format.

    Hi Nandish,
    as tibollo said you just need to mark 0CALMONTH with text in RSD1.
    Kindly note that you don't need to do data load for this object.
    It will automatically derive by system.
    Just change the Info object 0CALMONTH in RSD1, Go to Master Data/text column and check mark on with text.
    Then activate it.
    Regards,
    Ashish

  • Function module to convert date format from yyyymmdd to mmddyyyy format

    function module to convert date format from yyyymmdd to mmddyyyy format

    Hi Rajitha,
    Do like this
    Data: Var1 type sy-datum,
             var2(8) type c.
    var1 = sy-datum.
    Concatanate var1+4(2) var1+6(2) var1+0(4) into var2.
    write var2.
    Reward Points if this helps,
    Satish

  • Convertinf Date format from YYYY-MM-DD to MMDDYYYY

    Hi Experts,
              I want to convert  date format from yyyy-MM-dd  to MMDDYYYY ( i am using this format in the file strucure),
             i tryed using date tranfer funcion source as yyyy-MM-dd and target as yyyyMMdd this is working fine.
    i tryed using date tranfer funcion source as yyyy-MM-dd and target as MMddyyyy this is giving error.
    Please help me out,
    Thanks,
    Dhanush

    Hi,
    From the error it looks like the date value is coming as blank in the source. please give the date in the same format as you have provided in datetrans function and test it again. It will work.
    It might be possible that there are some other date fields in your source where you are not passing any value and using datefunction. please look carefully at all the source structure and data.
    thanks
    amit
    reward point if suggestion works

  • Change the date format from mm/dd to dd/mm

    Is there any way to change the date format? Currently, my today screen, calendar app, etc is set to display dates as mm/dd. I'd like to change it to the UK format (dd/mm) but I have not been able to find a single method that works. I've tried themes as some have recommended but once I install them, it's still showing mm/dd.
    I'm not unfamiliar with upgrading the OS and "slimming" it down, so even a method that requires me to remove US resource files will be okay.
    Frankly I'm disappointed RIM doesn't provide users with a "Regional Settings" type option like in Windows to change the date format.
    Any advice would be most appriciated.

    Yes you can change Date format from mm/dd to dd/mm its done automatically by " Display language " selected :
    Go to Menu : Setup - choose  - Language and Input Methods - look for " Display Language" there is a  small window with down arrow , click the down arrow and ,  change from " English"  to " English (UK)  "for DD / MM ,date format , or change to       " English (US) "  for MM / DD date format.
    Hope this help .

  • Converting date format from in mapping

    hi xi friends.
    in my scenario i just want to convert date format from 12022007 which is file to 12.02.2007 which is in target bapi.
    waiting for u.
    bye.
    regards.
    seeta ram.

    Hi,
    if I understood you correctly you want to transform from ddMMyyyy (your format in the external file) to yyyyMMdd (format of ABAP datatype DATS):
    Then all you need to do is to use the standard function TransformDate (as already described above).
    Enter in the field "Format of source Date": ddMMyyyy
    Enter in the field "Target Format": yyyyMMdd
    That's it.
    Regards,
    Helmut

  • Converting date format from 14/07/08 to 14-jul-08

    hi all ,
    i want to convert date format from 14/07/08 to 14-jul-08 . is there any function module for this ?.
    kindly reply.
    regards,
    siya

    Hi Siva,
    Check the code below.
    For getting date format in  the form like 10.Dec.2008*
          WHEN '01'.
            CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
              EXPORTING
                input  = date2
              IMPORTING
                output = date_format.
            IF sy-subrc EQ 0.
              date_format1 = date_format.
            ENDIF.
    For getting date in the format like 10.December.2008*
          WHEN '02'.
            CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
              EXPORTING
                input  = date2
              IMPORTING
                output = date_format.
            IF sy-subrc EQ 0.
    Get Month Long text
              SELECT SINGLE ltx
                     FROM t247                 INTO ws_month
                     WHERE ktx EQ date_format+3(3)
                     AND spras EQ 'E'.
              IF sy-subrc EQ 0.
                CONCATENATE date_format0(2) ws_month date_format7(4) INTO date_format1 SEPARATED BY space.
              ENDIF.
            ENDIF.
    Hope this helps,
    Manish

  • Date format  from Company code

    Hi Experts,
    I want to pick the date formate from company code and print it in invoice.can any tell me where i can find the date formate in the company code and what is the T-code for that.
    Thanks in Advance..

    actually, the date format is maintained to the country only not to the company code. So if u want to change the date format, u can change that in the country where ur company code exists
    The Tr. code is OY01
    Reward if useful.

  • Date Format from YYYYMMDDhhmmss to dd-MMM-yy

    Hi All,
       I have a problem with the Date Format.
    The out of the BAPI date format is like YYYYMMDDhhmmss and the output value  is like 20,070,831,235,959. Now I want insert the date in to my Oracle database like dd-MM-yy.
    Here is my xmlformat
    datefromxmlformat(datetoxmlformat(Repeater_0.Output{/item/PERIOD_END},"yyyy-MM-dd
    HH:mm:ss"),"dd-MMM-yy")
    Can any one please correct this issue.
    Thanks
    Muvva

    Hi Muvva,
    If you want to convert a date from "yyyyMMddhhmmss' to 'dd-MM-yy' format, you may use the dateformat function. For example, the below will give you the result 30-08-08
    dateformat("20080830121110","yyyyMMddhhmmss","dd-MM-yy")
    In your case,
    dateformat(Repeater_0.Output{/item/PERIOD_END},"yyyyMMddhhmmss","dd-MM-yy")
    "dd-MMM-yy" will give you the result as "08-Aug-08", if you are looking for that format.
    John
    Edited by: John George on Aug 27, 2008 10:22 AM

  • How to convert Date format from yyyy mm dd   to   dd mmm yyyy in ADF

    Hi,
    I have Date Format in Data Base as yyyy mm dd, but in the UI I want to display the format as dd mmm yyyy, which code I have to write to get the required format in JDev 11.1.2.3

    Hi,
    Use converter : <af:convertDateTime>
    See also : convertDateTime Demo
    -Arun

  • Convert Date Format from DDMMYY to DD/MMM/YYYY

    Hi,
    Thanks in Advance.
    Is there any function Module to Conver the Given Date in the given Below Format.
    DD / MMM / YYYY
    For Example if the given date is 16072009 then it should print as 16 / JUL / 2009
    Regards:
    Sridhar.J

    hi
      use the below code it may help u
    PARAMETERS: p_date TYPE d.
    DATA: datestring TYPE char11,   l2 TYPE T247-KTX.
      CALL FUNCTION 'ISP_GET_MONTH_NAME'
        EXPORTING
         date               = p_date
          language          = 'E'
         month_number       = '00'
       IMPORTING
         shorttext          = l2        .
      IF sy-subrc <> 0.
      CONCATENATE p_date6(2) '/'    l2 '/'       p_date0(4) INTO datestring.
      WRITE: datestring .
    surya reddy

Maybe you are looking for

  • Error while Creating Business partner in FPP1

    Hi, I can't create Business partner in standard T.code FPP1 in Test System and getting the following error "Application object BUPA: Table EBUPD does not exist". Kindly help me in solving this issue.

  • Collection of reference workflow models in SAP R/3 for research

    Hi, within SAP R/3 (at least in version 4.6c) there must be a collection of reference workflow models modeled as EPCs that can be exported e.g. with ARIS Toolset for SAP NetWeaver. These models were used for some research about process metrics in the

  • [SOLVED] Can't save UTF-8 encoded source file in IDE

    I had a problem where I could not save a c++ source file from anjuta using the gtksourceview plugin, but could using the scintilla plugin.  I would get an error message with "invalid byte sequence in conversion input" in the text.  Eclipse CDT also w

  • MII 12.1.8 not connected to ECC 6

    Hi, I have already configured successfully another instance of MII/4.6C (only idoc listener) and now I'm trying to link an instance of MII 12.1.8 (NW SP5) with an ECC 6. I cannot even read BAPI list from SAP JCO Interface action inside a MII Transact

  • FIREFOX OPEN ONLY HALF ON MY LAPTOP SCREEN REST IS BLANKC

    firefox with yahoo home page opens only half way on the laptop screen. That is first half of the laptop screen is blank while the yahoo window will start on 2nd half horizontally. all web sites will also be displayed on half of the screen (2nd half).