WRITE command gives unexpected value when currency is JPY (japanse yen)

Hi All
I am getting unexpected value for below WRITE command but only when the currency is JPY (Japan Yen)
lv_amount = 1215.40
lv_currency = u2018JPYu2019.
write   lv_amount   to   ev_amount_ext    left-justified    no-gap   NO-GROUPING   currency lv_currency.
Value wrongly gets as ev_amount_ext = 121540 (Decimal takes as full value)
Appreciate your help if you have any idea on this please
Many Thanks
Iver

Hi,
  use like this
  lv_amount = '1215.40'
lv_currency = u2018JPYu2019.
write lv_amount to ev_amount_ext left-justified no-gap NO-GROUPING currency lv_currency.
other wise.
data lv_amounts  type string.
move lv_amount to lv_amounts.
lv_currency = u2018JPYu2019.
write lv_amount to ev_amount_ext left-justified no-gap NO-GROUPING currency lv_currency.

Similar Messages

  • TransactionStateChanged gives wrong value when validation error.

    In my navbar, wich extends the standard one I extended the transactionStateChanged method.
    It seems to work and when the transaction goes dirty I receive a true state; when transaction returns clean I receive false.
    However if a validation fails during commit the transaction remains dirty but I receive a false value (as if commit worked).
    Testing the transaction dirty during that phase gives false.
    How can I solve that issue ?
    Tks
    Tullio

    Repost

  • @@TRANCOUNT gives unexpected value

    -- When I run this SQL, the value of @@TRANCOUNT = 0 both before and after
    -- the insert statement. So, why does the value of 2 get written to the
    -- table? I would expect a 1 to be written to the table, not 2.
    SET
    IMPLICIT_TRANSACTIONS
    OFF
    CREATE
    TABLE #temp
    (col1
    int
    BEGIN
    TRAN
    ROLLBACK
    TRAN
    SELECT @@TRANCOUNT
    -- @@TRANCOUNT is zero at this point
    INSERT
    INTO #temp
    VALUES
    (@@TRANCOUNT);
    SELECT
    @@TRANCOUNT
    -- @@TRANCOUNT is zero at this point
    SELECT
    FROM#temp
    -- Why was 2 written to the table rather than 0?
    DROP
    TABLE #temp
    Emorej

    This is the expected behavior; why are you thinking that the counts should be different?  perhaps the TRAN after the BEGIN statement ( a BEGIN TRAN statement )  is a source of confusion to you?  That TRAN is closed by the ROLLBACK TRAN statement. 
    After the ROLLBACK TRAN the expected @@TRANCOUNT should be zero.
    EDIT:
    The results are similar with a permanent table:
    SET
    IMPLICIT_TRANSACTIONS OFF
    CREATE
    TABLE temp (col1 int
    BEGIN
    TRAN
    ROLLBACK TRAN
    SELECT @@TRANCOUNT [@@trancount]
    -- @@TRANCOUNT is zero at this point
    INSERT INTO temp VALUES (@@TRANCOUNT);
    SELECT @@TRANCOUNT [@@trancount]
    -- @@TRANCOUNT is zero at this point
    SELECT * FROM temp
    -- Why was 2 written to the table rather than 0?
    DROP TABLE temp
    /* -------- Output: --------
    @@trancount
    0
    (1 row(s) affected)
    (1 row(s) affected)
    @@trancount
    0
    (1 row(s) affected)
    col1
    2
    (1 row(s) affected)
    The OP wants to know why 2 is inserted into #temp and not 0Jeff Wharton
    MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt) MCT, MCPD, MCITP, MCDBA
    Blog: Mr. Wharty's Ramblings
    Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker

  • 9.745 * 100 gives an unexpected value

    Hi All,
    When I multily decimal values it give unexpected values.
    9.145* 100 = 914.5 (OK)
    9.245* 100 = 924.49999999999999999999999 (Unexpected ..should be 924.5)
    9.345* 100 = 934.5 (OK)
    9.445* 100 = 944.5 (OK)
    9.745* 100 = 974.49999999999999999999999 (Unexpected ..should be 974.5)
    Could some one please help me to resolve this ?
    Actually i'm using this thing for rounding up for 2 decimal places.
    Any suggetion for a good rounding for 2 decimal places alogorithm.
    Rgds,
    Thanx

    import java.text.*;
    NumberFormat nf = NumberFormat.getInstance();
    nf.setMinimumFractionDigits(2);
    nf.setMaximumFractionDigits(2);
    System.out.println(nf.format(9.145* 100)) ;
    System.out.println(nf.format(9.245* 100)) ;
    System.out.println(nf.format(9.345* 100)) ;
    System.out.println(nf.format(9.445* 100)) ;

  • Close_Form('XXE_F501_SCRIPTING_START'); this is a command in IESCLPKG.PLL WHEN I AM USING THIS COMMAND MY SCRIPTING WINDOW IS GETTING CLOSED BUT THEN ONE ERROR IS COMMING ,KINDLY GIVE ME IDEA TO DEBUG THAT ERROR

    Close_Form('XXE_F501_SCRIPTING_START'); this is a command in IESCLPKG.PLL WHEN I AM USING THIS COMMAND MY SCRIPTING WINDOW IS GETTING CLOSED BUT THEN ONE ERROR IS COMMING ,KINDLY GIVE ME IDEA TO DEBUG THAT ERROR
      if (param_value = 'CLOSE_SCRIPTING_WINDOW') then
              --go_block('VIEW_IB');     
             -- SET_WINDOW_PROPERTY('SCRIPTING_WINDOW', WINDOW_STATE, MINIMIZE);
              --Set_Window_Property('SCRIPTING_WINDOW', VISIBLE, PROPERTY_OFF); 
              --hide_window('SCRIPTING_WINDOW');
               -- GO_BLOCK('CTRL');
               fnd_message.set_string('1');--nimish
               fnd_message.show;--nimish
               --Close_Form('XXE_F501_SCRIPTING_START');  -- Commented for Nova
               fnd_message.set_string('2');--nimish
               fnd_message.show;--nimish
                Scripting_Util.EndScript;
            end if;
    THIS IS THE PLL CODE KINDLY GIVE ME A CLEAR SOLUTION.

    First: you should get a new keyboard. Seems your shift-key is stuck.
    Second: A header of a post is a header and not for a summary of your question
    Third: This is the forum for the tool SQL Developer. Please mark this question as answered and post again in Forms
    Forth: When you expect an answer, the least would be to include the errormessage and your forms version.
    Regards
    Marcus

  • I have a MacBook Pro, I recently bought a microsof word for it but its in spanish, since all my work its done in English, it there any way I an adapt a dictionary so it gives me suggestions when i write?

    I have a MacBook Pro, I recently bought a microsof office for it,  but its in spanish, since all my work its done in English, it there any way I an adapt a dictionary so it gives me suggestions when i write?

    Your Mac already has a Spanish and an English Dictionary.
    May be you only need to select them.
    Open Dictionary.app and under preferences select the languages you need.

  • In Scripts how to print the values in currence format

    Dear abap guru's,
    I am working on Purchase Order Script, copy from the standard script, after that wrote a one perform , in that added one new field to script, but value is printed like this formate : 1000.00, but i want to print 1,000.00 like this currence format. let me know the any solution
    thanks to all
    raj.

    Hi ,
    When you are populating the value in perform instead of assigning the value (using = ) pass it using WRITE TO.
    Like :  WRITE lw_total TO output-value.
    Declare lw_total as currency field.
    Regards,
    Rajitha.

  • How to give level value 'unknown'

    Hi there,
    When creating a dimension with OWB, we get for every level also a row with empty values voor de levels underneath.
    E.g.: Dimension customer: Level Total, level customer group, level customer.
    I get:
    =====================================
    Level_total customer_group customer
    Total NULL NULL
    Total Group1 NULL
    Total Group2 NULL
    =====================================
    This is generated by OWB automatically.
    Anybody any idea how to fill in 'Unknown' instead having it blank? I've looked if i can fill somewhere a property, but could not find.
    Any help is appreciated.
    Thanks
    Sandra

    hii vishal,
    this selct option i already taking from database.
    only i want to give constant value to this field ..
    u mean to write selection-screen  select-option in coding part of query/infoset?
    for this field?
    n give const value in this code/.?

  • IPhoto churns, then says iPhoto quit unexpectedly, even when I've tried restoring it.

    IPhoto has crashed.  It churns then says iPhoto has quit unexpectedly even when I tried the command/option open and restore.  When I have searched for it other places, it says, "iPhoto on locked volume. Reopen when you have read/write access or reopen IP with option dey held down to choose another library." Nothing I have tried has worked.

    Couple of things to try:
    Restart your mac and try launch iPhoto again.
    If that fails:
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a file called ‘iPhoto’Lock.data or similar. Drag it to the Desktop. Make no other changes. Start iPhoto. Does that help?
    If not: Where is your iPhoto Library stored? If it's on an External Disk, what format is that?

  • Unexpected value matrix(1,0,0,1,NaN,NaN) parsing transform attribute Anychart

    We are running Oracle Apex 4.2 and whenever a user creates a new session,  the chart on the home page shows the No Data Found Message. However, when you refresh or submit the page, the correct data and rendering appears. On the initial page load, the only message in the Javascript Console is a warning "Unexpected value matrix(1,0,0,1,NaN,NaN) parsing transform".
    We attempted an on load refresh dynamic action but that does not work as well.
    What could this be?
    Thanks.

    The error:
    gethydrosdi.xsl<Line 22, Column 40>:
    XML-0137: (Error) Attribute 'select' used but not declared.is caused by trying to parse your XSLT stylesheet using an XML parser which has been set to use DTD validation.
    The follow example illustrates a program that causes your error to appear. Given the file 'foo.dtd':
    <!ELEMENT foo EMPTY>and the file 'foo.xml':
    <?xml version="1.0"?>
    <!DOCTYPE foo SYSTEM "foo.dtd">
    <foo/>and the stylesheet 'foo.xsl':
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/>The following Java program illustrates producing your error:
    import oracle.xml.parser.v2.*;
    import java.io.*;
    import org.w3c.dom.*;
    public class ex {
    public static void main(String[] a) throws Throwable {
    DOMParser d = new DOMParser();
    d.setValidationMode(true);
    d.parseDTD(new FileReader("foo.dtd"),"foo");
    d.setDoctype(d.getDoctype());
    d.parse(new FileReader("foo.xml"));
    d.parse(new FileReader("foo.xsl"));
    XMLDocument doc = (XMLDocument)d.getDocument();
    doc.print(System.out);
    }If you run this with the command:
    java exfrom the directory where foo.xml, foo.dtd, and foo.xsl are, you'll get the error:
    Element 'xsl:stylesheet' used but not declared.The following code illustrates the way to avoid the error, by setting validation mode to false before trying to parse the stylesheet:
    import oracle.xml.parser.v2.*;
    import java.io.*;
    import org.w3c.dom.*;
    public class ex {
    public static void main(String[] a) throws Throwable {
    DOMParser d = new DOMParser();
    d.setValidationMode(true);
    d.parseDTD(new FileReader("foo.dtd"),"foo");
    d.setDoctype(d.getDoctype());
    d.parse(new FileReader("foo.xml"));
    // Set the validation mode to false before using
    // the same instance of a DOMParser to parse the stylesheet.
    d.setValidationMode(false);
    d.parse(new FileReader("foo.xsl"));
    XMLDocument doc = (XMLDocument)d.getDocument();
    doc.print(System.out);
    }null

  • Unexpected value type for Item Tag Name ; expected System.Single, received

    Hi,
    I am using PCo 2.1 with MII 12.1 to extract values from some PI tags. When I run the query, I get this error -
    Unexpected value type for Item <Tag Name>; expected System.Single, received System.String[Value = Scan Off]
    Can somebody explain what I need to do to get the correct result?
    Regards,
    Chanti.

    To make the service return "whatever is passed", you have to take a step back and realize that there is a little understanding of XML Schema required.
    When using a complexType, which is defined as a sequence, then you are implying an ordered sequence of elements. Default value for the 'minOccurs' attribute is 1. It's also important to understand that there is a difference between minOccurs=0 and nillable="true".
    nillable="true" just means that the name element can carry a null value. If you want the name element to be optional, then you must use the minOccurs=0 and keep the maxOccurs to it's default value of 1. Using an array is just a bad work around. This is for deserialization (XML to JAVA).
    The second part of you problem is on the serialization (or JAVA to XML). When you have a JAVA Bean, there is no way to make the difference between a member's value being null or not set, so it's impossible to decide if you need to send back a nul (xsi:nil="true"), an empty element <ns1:name/> or nothing.
    That said, if you do want to go the XML route, you can use the dataBinding="false" flag in the different WSA command. Instead of converting XML into JAVA, you will have SOAPElement parameters, where you can do all you want (see WS user's guide [1] for details - chapter 16). Note that you have to make sure that the WSDL (your contract) reflect what you are doing on the wire (format of your messages), so that you do not geopardize your interoperability with other toolkit.
    Note that this only applies to literal message formats (use attribute in WSDL), which is your case.
    Hope this helps,
    Eric
    [1] http://download-west.oracle.com/otn_hosted_doc/ias/preview/web.1013/b14434.pdf

  • Error message after write command

    Hi,
    i have a program that will display an error message after a write command...
    it goes like this: when you click on the button change material it will go to the transaction MM02 and when you saved your changes the value of the table will refresh but when it was refresh and there is no data that would retrieve an error message will pop-up no data selected..but when you click on the check button or enter the previous data still appears which is wrong it should go back to the selection screen...
    can anybody can help me with this?
    thank you...
    regards,
    mae

    hi,
    i am currently in the output table with a valid data and when i change the procurement type from E to F at the button change material(transaction MM02) it should display an error message after saving the changes and then go bak to the selection screen not on the previouse output table...
    how will i do it?
    thank you

  • SUM function resulting WRONG values when some cell contains a string

    A very strange problem that can result in wrong financial calculations and big mistakes...
    If we have SUM function for some range of cells and one of them is treated as text string (I mean it's number in fact but Number is sure it's text string). than SUM function calulates ALL cells except this sell silently without errors and results in wrong result.
    For example we have cells and values
    A B
    =====
    1| 15 USD
    2| 0 USD
    3| 37 USD
    4| 1 USD
    5| 3 USD
    here the function SUM(B1:B5) should provide the result "56 USD"
    But if cell B5 is treated as text string (it can be still displayed as "3 USD" so we don't know it's treated as text string for some reason) than SUM(B1:B5) swill answer "53 USD".
    The problem is we DON'T know cell B5 is treated as text and we are fully sure that we have the correct sum of all 5 cells, in reality we see sum of 4 cells only....
    I think anybody working with financial or other important data can imagine how dangerous this SUM behaviour is.... I encountered several times that when importing data from Excel or by other ways numbers are imported as text strings. So if I have a lot of cells I'm not sure if all those cells are correctly styled or some of them for some unknown reason is treated as text string.
    In Microsoft Excel there is a very right solution. In MS Excel if any cell in the SUM is wrong format the SUM function simply provides error as a result. But in Numbers SUM doesn't tell us about error, it simply provides us with a wrong result!
    With formal logic the way SUM works in Numbers is total idiotism. If I ask to SUM B1:B5 than I definitely ask to sum ALL 5 cells, not 4, not 3, not 6 but 5 definite cells. If Numbers can't sum those exactly those 5 cells the only answer of the function should be ERROR.
    But Apple Numbers answers me some result of summing those cells that it's able to sum. Apple Numbers SUM function is not confused that I asked for SUM of 5 (not 4 or 3) cells and I expect to have this sum as a result.
    In fact Apple uses the right logic when we use another formula. If we use =B1B2+B3+B4B5 and any cell contains text string that we'll have error result the sam as in Microsoft Excel. So in this example Numbers behaves correctly.
    So why SUM (B1:B5) can provide totally different result as =B1B2+B3+B4B5?

    alexb2 wrote:
    So when I set format for my number as my local currency it's displayed as 123 XXX (XXX is my currency but it's not in latin). I see it's not only displayed but also stored as 123 XXX. That's different from Excel that stores only numbers in cells and shows number with prefix or suffix - Numbers storex number with prefix or suffix.
    No, you get this behavior because the original sheet is displaying values as currencies. I assumes that the import process pass it as a string because he doesn't recognize it as a currency value. As far as I know, Numbers stores the currency entries as a pure number and an indicator of the used currency.
    Here is an example.
    (a) the description of the numerical value (I underlined it: 456)
    <sf:number-cell sf:flags="4" sf:value="456" sf:col="1" sf:row="2">
    <sf:cell-style-ref sfa:IDREF="SFTCellStyle-46"/>
    <sf:content-size sfa:w="58.659881591796875" sfa:h="14"/>
    </sf:number-cell>
    (b) the description of the format (I underlined the used currency: XAM)
    <sf:cell-style sfa:ID="SFTCellStyle-46" sf:cell-style-default-line-height="12" sf:parent-ident="tabular-Basic-body-cell-style-id">
    <sf:property-map>
    <sf:SFTCellStylePropertyNumberFormat>
    <sf:number-format sfa:ID="SFTNumberFormat-23" sf:format-type="1" sf:format-string="#,##0.00 &#xA4;;-#,##0.00 &#xA4;" sf:format-decimal-places="2" sf:format-currency-code="XAM" sf:format-negative-style="0" sf:format-show-thousands-separator="true" sf:format-fraction-accuracy="-3" sf:format-use-accounting-style="false"/>
    </sf:SFTCellStylePropertyNumberFormat>
    <sf:SFTCellStylePropertyImplicitFormatType>
    <sf:number sfa:number="256" sfa:type="i"/>
    </sf:SFTCellStylePropertyImplicitFormatType>
    <sf:SFTCellStylePropertyFormatType>
    <sf:number sfa:number="257" sfa:type="i"/>
    </sf:SFTCellStylePropertyFormatType>
    </sf:property-map>
    </sf:cell-style>
    Of course, if the original currency string is not recognized, it can't be described as such a feature and the value is treated as a simple string.
    So may be at some moment my 123 XXX is treated like string value.
    Yes, find and replace is a nice tool when importing data - thanks for the tip. the last problem is with already Numbers files that were imported not today (or even createde as Numbers file) where some cell becomes string value after some editing.
    Here again, if you edit a currency string and replace it to a not recognized one, the result will be logically a string.
    There is an other way to give this result:
    copy a value from a cell formatted as XAM currency (just an example)
    paste it in a cell whose format is currency Euro (once again it's just an example).
    The result will be a string.
    The culprit is not the program, it's the user.
    I had several times this situation and last time I found error only because I have my budget in 2 programs - in Numbers and in another special budgeting program. As each program has advantages I have in fact 2 instances of the same budget.
    And when I changed some string in Numbers and another program I noticed the sum is different. I was sure it's another program somewhere buggy but noticed than Numbers simply ignores one of the budget strings and sums without it... In fact it was even not the string I changed, I remember I changed the buggy string about a week ago but I haven't compared budgets that time so my budget had a mistake for some time till I noticed it. If I used only Numbers without copy of budget in another program may be even today I won't notice the mistake.
    The same situation happened not once.
    I think that the choice made by Apple for SUM() is correct. You feel that it is wrong. It's useless to debate more, we will not change the behavior of the function.
    I try to give a workaround.
    The neater one is to add columns as I described in my first response.
    The given formula will clearly flag cells which aren't containing numerical values. If you move the SUM from the original range to the new one, the oddities will be flagged automatically.
    Here is an alternate workaround:
    The currency is XAM.
    In B4 I introduced a typo so the value is no longer a numerical one.
    Given that, the sum in the footer doesn't count the 34 (which is the normal behavior).
    In column C1 I entered =1*B
    which flagged the bad cell.
    The alternate is to use an auxiliary table like aux1
    In A1 I entered:
    =IF(ISERROR(INDIRECT(ADDRESS(ROW(),COLUMN(),,,"main"))),"",IF(ISBLANK(INDIRECT(A DDRESS(ROW(),COLUMN(),,,"main"))),"",1*INDIRECT(ADDRESS(ROW(),COLUMN(),,,"main") )))
    Exactly the same formula in B1, C1, D1, …
    So, the table will automatically grab the contents of the main table (just take care to insert more columns in aux1 than in main)
    In the footer row of aux1, insert a sum formula for columns where there is required.
    Looking at this footer will flag columns where a value may be "wrong" so, it will be necessary (but easy) to scan the column's content to find the red triangle(s).
    Yvan KOENIG (from FRANCE lundi 13 octobre 2008 13:27:40)

  • Convert charter value to currency value.

    Hi Experts,
    I want to convert character value to currency value.
    please see example my issue:
    my value data : x type char15,
                              y type p decimal 2.
    x = '266,456.98'.
    but when i move x to y . it is giving dump.
    Please help me on this. how can pass x to y.
    thanks

    Hi
    To convert charcter to currency type you can move required value from source variable to target variable defined as  currency.
    However the charcter value may only contain number and decimal separatorm, without comma.
    Please, check sample below:
    DATA:
         x     TYPE char15,
         y(15) TYPE P DECIMALS 2.
    x = '266456.98'.
    y = x.
    WRITE y.
    Kind regards
    Carlos Machado

  • Triggering write commands

    Hi,
    I currently have a load cell that I have interfaced with a RS232 port. The load cell is sending string data which I am collecting using the I/O Instrument Assist manager in LabView. I am collecting that data, converting to dynamic type and writing to a LabView meaurement file. I have this setup in a while loop to keep collecting data. I am also writing string data via another RS232 port to a stepper motor driver. I am currently just doing testing of the driver/motor using the LabView example code Basic_read_and_write.vi. What I basically wish to do is that when the load cell reading reaches a target value, I send a diferrent string to the stepper motor driver. The initial write string to the drive cell is "M+", which makes the motor move forward at constant velocity. The motor will apply a force on the load cell. When this force reaches a target value, I want the write string to the driver to change to "M-", which moves the stepper motor backwards at constant velocity.
    I was thinking of using the case structure function and having the "true" case as the move forwatd string and the "false" case as the move backward string. I was then going to use the function in the string palette that outputs a boolean "true" or "false" depending on the value of the input string, where the "true" or "false" output is wired to the case structure.
    Does anyone have some better suggestions than what I have thought of? This seams a bit convuluted. Can someone see a modification of the 2 port read/write example. Any help would be really appreciated.
    Cheers,
    Dave

    Hello Dave,
    This sounds like the exact programming logic you should be using. Case structures are the perfect tool for decision making for a continuous process. You basically want to execute different code (write commands) based upon input values from earlier code (read commands). This is exactly what case structures are used for.
    Thank you and good luck,
    Michael Chaney
    Systems Engineer - TestStand
    National Instruments

Maybe you are looking for