RFC Function Error: Cannot convert a value of 'MM/DD/YYYY' from type java.l

hi experts,
iam calling an RFC using SAP_JCO_Function. one of the input parameters is date which shud be in the format 'MM/DD/YYYY' but when i create a transaction property of data type DATETIME the format changes to " 2007-06-21 14:31:50 ". to refrain form passing this value at run time i have defined the transaction property as string and defaulted the value to MM/DD/YYYY.
When i execute the RFC i get the error "Cannot convert a value of 'MM/DD/YYYY' from type java.l".
Issue is with time field as well. Any suggestions would be appreciated.
Thanks,
Avinash

Hi
You can use datefromxmlformat( datetime, toformat ) .
in toformat you give: "MM/dd/yyyy" and in datetime you pass your xml format date like: 2007-06-21 T14:31:50.
Try like this. Hope this may help you.
Thanks

Similar Messages

  • Gettin error Cannot convert to number in RTF Template

    Hi,
    I am working on xml template development i am getting the followinf error
    Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    RTFProcessor setLocale: en-us
    FOProcessor setData: D:\Tickets\Remittance Advice XMLP\canada_report1.xml
    FOProcessor setLocale: en-us
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:586)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:383)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:201)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1015)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:968)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
         at RTF2PDF.runRTFto(RTF2PDF.java:626)
         at RTF2PDF.runXDO(RTF2PDF.java:460)
         at RTF2PDF.main(RTF2PDF.java:251)
    Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert to number.
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1526)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:517)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
         ... 16 more
    I have checked the code and problem was due to following code i dont know where i went wrong
    <xsl:variable xdofo:ctx="incontext" name="inner_group" select=".//G_SEL_INV_DATA"/><?for-each:$inner_group?><?if:(position()-1) mod $no_of_lines_per_page=0?><xsl:variable name="first_rec" xdofo:ctx="incontext" select="position()"/>
    Please help me to solve this issue...
    Thanks
    Rajesh

    What was the problem in the template? I am facing the same error, when I put a conditional in the data field, it throws the XML-22036: (Error) Cannot convert to number.
    error, where if the element was printed directly it works fine.
    error
    <Line 984, Column 130>: XML-22036: (Error) Cannot convert to number.
    @Line 984 ==> <xsl:variable name="v148" select="format-number(string(xdoxslt:one($v147)), string('###0.00'), string('_DECIMALFORMAT'))"/>
    End of Process.
    <format>
    Number, ###0.00
    <DATA >BROKEN
    If (to_number(../DocumentPayableCount) + to_number(Extend/NumberOfPO) + sum(to_number(../DocumentPayable/Extend/Commentlength))) <= 7 then Extend/InvoiceAmount end if
    <DATA >ALSO BROKEN
    If (../DocumentPayableCount + Extend/NumberOfPO + sum(../DocumentPayable/Extend/Commentlength)) <= 7 then Extend/InvoiceAmount end if
    <DATA> WORKS
    then Extend/InvoiceAmount

  • Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator

    Issue : In sharepoint 2013, I am experiening below error while using filter in the list view due to the number of items in this list exceeds the list view threshold, which is 10000 items. Tasks that cause excessive server load (such as those
    involving all list items) are currently prohibited.
    Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator
    Could you please suggest a way to avoid this issue apart from incrementing the list view threshold limit .
    Prashanth

    Reorganizing content, or creating more specific views. sharepoint is warning you that the content is structured in such a way that it can cause performance issues, which should be addressed in some way.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Function modules for converting Char value to hexadecimal value

    Hi All,
    Function modules for converting Char value to hexadecimal value.
    Thanks in advance

    Hi,
    use this function module:
    <b>RSS_UNIQUE_CONVERT_TO_HEX</b>
    regards
    Debjani
    Rewards point for helpful answer

  • Column "A" cannot convert between unicode and non-unicode string data types

    I am following the SSIS overview video-
    https://secure.cbtnuggets.com/it-training-videos/series/microsoft-sql-server-2008-business-development/6143?autostart=true
    I have a flat file that i want to import the contents onto a SQL database.
    I created a Dataflow task, source file and oledb destination.
    I am getting the folliwung error -
    "column "A" cannot convert between unicode and non-unicode string data types"
    in the origin file the data type is coming as string[DT_STR] and in the destination object it is coming as "Unicode string [DT_WSTR]"
    I used a data conversion object in between, dosent works very well
    Please help what to do

    I see this often.
    Right Click on FlatFileSource --> Show Advanced Editor --> 'Input and Output Properties' tab --> Expand 'Flat File Source Output' --> Expand 'Output Columns' --> Select your field and set the datatype to DT_WSTR.
    Let me know if you still have issues.
    Thank You,
    Jay

  • Cannot convert between unicode and non-unicode string data types.

    I'm trying to copy the data from 21 tables in a SQL 2005 database to a MS Access database using SSIS. Before converting the SQL database from 2000 to 2005 we had this process set up as a DTS package that ran every month for years with no problem.  The only way I can get it to work now is to delete all of the tables from the Access DB and have SSIS create new tables each time. But when I try to create an SSIS package using the SSIS Import and Export Wizard to copy the SQL 2005 data to the same tables that SSIS itself created in Access I get the "cannot convert between unicode and non-unicode string data types" error message. The first few columns I hit this problem on were created by SSIS as the Memo datatype in Access and when I changed them to Text in Access they started to work. The column I'm stuck on now is defined as Text in the SQL 2005 DB and in Access, but it still gives me the "cannot convert" error.

    I was getting same error while tranfering data from SQL 2005 to Excel , but using following method i was able to tranfer data. Hopefully it may also help you.
    1) Using Data Conversion transformation
       data types you need to select is DT_WSTR (unicode in terms of SQL: 2005)
    2) derived coloumn transformation
       expression you need to use is :
        (DT_WSTR, 20) (note : 20 can be replace by your character size)
    Note:
    Above teo method create replica of your esting coloumn (default name will be copy of <coloumn name>).
    while mapping data do not map actual coloumn to the destination but select the coloumn that were created by any of above data transformer (replicated coloumn).

  • How to fix "cannot convert between unicode and non-unicode string data types" :/

    Environment: SQL Server 2008 R2
    Introduction:Staging_table is a table where data is being stored from source file. Individual and ind_subject_scores are destination tables.
    Purpose: To load the data from a source file .csv while SSIS define table  fields with 50 varchar, I can still transfer the data to the entity table/ destination and keeping the table definition.
    I'm getting validation error "Cannot convert between a unicode and a non-unicode string data types" for all the columns.
    Please help

    Hi ,
    NVARCHAR = DT_WSTR
    VARCHAR = DT_STR
    Try below links:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ed1caf36-7a62-44c8-9b67-127cb4a7b747/error-on-package-can-not-convert-from-unicode-to-non-unicode-string-type?forum=sqlintegrationservices
    http://social.msdn.microsoft.com/Forums/en-US/eb0d1519-4be3-427d-bd30-ae4004ea9e8d/data-conversion-error-how-to-fix-this
    http://technet.microsoft.com/en-us/library/aa337316(v=sql.105).aspx
    http://social.technet.microsoft.com/wiki/contents/articles/19612.ssis-import-excel-to-table-cannot-convert-between-unicode-and-non-unicode-string-data-types.aspx
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • Cannot convert {PRINT "[/DEST/destination /DEST pdfmark"\*MERGEFORMAT} from Word 2007 to bookmark

    Hi,
    Please help, We used to have word 2003 and we have below formula for bookmark so that when we convert it, there's bookmark in pdf. However, when we migrated to Word 2007, it stops working. When I am doing merge files into a single pdf, what I get for bookmark is the document title. Is there a compatibility issue? Or what is really the problem? Can you help me? Btw, I'm using Adobe Acrobat 9 Pro. Thank you in advance.
      "\*MERGEFORMAT}
    {PRINT "[/DEST/destination /DEST pdfmark

A: Cannot convert {PRINT "[/DEST/destination /DEST pdfmark"\*MERGEFORMAT} from Word 2007 to bookmark

Are you using the Adobe PDF printer to produce a .ps or .prn file first and then using Distiller to produce the PDF.  I have found that Distiller recognizes and renders the /DEST pdfmark operators it encounters in Word 2010 .docx file.  It has also been my experience that when I build a book PDF from multiple PDFs, I must insert the pages from each file.  In that way, the named destinations are given the correct page in the book PDF file.  I learned that using automatic merge prevented links to named destinations from working. I think the reason is that if you use the automatic merge, the named destinations retain the page of the original PDF file, and therefore, links to them do not work. 
Hope that helps

  • Function module to convert float value to data type 'dec'

    Hi experts,
      In a report i need to convert float value to the data type 'DEC'. How to convert it. Is there any function module for this conversion.
    Thanks and Regards,
    Vaibhav Tiwari.

    Hi ..
    We can do like this...
    Data : V_float type F value '12345.67'.
    Data: V_dec type P Decimals 2.
    Write:/ V_float exponent 0. "This will display it like Type P
    or
    Write V_float to V_dec EXPONENT 0.
    Write:/ V_dec.
    reward if Helpful.
    <b></b>

  • Column cannot convert between unicode and non-unicode string data types

    I am converting SSIS jobs from SQL Server 2005 running on a Windows 2003 server to 2008R2 running on a Windows 2008 server.&nbsp; I have a dataflow with an OLE DB Source which is selecting from an Oracle view.&nbsp; This of course worked fine in
    2005.&nbsp;&nbsp; This OLE DB Source will not even read the data from Oracle without the error "Column "UWI" cannot convert between unicode and non-unicode.  The select is:
    SELECT SOME_VIEW.UWI AS UWI,
                 CAST(SOME_VIEW.OIL_NET AS NUMERIC(9,8)) AS OIL_NET
    FROM SOME_SCHEMA.SOME_VIEW
    WHERE OIL_NET IS NOT NULL AND UWI IS NOT NULL
    ORDER BY UWI
    When I do "Show Advanced Editor" on this component, in the Input and Output Properties, I show the OLE DB External Column as DT_STR length 40 for the UWI column and for the Output Columns I see the UWI as the same DT_STR.
    How can I get past this?  I have tried doing a cast...cast(SOME_VIEW.UWI AS VARCHAR(40)) AS UWI and this gives the same error.  The column in Oracle is a varchar2(40).
    Any help is greatly appreciated.  Thanks.

    Please check the data type for UWI using advanced editor for Oledb Source under
    external columns and output columns. Are the data types same?
    If not, try changing the data type (underoutput columns) same as data type shown under
    external columns
    Nitesh Rai- Please mark the post as answered if it answers your question

  • SSIS Package : While Extracting Sharepoint Lookup column, getting error 'Cannnot convert between unicode and non-unicode string data types'

    Hello,
    I am working on one project and there is need to extract Sharepoint list data and import them to SQL Server table. I have few lookup columns in the list.
    Steps in my Data Flow :
    Sharepoint List Source
    Derived Column
    its formula : SUBSTRING([BusinessUnit],FINDSTRING([BusinessUnit],"#",1)+1,LEN([BusinessUnit])-FINDSTRING([BusinessUnit],"#",1))
    Data Conversion
    OLE DB Destination
    But I am getting the error of not converting between unicode and non-unicode string data types.
    I am not sure what I am missing here.
    In Data Conversion, what should be the Data Type for the Look up column?
    Please suggest here.
    Thank you,
    Mittal.

    You have a data conversion transformation.  Now, in the destination are you assigning the results of the derived column transformation or the data conversion transformation.  To avoid this error you need use the data conversion output.
    You can eliminate the need for the data conversion with the following in the derived column (creating a new column):
    (DT_STR,100,1252)(SUBSTRING([BusinessUnit],FINDSTRING([BusinessUnit],"#",1)+1,LEN([BusinessUnit])-FINDSTRING([BusinessUnit],"#",1)))
    The 100 is the length and 1252 is the code page (I almost always use 1252) for interpreting the string.
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • Function module to convert character value of month into numeric value?

    Hi Experts,
                     I need to convert a character value of a month in three alphabets to its numeric value.
    e.g. 'jun' should be converted into '06' and 'jan' into '01' using a function module.Can anybody please provide me a similar function module?
    TIA
    Abhishek

    try this code:
    DATA: text(20) TYPE c,
    date TYPE sy-datum.
    text = '06. Jul 06'.
    TRANSLATE text TO UPPER CASE.
    TRANSLATE text USING '. '.
    CONDENSE text NO-GAPS.
    CALL FUNCTION 'CONVERSION_EXIT_SDATE_INPUT'
    EXPORTING
    input = text
    IMPORTING
    output = date.
    WRITE date USING EDIT MASK '__.__.____'.
    Regards,
    Dara.

  • Error when Converts rows to columns dynamically in clob data type

    Hi
    I am using below pl/sql statement
    SELECT NO,
    MAX (DECODE (NAME, 'A', VALUE1, NULL)) AS A,
    MAX (DECODE (NAME, 'B', VALUE1, NULL)) AS B,
    MAX (DECODE (NAME, 'C, VALUE1, NULL)) AS C,
    MAX (DECODE (NAME, 'D', VALUE1, NULL)) AS D
    FROM ( SELECT NO,
    RTRIM (
    XMLAGG (XMLELEMENT (E, VALUE || ',')).EXTRACT ('//text()').
    GETCLOBVAL (),
    VALUE1,
    NAME
    FROM DA
    while i am execute for varchar type its as i expected. when i tried with clob data type i am getting follwoing error.
    ORA-00932: inconsistent datatypes: expected - got CLOB
    can any one pleas me?
    thanks
    Nagarajan.V

    Nagarajan Venu wrote:
    Thanks for your reply
    This is scenario.
    This is my table
    NO--name--value
    1--A--ASDF
    2--B--IOP
    all columns are clob type and i want the output like below.
    No--A
    1--ASDF
    2--IOP
    i just want to convert all rows to coulmns(clob type) dynamically.I don't get how you got that output from the data? What happened to "B"?
    Please post a suitable example and expected output using create table and insert statements as well as giving your database version and using {noformat}{noformat} tags as detailed in the FAQ: {message:id=9360002}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error: Cannot reduce the visibility of the inherited method from object

    What does this mean?

    Let's say have a class WheeledVehicle. It has a method getWheelCount() which is public. Java guarantees that every WheeledVehicle has this method. You can subclass it (car, truck, APC) all you like, but if I have a variable x of type WheeledVehicle, I can always
    void foo(WheeledVehicle x) {
        System.out.println("Got " + x.getWheelCount() + " wheels.");
    } No matter what subclass x really happens to be. If you subclass WheeledVehicle and override getWheelCount() with a private method, java will not allow it. It breaks the contract.
    Ok.
    Every class in java extends class java.lang.Object . Object has a number of methods which you ought to make yourself familiar with. You have obviously done something like:
    class Bar {
       private Object clone() {

  • Cannot convert value "......." to type

    I'm running the following script on Exchange 2010. The script reads 3 text files and then removes everyone from the Distribution Group / Universal Distribution Group  "Messages Delivery Restrictions - Accept Messages Only From" before adding
    a new list of users
    $People = gc C:\ps_scripts\Staff_Aliases.txt
    $UDGroups = gc C:\ps_scripts\Universal_Distribution_Groups.txt
    $DDGroups = gc C:\ps_scripts\Dynamic_Distribution_Groups.txt
    ForEach ($UDGroup in $UDGroups) {
       Set-DistributionGroup $UDGroup -AcceptMessagesOnlyFrom $null
       Set-DistributionGroup $UDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $UDGroup).AcceptMessagesOnlyFrom + $People)
    ForEach ($DDGroup in $DDGroups) {
       Set-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom $null
       Set-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $DDGroup).AcceptMessagesOnlyFrom + $People)
    and I'm getting the following error:
    Cannot convert value "a.abcd h.qwerty staff-abc staff.bcd" to type "Microsoft.Exchange.Data.MultiValuedProperty`1[Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter
    ]". Error: "Cannot convert value "" to type "Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter". Error: "Parameter values of type Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter can't
    be empty. Specify a value, and try again.
    Parameter name: identity""
        + CategoryInfo          : InvalidData: (:) [Set-DynamicDistributionGroup], ParameterBindin...mationException
        + FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-DynamicDistributionGroup
    I'm getting the content from three text files, the first contains the User Alias and the 2nd/3rd contain the Universal and Dynamic Distribution Groups.
    This is an exact copy and paste from the EMC screen and I know that the script should work but I can't see what I'm doing wrong
    Help or ideas please
    Darryn

    Set-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $DDGroup).AcceptMessagesOnlyFrom + $People)
    Look closely at this line.  Read the documentation to see how it is used.
    What you h ave typed makes no sense and I cannot understand what you want to do with this.
    Start here for a tutorial on how to use these CmdLets:
    http://blogs.msdn.com/b/ukeducloud/archive/2011/10/05/dynamic-distribution-groups-part-1.aspx
    http://blogs.technet.com/b/educloud/archive/2011/10/06/dynamic-distribution-groups-part-2.aspx
    ¯\_(ツ)_/¯

  • Maybe you are looking for

    • Need advice on JVM GC tuning for server jdk 1.5.0_08

      We are getting full GC , can you suggest optimal GC for the following logs: /usr/java1.5/jdk1.5.0_08/bin/java -server -Xms2048m -Xmx2048m -XX:NewSize=512m -XX:SurvivorRatio=8 -Xss1024k -verbosegc -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC -XX:+Disab

    • Cisco ASA 5510 Content Security bundle

      Hello, please help me  to understand if i buy  the    Cisco ASA 5510 Content Security bundle  for  my  network   found  there is   1 yr subscription for the content security features.  what are  services included in it.  Does   URL blocking and filte

    • Is there a way to run Windows programs on an Ultra SPARC 64-Bit Solaris 10?

      I know the answer is more than likely going to be no, but I just thought I would ask... I have an Sparc Ultra-60 running Solaris 10 64-Bit sitting here that is a web / forum / ftp server, and I would like to run a Telnet BBS program on it that is a W

    • CFolder installation and configuration

      Hi Our client is going to use cFolder functionality. Do I need to do some installation to activate it or we can activate it from SICF -bc/bsp and Test service. For cFolder - do I need to do some configuration? Regards Sandeep

    • Error trying to start video chat with WinXP/AIM 5.9 user

      Trying to get my Dad (Intel iMac, OS 10.4.8) setup to video chat with my uncle (WinXP with AIM 5.9).. When we initiate the chat session here, my uncle receives and accepts the invite.. and we see the message indicating that the Session is starting..