Get transactional currency total based on currency type

hi,
i have created a custom report related to fi which is working fine.
but now the issue is in that report we r having a transaction currency field WRBTR.the users want to calculate totals based on currency.
for example my output is
tran curr  curr type
500        inr
600        inr
400        inr
200        usd
500        usd
400        usd
so now the totals shld be calculated based on currncy wise.
i.e we need to get 2 lines in total
1500    inr
1100    usd
Any suggestions in this issue will be helpful.

Hi,
Try to fill Field cataloue in the following manner .
then it will summ automatically based on  Currency.
lfs_fieldcat-fieldname     = 'AMOUNT'.
  lfs_fieldcat-tabname       = text-022.
lfs_fieldcat-CFIELDNAME = 'CURRENCY'.
  lfs_fieldcat-col_pos       = '1'.
  APPEND lfs_fieldcat TO t_fieldcat.
lfs_fieldcat-fieldname     = 'CURRENCY'.
  lfs_fieldcat-tabname       = text-022.
  lfs_fieldcat-col_pos       = '2'.
  APPEND lfs_fieldcat TO t_fieldcat.
Regards.
Eshwar.

Similar Messages

  • Report based on Output Type

    Dear Friends,
    If there is any functionality or Table from where i can get list of Invoices based on OUTPUT TYPE
    we have diff invoice types like sales invoice, service invoice, lease invoice and for all invoices there is dif output type is assigned. If i want to generate service invoices report based on output types assgined to it how we can do that?
    Regards
    Vishal

    hi
    Thanks Friend
    But again there is one problem when i am running this in Devlopment client its working fine but in other client not working n giving message No messages for initial processing exist
    what may be the problme?
    Regards
    Vishal

  • From SharePoint Content Database, Using SQL-Server Query how to fetch the 'Document GUID' based on 'Content Type'

    I want to get all the documents based on content type using SQL Server Query. I know that, querying the content database without using API is not advisable, but still i want to perform this action through SQL Server Query. Can someone assist ?

    You're right, it's not advisable, may result in corruption of your databases and might impact performance and stability. But assuming you're happy to do that then it is possible.
    Before you go down that route, have you considered using something more safe like PowerShell? I've seen a script exactly like the one you describe and it would take far less time to do it through PS than it would through SQL.

  • Currency Translation based on Last Day of the Acquistion month

    Dear all,
                Request to help me in understanding how we can calculate the currency translation rate as per the last day if the acquistion month..
    For Example if the  Acquistion date : 01/01/2008 (mm/dd/yyyy) the currency translation should happend based on the rate maintained as on 31/01/2008.
    Thanks
    Pavan Kumar Prakhya

    First, you will need to convert the actual acquisition date to the end date of the Fiscal Period. This can be done by using two separate Function Modules. First, get the actual Fiscal Period by entering the date and Fiscal Year Variant into the DATE_TO_PERIOD_CONVERT Function Module. Use the Fiscal Year and Fiscal Period from this and determine the end date of the Fiscal Period by using Function Module LAST_DAY_IN_PERIOD_GET with Fiscal Year, Fiscal Period and Fiscal Year Variant as your inputs.
    For the conversion, use the Function Module CONVERT_TO_LOCAL_CURRENCY. The inputs for this would be the last date of the Fiscal Period, the amount to be converted, the from currency code, the to currency code, blank in rate, AS01 in type of rate and X in read TCURR. This assumes, however, that month-end rates (rate type = AS01) have been loaded into your source system and these rates have been transferred to your BW environment.

  • Currency Conversion---- Based on Posting period

    Hi All,
    I am creating a report based on FIAA .
    Query selection screen will contain COMPANY CODE , and the POSTING PERIOD
    suppose  we enter company code as 2100 and posting period from 001.2007 to 012.2007.
    I need to translate all the balance sheet items are translate with the closing rate (M) for the current period , i.e. the "to period in the report " here 012.2007.
    The To period is dynamic and i need to select the currency conversion rate dynamically based on the To period entered in the selection screen of query.so, Can any one give the clues to achieve this. Your help is appriciated.
    Thanks & Regards
    Syam.
    Edited by: syam reddy on Nov 24, 2008 10:09 PM
    Edited by: syam reddy on Nov 24, 2008 10:19 PM

    Use RSCUR transaction to create currency translation type.
    Here under "Time Ref" tab use "Variable Time Ref" and special infoobject.
    You should be able to choose Posting period or posting date here.
    Now in query designer maintain the currency conversion based on this currency translation type.
    Hope this helps.

  • How we can get the Trial balance in other currency -USD now.

    Hi All,
    I have an issue reg: My client  had gone live in 2005 and only One Currency is defined u201CINR u201D as company code currency and Controlling area currency.
    Controlling area settings are maintained as: Controlling Area Same as Company Code and Currency Type maintained is: Company code currency u2013 INR.
    Even in OB22, No parallel currencies (Group currency, Hard currency, Index based currency, Global company currency) are defined.
    Now, my client is asking to have the Trial Balance (F.08) in currency u201CUSDu201D,but at present we are getting it is "INR" only.
    Is it possible to get the Trial balance (F.08) in USD , for the previous posted document values(They did all the postings in INR only)
    How we can get the Trial balance in other currency -USD now.
    Please suggest and guide.
    Thanks in advance
    Regards,
    Sudha.

    Hi,
    First you need to enter USD as HARD CURENCY for your company code's country settings.
    Then in OB22, for your Company code, enter Currency type 40 as additional local currency (LC2)
    Legal Valuation
    Exch rate type M
    Sour Curr 1
    TRs Date Type 2 ...and now save.
    By making these changes, you will be getting F.08 in USD by specifying currency type as 40 in the selection screen of this report.
    The only thing you wont get here is that.............you cannot determine USD values for documents, which are already posted into the system.
    For the time being...you can use report S_ALR_87012279 - Structured Account Balances....in this selection screen enter USD as output currency, tran key date and exch rate type M....to get the LC values to be converted into USD during this report only. (this is as good as fast food)
    As suggested above, use of special purpose ledger is all together a different concept....you dont need to go for it.
    Regards,
    Srinu

  • Currency Conversion for Exchange rate type "AS02"

    Hi Experts,
    I am gonna post the most challenging problem (regarding currency conversion) I ever faced in my 1 year of BW Carrier.Kindly provide a solution.
    There are three types of currency to be used in the query for Key Figure 0NET_VALUE (so total 3 Key Figures to be created)
       1.Document currency (may be any currency)
       2.Local Currency (must be EURO)
       3.Global Currency (must be USD)
    From Document currency to Local Currency(EURO) we are using Exchange rate Type "M" (in Conversion Type created in Trans RRC1) [There is no problem in this conversion]
    Problem starts now--->
    From Local Currency(EURO) to Global Currency(USD) we have to use Exchange rate type "AS02" (in conversion type to be created in RRC1)
    but there is a Business requirement  that currency rate should be as per the last day of the entered period;and this logic should work for the range of periods also.
    Example :
    we are executing query for the period 006/2006 (posting Period)
    Last day of this period is 06/30/2006,
    Currency rate would be as per 06/30/2006
    And this currency rate should be same throughout the period 006/2006 in query
    The example was for single period,but logic must be incorporated for the range of the periods.

    Hi..
    There is no corresponding source key figure in the InfoSource for the target key figureof the InfoCube.
    a. A source key figure of the same type can be assigned to the target key figure
    (for example, sales revenue instead of sales quantity revenue).
    If the currencies of both of the key figures are the same, no currency
    translation can take place.
    If the currencies are different, a translation can take place either using a
    currency translation type or by simply assigning a currency.
    The following table provides an overview of possible combinations with different
    currencies in the source and target key figures:
    if Source key figure currency  is fixed , Target key figure currency is variable  then Currency translation (CT)  No CT
    if Source key figure currency  is fixed , Target key figure currency is fixed  then Currency translation (CT)   CT
    if Source key figure currency  is variable , Target key figure currency is fixed then Currency translation (CT)   CT
    if Source key figure currency  is variable  , Target key figure currency is variable  then Currency translation (CT)  CT or assignment
    b. If there is no corresponding source key figure of the same type, then you have
    to fill the key figure for the data target from a routine.
    If the target key figure has a fixed currency, no currency translation is
    carried out. This means that if translation is required, you have to execute
    it in the routine.
    If the target key figure has a variable currency, you also have to assign
    a variable source currency to the routine. Using the F4 help you can
    select a currency from the variable currencies in the communication
    structure. You have two options:
    – You can select a variable currency and assign it.
    – You select a currency translation type and a currency into which you
    wish to translate (‘To’ currency).
    The ‘To’ currency is, by default, the target currency if it is included in the
    communication structure.
    Creating a Routine for Currency Translation:
    If you want to translate currencies in the update even though the currency translation is not
    available for one of the above reasons, you can create a routine. Choose Routine, set the
    Unit Calculation in the Routine and choose Create Routine. In the routine editor you get
    the additional return parameter UNIT, the value of which is used to determine the target
    1.  save the query  and it under role
       see to it is in   :  Restricted and calculated key figures --->   properties of k.f
    2. exeute the query
    3. the currency translation --> by target currency  usd  choose  OK
    conversion type :  MEANTODAY Fixed target currency current date (MT)
    4.  Go back to the query definition by chossing chage query ( global definiton)
    5.  in the context menu for % share sales vouume of incoming orders,  choose properties --> formula collision -->  result form this formula choose OK
    Note that -
      your should alos set the currency translation in the  properties for the  two key figures sales voule EUR , choose properties ---> currency  conversion key :  fixed target currency ,  currrent date ( MT) -->  target currency  : American Dollar .  choose   OK
    <b>The translation key is a combination of different parameters that establish how the exchange rate for the translation is executed.
    The parameters that determine the exchange rate are the source and the target currency, the exchange rate type and the time reference for the translation.</b>
    The source currency is determined from the data record or dynamically from the master data of the specified InfoObject (currency attribute)
    The target currency can either be fixed in the translation key or selected at the time of translation.
    You can also use an InfoObject (currency attribute) to determine the target currency.
    The exchange rate type distinguishes exchange rates that are valid in the same time frame next to each other, for example, the bid rate, ask rate or middle rate. The exchange rate types are stored and can be maintained in a central table (TCURV).
    The time reference for the currency translation can be either fixed or variable
    The fixed time reference can either be a fixed key date that is stored in the translation type, or be determined using the system date when executing the currency translation.
    If the time reference is variable, then the point in time for the exchange rate determination comes from the value of a time characteristic (InfoObject). The reference can, for example, be the end or the start of a fiscal year or a calendar year, a period and a month – or even to the exact day. It can also be determined using a customer-specific InfoObject (for example, trading day).
    Currency translation in the BEx
    When selecting a translation key with a fixed target currency     this currency will be added automatically to the query definition
    Also, you can use translation keys selecting their target currency at the time of translation. These can be applied in two different ways:
    Selection of a specific target currency in the query definition (1)
    Entry by variable (2)
    Dynamic translation keys require input from the InfoCube !
    InfoObject value will be read during query execution
    Examples:
    dynamic time reference (p.eg. 0CALDAY)
          time characteristic
    target currency determined by InfoObject (currency attribute)
         characteristic which contains currency in its attribute table
    the corresponding InfoObject has to be part of the InfoCube
    1.Define the currency attribute in the InfoObject maintenance
    The currency attribute has to be a unit InfoObject of type currency
    The unit InfoObject must be an attribute of the characteristic
    The currency attribute should be filled in the master data table of the corresponding InfoObject (manual maintenance or upload via InfoSource)
    2.Enter the InfoObject in the translation key maintenance
    Only InfoObjects with a currency attribute can be used in translation keys (p.eg. 0COMP_CODE)
    At the time of currency translation the value for the source currency / target currency is then derived for every record from the master data table of the specified InfoObject
    All values for a query are translated ad hoc (after having executed the query) using a translation key
    Depending on the translation key a fixed target currency will be used for translation or you will be able to select the target currency
    The ad hoc currency translation offers only restricted functionality (selection of translation key and target currency) compared to the currency translation in the query definition
    Do not forget to create your translation keys before starting your work in the Business Explorer Analyzer
    Example:
    You load the following record to your InfoCube:
    Company Code:                1000
    Amount in Source Currency:      500,-
    Source Currency:                FRF
    Target Currency:               ?
    In the Update rules, you are now using a translation key which derives the target currency from the InfoObject 0COMP_CODE. During the Update Process the target currency will then be read for Company Code 1000 from the master date table of 0COMP_CODE.
    With the currency translation in the Business Explorer, the source currency can currently only be determined from the data record.
    Only translation keys with a fixed exchange rate type can be used in the BEx
    Translation keys with a dynamic time reference (from an InfoObject) can only be used in the query definition. It is not possible to fill the InfoObject by a variable !
    Translation keys getting their target currency from a currency attribute can only be selected in the query definition
    When getting the dynamic reference from an InfoObject (p.eg. 0CALDAY) the currency translation will apply to each record read from the database. That means it will use the date in this record for the currency translation.
    When using a variable you will restrict the output of your query to a certain amount of data. For example, you would translate all invoices of March 11 with the translation date March 11
    This means, the requirement “show me all invoices in my cube in group currency, conversion date: 14.07.2001” could not be solved by a variable input for 0CALDAY
    I hope this would help...
    with regards,
    hari

  • ECC 6-  Table that gets updated when Currency Translation to Group Currency

    Hi All,
    I would like to know which table gets updated with the Values when we execute tcode "FAGL_FC_TRANS"?
    I would like to see the values that system posted during April 09, May09 etc for each GL that was Translated into Group Currency using the tcode.
    under SE16, i tried checking for all tables with FAGL*, but could not figure out the exact table.
    Thanks
    Vijay

    BKPF gets updated - The T Code you will in those entries in BKPF is FBB1, Business Trans. will be RFBU and Ref. Transaction will be BKPF.
    BSEG gets updated - Activity Type RFBU.  You will not see any non-zero amounts in transaction currency and local currency.  In group currency, you will see a non-zero number.
    FAGLFLEXA gets updated - Transaction RFBU, Ref. Transaction BKPF - No amounts in TC and LC.  Amount in GC.
    FAGLFLEXT gets updated - Transaction RFBU, Ref. Transaction BKPF.  Again, nothing in TSLxx and HSLxx.  Amounts in KSLxx (xx being the period in which you have posted translation).

  • Currency conversion based on budget rate

    Hi All,
    I want to do the currency translation from GBP to EUR,EUR to USD and GBP to USD.there is no table maintained in the BW system.Currency conversion should be based on budget values and they are asked me to do on reporting level.I have gone thru the documents and blogs but not able to follow them.Could you pls share any one knowledge and step by step process.
    Thanks

    Use RSCUR transaction to create currency translation type.
    Here under "Time Ref" tab use "Variable Time Ref" and special infoobject.
    You should be able to choose Posting period or posting date here.
    Now in query designer maintain the currency conversion based on this currency translation type.
    Hope this helps.

  • HFM 11.1.1.3 ICP Report showing wrong value for Entity Currency Total

    Here is the situation.
    There are transactions on a ICP account (Entity Currency) 3.305.080
    A journal is posted to the same account with the same POV. 307.205
    When I run my ICP report on Entity currency i get the correct figure. 3.305.080
    When I rum my ICP report on Entity Currency Total I get a wrong figure 307.205 (Equalt Entity Currency Adjustment) where it should have been 3.612.285
    Any clues anybody?

    There is no limit. In reality there has not been a limit to the volume of data in a single subcube since paging was added in the 4.0 release. Certainly since 64 bit HFM was introduced there really is no limit to the amount of data in a subcube, or the database for that matter.
    Now that I've said that, 850,000 records in a single subcube is a lot of data. Prior to 4.0, the development team added an warning message when a subcube exceeded 100,000 records, but this was purely informational. You should still heed the notice. Most applications have a largest-cube size somewhere between 35,000 and 100,000 records (the top entity usually). While I've seen as many as a million records, you may experience performance problems at that point. Make sure you give the database and HFM app servers a lot of memory to handle this.
    Since HFM 11.1.2.2 with its configurable dimensions, data can be spread across many more intersections. In your example you have seven custom dimensions, so I can understand how you might have a normal amount of data in each base entity (a few hundred to maybe a couple thousand), but balloon to hundreds of thousands when you get to the top entity. HFM can process a lot of data very quickly, but be careful if you have rules that cycle through all those intersections, such as allocations or maybe cash flow by product.
    But there is no hard limit in HFM.

  • Display amount in ALV Grid with different Decimal Places based on Currency

    HI Experts,
    Working with ALV Report i have one Amount field NETWR which is having Length 15 and Decimal Places 2.
    we have two different types of currency's AED and KWD and AED having 2 decimal Places and KWD having 3 decimal places.
    im using FM: REUSE_ALV_GRID_DISPLAY for Display. value storing in Table was like this
    AED---22.56
    KWD---225.65
    i need to display values like AED : 22.56

    HI Experts,
    Working with ALV Report i have one Amount field NETWR which is having Length 15 and Decimal Places 2. we have two different types of currency's AED and KWD and AED having 2 decimal Places and KWD having 3 decimal places.
    im using FM: REUSE_ALV_GRID_DISPLAY for Display. value storing in Table was like this
    AED---22.56
    KWD---225.65 (converting this value to 22.565 using BAPI_CURRENCY_GETDECIMALS according to currency in my Report)
    i need to display values like AED : 22.56
                                             KWD---22.565 but here field is NETWR with 2 decimal.
    Need to Display amount in ALV Grid with different Decimal Places based on Currency
    Regards,
    Dileep Kumar Reddy

  • F110 Total per foreign currency

    Hello
    We are using transaction F110, when we see the proposal list, we can see the payments per Vendor, and at the bottom the Total per currency, but, it convert automatically to local currency (MXN here in Mexico)
    Do you know if we can configure it in order to have the totals on Foreign currency (USD and EUR)?
    Thank you in advance
    Regards.

    Hi SDNFICO
    The payments were made in the document currency (USD or EUR), and at detail level I could see the amounts on foreign (document) currency, but at the bottom, at the totals, it shows in local currency (MXN)
    Thanks.

  • Amount formatting based on Currency Key

    Hi,
    I want to format the amount field on the basis of the currency key.
    for eg.
    Chile has the no of decimal places set as 0
    so for Chile, the amount 800.00 should display as 800
    Similarly for Mexico, the no of decimal places is set as 2.
    so for Mexico, the amount 800.00 should display as 800.00.
    I am using the follwoing statement
    WRITE im_amount TO v_amount
                        CURRENCY im_waers
                        DECIMALS v_dec_places.
    where v_amount is type char20 and im_amount is type netwr.
    This is working correctly for Mexico but fails for Chile.
    Please share your comments on this.
    Thanks in Advance,
    Binu

    The following write statement gives the perfect result.
    WRITE v_amount TO v_fmt_amt
                     decimals v_dec_places
                     no-grouping
                     left-justified.
    I was not getting the result on using both the currency as well as Decimals addition. The desired result is obtained on only using the Decimals addition.
    And I used the FM,  'G_DECIMAL_PLACES_GET' to get the decimals for the respective currency key.
    Thanks a lot for your response.
    Regards
    Binu

  • Outputting Currency Values Based on Customer Location

    Hi All,
    Has anyone had any experience of changing the thousand's separator on a currency value based on the customer location rather than the user logon.
    For example if the user logs on in German one thousand Euro will be output as:
    1.000
    But if they log on in English it will come out as:
    1,000
    Is it possible to change a smartform to output the thousand separator based on the customer country rather than the user logon.
    For example if the user logs on in German and wants to send an invoice to England the value should come out as:
    1,000
    Many thanks for any help, points awarded.
    Regards,
    Colm

    Hi,
    You can use the Write to Option to convert the decimal place depends on the customer location,
    WRITE: Currency_field to Cust_Curency_field.
    Cust_Curency_field is a charecter type field and Currency_field is the type of currency
    Regards
    Sudheer

  • "distributions for this transaction are in the functional currency, but..."

    I have this error that I am getting when trying to interface my projects billing to AR. I can't seem to fix it.
    The error as shown: The distributions for this transaction are in the functional currency, but the
    entered amount does not equal the accounted amount. Please recalculate the
    accounted amount for this transaction and resubmit AutoInvoice.
    I have checked the currency in the projects and the functional currency and they all seem to match in CAD which is what I am trying to bill out at. I am unaware of any foreign exchanged workers or expenses related to these projects.
    Any clues?

    Hi Dina,
    Thank you for the answer.
    I thought also at "Bill be Transaction Currency" but this issue appears on the projects only for one organization, on other organization (same setup) it doesn't appear.
    Even more:
    - this issue doesn't appear on all the projects on the same organization (projects with the same characteristics);
    - on an earliear back-up instance (three month ago) the issue appear for project A and it doesn't appear on the production instance (same setup for project A for both instances).
    I don't know to be any patches differences between these two instances, I checked up the setup for PA ... what else should I look for to explain (or correct) the issue?
    Regards,
    tinar

Maybe you are looking for