Problem with Number conversion!

Hi all
I am reading data from a msSQL Database. One value is a decimal format 9(10,3)(means 10 digits in total (including the ',' ; 3 decimal afer the comma)
I am receiving for instance the value 567.200 from the DB.
To do an RFC to a SAP System I have to convert with FormatNum to 567,200
This works well when I am using ######.### and ',' in the FormatNum function of the mapping
Later on, I have to convert it back to write the value into a so call history table. If I am now using ######,### and '.' in the FormatNum function I am getting every time a java exception!!
If you suggest me to use an own java function please give me a concret code, because I am not a programmer. Only basics ;->
Regards Oliver

java.lang.NumberFormatException: For input string: "123,567"
An arithmetic function requires a Java conform number.
Regards
Stefan

Similar Messages

  • Problem with type conversion and primary key during row fetch

    [Note, this error occurs in Oracle XE, APEX 2.1.0.00.39]
    I have been having a problem with Automatic Row Fetch:
    ORA-01460: unimplemented or unreasonable conversion requested
    So in an effort to resolve this, I created a PL/SQL process with the query below and was able to isolate the same error. The problem seems to come from one of the primary keys being a "number" type (APP_ID). The error occurs on the line:
    where u.app_id=:P5_APP_ID
    I have tried the following variations on this line in an effort to resolve this, but all generate the same error:
    1) where to_char(u.app_id) = :P5_APP_ID
    2) where u.app_id = to_number(:P5_APP_ID)
    3) where to_char(u.app_id) = to_char(:P5_APP_ID)
    I've also tried the laternate syntax "&__." and "#__#", but these don't function in the Source field and show up as syntax errors.
    Any suggestions are welcome.
    begin
    for r in (
    select app_name, apptype, appcreator, appurl
    from application_users u, application_info i
    where u.app_id=:P5_APP_ID
    and i.app_id=u.app_id
    and u.username=:P5_USERNAME)
    loop
    begin
    :P5_APP_NAME := r.app_name;
    :P5_APPURL := r.appurl;
    exception
    when others then
    raise_application_error(-20000,'In Loop Failure',true);
    end;
    end loop;
    exception
    when others then
    raise_application_error(-20000,'Out of Loop Failure',true);
    end;
    Thanks in advance,
    Barney

    I found a prior post referencing a similar issue and it was solved by using the "v(__)" syntax. This did resolve my issue, however, I have a quick follow-on which I'm hoping someone can answer quickly...
    Since the "v(__)" syntax won't work for the Automatic Row Fetch (at least to the best of my knowledge), I have to do a manual process. However, the manual query as shown above doesn't actually populate any of the form values through the bind variables. They all remain at their cached values from prior data entry on the form.
    Is using the bind variables for assignment incorrect, or is there something that must be done to get the updates to show up in the form (ordering of processes, etc.).
    My manual process is running in the Load: Before Header state so I would have expected it to update all of the fields.
    Thanks in advance,
    Barney

  • FCC: Problems with content conversion

    Dear all,
    I have a receiver FTP adapter with content conversion. In RWB I'm facing following error message:
    Adapter Framework caught exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'FCOTUPI')', probably configuration error in file adapter (XML parser error)'
    The field with value FCOTUPI could be found in POS recordset. I double check the length of columns but couldn't find
    an error.
    CC configuration:
    Recordset structure: HEADER,POS,SUBPOS
    HEADER.fieldFixedLengths = 8,4,8
    POS.fieldFixedLengths = 8,20,15,3
    SUBPOS.fieldFixedLengths = 5,5
    HEADER.fixedLengthTooShortHandling = Cut
    POS.fixedLengthTooShortHandling = Cut
    SUBPOS.fixedLengthTooShortHandling = Cut
    As you can see by the names, I am using as XML to convert a structure with subnodes. In documentation it said
    that it is not allowed, but in some threads I found the information that structure could be processed.
    Any ideas how to solve this problem?
    Thanks
    Chris

    Dear Amit,
    thanks for your answer. I already checked this blog, but hoped for other solutions.
    My problem: I tried to map my hierarchical structure to a flat structure.
    Source
    Struc1 (0..unbounded)
    -Item1.1
    -Struc2 (0..unbounded)
    --Item 2.1
    --Struc3 (0..unbounded)
    ---Item3.1
    Target:
    Struc1 (0..unbounded)
    -Item1.1
    Struc2 (0..unbounded)
    -Item 2.1
    Struc3 (0..unbounded)
    -Item3.1
    But if e.g. the Struc2 appears two time it will be created two time in target structure before
    the Struc3 is created. But ths Struc3 belongs to Struc2 and should be created in flat file under
    Struc2 directly.
    How can we created a flat structure like this
    Struc1
    Struc2
    Struc3
    Struc3
    Struc2
    Struc3
    Thanks
    Chris

  • Problem with number-fields in csv-Export-Files

    Hello,
    the export with the csv option works fine and our users like this export-function.
    But Unfortunatelly we have some problems with the exported number fields. In my region I defined the field with a format mask.
    On the screen it looks fine but when I change to csv the values are exported as text-values.
    So in excel the columns are shown with left alignment.
    When I try to change the format in excel to number, excel change the column type but not the value inside.
    On this account we cannot use the sum-function and the display of the value is wrong (alignment).
    Which possibilities do I have to resolve that problem?
    Thanks in advance
    Ulrike

    I have the same issue - Anyone any ideas on how to export currency values in a report to excel as numbers?

  • Problem with Color conversion ADM_Color to  AI_Color

    Hello friends,
    I think this is going to be the first post in this "Illustrator SDK Forum".
    I am having problem with 'Setting Art Work Colors'.
    I am trying to get the color value from the user through a ADM dialogue window, using the function
    sADMBasic->ChooseColor();
    The function is returning color in
    ADMRGBColor structure, whose members (
    red, green, blue) are of the type
    'short'.
    Now, I want to print a rectangular box art filled with that 'user selected color'.
    But the color I have with me is in the
    ADMRGBColor(each member of type 'short') and to draw that on a illustrator file, I need the type
    'AIThreeColrStyle'(each member is of the type AIReal).
    I had no idea how to convert
    ADMRGBColor to
    AIThreeColorStyle, but after lots of 'trial and errors', I arrived at this 'crude' solution.
    ADMRGBColor value was in the range
    0-65535 and
    AIThreeColorStyle was in the range
    0-1
    aiPathStyle.fill.color.c.rgb.red = ((float)admColor.red)/65535;
    This conversion was working fine on Windows, but on Mac its giving weird results. Can some one tell me the proper solution for this conversion problem?
    Thanking you,
    Vijoy~
    And thank you Adobe for givig us this "Illustrator SDK Forum".
    Forums Operations "Why there is no SDK forum for Illustrator?" 12/13/04 4:21pm

    The code above seems to work for me. I get the proper values in the rgb fields of the AIPathStyle struct. Are you sure you are filling in the remaining values in the struct (like fillPaint, overprint, etc.) with appropriate values?
    Hope that helps,
    -Frank

  • Problem with "Number Generation Program'

    Can someone please help me with my Number Generation Program. I am new to java and I am at a sticking point. I want to develop a program that will do the following:
    1. Accept a set of numbers (6 numbers per set).
    2. Remove duplicate numbers.
    3. Generate unique set of numbers (6 numbers per set) using only the numbers that were originally entered.
    example: -> numbers entered: 12 33 45 51 7 10
    5 34 33 8 11 21
    5 6 13 9 10 51
    duplicate numbers removed: -> unique numbers
    12 33 45 51 7 10
    5 34 8 11 21 6
    13 9
    Final result: -> generate unique set of numbers only using the above unique 14 numbers
    5 6 7 8 9 10
    5 6 7 8 9 11
    5 6 7 8 9 12
    5 6 7 8 9 13

    I am having a problem with the following:
    1. accepting the numbers
    2. removing duplicate numbers
    3. generating the number sequence sets
    As I mentioned earlier, I am new to java. I just completed my first java class and I wanted to develop this program.

  • Problem with number datatype dimension in BIB

    Hi,
    I've got a problem. When I create dimension with number datatype and I assign it to my cube, I cannot use my cube with my BIB presentation object - such as Crosstab. Is this possible only with varchar dimensions?

    It should work, but it would be helpful if you could specify more information, for example which errormessage you are seeing and where.

  • Problems with Quicktime Conversion, FCE2

    I am having problems using quicktime conversion. I want to export a 4 minute sequence into uncompressed AVI.
    Each time i do this i get an almost 4 gb file that is only the first 18 seconds of the sequence. (when i export to WMV I get the same problem, except its 30 seconds)
    I can export using compressed AVIs (such as DV-PAL), but the quality is not too good.
    I am simply trying to get the best quality and most-universally useable file to write out onto a data DVD.
    Any ideas/suggestions anyone?
    I have am using a PowerPC G4 laptop, FCE2, OSX tiger....
    Further problems: when i write this movie out to DVD with iDVD, and when it is in NTSC setting, black white lines appear on top of the black background parts in the movie, rather sporadically. I have written it out 3 or 4 times, and each time the frequency of the lines is different, but each DVD is unusable. In PAL setting this doesnt happen, but of course the quality is diminished, as the orig. footage was taken on an NTSC camera. I am in Europe, so this PAL/NTSC conversion thing is a neverending problem.... Is this an iDVD problem or a problem with my laptop's burner?
    Daniel

    Dear Tom,
    I appreciate you replying to my post, and am sorry for not getting back to you sooner, but i never received an email notification of a reply.
    The Nattress solution seems like a good route - is this compatible with FC Express 2?
    The purpose of this AVI export is to have the highest possible quality file in data form, which the (PC using) client will then be able to write out onto DVD, convert/edit himself, etc. I have written out the self-contained QuicktimeMovie data file for him, but he is unable to open that. When i write out the AVI file, it is over 4 times as big as the QTmovie file and only plays for the first 18 seconds.
    I am exporting to my internal harddrive (laptop).
    The end goal is to get this file eventually onto a PAL-BETA video. This is where the NTSC-PAL conversion problem comes in, and maybe the Nattress program could be the solution (although it initially seems a bit complicated to me).
    Another important part of this problem, is that iDVD writes out the original NTSC file with funny white lines going across the black backgrounds - so I cant write the best quality NTSC video onto DVD properly either. Each time I write it out, the frequency of these white lines is different. I dont know if this is a related problem, a Final Cut Express export problem, an iDVD problem, or a problem with my DVD writer. (I made the movie, exported it self-contained QTmov, imported it into a new file, did some color-correction, and exported the new final version. - maybe the problem stems from within this simple process? ? ? )
    (Regarding the WMV export: this is not so important, lets not deal with this now. I have flip4mac, downloaded free. My experience is that it doesnt really work.)
    So... any ideas or suggestions?
    i appreciate your help,
    Daniel

  • Problem with date conversion

    I have read some topics about it, but still have problem :-(((
    When I insert data, I don't have any problem with a date. It looks like this:
         Statement stmt = con.createStatement();
              stmt.executeUpdate("BEGIN " +
                        "INSERT INTO employee VALUES (" +
                        "employee_t(idnum.nextval,'John','Double'," +
                        "to_date('21.01.1975','DD.MM.YYYY'), 20000))" +
                        "END;"); Now I am trying to update, and get the error:
      String query = "BEGIN UPDATE employee SET " +
    "first_name ='"+getJtxtfldFirst_name().getText()+"', "+
    "last_name = '"+getJtxtfldLast_name().getText()+"', "+
    "date_of_birth = to_date('1982-03-11','YYYY-MM-DD'), "+
                                     "END; ";
    Statement stmt = con.createStatement();
                   int rs = stmt.executeUpdate(query);
                   stmt.close();The error:
    java.sql.SQLException: ORA-06550: line 1, column 149:
    PLS-00338: unable to resolve "DATE_OF_BIRTH" as a column or row expression
    ORA-06550: line 1, column 7:
    PL/SQL: SQL Statement ignoredI have tried different variants, tried to parse... Just can't find where I make the error.
    If I comment this line, with a date, there are no any exceptions.
    This code in sqlplus works fine.

    And besides that, you don't need to wrap your SQL
    with the PL/SQL "BEGIN" and "END" tags; why invoke
    the PL/SQL parser if you're not using any PL/SQL
    features?
    I suspect your underlying problem is that the column
    isn't actually named "date_of_birth".You are quete right. It was my faulf. There was a field date_of_birthday. The oracle could say it more preciesly.
    With the statement it works fine also.
    Thank you for the answer and sorry for disturbing, I have forgotten to update the database and was sure I copied the new files... But updated the old one.

  • Dynamic file name in receiver - empty line problem with content conversion

    Hi,
    I do a variable substitution from a filename node in my xml structure. Because I don't want to have the the filename in my flatfile i supress the output with the conversion parameters:
    filename.fixedLengthTooShortHandling = Cut
    filename.fieldFixedLengths = 0
    It's working but: the adapter is puting an empty line at the end of the file. If I even put the filename node at the top of the xml struture it generates the empty line at the top of the flatfile.
    Anyone has an idea? is there an other way to set the filename or how can I supress this empty line( I have to) ?
    Regrads
    J.

    Jorg,
    Actually speaking we cannot get rid of this with XI. You have to write a OS script to remove this.
    Else
    you add one more parameter as .endSeparator as backspace ie., 0x08. It will definitely remove the line but I think it is putting a square box at the end of previous line. Please check by giving this and let us know the updates.
    Regards,
    ---Satish

  • Problem with W995 conversation

    Hi, Im a new W995 user. Im encountering a very strange problem. i could not reply to my message through conversation. it doesnt get delivered because the number that got saved is different from the actual one. however i am able to reply through inbox.its very strange. can any1 help me plz
    Solved!
    Go to Solution.

    http://www.sonyericsson.com/cws/support/mobilephones/downloads/subject/updateservice/w995?cc=lk&lc=e... Use the SE update application directly to re-install the software, instead of going through PC companion.Download it to your PC, run it, open it and follow the on-screen instructrions on how and when to connect the phone; the phone has to be switched off for this process in order to enable flash mode.When the application tells you that you already have the latest software, then select the "install" option at the bottom right of the page, which means to re-install the software.As for the apps that you mentioned, these are pre-loaded and so will be re-installed with the rest of the software.Let me know how you get on.

  • Aspect ratio problem with Quicktime Conversion from FCE HD 3.5

    I have a FCE 3.5 HDV project (16:9 aspect ratio) which I am trying to export using Quicktime Conversion for eventual web-streaming. I have tried various settings including "maintain aspect ratio" and the "letterbox" options. After every multi-hour attempt, the end result is just what I need, except the aspect ratio is always 4:3 and vertically squeezed.
    What settings should I use for a small to medium sized version of my movie for streaming on a website, but in the correct aspect ratio? I'd prefer a 16:9 Quicktime frame, or at least a 4:3 Quicktime frame with black bars.

    I too have been having some problems, same software. Export to iPod completely ignores the intended aspect ratio and is non-adjustable and squeezes the footage. It looks fine on the canvas but gets messed up on export. A 4:3 video that should be 640x480 ends up being 640x426, and a 16:9 video that should be 640x360 looks to be getting 640x426 as well.
    Currently, my work-around is to export to DV file, then export to iPod. Being a double encoding, it is quite wasteful in terms of time and processing power. Is there something else I can do?

  • Problem with file conversion from version 9.2.2 to version 10.1.0.71

    Hello everyone.
    I have a problem. In my database, i have a lot of artwork done with indesign 9.2.2. Since a while now I upgraded indesign and now I have the latest version 10.1.0.71 but I can't open my indesign artwork made with indesign 9.2.2.
    When I try, a dialog box appear and says : " La conversion a échoué : les données du fichier ne correspondent pas aux données attendues".
    What should I do ?
    Thank you in advance

    Hi,
    Ideally all files created in 9.2.2 should open fine in versions greater than itself.
    Did you happen to have some 3rd party plugin in 9.2.2 which is missing in 10.1 ? That can be one of the reasons for such errors.
    Are the files still opening in version 9.2.2? (assuming you still have 9.2.2)
    If there are no 3rd party plugins involved you can share the file with us at [email protected] and we can have a look and figure out the cause of the problem.
    Regards
    Javed

  • Problem with number field

    Hi,
    I'm using ADO (Oracle Provider for OLEDB) to connect Oracle 9. If the type of any field in table is Number(9) and I open query with this field, all negative values are displayed as positive values. For example: If I write -1 value to this field and then post the dataSet (Delphi7 - TADOQuery) value is refreshed to 1. Real value in database is -1.
    Could anybody help me with this problem?
    Regards Jan.

    Once again :)
    I finally foud out that Deplhi does support (varDecimal), but delphi TCustomADODataSet (ADO recordSet wrapper) component incorrecltly treats such field type. It regards Decimal(<9,0) as integer (TIntegerField) but when it gets value from underlying ADO recordset it expects integer variant. So it's delphi problem. I hat to fix this problem in source code of this component.
    Regards Jan.

  • Problems with content conversion in File Receiver Adapter

    Hello, everybody.
        I have a RFC-to-File scenario with file content conversion. Everything is working well except that my file is generated with 2 blank lines at the top of it.
        The function module has 3 importing parameters (1 optional) and the file content comes from an internal table.
        Is it caused by the function module parameters? If yes, how can I avoid this, once I really need them? If not, does anyone have any idea?
        Thanks a lot,
        Marcos.

    Hi, Raj.
    Here they are the function module parameters:
    Importing parameters:
             ICARRIER     TYPE     CHAR1
             FPATH     TYPE     IPATH
             IFILE     LIKE     VBAK-BNAME
    Tables
             IYLASDS_RECPT     LIKE     YLASDS_RECPT
    The structure YLASDS_RECPT has only one field with a single line of the file. I am using this field as the <i>Recordset Name</i> inside file adpater parameters.
    There is no mapping between RFC and FTP messages.
    Thanks a lot,
    Marcos.

Maybe you are looking for

  • ITunes post-upgrade: "Required files are missing"

    I just went through the process to install the latest upgrade, but there was some sort of problem with the installer. Rather than installing the upgrade, it apparently just deleted important files and then failed before replacing them. Now when I try

  • Export Metadata for Deski Report failed with Metadata Integrator

    Hi everybody, We installed 2 weeks ago BusinessObject Data Integrator 3.0. As we also have BusinessObject XI 3.0, we have installed the component Metadata Integrator on our BOXI 3.0 server. We configured it successfully and the Metadata Integrator pr

  • Changing background dump dest , does not work

    Hi, i was asked to change the background dump dest location on RAC (10.2.0.5) environment.i just use below command to do this alter system set background_dump_dest='/newlocation' scope=both; its successfully completed. but now new alerts should be wr

  • Excise invoice from proforma

    Hi i have created a proforma invoice and with reference to proforma i am trying to create excise invoice but in J1iin the excise values are not flowing regards

  • Multi - language dvd on appl tv

    Dear Group do you know if it is possible to select differents languages on movies stored on apple TV? Thanks