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 .

Similar Messages

  • CANT execute query with parameter on user defined tables using query genera

    Dear All,
    I have problem when executing query with parameter on user defined tables using query generator.
    It seems SBO cannot accept parameter to query user defined tables.
    I've tried these:
    SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = [%0] --- this FAIL
    I try to pass the value directly without using parameter and It works
    SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = 2 --- this SUCCESS
    This one works
    SELECT * FROM RDOC T0 WHERE T0.width =[%0]  --- this SUCCESS
    and this one works too
    SELECT * FROM RDOC T0 WHERE T0.width = 595  --- this SUCCESS
    Is there anyone can help me ....???
    Thanks,
    Alfa

    I  generated this code using query wizard ....
    SELECT T0.[U_Status] AS 'Document Status' FROM  [dbo].[@ST_PR_H] T0  WHERE T0.[U_Status] = (N'2' )
    and replaced the (N'2' ) with [%0]
    SELECT T0.[U_Status] AS 'Document Status' FROM  [dbo].[@ST_PR_H] T0  WHERE T0.[U_Status] = [%0]
    and It worked ......
    Thanks 4 all .....

  • 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.

  • 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.

  • How to create sap query with "or" relationship

    dear experts,
    I need a report to display the employee whoese WSR is
    changed in the month for infotype 0007.
    that is ,we want to search with selection
    begda OR endda between 2008-01-01 and 2008-01-31.
    how to create sap query with "or" relationship?

    hi use like this,
    CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
        pernr                 =  p_pernr
        infty                   =  '0007'
       BEGDA                =  p_date1
       ENDDA                 = p_date2
      TABLES
        infty_tab             = itab .
    hi use this by passing the pernr to fm and giving the dates low and high in the p_date1 and p_date2.
    loop at itab where condition.
    endloop.
    may it helps u,
    regards,
    venkat.

  • Currency Conversion based on condition in BW

    Hello,
    I have gone through the cople weblogs/links/doc whatever information I found on currency conversion. However I am not able to figure out what could be done in below scenario. Please guide.
    Scenario -->
    I have STATUS and POSTING_DATE in my Cube. Key Figure in this cube is AMOUNT. Transactions are created in source system in local currency. When data is extracted to BW, I get AMOUNT in local currency and with right clicking on this column in Bex, I can convert it in Fix Target currency or I can permanently create one new column in my report which will always shows fixed target currency for AMOUNT. So far so good.
    Now the problem is I wanted to use the conversison rate maintained in TCURR table based on some condition.
    Ex: IF STATUS=CLOSED, then use Conversion rate as of POSTING_DATE,
            ELSE, use current date exchange rate.
    Standard currency conversion always use curent date for calculating exchange rate, but can I use conversion rate as of POSTING_DATE?
    Please advice.
    Regards
    Pankaj

    Thanks everyone for reply. I really apprecite your help.
    I tried the suggested FM "CONVERT_TO_LOCAL_CURRENCY", just have one more clarification.
    I debuged this FM and saw that Date which we are passing get's inverted as this is how date is maintained in TCURR table. So far so good. But TCURR table normally get's loaded once a month (say at the start/end of month) and so we will have only one date there. However input date which I am passing into thi FM can be any date (as this is the date maintained at transaction level). How do you handle this case?
    Please advice.

  • 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

  • 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 Change SAP Query in Crystal Reports

    Hi,
    i have a problem with changing a SAP Query in an Crystal Reports.
    I build a Report with a Query(1) and Design the Report complet everything works fine.
    I make a new Query(2) and if i make a new Crystal Report with this new Query everything works fine.
    Now my problem is i would like to use the design of the first report. Therefore i open the first report and save it under a new name. Delete all Database fields and delete the database connection.
    Now i gave in the new database connection to the new query(2) and in the Database fields i see a lot of Fields but not the right ones. Its completly wrong. Is there anybody how know this problem?????

    Hi i solved my problem by myself.
    I have to set Query as external available and have to use the MDX Query.
    Its strange because if i build a new report the query dont have to be set as external available.

  • Unusual Problem in SAP Query

    Hi Experts,
    I am facing a very Unusual problem in during SAP Query Devlopment.
    In Input screen I am taking value as User , which is coming from User02 table and field name is
    Bname . In USR02 table Username is maintained boths as Numeric num ( like 1236533) and Username wise ( Like gd.anil etc).
    But While running the query , Its execute only when giving the nUmeric Num , It wont executes if i give the name like gd.anil .
    This gd.anil is also maintained in USr02 table .
    Can anyone tell me why its happening.
    Thanks .
    Koro

    If the user ID is actually stored as lower case, then it was entered directly or with a screen field that doesn't have a screen mask.  You are most likely using the DB field in your selection screen and it's being converted to upper case after entry but before selection.  Have you debugged the generated program?  You should see this in the query.

  • Access from WebI/ Universe to SAP Query with user who has analysis authenti

    Hello together,
    I try to run and build a WebI report which is build on a universe based on SAP BW query. The user has restricted access to the data provider on which the SAP query is build. This restriction is based on analysis authentification (SAP BI 7.0) if I start the SAP query in BW the user has only restricted access to the data in the data provider (on which the SAP query is build). If I start the WebI report the user has full access to the data. I checked the authentification and in my opinion there is no other authentification in SAP BW which extends the restrictions.
    Has anyone an idea why the authentification doesn't work?
    Greetings Janine

    Hey here,
    I m creaing my universe on top of Infocube or multiprovider.
    >> The recommendation path is to use BW queries with the necessary Authorization Variables leveraging your BI Authorizations.
    For eg:
    I have 2 users, User1 and User2.
    Now if I want User1 should see data for CostCentre = UK,India.
    User2 should see data for CostCentre = US, UK,India
    >> This is part of BI Authorizations in BW.
    Here are my queries:
    1) Will User1 and User2 be able to see the data level access in Webi Report based on the their Login?
    >> assuming you follow the 2 steps mentioned above (Query and authorization variables) - yes
    If Data level access cannot be achieved in Webi via universe created on top of Infocube/Multiprovider then what is the approach to do so?
    >> Data level security is part of your BI authorizations in BW.
    In a nutshell, BO alone can't do that, one has to set up at BI level.
    Hope clarified all your doubts.
    Gracias...!!

  • 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

  • SAP Query with Logical databse BRM

    Hi All,
    I'm developing one report by SAP Query using with logical database BRM to pick the accounting documents. But I would like add some kind of where condtion for one of field for BKPF table. Is there way to achieve this by using logical database concept? If there is a way please help me.
    Thanks in advance.
    Regards,
    TNR

    hi
    in SQVI, kindly follow the below steps:
    a.  in the left hand pane, click on the data fields.
    b.  expand the 'accounting document header'.
    c.  for the field BKPF-TCODE click on the 'List Fields' and the 'Selection fields'.
    d.  click on execute,
    e. you can now enter the values for the BKPF-TCODE.
    regards
    eashwar
    Edited by: eashwar1 on Feb 11, 2010 11:55 AM

  • SAP Query with Logical databse

    Hi All,
    I'm developing one report by SAP Query using with logical database BRM to pick the accounting documents. But I would like add some kind of where condtion for one of field for BKPF table. Is there way to achieve this by using logical database concept? If there is a way please help me.
    Thanks in advance.
    Regards,
    TNR

    hi
    in SQVI, kindly follow the below steps:
    a.  in the left hand pane, click on the data fields.
    b.  expand the 'accounting document header'.
    c.  for the field BKPF-TCODE click on the 'List Fields' and the 'Selection fields'.
    d.  click on execute,
    e. you can now enter the values for the BKPF-TCODE.
    regards
    eashwar
    Edited by: eashwar1 on Feb 11, 2010 11:55 AM

  • Problem in sap query

    Hi All,
    I have  changed the standard sap query . i have written coding for newly added feilds in infoset(sq02 code part).
    I want to join my internal table with standard internal table ( final internal table ) to incorporate changes.
    Please guide me to merge both the internal tables.
    Thanks in advance
    Sudhakar

    Hi,
    All other part remain same.Could you please tell me why we got that error any probable Opinion from your side...
    thanks in advance.
    Regards,
    Moni

Maybe you are looking for

  • I have an alias file that will not delete or drag and it will not open to original file. How do I get these off my Mac?

    I have an alias file that will not delete or drag and it will not open to original file. I have tried everything I know and they still wont delete. Can someone please help me?

  • BW report in Crystal

    Hi, I am trying to get vendor line items report as in FBL1N in crystal reports. How do we do this. I have tried to create a connection from the crystal wizard but gives no server avialable. or if this report can be created from a BI cube will be grea

  • ClientAbortException problem on error page

    Hi I am trying to solve the mistery that has been bugging me for a while now. We have the same J2EE app deployed on 4 servers. The application is for content management. One server is for development, one for QA, and other 2 for production. All serve

  • Can't locate original song files from iTunes

    I purchased songs from iTunes & cant locate original files on my computer/iPod.  Searched harddrive, recycle bin, etc.  When you click on song title in library, states cannot locate original files and asks me to locate.  Yet when I try to redownload

  • Bug in either ANSI Join or Oracle 10.2

    I can't tell whose bug this is, but it's almost certainly a bug. My co-worker Martin wrote a query (below) that returned zero rows, which he knew was wrong. In exploring this further, he discovered that rewriting the join from ANSI 92 to the old WHER