POLISH CURRENCY PROBLEM

Hi ^^
POLISH CURRENCY FORMAT(099.999.999,00) IS LIKE THIS
CHARACTER
177,96
870,80
1560,00
AND I WANT CONVERSION IT
NUMBER
CHARACTER
177.96
870.80
1560.00
I did like this it , it has no error ~
SELECT TO_NUMBER(REPLACE ( NVL(ATTRIBUTE2,'0'), ',' , '.'))
FROM AP_INVOICE_DISTRIBUTIONS_ALL
WHERE LINE_TYPE_LOOKUP_CODE = 'TAX' ;
but SUM it error occured !!
SELECT SUM( TO_NUMBER(REPLACE ( NVL(ATTRIBUTE2,'0'), ',' , '.')) )
FROM AP_INVOICE_DISTRIBUTIONS_ALL
WHERE LINE_TYPE_LOOKUP_CODE = 'TAX' ;
ORA-01722:invalid number
HELP ME ^^ !!
Message was edited by:
jake

So you have the numbers in a varchar2 column ?
SQL> create table ap_invoice_distributions_all
  2  as
  3  select '177.96' attribute2, 'TAX' line_type_lookup_code from dual union all
  4  select '870.80', 'TAX' from dual union all
  5  select null, 'TAX' from dual union all
  6  select '1560.00', 'TAX' from dual
  7  /
Tabel is aangemaakt.
SQL> SELECT SUM( TO_NUMBER(REPLACE ( NVL(ATTRIBUTE2,'0'), ',' , '.')) )
  2  FROM AP_INVOICE_DISTRIBUTIONS_ALL
  3  WHERE LINE_TYPE_LOOKUP_CODE = 'TAX'
  4  /
SELECT SUM( TO_NUMBER(REPLACE ( NVL(ATTRIBUTE2,'0'), ',' , '.')) )
FOUT in regel 1:
.ORA-01722: invalid number
SQL> select to_number(attribute2,'9999D00','nls_numeric_characters=.,')
  2    from ap_invoice_distributions_all
  3   where line_type_lookup_code = 'TAX'
  4  /
TO_NUMBER(ATTRIBUTE2,'9999D00','NLS_NUMERIC_CHARACTERS=.,')
                                                     177,96
                                                      870,8
                                                       1560
4 rijen zijn geselecteerd.
SQL> select to_char(sum(to_number(attribute2,'9999D00','nls_numeric_characters=.,')),'9999D00','nls_numeric_characters=.,') attribute2
  2    from ap_invoice_distributions_all
  3   where line_type_lookup_code = 'TAX'
  4  /
ATTRIBUT
2608.76
1 rij is geselecteerd.
SQL> select to_char(sum(to_number(attribute2,'9999D00','nls_numeric_characters=.,')),'9999D00','nls_numeric_characters=,.') attribute2
  2    from ap_invoice_distributions_all
  3   where line_type_lookup_code = 'TAX'
  4  /
ATTRIBUT
2608,76
1 rij is geselecteerd.Regards,
Rob.

