PROBLEM WITH CURRENCY CONVERSION IN ALV

HI..
When iam trying to convert currency field from one currency to
another (eg: usd to inr) iam getting error.
iam using the fm 'convert_to_local_currency'.
i want to display both the coloumns i.e usd,inr in the same grid.
help me....
thanks.

Rk,
Pass all these parameters.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
      EXPORTING
*    CLIENT                  = SY-MANDT
        date                    = p_ekko_bedat
        foreign_amount          = p_i_po_info_ntval
        foreign_currency        = p_ekko_waers
        local_currency          = r_buk-waers
*    RATE                    = 0
        type_of_rate            = 'M'
*    READ_TCURR              = 'X'
      IMPORTING
*    EXCHANGE_RATE           =
*    FOREIGN_FACTOR          =
        local_amount            = p_i_po_info_ntval
*    LOCAL_FACTOR            =
*    EXCHANGE_RATEX          =
*    FIXED_RATE              =
*    DERIVED_RATE_TYPE       =
  EXCEPTIONS
    no_rate_found           = 1
    overflow                = 2
    no_factors_found        = 3
    no_spread_found         = 4
    derived_2_times         = 5
    OTHERS                  = 6
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

Similar Messages

  • Problem with currency fields in alv while editing

    hi guys,
    while creating the editable fields and saving the data in database i have problem with currency(price fields),
    when iam entering 10000 it is storing as 100.00 in database but
    i want to store it as 10,000.00
    can any one help me ....
    it is urgent
    thanks..

    When populating the fieldcatalog for ur currency amount field then
    populate these additional fields with currency key and table name where this key field belongs.
             cfieldname     type slis_fieldname, " field with currency unit
             ctabname       type slis_tabname,   " and table
    May be then it will solve ur prob.
    Regards,
    Joy.

  • Problem with currency  field in smart form

    hi
    friends ..
    i had problem with currency field in smartform iam printing 5 currecny
    fields after the main window .But not getting printed on right way gets printed down from the given mesaurement and i get lot of gap betwen the
    each fields for ex.
    33,260.00
    120.00
    0.00
    0.00
    0.00
    i thought the the problem is with space .so iwanted to condense it but cannot as it is currency field so move into character fields .but the user want out put in currency format like 22,60.20 if i  get the value in char variable i get 2260.20 which i dont want .
    so pls help me how to condense or shift left and print the currency field on right place.
    regards
    answers will be rewarded points.

    hi,
    this is a normal problem u can avoid this by moveing these currencu value to a character field then print the char field us ing condece... &var(C)&..
    eve if not solve the problem use the TEMPLATE node..
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • Display totals with currency sign in ALV

    Hi,
    I have to display totals with currency sign in ALV.
    column1      colums2
    10               USD
    20               USD
    30               USD
    40               USD
    100            USD
    Can anybody help on this.
    Regsrds,
    Zak.

    Hi,
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-do_sum      = 'X'.        "Display column total
      fieldcatalog-datatype     = 'CURR'. "
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    Thanks
    Vikranth

  • Problem in SAP Query with currency conversion   based on table TCURX

    Hi All,
    I have an infoset where tables A903 and KONP are joined . Query is displaying the KONP-KBTER values with currency as stored in the database table .My requirement is to show the KBETR value as per decimals stored in TCURX table for that currency .
    For Example If KONP-KBETR = 51.29 JPY , It sholuld display as 5129  as  Decimal places for JPY is 0.
    There is FM CURRENCY_AMOUNT_SAP_TO_DISPLAY Which gives the equvivalent display value to the databse value value.But it is giving dump because of type conflict with
    KONP-KBETR .
      Can any body help me how can i solve the problem in My Query ? .Pls any small idea taht may help greatly  also warmly welcome .
    Thx,
    Dharma .

    Hi Sriram ,
    But how can i use it in Queries . I mean should I go for a additional filed in infoset and then passing the  converted value to the the that additional field .
    Thx ,
    Dharma .

  • Problem with currency translation and variable time ref. with 0FISCPER

    Hello,
    We have a problem with a currency conversion with a variable time reference (as iobject we use 0fiscper)
    We created a currency conversion for several key fig:
    Our settings:
    Exchange rate Type: EURX
    dynamic ex rate determination
    Source cur from datarecord
    Fixed Target Curr (EUR)
    Variable time ref.: End of Period
    Special Infoobject: 0fiscper
    When we run the DTP we get the following error:
    <i>Enter rate GBP / EUR rate type EURX for 00.00.0000 in the system settings.</i>
    ending the DTP in a message type X.
    In table TCURR and T009/T009B all necessary information is available.
    After debugging the function module, it looks like the created date (created from the FISCPER) is set to 00.00.0000. This results in the error above.
    Does anybody have experience with this error and more important know how to solve it?
    We also have a 0FISCYEAR available but in the TCURR table al rates are defined per end of the month. When trying to use 0FISCYEAR as InfoObject in the variable time reference, a diffrent error occurs:  Enter rate GBP / EUR rate type EURX for 01.01.1001 in the system settings. While  the 0FISCPER is 2001001.
    Is there a bug in the function module? (couldn't find a SAP note)
    We are working with BI 7.0 and SP12
    Best regards
    Steven

    Please can you give more detail on how you were able to resolve this issue?  How did you add 0fiscper to the transformation?  I am on BW 3.5, how do I fix this same issue on it?  Please help, this is urgent.

  • Help needed with Include ZXRSRU01 in relation with currency conversions

    I'm implementing how to paper: Use variable time references in currency conversions (BW 3.3). When implementing variable exit RSR00001 & write include ZXRSRU01 an issue pops up.
    The relevant code is:
    <i> DATA: l_s_var_range TYPE rrs0_s_var_range.
    IF i_s_rkb1d-infocube EQ 'RHCURCON'.
        IF i_step = '3'.
          LOOP AT i_t_var_range INTO l_s_var_range WHERE vnam EQ 'ZCURDAT'.
            ZCL_IM_CURRCONV=>currdate = l_s_var_range-low.
          ENDLOOP.
        ENDIF.
    ENDIF.</i>
    When implementing the following message pops up:
    "l_s_var_range" has already been declared.
    In another statement ' l_s_var_range ' is already used.
    Any advice how to deal with this issue?
    thanks in advance
    tom

    Hi,
      somebody already declared that workarea (l_s_var_range), so you can directly use that without any declaration (data l_s_var_range type rsr0_.....). you can remove that statement and you can work.
       Otherwise if you want to use to declare your own workarea,
      data ls_range (or any name) type rsr0_....
    DATA: l_s_var_range TYPE rrs0_s_var_range. *** this statement you can remove since somebody declared the same.
    ****or use ur own work area name and use that work area within your code.
    data ls_var_range type rrs0_s_var_range.
    IF i_s_rkb1d-infocube EQ 'RHCURCON'.
    IF i_step = '3'.
    LOOP AT i_t_var_range INTO ls_var_range WHERE vnam EQ 'ZCURDAT'.
    ZCL_IM_CURRCONV=>currdate = ls_var_range-low.
    ENDLOOP.
    ENDIF.
    ENDIF.
    rgrds,
    v.sen.
    Message was edited by:
            Senthilkumar Viswanathan
    Message was edited by:
            Senthilkumar Viswanathan

  • 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

  • Credit memo request with currency conversion to EURO

    I have a requirement in which i need to create a Credit Memo Request for the newly created sales organisation using the old billing document number created for old sales organisation.New sales org will have its currency changed to EURO.I referred to a FM named 'Pricing' where the currency conversion is done.
    The requirement is to get the current price in EURO from the price list instead of currency conversion to EUR.The current price has to be extracted from new pricelist.
    Your inputs in this regard is highly appreciated.

    HI
        Am not on SAP system now, so will try to give you
    info with what i can recollect.
       You can use FM: SD_SALESDOCUMENT_CREATE for creating
    Credit Memo Request. Note that reference document and
    reference type should be passed for identifying the
    reference document as invoice. Please consider these as
    initial inputs to explore on the same. Regarding the
    pricing, it can be configured either at order type or
    copy control to carry out new pricing so it can take
    directly from condition records.
        Hope the above info can help you in exploring on the same.
    Kind Regards
    Eswar

  • Problem with File download in ALV via ITS. Please help!

    Hi Experts,
           I have a ALV report which I have web enabled using ITS service. In the ALV there is a delivered functionality for file download. It works fine when the report is run in the SE80. But when I run the ITS service for the report and choose file download option it displays a page saying "this page has been diaplayed due to technical reasons" with title "File properties". In addition it looks for Java runtime in the browser. After all this it opens a popup window for selecting path and file name.
    This is not user friendly and many customers have rasied their concerns on it.
    My question is that,
    Q1: What is the need of this "File properties page"? Why ITS calls this while ABAP editor does not?
    Q2: Is there any way we can suppress this so that it directly opens a popup window for selecting path and file name?
    Please help me.
    Thanks
    Gopal

    Hello Klaus,
    i have also the problem with these intermediate screens!
    We have in between installed patch 22 for ITS 6.20 and SP18 at SAP Netweaver 2004!
    But they are still not processed invisible for the users.
    Are there any additional parameters, which controls this behaviour(~webgui_updown_make_visible is not used!)?
    How can i check, if i have really a.ex. the actual ws.jar-file or other related files of the patch?
    We are using the standalone ITS with an own (modified) IAC with an own CI-design for the webpages. The intermediate screens are displayed with the "normal" SAPGUI-design because of the parameter ~generatedynpro. Without this it does not work, because the template SAPLSIT_0100 is missing!
    Or do you have an example for such a intermediate template with the applet for an upload of a file?
    Thanks in advance
    Felix

  • 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

  • Key figures with currency conversion showing weird values.

    Hi Experts,
    I have a variable screen,
    User can key in Target Currency, and Month.
    Say,
    (Scenario 1) User keys in Target Currency "MYR", and Month "4"
    The report will show
    Jan| Feb| March| April| May| June| ...
    2| 3| 5| 7| 0| 0| 0 ...
    This is correct.
    (Scenario 2) User keys in Target Currency "USD", and Month "4"
    The report will show
    Jan| Feb| March| April| May| June| ...
    2| 3| 5| 7| 3| 5| 7 ...
    This is wrong, should not show figures for month May and onwards.
    (Scenario 3) User keys in Target Currency "SGD", and Month "4"
    The report will show
    Jan| Feb| March| April| May| June| ...
    1| 2| 3| 4| 0| 0| 0 ...
    This is correct.
    *In the infoprovider, the key figure is tied to currency "MYR".
    In developement system, i replicated the exchange rate table, and the problem (Scenario 2) is solved.
    In test system, i replicated the exchange rate table, and the problem (Scenario 2) is still there.
    I am not sure what is happening here.
    Please could you please kindly advise.
    Thanks.
    Tee

    There appear to be two factors happening here.. one is how you have your query restrictions set up, and the other is the currency translation method that you are using. What results a currency translation provides depends on both the translation key definition AND the availability of a valid currency translation for the appropriate period.
    First, review transaction RSCUR and see how your currency translation is defined.
    Then review transaction oB08 and see if there is a valid currency conversion factor during the affected time.
    Once you're certain all that is correct, review your query and how it is functioning. The fact that you wish to display months for which you do not wish to return data seems to indicate your 0CALMONTH2 restriction is not set up properly.

  • Problem with currency display

    Hi everybody!
    I have problem with DW8 and ASP.
    The code : <%=
    FormatCurrency((rsProducts.Fields.Item("price").Value), -1, -2, -2,
    -2) %>
    And on the page it is looks like: 867,00?.
    And it should look like $867.00
    The field in Access set to number. I am testing it localy
    (local host)
    I also tested it on different computer and it worked just
    fine. So, I am guessing that somthing wrong with settings on my
    computer.
    Does anyboby have an idea what could it be?
    Thanks!

    Hi Sachin,
    I reviewed RPA0 transaction and both users are the same properties.
    I just created a new user ZZZ with copy of YYY, executed the report painter and it shows the amounts in correct currency, this is strange.
    Thanks for your help.
    José Luis

  • Problem with currency fields

    Hi,
    My international settings are set to Turkish locale. I created a spreadsheet and defined a column as currency. Turkish currency symbol is YTL. When I want to make calculations using cells on that column, I get "+The operator "*" expects a number but the cell contains string+" error. Numbers doesn't understand that YTL is the currency symbol and prohibits any calculation. If I change the locale to U.S.A, and define the same column as currency, i can make calculations on this column. Does anyone has the same problem with different locale?
    Thanks
    Bilgehan

    Hello
    Glad to give you the ability to work flawlessly.
    I will report to Apple because the behaviour is really foolish.
    If I enter System Prefs to select Turkish as used language, the currency is displayed as
    If with this setting I enter Numbers, type 123 and apply the currency format, the cell displays
    TRY is the official ISO 4217 symbol but it's not the system setting and it is not treated as a currency symbol so the cell is treated as a string.
    If I enter the Inspector and select "livre turque (TL)"
    the cell is treated as a number.
    Funny isn't it.
    Yvan KOENIG (from FRANCE vendredi 8 février 2008 14:33:53)

  • Problem in currency conversion rate

    Dear Experts,
                             I'm facing a problem in client place , here when the Sales invoice is posted it shows wrong currency conversion rate, whearas In excise invoice its showing correct conversion rate which I maintained at OB08. In customer master also exchange rate given correct one.
    Plz guide me a solution.

    Can you give us more details?

Maybe you are looking for

  • P7N Platinum 3 beeps, no longer displays to monitor.

    Hi, I've been running my computer for about 4 months now and when I went to turn it on this morning nothing would display to the monitor. I noticed that now instead of one beep on startup, I get one long beep and two short beeps. These beeps happen n

  • Latest OS for Playbook 2.0.0.7971

    Latest OS for Playbook 2.0.0.7971 http://helpblog.blackberry.com/2012/02/download-up​date-blackberry-playbook-2-0/ Downloading/Updating to BlackBerry PlayBook OS 2.0 If you purchase a new BlackBerry PlayBook tablet, the first time you set up the tabl

  • Using step group in ccBPM

    Hi, We are using PI 7.1. We have defined a step group (with transformation, send and receiver steps) into a SWC. In another SWC we have a ccBPM where we want to use the step group. Both SWCs are associated. When we insert the step group into the ccBP

  • Azure Retrieve file icon doesnt work when published

    Hello! When not published, but using azure storage live, extract file icon works. When I publish my project, (still using the same storage, azure website free/shared), I cant extract the file icon, 500 internal server error. UPLOAD ICON Icon fileIcon

  • ITunes is not recognizing my new Apple TV in device list.

    I upgraded fro 1st gen Apple TV to a new Apple TV and iTunes 11.1 is not recognizing it in the device list on Tunes. When I open Preferences it says it is synching, but it shows it as my 1st gen unit.