Currency Translation in Planning sequence with variable for target currency

Hello ,
i have a requirement, the cube contains multiple data in the Group Currency for multiple company codes. & I want to convert these amounts to another KF as local currency using planning sequence only (not using transformation, as the users want to do this when they require.)
For this, i defined a Aggr level , filter & Planning function with Currency translation selecting the source field as AMOUNT_GC & target field as AMOUNT_LC using the Currency Translation type ZCTGCLC.
The target currency is not know beforehand, as it depends on the company code of each records that comes in.
Hence, Currency translation type uses  a Customer exit variable 'Z_R_0026' for target currency.
This is customer exit variable which searches the Master data table of the Company code & replies back with the local currency of that particular company code (derived value from the company code variable also in teh filter).
However, when i execute this planning sequence, it gives me an error saying, "no value found for variable 'Z_R_0026'
1. when edit the CMOD code, to return only say "EUR" the planning sequence runs fine.However when i use this select statement to fetch the corresponding value of the currency using the company code reference from the company code master data table, it gives the above error. it seems to be a problem with the select statement.
below is the code for that exit
when 'Z_R_0026'.
     data: l_curr type /BI0/OICURRENCY.
     IF i_step = 2.
       LOOP AT i_t_var_range INTO loc_var_range
                          WHERE vnam = 'Z_S_0003'. " Company Code Single
         CLEAR l_s_range.
    Filling Currency Key from Company Code
         select single currency
         from /bi0/pcomp_code
         into l_curr
         where comp_code = loc_var_range-low
         and objvers = 'A'.
         if sy-subrc = 0.
           l_s_range-low = l_curr.
         else.
           l_s_range-low      = 'ABC'.
         endif.
         l_s_range-opt      = 'EQ'.
         l_s_range-sign     = 'I'.
         APPEND l_s_range TO e_t_range.
         clear l_s_range.
         EXIT.
       ENDLOOP.
     ENDIF.
2. there is a option of using infoobject for target currency in the RSCUR itself, however, when i try to input the 0COMP_CODE for finding the attribute currency from this infoobject, it doesnt accept.
has anyone tried this earlier ?
Any help/suggestions , guys, pls?
Thanks
John

Hi Praveen ,
Thanks for that.
I have a Question.
If RSCUR were to only accept a Date InfoObject , it would be placed under a differnt heading.
The Tab is "Currrency"  & the sub-Tab is "Target Currency"
so i guess, it should accept other infoObjects as well.
Moreover, the help on that InfoObject buttons says
"Specification of an InfoObject (Characteristic) in which a currency
attribute is stored in InfoObject maintenance. At runtime, the
associated currency attribute is determined using the characteristic
value and this is interpreted as source or target currency."
& i have already defined 0currency as a attribute of 0comp_code. so this should work ideally.
almost similiar CMOD code i have used for other too, but i dont know why only this one is getting struck.
any help, pls.
Thanks
John
Edited by: John Lewis on Apr 17, 2009 3:24 PM
Edited by: John Lewis on Apr 17, 2009 3:25 PM