Similar Messages

  • Currency problem in accounts receivables ageing report

    when i generated accounts receivables ageing report i got ageing in UAE DIRHAMS only and  i have receivables in two different currencies in UAE DIRHAMS AND IN EURO , i want to get all receivables in the ageing report in euro only but i couldn't please how to solve this currency problem
    thanks in advance

    Hi
    Please refer this transaction code for account receivable ageing report
    S_ALR_87012168 - Due Date Analysis for Open Items
    Regards
    Praveen

  • Purchase order currency problem

    Hi,
    I created the PO and i see the details in BBP_PD, the net price of the PO is 378,90 EUR for the same PO if i seethe detail in  ITS or portal screen it shows 37,890  EUR is dislpayed.
    What would be the problem??
    Plz help me on this..
    Thanks....

    check BBP_PDIGP ur table ?for your po..
    what ois the value here it must be sort it out. good catch
    check your currency settings in spro too..
    sap web appplication server
    general seetings
    set decimal places for currencies
    very carefull.. check with finance guys...........
    are you dev server..
    br
    muthu

  • Polish encoding problem

    Hi,
    I use MySQL db in my JSF application. I display data from database in the form's components. All my data added to db. have encoding 8859-2 (latin2). The page encoding: UTF-8 or 8859-2 makes no difference in my case. Everything works fine - polish characters are displayed correctly. The problem arised when I tried to write to db some data (event the same data displayed in the form - without change) with polish characters for instance in JSF <h:inputTextarea>. When I save data with polish characters, it looks like the correct content were written to db - Strings containing text are proper being passed to executeQuery.Unfortunately when I read it back, polish characters are changed to '?'. It looks like there is something wrong with my db, but I am asking to be sure if that is the problem. It's strange to me, cause string taken from db and string written to db seams to be correct in the frist time. But reading again shows '?' characters problem.
    I have tried to do 3 selects -by executeQuery (to set the proper encoding) from application side before reading/writing any data:
    "SET NAMES latin2";
    "SET CHARACTER SET latin2";
    "SET COLLATION_CONNECTION='latin2_general_ci'";
    It works with console (I use it always before adding db's content) but not with my app:/ - still the same problem.
    Does anybody know from what the problem comes?
    Thanks for reply,
    Tom

    So you have the numbers in a varchar2 column ?
    SQL> create table ap_invoice_distributions_all
      2  as
      3  select '177.96' attribute2, 'TAX' line_type_lookup_code from dual union all
      4  select '870.80', 'TAX' from dual union all
      5  select null, 'TAX' from dual union all
      6  select '1560.00', 'TAX' from dual
      7  /
    Tabel is aangemaakt.
    SQL> SELECT SUM( TO_NUMBER(REPLACE ( NVL(ATTRIBUTE2,'0'), ',' , '.')) )
      2  FROM AP_INVOICE_DISTRIBUTIONS_ALL
      3  WHERE LINE_TYPE_LOOKUP_CODE = 'TAX'
      4  /
    SELECT SUM( TO_NUMBER(REPLACE ( NVL(ATTRIBUTE2,'0'), ',' , '.')) )
    FOUT in regel 1:
    .ORA-01722: invalid number
    SQL> select to_number(attribute2,'9999D00','nls_numeric_characters=.,')
      2    from ap_invoice_distributions_all
      3   where line_type_lookup_code = 'TAX'
      4  /
    TO_NUMBER(ATTRIBUTE2,'9999D00','NLS_NUMERIC_CHARACTERS=.,')
                                                         177,96
                                                          870,8
                                                           1560
    4 rijen zijn geselecteerd.
    SQL> select to_char(sum(to_number(attribute2,'9999D00','nls_numeric_characters=.,')),'9999D00','nls_numeric_characters=.,') attribute2
      2    from ap_invoice_distributions_all
      3   where line_type_lookup_code = 'TAX'
      4  /
    ATTRIBUT
    2608.76
    1 rij is geselecteerd.
    SQL> select to_char(sum(to_number(attribute2,'9999D00','nls_numeric_characters=.,')),'9999D00','nls_numeric_characters=,.') attribute2
      2    from ap_invoice_distributions_all
      3   where line_type_lookup_code = 'TAX'
      4  /
    ATTRIBUT
    2608,76
    1 rij is geselecteerd.Regards,
    Rob.

  • Problem in BDC for F-02 -- Currency Problem

    Dear Experts,
    I have written a BDC for F-02 to upload the opening balances of vendors.
    Problem is , this BDC is for Libya country,  where decimal places is 3.
    Now when i run my BDC, if the amount is  22.54, it will upload it as 22.540, which is ok, but if the amount is 22.543, it upload it as 22.540 instead of 22.543.
    can one provide some guidance in this....
    Regards,
    Maverick

    Hi
    The output format of an amonut is managed by the currency, you shouldn't have any particular problem,
    In BDC program the field to be used to transfer the amount has to be char, so probably the easier solution is to write it into the bdc field in according to the currency:
    WRITE <AMOUNT> CURRENCY <CUURENCY> TO <BDC FIELD>.
    Max

  • Currency problem

    Hi,
    Presently we have 20 company codes in our group recently 2 of them had sold out. But as per mutual understanding they still use SAP under the same data base.
    But now the problem is currency. Before we at Singapore maintaining currency rates for the entire group, now this 2 companies want to maintain currency themselves .
    We know that that currency is at global settings and not at company code level. Please advise me how we can do this setting.
    Out of this 2 company codes 1 is USD and other is NTD (New Taiwan Dollar)

    Hi Satish
    It is not recommended to change currency as it will affect all your transactions and documents.
    SAP doesn't allow you to change the company code currency once postings have been made to that company code. It doesn't matter even if the balance is zero. This is to ensure that there is no discrepancy between data that has already been posted in the company code.
    One possible solution would be to create a new company code and deactivate the existing one or change the currency but you will have to apply many notes to solve the problem.
    Rgds,
    Zub

  • Currency Problem CO-FI Integration

    Dear Specialists,
    we have a quite complex problem, which occurs in one of our company codes. Maybe someone can help me out with a good idea.
    We use CO-FI integration.
    1. FI Posting with CO-Assignment (1. January 2010)
    Currencies: Transaction: GBP, Home: CAD, Global Company: USD
    2. Allocation in CO with ends with a functional area change on the last step (that means back posting to FI) (31. January 2010)
    Currencies: Transaction: GBP (possible), Home: CAD (possible), CO Area: EUR
    3. The CO-FI integration will post the amount in FI. During postings in CO I loose the Global Company currency, that leads to currency differences within the global company currency USD.
    Any ideas how to get the information of the global company currency into CO?
    I'm open for any suggestions.
    Kind Regards
    Philip

    Hi,
    In case of new GL, the CO-FI integration posts the amount to FI provided you have made the necassary configuration.
    The Profit centre accounting is an integral part of new GL now. Any adjustments made on the cost centres through allocations will flow to FI if your CO-FI real time integration is active and the necessary configurations are maintained properly. Basically your allocations will change the value flows on the profit centres and these need to be passed back to FI  as PCA is par
    Thanks
    Aravind

  • BTHF currency problem

    In Bank Statement Processing I do not find a way to match lines with documents, or to make an external reconciliation if the bank statement line and the BP currencies are differents.
    When I am choosing such a customer, its documents do not appear.
    No problem to make a payment in local currency against a document in Foreign currency, but such outgoing payments remain "invisible" when trying to match them with the bank Statement.
    Is that really a bug, or am I missing something? It seems to be making BTHF unusable for users sending (or receiving) foreign currency payments from (to) their local curency bank account.

    Problem solved.
    Format definition is to be done to fill not only the CreditAmountLC / DebitAmountLC fields but also the CreditAmountFC / DebitAmountFC and CreditCurrency fields.

  • Korean Currency problem

    Hi All,
        I am having peculiar problem with Korean currency.we use Fd32 for customer credit management.while we give the credit limit like ex : 50,000,000 KRW it stored in the table KNKK-KLIMK the value is  500,000.00
    when i fetch the value from the table it always give two decimals short.how to rectify this issue.The Currency value which have KRW having this problem

    Hi JJ
    U should check the table TCURX when it's defined how many decimals a currency can have.
    If you can't find the currency there, it means it can have 2 decimals.
    Now if you find KRW in TCURX u should see it's defined without decimal
    The most fields with an amount have 2 decimals (like KNKK-KLIMK) and SAP always tries to use all available space.
    If you have a currency without decimals and you've to store in a field with 2 decimals, that means the decimals would be useless, in this situation the system will try to use them, how? Dividing the amount:
    So if you have 50.000.010 KRW, the system before saving it, divide it for 100, that's means it stored 500.000,10 in this way it can use the decimals of the field.
    In a ABAP LIST you need to use the statamanent:
    WRITE KNKK-KLIMK CURRENCY <CURRENCY>
    in order to see the right value
    In a dialog screen u need to indicate the refernce currency field  in order to see and store the value in the correct way.
    Max

  • Virtual Key Figure ( Currency Problem)

    Hi All,
    I am facing one problem in virtual key figure using BADI. Need your help...
    Scenario: I have a DSO with all many fields. Requirement is to add one more VKF in DSO to get specific period balance of a GL from 0FIGL_O10 DSO and then display it as a column in Bex report. Added VKF is of type amount and unit/currency 0CURRENCY.
    Required Report Format:
    Material --- Col1 u2013 Col2 u2013 Col3(VKF)
    M1--$4, 00-$140, 00u2014<Balance form 0FIGL_O10 for a period>
    Work done so far:
    I have added a virtual key figure ZVKF_BAL in my ZSD_O06 of type amount unit/currency as 0CURRENCY. In RSR_OLAP_BADI I have added a new implementation ZVAR_IMPL.
    In class ZCL_IM_VAR_IMPL there are total three attributes.
    P_KYF_ZVKF_GL u2013 Virtual key figure
    P_CHA_0FISCPER u2013 Period is from ZSD_O06 for which we have to get the balance of a fixed GL account from 0FIGL_O10.
    Given is the code added in define method:
    DATA: l_s_chanm TYPE rrke_s_chanm,
            l_kyfnm TYPE rsd_kyfnm.
      FIELD-SYMBOLS:
            <l_s_chanm> TYPE rrke_s_chanm.
      CASE i_s_rkb1d-infocube.
      WHEN 'ZSD_O06'.
        l_s_chanm-chanm = '0FISCPER'.
        l_s_chanm-mode = rrke_c_mode-read.
        APPEND l_s_chanm TO c_t_chanm.
        APPEND 'ZVKF_GL' TO c_t_kyfnm.
      ENDCASE.
    No code added in initialize method
    Given is the code added in compute method:
    FIELD-SYMBOLS <fs_ZVKF_GL> TYPE ANY.
    FIELD-SYMBOLS <fs_0FISCPER> TYPE ANY.
    DATA :LV_FS_ZVKF_GL TYPE /BI0/OIBALANCE,  
    p_cha_0FISCPER = 8.  "ASSINGING POSITIONS TO THE FIELD AS THEY ARE NOT GETTING IT
    p_kyf_ZVKF_GL = 16.
    ASSIGN COMPONENT p_kyf_ZVKF_GL OF STRUCTURE c_s_data
                TO <fs_ZVKF_GL> .
    ASSIGN COMPONENT p_cha_0FISCPER OF STRUCTURE c_s_data
                TO <fs_0FISCPER>.
    Customized function module which will calculate the GL Balance.
      CALL FUNCTION 'ZGLBALANCE'
        EXPORTING
         FISCPER_I    = <fs_0FISCPER>
         GL_ACCOUNT_I = '0000476000'
        IMPORTING
          BALANCE_O    = LV_FS_ZVKF_GL.
    <fs_ZVKF_GL> = LV_FS_ZVKF_GL.
    Code of ZGLBALANCE:
    DATA: lv0_fiscal type /BI0/OIFISCPER.
    DATA :  X TYPE I VALUE 0,
    types: BEGIN OF ty_/BI0/AFIGL_O1000,
           FISCPER type /BI0/OIFISCPER,
           GL_ACCOUNT type /BI0/OIGL_ACCOUNT,
           BALANCE type /BI0/OIBALANCE,
           CURRENCY TYPE /BI0/OICURRENCY,
            END OF ty_/BI0/AFIGL_O1000.
    data: it_/BI0/AFIGL_O1000 type TABLE OF ty_/BI0/AFIGL_O1000, " Internal table
          wa_/BI0/AFIGL_O1000 type ty_/BI0/AFIGL_O1000.          " Work area
    select single FISCPER GL_ACCOUNT BALANCE CURRENCY from /BI0/AFIGL_O1000 into CORRESPONDING FIELDS OF TABLE it_/BI0/AFIGL_O1000 where GL_ACCOUNT eq GL_ACCOUNT_I and FISCPER eq FISCPER_I and CURRENCY = 'USD'.
    BALANCE_O = X .
    Problem:
    We are getting the balance values but it is coming with numeral with postfix ERROR.
    M1--$4, 00-$140, 00u201412,00 ERROR
    M2--$24, 00-$130, 00u201414,00 ERROR
    Is it something to do with currency? Please let us know what is worng in code?
    If yes please let me know how to get the currency along with the numeric values there in the report.
    Thanks & Regards,
    Mayank

    Hello mayankmishra135,
    Were you able to find a solution for this? I am facing the same issue (with the ERROR in the currency field), wuold appreciate your help.
    Best regards,
    Aleksander Dyl

  • Polish localization problem

    hi,
    i format values from the db using format(double) from DecimalFormat. this works fine. now when the form is submitted, i need first to validate and then to store in the db. i am facing 2 problems:
    1. value 1234.56 in polish in localized form is 1 234,56. the thousand separator is a whitespace (or so i think). however, if i do:
    String str = "1 234.56"; double val = nf.parse(valStr).doubleValue(); then i get 1.0 as my result. the wierd thing is, if i do run sun's example code in DecimalFormat class, copy the result of format from console and paste it in my code, the parse function works fine. this makes me believe the space might be some other character.
    2. if i try the parse the string 1234.56fgh in locale 'en', i get a result of 1234.56 and doesnt throw an exception. clearly this poses problems for validation.
    any input on this is greatly appreciated, as i havent got a clue about this.
    thanks in advance
    abhaya

    This particular issue has been raised prviously in both forum and bug reports. See this bug report for problems related to user entry (the only real problem, as far as I can see):
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4510618

  • JPY Currency problem

    Hi all,
    I have created an Import PO with rate 62500 JPY (decimal places are are not allowed in PO),
    But in table level the rate is stored as 625.00 (with 2 decimal)
    due to which during GR goods are validated for 625.00 instead of 62500.
    Kindly suggest some idea.
    Rgds
    Srini

    Hi Yogi,
    I’m facing decimal places problem with the field BSEG-WRBTR for the currency
    JPY as no decimals are allowed in standard system. Error: Formatting error in
    the field BSEG-WRBTR & Decimal places are not permitted
    Our client is posting accounting document through frontend system (interface).
    It comes to SAP in xml format.
    I have debugged and noticed that it’s taking 2 decimals even the amount in
    the xml has no decimals.  I’m trying to restrict
    decimal for JPY in the interface program.
    I have checked in OY04, but for
    JPY currency not maintained any decimals.
    Kindly share your valuable suggestions.
    Thanks,
    Rajasekhar S

  • HUF Currency Problem

    Hello All,
    I have problem with HUF Currency.
    on BW side the total amount is multiplied by 100
    Ex:
    on R/3: 189HUF
    on BW side:18900HUF
    I came to Know that as it is maintained in TCURX table as 0 it getting multipled by 100.
    And according to SAP note 1240163 it is stated that "Most problems of this type occur when the flat file is loaded. If loading
    is carried out from an SAP source system, it is important that the BW
    system and the source system have the same settings in the currency tables
    TCUR*, otherwise similar effects may occur."
    As HUF is not maintained on r/3 i asked to maintain it but r/3 people didnt agree as they are supplying data to other productuctive systems and asked me to find other solution.
    and at the same time BW people are also not agreeing to delete HUF currency from TCURX table.
    So can any body give me solution to this problem.
    Thanks in Advance for your help!!

    Hi Srikanth,
    It is difficult to resolve your problem unless you are able to convince either of the two sides.
    Check the below link for the procedure
    Adding new currency to SAP R/3
    Also the SAP Note: SAP Note 137626 - FAQ: Decimal places for currency codes
    Hope it helps
    Best Regards,
    Kush Kashyap

  • Export ePUB from inDesign CS6 - polish fonts problem

    I have to make ePUB with polish fonts.
    I create a simple one page document in inDesign CS6 and export it to ePUB. All fonts are embedded.
    When I check it in Adobe Digital Editions (ADE) there is problem with polish fonts (ż, ł). ADE doesn't read it correctly. Other readers do it in right way.
    Is it a problem with inDesign or ADE?

    The ADE provides a preview, and nothing more than that. Actual viewers have other, more, or less capabilities -- some don't support embedded fonts, others do but with limitations, etc.
    ComrelPL wrote:
    .. that's why bookstores need ePUB to be compatibile with this ADE.
    E-Pub is still in its infancy. There is no general "e-pub" standard that *all* viewers are compatible with, other than the very lowest common denominator (which may very well mean "plain text").

  • DecimalFormat to Currency problem

    I am trying to convert a sting in a currency format and am having problems. The data in the string is returned from a service in decimal (�1.0000000000000�). I need to convert the value into string currency format (�$1.00�). I tried the following and it did not work:
    try
    double dConvert = Double.parseDouble(�1.000000000�);
         DecimalFormat decimalFormat = new DecimalFormat(��$�#.##�);
         sConvertedValue = decimalFormat.format(dConvert);
    dConvet returns as �1.0�, however sConvertedValue returns as �1.00000..�. , What am I doing wrong?
    Thanks in advance.

    Thanks for the reply,
    It seems to be somewhat working now. I am using:
    DecimalFormat decimalFormat = new DecimalFormat("'$'#.##")
    and the value returned for 1 is "$1". It is not showing the decimal point or the zeros that I expected. I need to show whatever value is returned (ex. $1.25 or $1.00). Based on JavaDoc and other examples it looks fine, what am I missing?

Maybe you are looking for