Getting Source Data in Canonical Format

All -
I understand that in order to change the date format in xmlp we have to have the source data in the canonical format YYYY-MM-DDTHH:MI:SS
My question is - How do I get my source data into this format? When I try to alter my session or do a to_char on a date column as follows:
alter session set nls_date_format="yyyy-mm-ddThh24:mi:ss"
or
select to_char(sysdate,'yyyy-mm-ddThh:mi:ss') from dual;
I get the message that the date format is not recognized. I'm sure that I'm just missing something simple, but any help that could be provided will be greatly appreciated.

Hey BigD
The XSD format is not recognized by the db ... Im chasing that up, they docs appear to say otherwise.
You have some alternatives:
1. If you are not bothered about the time portion you can just get the YYYY-MM-DD format and it will be formatted correctly by XMLP
2. Use the Data Template engine from XMLP to get the data, it will format the date for you.
3. Nasty but you could do something like:
SELECT TO_CHAR(SYSDATE,'YYYY-MM-DD')||'T'||to_char(sysdate,'HH24:MI:SS') from DUAL
If/When I get an answer from the db team on any function I'll let you know.
Regards, tim

Similar Messages

  • How to get pixel data in the format I want

    I'm writing a format plug-in and am having some difficulty getting the pixel data from photoshop in the format I want. From what I gather from the documentation in the SDK I need to specify the following to tell photoshop what format to deliver my pixels in:
    theRect
    loPlane
    hiPlane
    data
    colBytes
    rowBytes
    planeBytes
    planeMap
    I specify all of these appropriately for a 32 bit rgba8888 uncompresssed image and it works just fine... but ONLY if the image I load in the first place matches the format I am requesting. If the image I load is some other format, like a 256 color image with a palette, gFormatRecord->advanceState() just fails with a nebulous -30500 error code (formatBadParameters) instead of delivering pixel data.
    So my big question is this: Is Photoshop capable of doing the conversion and delivering the pixels to my format plug-in in my requested format? If it CAN do it, what might I be doing wrong? Please help! Thanks!!

    You noticed you can use the planeMap[] array to permute the channels. It's not so obvious that Photoshop should offer generalised bit depth/colour space/palette processing. It can be argued that's the role of the plugin itself: to mediate between Photoshop's native image data (which it does offer conveniently) and whatever arbitrary image format the user requires. At least, that's what most of
    my plugins do.
    Sure, there are a few obvious conversions, but you have to stop somewhere... Sooner or later you'll be implementing stuff on the Photoshop side that
    should be in a plugin. I don't have a big problem with the line drawn in the current API.

  • Query Engine to get Instance Data from Binary format to actual format

    Hi all,
    In OBPM 10GR3 is there a way to get Engine Instance Data contained in the table PPROCINSTANCE in the BPM Engine DB using the Fuego API in the catalog?
    I could not find any method?
    Is there any?
    I want to get the column INSTANCEDATA which is a BLOB and then get values from that BLOB which obviously would turn into a Binary Object inside BPM .
    So we can retrieve data from that Binary Object?
    Edited by: user8752903 on Jul 11, 2011 2:12 PM

    You can use PAPI
    InstanceInfo istinfo = processSession.processGetInstance("/TestProcess#Default-1.0/1234/0");
    DynamicObject dynObject = (DynamicObject) istinfo.getVariable("instanceVariable", Locale.ENGLISH);

  • Get current date in mm/dd/yyyy format

    Need to get todays date in the format mm/dd/yyyy and store it in a database by using JDBC API ..how to convert Date given by Date() to the format mmdd/yyyy .The column type of the table whr date has to be inserted is of Type Date/Time (Microsoft Access)..
    Plz help me out ..plzzz..

    public static byte TIME_ONLY = 1;
    public static byte DATE_ONLY = 2;
    public static byte DATE_ALL = 3;
    public static String getCurrentDateTime(byte format, String dateFormatPattern) {
         String[] stringArray;
            String sDate;
         Date today;
         SimpleDateFormat formatter;
         formatter = new SimpleDateFormat(dateFormatPattern);
         today = new Date();
         sDate = formatter.format(today);
         if (format != DATE_ALL) {
              stringArray = sDate.split(" ");
              if (format == DATE_ONLY) {
                   sDate = stringArray[0].trim();
              } else {
                   sDate = stringArray[1].trim();
            return sDate;
    }

  • How to get the Date in a particular format?

    Hi,
    How to get the Date in the below format? I will be passing the year in my method..
    2/10/2003 9:46:52 PM
    D/M/YYYY H:M:S A
    public Date getDate (String year) {
    Here i want to get the Date in this format
    2/10/<Passed Year> 9:46:52 PM
    Thanks

    This is my code
    public static Date getCalendar(Calendar calendar,int getYear) {
    String      formatted_date="";
         int year = getYear;
         int month = calendar.get(Calendar.MONTH+1);
         int day = calendar.get(Calendar.DATE);
         int hour = calendar.get(Calendar.HOUR);
         int min = calendar.get(Calendar.MINUTE);
         int sec = calendar.get(Calendar.SECOND);
         int am_pm =calendar.get(Calendar.AM_PM);
         formatted_date = month+"/"+day+"/"+year+" "+hour+":"+min+":"+sec+" PM";
         System.out.println("formatted_date is "+formatted_date);     
         o/p : formatted_date is 1/4/2006 1:44:21 PM
         SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    //     DateFormat dateFormat =DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
         Date passdate = new Date();
         try {
              passdate = dateFormat.parse(formatted_date);
         } catch (ParseException e) {
              System.out.println("Invalid Date Parser Exception "+e.getLocalizedMessage()+"DateFormat is "+dateFormat);
              System.out.println("The Date inside the function is "+passdate+"and the year passed is "+year);
    o/p : The Date inside the function is Sat Apr 01 00:00:00 IST 2006and the year passed is 2006
         return passdate;
    Expected O/P is 3/1/2006 1:44:12 PM
         }

  • How can i get Date in this format - 04/Feb/2008

    I need to get the date in this format - 04.Feb/2008. How can i get it using Java coding..
    java.sql.date
    Please reply to this..

    Hi,
    Are you running this code in a java file which is running on your local system???
    Is this is webapp/webdynpro???
    If this is a web app/webdynpro and if its deployed on the server, it should take the time of the system(server) where the app is deployed.
    Regards
    Ayyapparaj

  • How to convert internal date to the format of user default setting

    In the BDC program, I need to convert the date, such as the sy-datum 20070427, to the format of user default that is defined in T-code SU01, such as YYYY-MM-DD or YYYY.MM.DD, and so on.
    The user format has 6 six kinds, and it is not good idea to write the code to process. So I look for the functions or CLASS method to process. I can use the function 'ITS_GET_USER_DEFAULTS' to get the user default setting of the Date format and Decimal notation.The problem is that I can not find the function or CLASS method to convert the internal date to user's date format.
    The function: CONVERT_DATE_TO_INTERNAL can not do it.
    The CLASS method: cl_abap_datfm=>conv_date_int_to_ext may be do it. But I do know how exchange the parameters, and fail to make it work finely.
    Is there the functions or CLASS method to process it?
    Thanks a lot!

    Hi John,
    create a veriable :
    data: v_date type char10.
    then after getting the date in YYYYMMDD format, write the following statement.
    WRITE SY-DATUM TO V_DATE.
    this might solve your problem.
    Regards,
    Hemant.

  • Automatic data in excel format.

    Dear Experts..
    How to get the data in excel format by backgroud prcess(by job)
    I mean automatically the excel file should go by mail.

    Hi,
    You may need to use the work flow to send the excel file automatically by mail. Once the background job completed, it will be available in spool. From there you need to get the excel file thru mail.\
    You can contact your ABAP consultant, he will help you.
    Regards,
    V. Suresh

  • Ack file date and time format is same as in source xml format

    Hi...All,
    1) my scenario is file-rfc-file using BPM,
    we are getting file in xml format from source along with timestamp and this data will be going to R/3 and the acknowledgement (success or failure) file will be sending back to source system.
    in this sceneario we have to fulfill in the follwing client requirement
    File1.<same File1 date and time>.XML
    Is it possible to make it as the following? if it is possible
    could u please let me know how to fulfill the follwing requirement.
    ACK File1.<same File1 date and time>.XML
    Where <same File1 date and time> format = u2018YYYYMMDDhhmmssu2019 .
    2) Is the XML file name visible in the SAP-XI monitoring screen and will it help to trace the messages?
    thanks in advance,
    Pasi.

    Hi,
    I didnot under stand your first question coulf you be more specfic.
    2. Ans : In general , we will follow the below steps
    --First we we check for the file is picked or no, if not see the Sender side CC parameters like mode and path details
    --If file was picked then we need to check whether we are using the File content conversion parameters or not if yes we need to check the FCC parameters ,
    Goto RWB-Channelmonitoring by the following link
    http://host:port/mdt/channelmonitorservlet
    select the sender side CC name and check for errors
    If no errors in above, goto SXMB_MONI for Integration Engine xml processing , check for successful or error occured black or red color
    --if success in SXMB_MONI then we need to check in RWB as above channel monitor now select the receiver side CC
    If no errors then check for output file is placed intarget or not
    Please reward points if it helps
    Thanks
    Vikranth

  • Source Data file format for FDM

    Hi,
    I am new in FDM and have couple of question on data loading.. We are using FDM to load the data in Essbase. Please help me on these-
    Question 1:
    In source data file, suppose, we have around 300 account members and around 100 PO numbers. There are multiple 'PO numbers' records for each 'account member'.
    As per our requirement, we need to sum up the all values for 'PO number' column for each account.
    For example, suppose, we will get data file as below. Here, Important point is, I don't have dimension for 'PO number ' in Essbase. I will get the accounts data corresponding to 'PO number' but there is no dimension in Essbase to store data at 'PO number' level.
    Account column PO number Actual Estimated
    A001 P0123_10 10.00 15.00
    A001 P0123_20 20.00 25.00
    A002 P0123_30 30.00 35.00
    A002 P0123_40 40.00 45.00
    A002 P0123_50 50.00 55.00
    A003 P0123_60 60.00 65.00
    A003 P0123_70 70.00 75.00
    A003 P0123_80 80.00 85.00
    and so on
    Now we want to sum up the data for each Account member i.e
    Account column Actual Estimated
    A001 30.00 40.00
    A002 120.00 135.00
    and so on ---
    As per my understanding, While defining the *'Import format'* for this source data file , we will not consider the column for 'PO number' and will define the mapping with merge option. Hence, multiple record for each account will be accumulated.
    Please suggest me on this.. Is my understanding correct or how will handle this type of scenario?
    Question2:
    Suppose, we have data for multiple scenarios ( i.e. Actual, Estimated etc) in one excel sheet, which will be used in FDM as a source file? As per admin guide, we have POV for Category and data will be loaded for that selected POV only. In this case, will FDM consider the data for each selected POV scenario or how FDM will function in this case... do we need to have separate files for each scenario...
    Please help me to solve these problems...
    Thanks & Regards,
    Mohit Jain

    QUESTION1: If you ignore the PO field in the import you will get the accumulating behaviour you describe. Not sure what you mean by using merge in the mapping. The default behaviour of FDM is to accumalate all non-unique lines following the mapping process you don't have to set anything
    QUESTION2: Data will only be loaded to the selected Category in the POV if you have data in the file that needs to be targetted at a different scenario you will need a seperate load file containing that data and choose the alternate category in a seperate manual workflow process

  • EDI format i'm getting  source documents..

    Hi
       from my source i'm getting EDI documents.. i need to load this data into IDOCS in R/3 system .. ..but here i got one doubt..  the source format is always EDI format only.. then why  again they are choosing XI integration.. with out XI also dircetly we can load those  edi documents through EDI sub system....
       here what is the adavatages..  by using XI insted of directly  load the data into R/3 system..
    Thanks
    Babu

    Hi,
    For understanding the EDI file we need to use the third party seeburger adapter like As2,X400,OFTP.
    We need to write a module program in the module parameter tab of adapter which does the conversion of EDI to XML and XML to EDI so that it will be understood by XI.
    Refer all my threads which gives you more idea.
    Refer this forum which is replied by me which talka about the configuration which need to be done for AS2 adapter. This is very helpful:
    Re: Pls.. Help Needed.. Seeburger Mapping Names..!!
    Re: Seeburger AS2 adapter...
    Re: AS2 Module tab.. Mapping Names for modified Standard Msg types ? ? BIC ??
    Seeburger info:
    Re: seeburger adapter
    Re: SEEBURGER's VAN Adapter
    AS2 info:
    Re: Regarding Seeburger AS2 Adapter
    SEEBURGER EDI adapter
    Seeburger :
    please look in to this links u will come to know about seeburger adapter.
    HI,
    /people/bla.suranyi/blog/2006/06/08/sap-xi-supports-edifact
    /people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
    /people/paul.medaille/blog/2005/11/17/more-on-the-sap-conversion-agent-by-itemfield
    http://www.stylusstudio.com/edi/XML_to_X12.html
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b0b355ae-0501-0010-3b83-8f2bb566fa47
    Details on XI EDI adapter from seeburger
    /people/bla.suranyi/blog/2006/06/08/sap-xi-supports-edifact
    http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
    http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
    http://www.seeburger.com/fileadmin/com/pdf/AS2_General_Overview.pdf
    SAP Adapters
    EDI with XI
    http://www.seeburger.com
    http://www.seeburger.com/fileadmin/com/pdf/AS2_General_Overview.pdf
    http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
    http://www.seeburger.com/fileadmin/com/pdf/SEEBURGER_SAP_Adapter_engl.pdf
    http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
    http://www.sap.com/france/company/events/2006/02-01-Automotive-Seeburger.pdf
    http://h41123.www4.hp.com/presentations/ISUG/XISeeBurger.ppt
    http://www.sap.com/asia/company/events/nwtechdays/presentation/australia-slides/Pre-Built_Integration.pdf
    http://www.seeburger.com
    http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
    http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
    http://www.sap.com/france/company/events/2006/02-01-Automotive-Seeburger.pdf
    http://h41123.www4.hp.com/presentations/ISUG/XISeeBurger.ppt
    Seeburger adapters like OFTPS,AS2,X400 are used for B2B scenario where the file is coming through WAn network or mailbox. As XI dont have capability to convert the EDIFACT format file to XML the same work will be done by seeburger adapters.
    The SEEBURGER Business Integration Converter (BIC) is an any-to-any format converter, used to translate EDI data and legacy data formats into XML and vice versa. It can also be used for complex, high performance XML-to-XML mappings or to interface to existing JDBC data sources.
    Supported EDI formats include:
    • ANSI
    • EDIFACT
    • INHOUSE
    • IDOC
    • XML Schema
    • XML DTD
    • CSV
    • Delimited Data
    • positional data
    • SWIFT
    • EANCOM
    and many more.
    See for converting the EDI XML to EDI and XML-EDI you need to have a seeburger mapping program at the adapter module which does the conversion. For this module you need a BIC tool of seeburger which provides the different module program for EDI to XML and XML-EDI. This program needs to be deployed on XI and through adapter it has to be called for conversion.
    Thnx
    Chirag

  • Unable to get the data in RSA 3 for the data source 2LIS_03_BX.

    Hi Xperts,
    we are loading the data sources(2LIS_03_BX) by using MCNB transaction but not getting the data in it.
    can any one please tell me how to load the data into it with step by step process.
    regards,
    satish

    Hi,
    To see the data in RSA3 you need to do the setup of data for the particular data source through SBIW transaction.
    The Rsa3 transaction displays the data present in the setup tables of the particular data source.

  • How to get current date in a specified format ?

    Hi,
    I want to get the current date (java.util.Date()) in the format yyyy-MM-dd HH:mm:ss.
    Can you please tell me as to how to get that ?
    Regards

    I have used the same and the code looks like this. But i am getting java.text.ParseException : UnParseable Date: "Fri Jul 11 13:29:43 CDT 2003"
    The Code is :
    java.util.Date sysDate = new java.util.Date();
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    String formatted_date = df.format(sysDate);
    It is erroring out in the last statement !!

  • Hi iam getting the alv grid data in excel format but iam facing one problem

    hi iam getting the alv grid data in excel format but iam facing one problem ,
    i.e., i want it read only  but iam getting it in edit mode i use layout default in excel iam getting in xl directly but in edit mode but i need it in read only mode
    what i have to do for that  and bdy knows reply me i need it urgently.

    there's always edit-mode if you choose excel-inplace - but noone can modify/rewrite the data
    A.

  • Problem in getting current Date at runtime and parsing into my own format

    Hi all,
    In my program....I want to get the Date(current Date).......
    How can I get it....
    And also I want it to change it to my own format.....
    I should get this at runtime....
    Plz tell me which class and method to use....
    Any help will be greatly appreciated...
    Thanks,

    Try looking at some of these articles:
    http://www.javaworld.com/javaworld/javaqa/2001-10/01-qa-1005-dateformat.html
    http://www.javaworld.com/jw-12-2000/jw-1229-dates.html
    http://www.javaworld.com/javaworld/jw-03-2001/jw-0330-time.html

Maybe you are looking for

  • How do I make my mobile watch my swann security cc...

    PLEASE READ THIS URGENT Hi everybody I have to tell you I a tiny bit of knowledge about internet esspecially the remote acces,so please write to me exactly what to do.I've been having problems accesing my swann camera on iphone 5,I just got swann dvr

  • Including External JARs for Java Application in OC4J

    Hi Experts, Here is my requirement. I have developed my Java application using Tomcat Server & Eclipse. In my application I have used some External JARs & imported the classes in my JSP. Now that I'm using OC4J Server instead of Tomcat I'v no clue as

  • Inbound IDOC processing, error duplicate key

    We want to retrieve certain order-idocs in our system, before they are processed, to change AND insert segment data. Flow we use in our current program - DOC_STATUS_WRITE_TO_DATABASE to change the status of the idoc (ok) (status 69) - EDI_DOCUMENT_OP

  • Photos don't display on book pages after upgrading to 9.4.2

    I have several books I created in version 9.4.1. After upgrading to iPhoto 9.4.2, most of the pictures will not display on the book pages. Only 1 photo displays out of 3 or 4 photos on the page. Is there a setting that has changed? Using Mountain Lio

  • Publishing via FTP server

    I have now shifted my webpages from Mobile Me to a local web hosting service, and need to know how I go about uploading them to this new server in the way that was advised on a recent post: "When you FTP up the files, instead of FTP'ing the index fil