Similar Messages

  • Currency conversion type with variable for target currency

    Hi,
    I use a currency conversion type with a bex variable for target currency in a query in order to convert a Key Figure. It works fine but instead of short text description there's the technical description of the variable in the selection screen. How can i change the description of the variable ?
    For information, in the bex, we can't see the variable in "variable sequence". I use BI 7.0
    François.

    Hi,
    The problem was that in the maintenance of the currency translation type the option  Target Currency from Variable” was checked. As a consequence in the properties of our key figure the drop-down-list Target Currency was set to  from variable” with no chance of changing it (it was grey).
    What we can do was to choose the option  Target Currency Selection with Translation” instead of  Target Currency from Variable”. Now, in the properties of the key figure we can choose the variable in the dropdown-list Target Currency and tick the option “Variable Entry”. As a result, the variable shows up in the query properties and we can change its arrangement.
    Regards,
    Siva Patil.

  • Get variable in Target currency under currency conversion Tab for Key Figure

    Hi Experts,
    In one of the query in BEx Designer, for particular set of key figures I am unable to edit Target Currency under currency conversion.
    We created user exit and using a variable in BEx.
    When I chose currency conversion parameter in "Currency Conversion", Value in Target currency is empty but I am expecting the variable to get displayed over there.
    Please suggest me how to get variable in target currency. or how to edit property of key figure "Target Currency"
    Thanks,
    Saravanan.

    HI,
    which parameter you maintained in conversion type that is currency translation type which is maintained at T-code RSCUR and see which info object you maintained at currency tab after defining the currency translation type i.e at Target currency -> Info object  for determining Target currency which  is FROM INFO OBJECT in Target currency .
    Hope this will help you.

  • Currency Translation key not appearing in dropdown for selection

    Hi BI Gurus,
    We are using BI 7.0 SP 08 and SAPGUI 6.40 patch level 19. Let me explain our scenario.
    We are using SEM-BPS for Planning. Data is loaded to BW InfoCubes and then uploaded to summerized Infocube.
    We are also loading data from flatfiles into other set of custom Infocubes similar to IM Cubes.
    Planning is done in Transactional infocube and there is multiprovider on top of Transactional Cube, Summerized standard Cube and summerized custom infocube (for flatfile) for reporting.
    We are pushig back the final plans to R/3 system and currency conversion is automatic. There is no problem here.
    We are loading planing data and actuals from flat files to our IM custom Infocubes. The data is coming in different currencies and we are converting and updating in the cubes in fixed currency USD. Once plans are finalized,we want to give some kind of tool to the users to see their appropriation requests and the plan value in local currency. We are thinking to create some BEX queries for this purpose. Users will Select their requests and currency and the query will display their requests in local currency.
    RRC1 tcode does not work in BI 7.0. There is an equivalent Tcode RSCUR to create the Currency Translation Key. I created a translation key. Now I am trying to use this key into BEX, using GUI for 3.X and BI 7.0. This key is not appearing in the dropdown for the currency translation key selection. So there is no way I can use this key. 
    I went through a number of postings in this forum and still looking for the right one. Is something I am missing? or Is some bug in BI 7.0.
    I know it was working in BW 3.5. Can you guys share your experience? Any help is appreciated.
    Thanks.
    Sheo

    OSS note 968356 might be applicable.
    <i>
    Symptom
    No currency translation is available in BEx Web. You cannot call a currency translation dialog box using the context menu.
    Reason and Prerequisites
    Business Explorer, NW2004s, SPS8, SPS9
    You use BEx Web applications in SAP NetWeaver 2004s.
    </i>

  • Currency Translation. Unexpected result with currency transl indicator 1

    Dear Experts,
    Durring currency translation we get the following result:
    Company  ConsProfitC  PostL     Item         MovType  TransIndLocCur  ValueTransCur       ValueLocCur           ValueGroupCur
    C0803     DUMMY        00          100001     600              USD            100.000,00-            100.000,00-             75.930,14-
    C0803     DUMMY        00     100001     600     1       USD            0,00                         0,00                       1.586,17-
    The first line shows the value translated by accumulated currency translation key, closing rate which is equal 1,317. The second line with the currency translation indicator 1 in completely unexpected.
    Do you have any ideas why we get the second line?
    Thanks.
    Sorry, I've already found the solution. Currency translation indicator 1 is the translation delta between specific value and reference value.
    Edited by: Barrie Roche on Sep 2, 2008 10:45 PM

    The translation indicator 1 is for translation where the translation rate type is different from the reference rate type. Could this item be in the translation method twice with different rate types?

  • APD query key date with variable for time dependent MD display attributes

    Hello,
    In a APD I use a query as a source with a query key date that is filled with a customer exit variable.
    When I run the query as a user, the time dependent MD display attributes look fine. However, when I use the query in an APD, I get no values for the time dependent display attributes.
    Any suggestions?
    Thanks

    Hi,
    Try to run query using RSCRM_BAPI Tcode, this you can also schedule in background
    Thanks
    Reddy

  • Capturing URL WITH VARIABLES for reuse?

    Hi,
    I have an application that authenticates users only if a
    certain page is requested. Once they login, i'd like to send them
    back to the page they came from, the one that required they log in.
    BUT, I need to send them back to that page with some URL
    variables intact (pageID, sometimes another one, it varies from
    page to page).
    I cannot for the life of me figure out how to do this...have
    messed with GetTemplatePath and such, have looked at my Forta book,
    have searched here and googled....this seems like it should be easy
    but I can't figure out how to grab what I need.
    Help?
    Many thanks in advance....
    Liz

    That was it!
    I'll find one to answer now , many thanks :)

  • Currency Translation: Query use different Rates based on country/Currency

    Hi Friends,
    There is a requirement from our client to apply two different Exchange Rates on the rows of a single query (based on the Inflationary status of countries/Currencies).
    For regular set of countries(or Local currencies), we want normal P&L Rate to be applied on local curency.
    But at the same time if it is a High Inflationary country (or currency), the Global Currency should be displayed as it is without any translation.
    Both these effects should happen and appear on the same Key figure column.
    How can we achieve this?
    Looking forward to have your inputs. Thanks in Anticipation!

    Hi Vikram,
    Thanks for the suggestion.
    It seems as if this suggestion could work only when we want to excute for a given country code. In Reality the query will be executed for all countries in one go and we want the query result rows follow different logic for Different LEs or Currency.
    Any further Ideas Pls. Thanks!

  • Problem with JNI for target armlinux

    Dear friends,
    We have compiled CVM for ARM Linux and it is working fine for java programs as well as C programs.
    But when I try to make shared library out of a sample hello world JNI program for arm linux it says 'jni.h: No such file or directory' and after that many lines 'syntax error' and 'parse error' etc.
    But the same program is running fine on x86 linux. Problem only while cross compiling for arm linux. It is not problem with arm-v5t-le-gcc because that is working fine. Problem is with what I need to include in makefiles.
    As I am new to this domain could anyone help me where I am missing?
    Regards
    Kishore

    I'm not exactly sure what you're talking about, but it sounds like you may need to look into global references. Look at NewGlobalRef() and DeleteGlobalRef() and see if those help you out.
    God bless,
    -Toby Reyelts
    For all your JNI woes, check out Jace - http://jace.reyelts.com/jace

  • Currency translation key based on posting period 0fiscper3

    Hi Folks,
    The requirement is to perform currency translation in query based on the end of period.The query uses the time characteristics as fiscal year (0FISCYEAR) and posting period (0FISCPER3).
        I have maintained the currency translation key using RRC1 with variable time ref as 0FISCPOER3 .On executing the query I am getting error that 'No Exchange rate maintained ' .But the exchange rates are maintained in the system.
       SAP Help states that the variable time reference has to be a standard InfoObject as 0FISCPER or 0FISCYEAR   or customer defined Infobject with type date.
    0FISCPER3  is of type NUMC .
       Is this the reason that I am not getting the currency translation ?? or I am missing out in some settings.
      Please advise .Due points will be granted .
    Thx,
    Gautam

    Hi Gautam,
    0FISCPER3 just stores the period values as 001, 002, 003 etc, with no reference to the year (and hence no reference to a fixed point in time). Try create the RRC1 key using 0FISCPER and use this in your query.
    Hope this helps...

  • Currency Translation for Key Figures with Value More Than One Currency

    Hi...
    I have query which display key figure GL Account Balance. The currency that used for this key figure is USD and IDR. How we want display value based on selection screen? So if we input currency USD, all value that use currency IDR translated to USD and all value that use currency USD not changed. Otherwise if we input IDR, all value that use currency USD translated to IDR and all value that use currency IDR not changed.
    How we do this in query designer? Thank you.
    I have use currency translation :
    1. (Right Click Key Figures >> Properties >> Currency Conversion Key)
    2. Target Currency Using Variables Entry
    but seems the result is not correct. Can anyone help me ?
    Regards,
    Satria

    Hi all,
    Thanks for your help, but still I have problem. I have create one currency conversion type, ZXXX. This currency conversion type is using exchange rate type = "M",source curr from Data Rec, sel of targ currency with translation,
    and fixed time ref = "Current Date".
    Problem:
    1. With this setting, i create currency translation in BEx, but the result is not same, it's like the exchange rate not using the same setting with data in ECC (I compare data with transaction fs10N). Is my setting for exchange rate not correct?
    2. When I try to display GL Account Balance --> Calculated Key Figure (Total Debet - Total Credit) for period 0, the translation not working. Example if the value is IDR 1234 then the value in USD still USD 1234. Why this happen?
    Thank you
    Regards,
    Satria

  • I_STEP=2 in Planning sequence and user exit variable

    Hello!
    I need some issue, help plz.
    I have planning sequence with currency translation type fuction.
    In this function Exch. rate type calculated from user-exit variable VAR_1 (for example).
    This VAR_1 calculate from VAR_2 (ready for input) variable on I_STEP = 2.
    In pure report all fine, i fill VAR_2 in variable screen and VAR_1 fill in exit.
    But! In planning sequence (run from Excel) in I_STEP = 2 structure i_t_var_range is empty and my VAR_1 cannt be calculated.
    I try any command and parameters in Bex - no result.
    How can i calculate VAR_1? Or what i must do in order to get i_t_var_range on I_STEP 2 with VAR_1.
    Thanks.
    Anton.
    BW SP 17(DEV) AND 19(QAS)

    Hello Matthias!
    I try all kind of binding, using command VAR_NAME and VAR_VALUE, without command etc.
    But it seems like my user-exit variable start in different context and do not see other variable.
    My planning sequence start working only when i insert condition for planning function and set VAR_2 here. After that VAR_1 calculate normally ( i_t_var_range on I_STEP 2 contain VAR_2). But i think all should be working without condition...i dont need condition.
    Any idea?
    Anton.

  • Currency Translation with a Calculate Key Figure

    Hi,
    Does anyone have experience with applying currency translation in BEX/Query Designer on a Calculated Key Figure? 
    I have a need for a calculated key figure to be converted to a target currency of USD (which is already defined via RRC1).  I also need the Results Row to display the summation in USD. 
    Currently, my calculated key figure displays two currencies (MYR and USD) and an incorrect summation of both currencies.
    Here is how I have defined my calculated key figure:
    NODIM ( 'Consumption (STOs)' ) * NDIV0 ( 'Material Source Plant Cost' / NODIM ( 'Source Plant Price Unit' ) )
    I am multiplying a quantity field by amount field and then dividing by a price per unit field.  I have applied NODIM on the other fields so that the amount field will retain it's properties.
    Running this query through transaction RSRT and clicking on the Generate Report button, I get the following message:
    "<b>Currency translation cannot be carried out for element 20 (my calculated key figure). Element 20 neither contains a Basic key figure nor a variable with type Amount. For this reason, you cannot and do not need to perform a currency translation</b>."
    From the above message, I must be setting my calculated key figure incorrectly. 
    Any ideas?
    Thanks!
    Hau

    Hello Ajeet and N Ganesh,
    Thank-you for your help.  I verified that the dimensions of my key figure 'Material Source Plant Cost' was of type 0AMOUNT, so that was not the issue.
    The issue was in the error message that was returned when I pressed the Generate Report button in RSRT.  Essentially, currency conversions in BEX can only be performed on basic key figures or simple replacement path variables. 
    I can perform the currency translation on a SIMPLE calculated key figure that contains only the replacement path variable (where 'Material Source Plant Cost' is an attribute of my master data characteristic ZMAT_SRC).  However, I found that I cannot perform the currency translation on COMPLEX calculated key figures, like in my example above. 
    To get around this currency translation issue and as suggested by the error message, I created a SIMPLE calculated key figure for replacement path variable 'Material Source Plant Cost' and performed the currency translation.  The problem with this solution is that while I get my currency translation, I also get a calculated key figure that is aggregated, according to the query layout.
    To get around the aggregation issue, I also created a dummy counter as a master data attribute (of ZMAT_SRC) to capture the aggregation.  I assign a value of ‘1’ to this dummy counter/master data attribute in the update rules to my ZMAT_SRC infoobject.
    I then divide my new (aggregated) calculated key figure for 'Material Source Plant Cost' by the dummy counter (which is also aggregated).  Essentially, I divided the aggregated replacement path variable by the scaling factor.  The result is that I get a new calculated key figure that has been translated into the target currency and in the correct scaling factor.  I can use the new calculated key figures in the above formula; regardless of the report is rolled-up.
    Again, thanks for your help.  It gave me the pieces to solve this puzzle.

  • Not able to use variable on 0LOC_CURRCY in Currency Translation in Query

    Hi Gurus,
    I am using currecny translation in query for a key figure for which currecy is 0LOC_CURRCY.
    Exchange Rate which i am using is updated Yearly. So time reference is 0Calyear (star of calendar year).
    Source Currency option is - Source Currency from Data Record
    Target Currency - Target Currency Selection with Translation
    For target currency, I am using a user input variable which is on characteristics 0CURRENCY.
    I want to use a variable which should be on characteristics 0LOC_CURRCY (because it gives Key and Text both in the selection screen of the query).  I have created a variable on 0LOC_CURRCY but I am not able to find it in the target currency while defining currency conversion for the key figure.
    Please let me know if anybody has any solution.
    Regards,
    Gaurav

    Hi Gaurav,
    Instead of defining target currency as "Target Currency Selection with Translation", use the option of "Target currency from Variable" and mention the varibale created on 0loc_currcy there.
    This way, you dont need to mention the target currency variable on the key figure. It would autmatically be populated.
    Naveen.A

  • Using Planning Sequence in a Process Chain With input variants

    Hi,
    I have a COPY planning function which has multiple FROM and TO options like (From:Fiscal Year To Fiscal Year, From Version TO Version). In the layout they select the options for which they want to COPY and execute the function.
    How can I replicate the same approach in a process chain with the varaints, how can i create the FROM and TO variables in the process chain.
    Thanks
    Rashmi.

    Hi.
    You can save variable variant for planning sequence in modeler and then use it in process chain.
    In process chain you choose "Execute planning sequence" and add planning sequence with variant.
    All this if you using IP instead BPS.
    Regards.

Maybe you are looking for

  • AE + Premiere +Media Encoder CC startup crash

    Has anyone started getting MAC crashes on application startup? I have recently started getting this on splash screen. It doesnt go any further from there! I'm adobeless :-( I've trashed the prefs as per forum results but still no luck ;-( However pho

  • ABAP and ABAP Objects

    Hi , What is the exact difference between ABAP and ABAP Objects?

  • Validate multiple signatures on one document

    I want to send out meeting minutes to be signed by 3 different people. I made a digital signed validation signature account for myself many ago -- so mine is set up. But I'm at a loss as to how to establish the account for the other two signatories.

  • Is it possible to transfer my tracks to a new ipod?

    Because I really don't want the hassle of ripping all those CD's again!

  • VRML Loader

    Hi, I'm trying to create a very simple VRML viewer in Java and I have problems using the official VRML loader from j3d.org. Actually, Java 3D seems to work fine (I've successfully compiled and run a 3D, rotating cube), but when it comes to VRML scene