How to insert the Formatted date value and insert into the database

Hi All,
I am having requirement of inserting the date value in to the datbase. I'm already getting the value from file as MM-DD-YYYY. Getting exception while transforming the values through the transform activity. I'm using format fate function but it is inserting null value in to the database.
Any help from anyone would bve appreciated.
Thanks,
CH

Hi,
your input date format is fixed right? So, in the transform you can split each your date, which is in 'MM-DD-YYYY' format ... extract day, month, year.
After that ... just put these values in order acording to the format of 'xsd:date' data type which is '[-]CCYY-MM-DDZ'.
XPath function 'xp20:format-dateTime()' works only with 'xsd:dateTime' data type, which has format '[-]CCYY-MM-DDThh:mm:ssZ'.
So, in your case it could be:
<xsl:variable name="day" select="substring($inputDate,4,2)"/>
<xsl:variable name="month" select="substring($inputDate,1,2)"/>
<xsl:variable name="day" select="substring($inputDate,7,4)"/>
<xsl:variable name="outputDate">
<xsl:value-of select="$year"/>
<xsl:text>-</xsl:text>
<xsl:value-of select="$month"/>
<xsl:text>-</xsl:text>
<xsl:value-of select="$day"/>
</xsl:variable>
Regards,
Martin.

Similar Messages

  • G'day, i am trying to type into an adobe document using the typewriter function. However everytime after i type the text vanishes. It is almost as if the text is white and vanishes into the background. However this is not the case as the works are not vis

    G'day,
    I need some help, i am trying to type into an adobe document using the typewriter function.
    However every time after i type the text vanishes. It is almost as if the text is white and vanishes into the background.
    This is not the case as the works are not visible regardless of the background color.
    The text box remains available and can be edited if clicked on, also if i double click on it the typed words become visible and editable, however once i close the box i cannot see them on the screen.
    I would appreciate any help i can get, i cant seem to do anything using properties or view.
    Thanks 
    Tiernan

    Hi Sara,
    See response to your questions below:
    1.     Are you running into this issue in a specific PDF, or in all of them?
    A.     All of them
    2.     What version of Acrobat are you using (and, are you on Mac OS or Windows?).
    A.     Using Acrobat 10.0\Acrobat on Windows
    3.     If you look at the text properties on the Tools panel (under Format), what color is the text swatch?
    A.     Test swatch for the text is black
    4.     What happens if you change the text color?
    A.     Nothing.
    I look forward to hearing back from you.

  • How to read the data file and write into the same file without a temp table

    Hi,
    I have a requirement as below:
    We are running lockbox process for several business, but for a few businesses we have requirement where in we receive a flat file in different format other than how the transmission format is defined.
    This is a 10.7 to 11.10 migration. In 10.7 the users are using a custom table into which they are first loading the raw data and writing a pl/sql validation on that and loading it into a new flat file and then running the lockbox process.
    But in 11.10 we want to restrict using temp table how can we achieve this.
    Can we read the file first and then do validations accordingly and then write to the same file and process the lockbox.
    Any inputs are highly appreciated.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

    Hello Gurus,
    Let me tell you about my requirement clearly with an example.
    Problem:
    i am receiving a dat file from bank in below format
    105A371273020563007 07030415509174REF3178503 001367423860020015E129045
    in this detail 1 record starting from 38th character to next 15 characters is merchant reference number
    REF3178503 --- REF denotes it as Sales Order
    ACC denotes it as Customer No
    INV denotes it as Transaction Number
    based on this 15 characters......my validation comes.
    If i see REF i need to pick that complete record and then fill that record with the SO details as per my system and then submit the file for lockbox processing.
    In 10.7 they created a temporary table into which they are loading the data using a control file....once the data is loaded into the temporary table then they are doing a validation and updating the record exactly as required and then creating one another file and then submitting the file for lockbox processing.
    Where as in 11.10 they want to bypass these temporary tables and writing it into a different file.
    Can this be handled by writing a pl/sql procedure ??
    My findings:
    May be i am wrong.......but i think .......if we first get the data into ar_payments_interface_all table and then do the validations and then complete the lockbox process may help.
    Any suggestions from Oracle GURUS is highly appreciated.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

  • How can i read every"number" value and not only the 1st?

    in the vi only the first "number" value(from the data acquisition)is read in the small loop.how can i make every value to be read?every value must be compared with the "numeric" constant,and,if greater the led must turn on.afterwards,when a value which is less than the "numeric" is found the led must turn off.please answer or send mail to [email protected]
    Attachments:
    oximet5.vi ‏152 KB

    The more I look at your program, the less I understand it.
    Why are you setting number = number in a case if SO2 = ""? number always equals number.
    In your sequence frames 1 and 4, you have no control over which write (date or time) happens first. Just placing one function to the left of another doesn't make it happen first if your wiring doesn't create data dependency. Review the section on Data Dependency in chapter 5 of the LabView User's Manual.
    It looks you're writing to and reading from the same file using Write File and Read Lines from File.vi. Why read back data you just wrote? You have the data on your diagram. If you want to convert it from string to numeric, use a Sring/Number Conversion function from the String palette.
    On Read Lines from File.vi (which I'm not sure you even need), you should use a shift register for the start of read offset rather than a local variable for mark after read (chars.). With a shift register, you can initialize it to 0 when the VI starts. Using a local, if you restart the VI, it will try to startup from where you left off the last time, but you just opened the file for create or replace.
    In your sequence frames 2 and 3, why do you wait for the number to be less than the numeric before writing a carriage return to the file? Also, LabView has a End of Line constant which adapts to the expected value for the operating system. That's generally more flexible than a Carriage Return.
    It looks to me like you're overusing control refnums. You don't need to use a control refnum and a property node to set or read a control's value if you can wire directly to the control's terminal.
    I really don't understand what you're doing with pause and variants. I may be missing the point, but it looks like you made this much more complicated than it needs to be. Why not keep it a boolean?
    For your pause-path, you open the file but never close it. You can lose data that way. You also open it using open function 3, create new file. You'll get an error if the file already exists.
    On a general note, your diagram would be easier to read if you were more selective in how you routed your wires: you have wires on top of wires, wires running under sub-VIs, wires running in the frame of a while loop, wires running under labels.
    I think there's a temptation to overuse sequences. I don't think you need one here. As I mentioned in my earlier message, case structures and shift registers will be more useful to you.

  • How will get subquery return multiple values and passing to the main query

    Hi all ;
    here i given one sql query
    1)select decode(a.FLG,'Y','yes','N','no','null')||'] '||a.p_type||' : '|| initcap(replace(substr(b.mgr,0,instr(b.mgr,'@')-1),'.',' '))||' - '||
    b.name||' ('|| substr(a.name,0,instr(a.name,'-')-1)||')'
    from table1 a
    join table3 c on c.emptype = a.emptype
    left outer join table2 b on a.name = b.name
    where a.mgrid = 100;
    if i run this above query returning multiple values depend on sa.mgr values.
    like output coming like this
    [yes]:2000-anbarasan
    [yes]:2700-anb
    [yes]:2000-rasan
    [yes]:2807-anbarasan
    [yes]:2700-anbanu
    [yes]:2000-null
    2) this sub query i am passing with main query
    select sa.mgrid,sa.sal,(select decode(a.FLG,'Y','yes','N','no','null')||'] '||a.p_type||' : '||
    initcap(replace(substr(b.mgr,0,instr(b.mgr,'@')-1),'.',' '))||' - '||
    b .name||' ('|| substr(a.name,0,instr(a.name,'-')-1)||')'
    from table1 a
    join table3 c on c.emptype = a.emptype
    left outer join table2 b on a.name = b.name
    where a.mgrid = 100)" test " from table4 sa,table5 te ,table6 ft where sa.id(+)=te.id and sa.mgr=ft.mgr;
    my final out put required like this:
    mgrid sal test
    100 20000 [yes]:2000-anbarasan
    [yes]:2700-anb
    [yes]:2000-rasan
    [yes]:2807-anbarasan
    [yes]:2700-anbanu
    [yes]:2000-null
    but i am getting erro:
    1)missing paranths-it solved
    2)single row subquery return more then one row.
    give me the correct solution.how will solve this problem
    Edited by: anbarasan on Sep 29, 2008 6:49 AM
    Edited by: anbarasan on Sep 29, 2008 6:51 AM
    Edited by: anbarasan on Sep 29, 2008 6:53 AM
    Edited by: anbarasan on Sep 29, 2008 6:56 AM
    Edited by: anbarasan on Sep 29, 2008 6:58 AM

    Hi,
    It doesn't look like you posted either the complete query or the complete error message (including line number). Try again.
    "single row subquery return more then one row" usually means you are using a sub-query in a place where a single expression is expected, for example the column called avg_sal in this query:
    SELECT  ename
    ,       sal
    ,       (SELECT  AVG (sal) FROM scott.dept WHERE deptno = e.deptno) AS avg_sal  -- Scalar-sub-query
    FROM    scott.emp  e; The error occurs when the sub-query returns more than one row
    If the sub-querry really is supoosed to be returning only one row, the solution is to fix the sub-query, usually be adding something to the WHERE clause.
    If the sub-query is supposed to return more than one row, then the main query has to be re-written, perhaps as a join.
    Post a little sample data and the results you want from that data if you need help.

  • How to Create a Function module z_create and to track the error records?

    I want to create a function module z_create which will insert the data from the internal tables gt_model_master and gt_model  into the corresponding database custom tables y_model_master.
    Secondly if any error is encountered during the above updation, then how to track those error records ?

    HI,
    check the sy-subrc ,if it is zero the insertion is success,otherwise use 
    message class.
    if sy-subrc ne 0.
    message e052(zmessage).
    endif.
    Edited by: rakesh dhudipala on Feb 12, 2008 2:33 PM
    Edited by: rakesh dhudipala on Feb 12, 2008 2:33 PM

  • How to split the blob byte array and insert in oracle

    how to split the blob byte array and insert in oracle
    I am having a string which is of more than lenght 4000 so i am using BLOB datatype as input to get the string.
    need to split the blob in oracle and store in the different column
    The string is of bytearray i need to strore it in each column based on the byte array.

    this will be my input i need to split the above and store it in different columns in a table.
    for spliting say
    Column1 -1 byte
    Column2-3 byte
    Column3-5 byte
    ColumnN-5 byte
    Table will have corresponding data type
    Column1 - number(10,2)
    Column2 - Float
    Column3 - Float
    ColumnN-Float
    here Column2 datatype is float but it will always have 3 byte information.
    where as Column3 datatype is also float but it will always have 5 byte information.
    Say N is Column 120

  • How to fetch year till date value for earning for current ,last and year

    hi,
    how to fetch year till date value for earning for current ,last and year before that from payroll result
    plz reply soon,
    pratyush

    Dear Pratyush,
    Pick this from CRT.
    Use LDB PNPCE & Fire event GET PAYROLL &
    then you can pick from CRT.
    Hope this helps.
    Kindly reward in case useful.
    Regards & Thanks,
    Darshan Mulmule

  • How to build the  FM data I_header and I_orgdata

    hi all,
    I’m working on the conversion program for AVL using the following function modules
    BBP_PD_AVL_GETLIST
    BBP_PD_AVL_CREATE
    BBP_PD_AVL_UPDATE
    BBP_PD_AVL_SAVE
    In the function module BBP_PD_AVL_CREATE , how to build the FM data  I_HEADER and I_ORGDATA.
    I'm giving 3 input in Export parameter in BBP_PD_AVL_GETLIST  and E_pdlist should contain data .
    but e_pdlist is not getting data...any suggestion..
    after execution it was showing  "Buffer table is not up to date"
    with regards,
    P.lokesh

    Hi Lokesh,
    We are also encountering same problem.
    How did you solve your problem?
    Would really appreciate your help.
    Thanks,
    Kezia

  • I transferred data from my Macbook Pro to my Mac mini but it forced me to make a new user for my old data.  How do I transfer my music, pics, and docs from the "old" user to the new user (so that I only have one user instead of 2?)

    I transferred data from my Macbook Pro to my Mac mini but it forced me to make a new user for my old data.  How do I transfer my music, pics, and docs from the "old" user to the new user (so that I only have one user instead of 2?)

    Unless you transfer the files from Setup Assistant, Migration Assistant creates a new user with the data.
    To transfer the files to your first user, you have to log on this new user, and copy all your files to /Users/Shard folder. This is a folder where you can put the files you want to share between two or more users, and all users can read and write in it.
    After copying the files, go to your first user, open /Users/Shared folder, and copy the files to your user folders. If you migrated applications, you must know that they are stored in a common folder (/Applications), so you don't have to transfer them. To open /Users/Shared folder, open Go menu (in the menu bar) > Go to Folder, and type the folder

  • I have just downloaded Mac OS X 10.9 and Pages 5. When I open any pre-existing document in the new Pages the format is zoomed to 125%, the headers are out of position, the margins are changes, and inserted images are also relocated. What can I do?

    I have just downloaded Mac OS X 10.9 and Pages 5. When I open any pre-existing document in the new Pages the format is zoomed to 125%, the headers are out of position, the margins are changes, and inserted images are also relocated. What can I do?

    Have you tried resetting the SMC ?     >  Resetting the System Management Controller (SMC)

  • How i can insert videos, export to pdf and then watch the video? i can't

    How i can insert videos, export to pdf and then watch the video? i can't. It is suposse that i have to configurate the option save but i don't know how... any help?

    Fron the Pages Help menu:
    Using Sound and Movies
    You can add audio—a music file, a playlist from your iTunes library, or any other sound file—to a Pages document. You can add video that plays within a page.
    Pages accepts any QuickTime or iTunes file type, including the following:
    MOV
    MP3
    MPEG-4
    AIFF
    AAC
    Also note that some media files are protected under copyright law. Some downloaded music may be played only on the computer where the download occurred. Make sure the computer you are using has permission to play all the media files included in your document.
    When you add media files to your document, make sure that they will be available if you transfer your document to another computer. When saving your document, make sure the option “Copy audio and movies into document” is selected in the Save window. (If you don’t see the option, click the button next to the Save field to display the entire Save window, and then click the Advanced Options disclosure triangle.)

  • How can i format an iphone with an differant apple id ?... the phone is locked and it needs the original apple id to activate it which i dont have

    how can i format an iphone with an differant apple id ?... the phone is locked and it needs the original apple id to activate it which i dont have .... help me

    Moh&#39;d . Hassan wrote:
    how can i format an iphone with an differant apple id ?... the phone is locked and it needs the original apple id to activate it which i dont have .... help me
    Then get the previous owner to remove it: Find My iPhone Activation Lock: Removing a device from a previous owner’s account - Apple Support

  • In iphoto11when I go to advanced preferences to choose an external editor (PSE11), the drop down menu just shows iPhoto and DSCF0586, which if chosen takes me to the desktop. How do I get rid of DSCF0586 and insert Adobe Elements11?

    In iphoto11when I go to advanced preferences to choose an external editor (PSE11), the drop down menu just shows iPhoto and DSCF0586, which if chosen takes me to the desktop. How do I get rid of DSCF0586 and insert Adobe Elements11?

    Click on DSCF0586 and then navigate to the PSE 11 application and select it.
    Be sure to select the right PSE 11 file, the one in the Support Files folder:
    OT

  • How do I keep the format in a fillable PDF, specifically the "$" symbol and the 2 decimal places?

    I created a fillable form in Acrobat Pro and when we use it in Adobe Reader on the iPad, the preset format for money doesn't stay when the fields are populated, but if we email the filled form back to the iMac, the format is there and it's fine.  Any suggestions?  Do I need to do something with the original fillable form so that it carries over to the iPad?

    I have been having a similar issue for a client's interactive PDF report that needed the "Show/Hide" feature in InDesign to reveal many acronyms' definitions in a "Pop-up" box when the acronyms were clicked on. Then the "Pop-up" boxes could be clicked on to close themselves using the same "Show/Hide" feature. While I have been going a little crazy the last FEW MONTHS scouring the forums and blogs (and just spent an hour and a half on the phone with Adobe's tech support staff that apparently only support desktops and laptops but have NO CLUE about the delivery of Adobe content via tablets and other mobile devices), I can say that a few things have been helpful - on the expert blogs (but sadly not in any of Adobe's support forums or call centers).
    Buttons in interactive PDFs are NOT supported in iBooks or Acrobat Reader on the iPad.
    Basic buttons, like navigational buttons (go to next or previous page) or submit, DO work in the "PDF Expert" app, which is $9.99 in the App Store.
    So far, no matter which workaraound I have tried from the forums and blogs, the "Show/Hide" buttons still do NOT seem to work properly in even the "PDF Expert" app. (I see a highlight field where my buttons and pop-ups should be but no content in them - no text and no background - only a translucent highlight that shows that somewhere in there it's trying to work. The highlight fields even show and hide the way the buttons and pop-ups are supposed to, which is maddening!)
    The only recommendation I could get from the Adobe tech support folks was to use InDesign and the Digital Publishing Suite (DPS) instead and publish an app through the iTunes Store.
    Unfortunately that is NOT an option for me because my client's report is confidential and being sent to only a small group of less than 100 people.
    I could bypass the iTunes Store and distribute the "Ad Hoc" method of attaching the .ipa file (the app file) to an email list of up to 100 people but my client would have to buy the DPS Enterprise Edition, which costs upwards of $20,000. (Yes, that's $20K in American dollars.)
    There is NO option to distribute "Ad Hoc" with the Single Edition of DPS which comes with the Creative Cloud. I guess a lot of people ask that of the DPS forums and the experts give cranky repies that "No, it is just not possible with any DPS version less than the Enterprise Edition."
    There is no middle ground on this yet but a lot of people seem to be asking for it. What's up with that, Adobe? No support for the small to mid-sized businesses for simple interactive brochures and reports that they don't want to release to the world, just to a select few?
    The only solution I have found even slightly feasible is to create buttons that control "Multi-State Objects" (or MSOs) to behave similarly to the "Show/Hide" buttons and create a DPS .folio file from the InDesign doc.
    I still can't recommend that my client pays $20,000 to be able to distribute his interactive quarterly report but I think I found a way around a small distribution.
    You can share a .folio file with people through an email from the "Folio Builder" panel in InDesign. (See this help file: http://helpx.adobe.com/digital-publishing-suite/help/create-folios.html and scroll down to the "Share Folios" section.)
    Apparently, this link is not permanent, but I haven't found an answer anywhere as to when it will time out. I'm thinking at least 3 months will be enough for my client for the time being until the next quarterly report comes out. Hopefully by then Adobe will have come up with a cost-effective solution for the small to medium-sized business that wants to publish interactive documents for the iPad or the PDF apps on the iPad will become mature enough to handle these slightly more robust interactive features.
    I hope this was helpful to some of you trying to do something similar. If anyone has an elegant solution for the nearly-working interactive PDF on the iPad, please let me know. Thanks in advance!

Maybe you are looking for