Date coversion

How can i convert system date  to december 29,2006 format

This will do,
REPORT  zkb_test3.
PARAMETERS: p_date TYPE sy-datum.
DATA: v_date TYPE string.
CASE p_date+4(2).
  WHEN 01.
    CONCATENATE 'January' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
  WHEN 02.
    CONCATENATE 'Febuary' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
  WHEN 03.
    CONCATENATE 'March' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
  WHEN 04.
    CONCATENATE 'April' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
  WHEN 05.
    CONCATENATE 'May' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
  WHEN 06.
    CONCATENATE 'June' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
  WHEN 07.
    CONCATENATE 'July' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
  WHEN 08.
    CONCATENATE 'August' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
  WHEN 09.
    CONCATENATE 'September' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
  WHEN 10.
    CONCATENATE 'October' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
  WHEN 11.
    CONCATENATE 'November' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
  WHEN 12.
    CONCATENATE 'December' p_date+6(2) ',' p_date(4)
                INTO v_date SEPARATED BY space.
ENDCASE.
WRITE:/ v_date.
Regards
Kathirvel

Similar Messages

  • Need help in date coversion

    Hi,
    I have a date format which is varchar2 and value is like 2009-03-31..i need to convert to date and it shouldbe like 31-MAR-09
    i am getting like 0RA-01981 error..please help me in that

    What are you doing with your "date" once you've converted it? Storing it in a DATE column in a table? Using it as part of a date calculation?
    You ONLY need to worry about the format of a date when:
    a) you are telling the database your string is actually a date (ie. on input into the db)
    or
    b) you are selecting date information to display to the front end/report
    Once a date-string is in DATE format, it's stored in Oracle's internal date format. Since we're humans, it's difficult for us to understand that format, so anytime we view a date, it goes through a translation back into a string for display purposes only.
    This can be done via two ways:
    1) to_char(your_date_col_or_var, your_date_format) to set the format explicitly, eg: to_char(sysdate, 'dd/mm/yyyy')
    or
    2) using the default nls_date_format parameter. This can be changed, eg: "alter session set nls_date_format='dd/mm/yyyy hh24:mi:ss';"
    If that doesn't help you, please provide more information on what you're doing, including sample data and/or code.

  • Need help on data coversion to be read by Java program

    Hello everyone,
    I have a challenging project to generate reports from MVS (mainframe) data and using Java as the programming language to read this data and generate reports. The Java program will execute on Wintel platform and AIX/UNIX platform.
    The data that I need to read (DCOLLECT idcams utility) is in binary/EBCDIC variable record format and resides in mainframe and transmitted via FTP to wintel platform.
    I tried converting the data to ASCII format before tranferering but the transfered data seems to be wrapped around and not sure how to handle it. I could transfer the whole thing in binary format and then read and convert at the same time( I believe Java can read EBCDIC accoding to my notes).
    I am sure some one have done this once before and I do not want to reinvent the wheel againg. I need your help in what direction to take for best aproach reading this data.
    Your suggestions would be appreciated
    Thanks
    Ulises (arsi)

    Thanks for you replies guys!
    I need to use java because the ultimate reporting tool
    is going to be a service developed in Jini.
    The reason I believe the data seem to be wrapped
    around after ftp transfer is because when I edited
    (TSO FSE from MVS) all text data is aligned withing
    the same column.
    After data is transmitted via FTP (converted to ASCII
    during trasmition) and edited with wordpad, text
    characters do not seem to be on the same possition.
    They are scattered all over the display area. Is
    possible this could be a display affect from winword
    but not sure.
    The MVS job to FTP the file follows:
    //STEP01 EXEC PGM=FTP,
    // PARM='FTP.MIAMIDADE.GOV (EXIT'
    //SYSPRINT DD SYSOUT=*
    //OUTPUT DD SYSOUT=*
    //SYSIN DD *
    user-name/password
    CD /storage
    CD UAL
    ASCII
    PUT 'STORAGE.DCOLLECT.TYPV' 'DCOLLECT_TYPEV.TXT'
    ls -l
    close
    quit
    Words of advice appreciated
    Ulises (arsi)
    YES! 1st mistake ... don't use WordPad for this ... your NotePad, Dos, or some other pure text editor.

  • Date Format on Forms 4.5

    Hi, we have a problem with a date format on Forms 4.5 .
    When we move a date item whit format mask 'DD/MM/YYYY' of a canvas in a global item, the format of date become 'DD-MON-YY'.
    When we read a content of this global from another module we lost the century of the year. Today we have serious problem Y2K like, because comparing this date with another like '15/03/1996' Oracle give us a value error.
    Note that the value of date inserted into the database is correct !!
    We thanks anyone can help us.
    Bye, Paolino

    You should download a document entitled
    'Date Handling in Oracle developer' from Oracle.com. Look for yk2 section.
    The file name is d2kwp3.pdf
    I suggest you use explicit date coversion:
    to_date('15-03-1996','dd-mm-yyyy')
    For example:
    :GLOBAL.v_date := null;
    :GLOBAL.v_date := to_char(sysdate,'dd-mm-yyyy');
    message(v_date) will show the century. You can later convert v_date to actual date.
    BUT, download the file and read the instructions for date handling for Forms 4.5
    good luck

  • Convert data from CRM2007 to CRM70

    Hi
    We are moving from crm 2007 into crm7.0. This is not a upgrade project, we are doing a fresh new implementation of crm70 system with lot of new capability additions. And as part of this effort , one major thing is data conversion from the crm 2007 system to the crm 70 system. The data that we have to move/convert into the new crm70 system are:
    a)Interaction Records
    b)Service Tickets
    C) Org structure, Category modeller, rule modeller , etc
    Has any one  done  data coversion from 2007 to 70 during the upgrade or during the whole new build like we are doing? If so, please let me know how you guys handled it. Any ideas will surely be appreciated.
    Thanks,
    Ravi

    You could use Oracles Migration Workbench
    http://www.oracle.com/technology/tech/migration/index.html

  • Help needed on bapi

    hi,
    I would be extremely gratefull if anyone could guid me how to upload & post excel data sheet in sap using bapi or bapi active X control.Also how data coversion are to be carried off ?
    Scenario :
    Excel sheet:
    Name1 Name2 Age
    joe   dave  24
    smith S     26
    I want to upload this using bapi & then post the document in transaction zf12.

    Amna,
    You can upload the file from the
    Presentation Server - CL_GUI_FRONTEND_UTILITIES->GUI_UPLOAD
    Application Server - OPEN DATASET.
    However, you have not mentioned what data you are uploading as the BAPI will change depending on that. Look at the BAPI transaction and you will find a list of BAPI's classified according to the business functionality.
    Once the data is internal table, you need to pass that to the BAPI function module.
    Regards,
    Ravi
    Note : Please mark the helpful answers.

  • Abap Technical Specifications

    Hi
    I am totally new to the Data Coversions.... Is there anyway I can get any tecnical Specifications regarding this topic  So that I can have an Idea bout what kind all of Coversions do they really need in real work scenario?
    Anybody can help me out in this case pls?
    Thanks
    Kelly

    Well,  here is a start.  Welcome to SDN.
    http://www.sap-img.com/sap-data-migration.htm
    Regards,
    Rich Heilman
    Message was edited by: Rich Heilman

  • Error While Loading data from HFM to Essbase

    Hi,
    I am trying to load data from a HFM application to Essbase application. The LKM i am using is "HFM Data to SQL" and the IKM is "SQL to Hyperion Essbase(DATA). I am also using couple of mapping expression like {CASEWHEN(HFMDATA."Account" = '3110', 'PL10100', HFMDATA."Account") } , {CASEWHEN(HFMDATA."Period" = 'January', 'Jan', HFMDATA."Period") } etc.
    The error i am getting looks like this -
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 23, in ?
    com.hyperion.odi.essbase.ODIEssbaseException: Invalid column type specified for Data column [Account]
         at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.core.PyObject.__call__(PyObject.java)
         at org.python.core.PyInstance.invoke(PyInstance.java)
    I am mapping account dimension of HFM to to account dimension of essbase. Both source and target column type is "string" with length 80. Instead of keeping the target "Essbase application", if i keep an Oracle table, columns of which are exactly like essbase application, ODI is loading data perfectly with proper coversion.
    Can anyody please help me out.
    Many thanks.
    N. Laha.

    Hi John,
    Thank you very much for your response. Pasting here the SQl generated at step "8. Integration - Load data into Essbase" in the operator in the description tab, for your perusal -
    from com.hyperion.odi.common import ODIConstants
    from com.hyperion.odi.connection import HypAppConnectionFactory
    from java.lang import Class
    from java.lang import Boolean
    from java.sql import *
    from java.util import HashMap
    # Get the select statement on the staging area:
    sql= """select CASEWHEN(C3_ACCOUNT = '3110', 'PL10100', C3_ACCOUNT) "Account",CASEWHEN(C4_PERIOD = 'January', 'Jan', C4_PERIOD) "TimePeriod",'HSP_Inputvalue' "HSP_Rates",C8_SCENARIO "Scenario",CASEWHEN(C2_YEAR = '2007', 'FY09', C2_YEAR) "Years",CASEWHEN(C1_CUSTOM1 = '2012', 'Atacand', C1_CUSTOM1) "Product",CASEWHEN(C7_VIEW = 'YTD', 'Input', C7_VIEW) "Version",CASEWHEN(C6_VALUE = 'USD', 'Local', C6_VALUE) "Currency",C9_ENTITY "Entity",C5_DATAVALUE "Data" from "C$_0AZGRP_PLData" where      (1=1) """
    srcCx = odiRef.getJDBCConnection("SRC")
    stmt = srcCx.createStatement()
    srcFetchSize=30
    stmt.setFetchSize(srcFetchSize)
    rs = stmt.executeQuery(sql)
    #load the data
    stats = pWriter.loadData(rs)
    #close the database result set, connection
    rs.close()
    stmt.close()
    From the SQL, you may find the CASEWHEN expressions. Yes these i have added in the interface mapping section, with the help of ODI expression editor. Following are the expressions i have used, one statement for one mapping each. This is just to make the data of HFM, compatible to Essbase. e.g. - account number in HFM for which i am estracting the data is 3110, but there is no account '3110' in the essbase application, so essbase application wont be able to load the data. To make the HFM data compatible with Essbase, these casewhen statements have been used. I hope its fine to use such statements in mapping.
    CASEWHEN(HFMDATA."Year" = '2007', 'FY09', HFMDATA."Year")
    CASEWHEN(HFMDATA."View" = 'YTD', 'Input', HFMDATA."View")
    CASEWHEN(HFMDATA."Entity" = '100106_LC', '1030GB', HFMDATA."Entity")
    CASEWHEN(HFMDATA."Value" = 'USD', 'Local', HFMDATA."Value")
    CASEWHEN(HFMDATA."Account" = '3110', 'PL10100', HFMDATA."Account")
    CASEWHEN(HFMDATA."Custom1" = '2012', 'Atacand', HFMDATA."Custom1")
    CASEWHEN(HFMDATA."Period" = 'January', 'Jan', HFMDATA."Period")
    If you can get some idea from the SQL and help me out!
    Many thanks.
    N. Laha
    Edited by: user8732338 on Sep 28, 2009 9:45 PM

  • Importing Master Data Hierarchy from BW Infobject

    I am importing from top level node(text hierarchy) of BW infobject Account. All the records are rejected with the following error. It says that Hierarchy nodes include dimension members that do not exist. The reason for this is that it is top level text hierarchy defined by users. I can import the base level one by one. Any sugestion please. How to docs are not very helpful.
    /CPMB/MODIFY completed in 0 seconds
    /CPMB/BW_IOBJ_HIER_SOURCE completed in 0 seconds
    /CPMB/IOBJ_SOURCE_HD_CONVERT completed in 3 seconds
    /CPMB/BPC_HIER_DATA_TARGET completed in 5 seconds
    /CPMB/CLEAR completed in 0 seconds
    [Selection]
    INFOOBJECT=0CS_ITEM
    SELECTION=<Selections><Selection Type="Hierarchy" ImportText="1"><Hierarchy><ID>D8IGJYZMI5W3TJ2UBMZGCL6QF</ID><MemberID>TB</MemberID><Level></Level></Hierarchy></Selection><KeyDate>20100820</KeyDate></Selections>
    FORMAT= No
    TRANSFORMATION= DATAMANAGER\TRANSFORMATIONFILES\PILOT\forHier_Account.xls
    DIMNAME=P_ACCT
    [Messages]
    Task name HIERARCHY DATA SOURCE:
    Info: Hierarchy node includes text node or external characteristics
    Record count: 2724
    Task name CONVERT:
    No 1 Round:
    Record count: 2724
    Accept count: 2724
    Reject count: 0
    Skip count: 0
    Task name HIERARCHY DATA TARGET:
    Hierarchy nodes include dimension members that do not exist
    Submit count: 0
    Application: PLANNING Package status: ERROR

    Thanks Jeffery Holdeman for that. Tranformation & Coversion files for Mater Data & Hierarchy are listed below.
    In my DM package the Hierarchy Tab is Hierarchy = TCTB, EMPTY, Member ID = TB(top most level of taxt hierarchy)
    Master Data:
    *OPTIONS
    FORMAT = DELIMITED
    HEADER = YES
    DELIMITER = TAB
    AMOUNTDECIMALPOINT = .
    SKIP = 0
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=
    ROUNDAMOUNT=
    *MAPPING
    ID=0CS_CHART+ID
    *CONVERSION
    ID=[COMPANY]id_conversion_01.XLS!CONVERSION
    id_conversion.xls is as below:
    (-     js:%external%.replace("-", "_")
    Transformation & Conversion file for Hierarchy:
    *OPTIONS
    FORMAT = DELIMITED
    HEADER = YES
    DELIMITER = TAB
    AMOUNTDECIMALPOINT = .
    SKIP = 0
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=
    ROUNDAMOUNT=
    *MAPPING
    NODENAME=NODENAME
    HIER_NAME=HIER_NAME
    PARENT=PARENT
    ORDER=ORDER
    IOBJNM=IOBJNM
    VERSION=VERSION
    *CONVERSION
    HIER_NAME=[COMPANY]hier_conversion_for_account.xls!CONVERSION
    NODENAME=[COMPANY]hier_conversion_for_account.xls!NODENAME
    PARENT=[COMPANY]hier_conversion_for_account.xls!NODENAME
    hier_conversion_for_account.xls is as below:-
    Nodesname(worksheet)
    External        Internal
    -     js:%external%.toString().replace("-","_")     
    *     js:%external%.toString().replace(/\s+/g,"")     
    Conversion(worksheet)
    EXTERNAL     INTERNAL     FORMULA     
    TCTB     PARENTH1

  • Issue with date datatype

    Hi Team
    I am very much confused in the date related coversion
    for example if i query
    select name, hire_date from employee
    the o/p looks like this
    suresh 5/24/1999 but if i need to display like 24-may-1999 what i should use
    and please help me in understanding
    TO_CHAR,TO_DATE,TO_NUMBER function i bit confused in this ?please can get some suggestion in laymensterm
    Thanks
    Suresh

    RTM.
    You can find all the manuals at :
    http://tahiti.oracle.com/
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions203.htm#SQLRF06132
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements004.htm#i34924
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17125/adfns_sqltypes.htm#ADFNS00304
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements002.htm#i46862
    PS: http://forums.oracle.com/forums/ann.jspa?annID=719
    Edited by: zep111 on May 6, 2011 2:24 PM

  • I need help to convert a string to date and time

    Good aft,
    1.How can i get a date from the user input thro' Frames?
    2.How to parse it to the date object(I need to include java.util.Date but for the database i need to include java.sql.*,if i do so, i have error as
    found:java.util.Date
    Required:java.sql.Date)
    3.How to insert into the database
    The same i need help to insert time into database?
    I need solution and explanation...
    Reply me immediately...
    If u send me the code, its better to me.

    Hello,
    The best way is to use the HEX to decimal coversion VI in the string pallette. Then, write this decimal directly to your chart. If you are doing it a point at a time put it into a while loop.
    Doug

  • Bex: currency conv  at prev date

    Hello BE Experts,
    Wondering if there is a way to do the currency conversion in the Bex report for a previous date currency rates.
    eg: I want to run the report for the past 6 months of sales for the europe in USD. each month is displayed in the one column. For each month can we get the currency conv rates of that month rather than the current month ?
    Any suggestions appreciated.
    Thanks,
    BWer

    Hi,
    Yes you can very much achieve what you require.
    For that you would need to create a Currency coversion key(txn. RRC1) which picks up the exchange rate for that particular month and attach the key to the key figure in BEx.
    Hope it helps.
    Cheers
    Anurag

  • Error in all coversations from r/3 to bw

    Hi Sam,
    When I am doing extraction I am getting problm in Coversation errors in BW..
    i.e. In R/3 everything is done successfully, But in BW  after replicating Data Source and after instalation of objects in Busines Contect it trowing errors in Conversions
    Its displaying all types of Coversions i.e.. Currency, Units, Quantity etc...
    2LIS_11_VDHDR
    CUBE 0SD_C03 and 0SD_C05
    No Conversation is happing in any data source
    Give some advice..
    Mohhan

    Hi Sam,
    I did LO's cockpit, datasource is 2LIS_11_VASCL..
    in bw WHILE MONITORING IT IS THROUGHING BELOW ERROR.. I GOT SAME TYPE OF PRBLMS FOR REST OF DATASOURCES..
    PLS SUGGEST WHAT WOULD BE THE PRBLM..
    Like installation or Selecting any default Feilds..
    The error is
    Settings for material number conversion not found
    CUBE :: 0CDS_DS04

  • Finding the manufacture date on an access point via software

    I'd like to determine the manufacture date of our access points because we plan on converting to LWAPP? Can someone tell me the what CLI command to use and which field has the answer. thanks.

    Hi Thomas,
    Not sure about finding the Manufacture date (maybe you are trying to find out about the presence of a MIC certificate) but we did go through this coversion from Autonomous to Lightweight on our infrastructure last summer.In this process we did convert about 70 1121's and 1231's to LWAPP and it worked very well. Here are some relevant docs;
    Upgrading Autonomous Cisco Aironet Access Points to Lightweight Mode
    From this excellent doc;
    http://www.cisco.com/en/US/products/hw/wireless/ps430/prod_technical_reference09186a00804fc3dc.html
    The following Cisco Aironet access points have the ability to operate as autonomous access points or lightweight access points:
    Cisco Aironet 1240 AG Series Access Points
    Cisco Aironet 1230 AG Series Access Points
    Cisco Aironet 1200 Series Access Points that contain 802.11g (AIR-MP21G-x-K9) and/or second-generation 802.11a radios (AIR-RM21A-x-K9 or AIR-RM22A-x-K9)
    Cisco Aironet 1130 AG Series Access Points
    Cisco Aironet 1100 Series Access Points that contain 802.11g radios (AIR-AP1121G-x-K9)
    Cisco Aironet 1300 Series Access Points/Bridges (AIR-BR1310G-x-K9 or AIR-BR1310G-x-K9-R).
    From this doc;
    http://www.cisco.com/en/US/products/ps6521/prod_bulletin0900aecd80321a2c.html
    Guidelines and Tools for Migrating to the Cisco Unified Wireless Network
    http://www.cisco.com/en/US/netsol/ns340/ns394/ns348/ns337/networking_solutions_white_paper0900aecd804f1a23.shtml
    Self-Signed Certificate Manual Addition to the Controller for LWAPP-Converted APs
    LWAPP secures the control communication between the AP and the WLC by means of a secure key distribution. The secure key distribution requires already provisioned X.509 digital certificates on both the LAP and the WLC. Factory-installed certificates are referenced with the term "MIC", which is an acronym for Manufacturing Installed Certificate. Aironet APs that shipped before July 18, 2005, do not have MICs. So these APs create an SSC when they are converted to operate in lightweight mode. Controllers are programmed to accept SSCs for the authentication of specific APs.
    http://www.cisco.com/en/US/products/ps6521/products_configuration_example09186a00806a426c.shtml
    LWAPP Upgrade Tool Troubleshoot Tips
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_tech_note09186a008072d9a1.shtml
    Also, 5 points for Eric! For all your great work here lately.
    Hope this helps!
    Rob

  • Reporting Data in Alternate Units of Measure

    We have a requirement to report data in base unit of measure and also in pounds and kilograms. I have read the paper "How to Report Data in Alternate Units of Measure".  My problem is that in our R/3 system the conversion from base unit of measure to pounds is maintained, but no conversion from base unit of measure to kilograms is maintained.  In BW, I have 0MAT_UNIT for conversion to pounds but not to kilograms.  For the solution to work, am I correct in thinking that the conversion to kilograms must exist in 0MAT_UNIT?
    Also, the paper states that it is applicable to BW releases 2.0A to 3.1C.  Those of you on BW 3.5 - is there new functionality or a different way of handling reporting in alternate units of measure?
    Thanks for your help,
    Gail Bodner

    Gail,
    Nothing new in 3.5 for UoM conversion. It will still have to be the way described in the How To paper.
    Maintin the conversion in R/3. Also, Pounds to KG is a standard coversion - you can hard code it too. Issue in UoM conversion comes in where you cut across type of uints, i.e. from vol. to weight. Then additional information like density is needed but within the same area, it shouldn't be a problem.
    Cheers
    Aneesh

Maybe you are looking for

  • StarWalk compass stopped working with their most recent update.

    My favorite application on my iPad used to be Starwalk. Ever since their most recent update on April 30, the internal compass stopped working (which is basically the backbone of the entire app). I contacted Vito technology (the developer) - it took a

  • No countdown screen option on my Q10

    I have an annoying problem with my q10. I can't seem to switch my phone off, when I press and hold the off button the countdown screen doesn't appear and as a result the phone just restarts. I tried rebooting the device by removing the battery but th

  • ATV and Air Video Streaming stopped working

    I have been using AIR VIDEO (Standard and HD Version) for months now flawlessly, no issues at all, until the other day any of my devices (iPhones and iPads) will only stream to my ATV's for a few seconds then they cut off and jump back to home screen

  • To post parked PO invoice using function module BAPI_INCOMINGINVOICE_CREATE

    Hi, I have a requirement to batch update program to auto post the parked po invoice. Is it possible to use the function module BAPI_INCOMINGINVOICE_CREATE to post po invoices as batch job? or Can I go for BDC program? Please give me your suggestions.

  • Unable to provision apps to new users in added realm

    I added a second realm, but there are no applications in the provisioning console for it. I wonder if provisioning is manual for multiple realms. Does anyone have any experience or knowledge with this? thanks, Perryn