Assigning Currency to Key Figure through End Routine

Dear Experts,
We have written end routine to insert few records in to active table of a DSO.
We are getting error while activating the request.
As we have analysed, the error is occuring as we have not assinged the currency to these key figures.
So please guide us on how to assign the currency to a amount key figure through end routine or if any other  means is available.
Regards,
Anand

Whenever you insert any Amount field in ODS then currency is automatically added to it.. If you have created a KF of type Amount then included it an ODS ,make sure whether you have mapped currency field or not..
if you are writing some subroutine in update rule then checkout whether mapping is done for that Amount field or not. you can do direct mapping for fix currency or you can write a mapping in  subroutine for Source curr and target curr

Similar Messages

  • How to redefine the width of key figure through ABAP CLASS

    Hello experts:
         I encounter a problem when using table interface.
         I make a wad with two table(two query).The two queries have same characteristics, but different key figures in row.Now i want to adjust the format to make all the cell aligh. I have realize that when i keep the column header of the tables. But if i hide the second column header of table,  it's failed. I don't know where i can adjust the width of the key figure cell without column header.
    For example: query1: zmodel  qty01
                                          aaa       100
                          query2: zmodel  qty02
                                          bbb        200
    how to make the width of qty01 the same as qty02
    look forward to your answer.

    While populating the value in the cell use the following command.
    c_cell_td_extend = 'style = "width:200px"'.

  • How to populate values in DP key figure which is not present in Info Cube

    Hi
    We have a special Key figure in Demand Planning created for uplaoding Forecasts coming directly from customer,
    This key figure is not present in Info Cube and data doesnot pupulate in this key figure through Info cube build,
    Hence data in this key figure is to be loaded externally , Customer sends his forecasts through EDI messages, Now we want to update forecast from external customer in to this  special key figure,
    Please suggest some ways
    Thanks and regards,
    Nitin Lavhe

    Hi
    I think you can get loaded this information in the cube in any other key figure which is available in the info cube. Then while loading the data into planning area using TSCUBE, you can define the key figure assignment.
    In which you define data from which key figure of infocube has to be get loaded into which key figure of planning area. Here you can define the respective key figures.
    Please let us know if it helps you. Please let us know if you require any more information from our side.
    Thanks
    Amol

  • 0IC_C03 - some key figures have unassigned Store location

    Hi,
    I try to implement Inventory managment scenario in BW.I follow the How to document How to handle inventory management scenarios in Bw.
    Now I uploaded data to BW, the sume of key figures as general look good but I have problem with key figures,which work with value in currency, this key figures(e.g 0ISSVS_VAL, 0VALSTCKVAL) are not assigned to Store location 0STOR_LOC, values of these key figures have this characteristics Unassigned (#), unlike key figures with amount value e.g. kg etc are assigned to store location. So there is problem that is no possibility to compare material stock in currency and amount.
    Do you have any experience how to solve this issue?
    I work with BI 7.0 version and use standard object from BI content without modification.
    Thanks
    Petr
    Edited by: Petr Jedlicka on Aug 12, 2011 2:30 PM
    Edited by: Petr Jedlicka on Aug 12, 2011 2:31 PM

    Hi,
    Inventory values are captured at site/plant levels not the storage locations. These values are caputured using 2lis_03_um datasource. When you create a material, materials are created as per site. 0MAT_PLANT.
    when there are movements of sales in the inventory, sales take place thru site not storage location. So sloc will not get updated in the transaction. where as when you move stock from one site to other site, there may be on storage location for all site or one sloc for one site. So for qtys you will have sloc.
    Thanks
    srikanth

  • Events Sales Information System - Key figures

    What key figure is updated in Net incoming orders 1 and Net incoming orders 2 as defined under update group 000001. I can understand Net incoming order and Gross incoming order.........

    Hi Sanjay,
    In order to separate both of the key figure groups the updating process is controlled via various update groups. Update group 000001 is assigned to the key figure group for incoming order information and update group 000002 to the group of returns key figures.
    Assigning the business transactions to a certain update of statistics data takes place in two steps.
    In the first step, you compile certain characteristics of the business transactions such as customer, material, document type into statistics groups. In the second step, you assign the statistics groups to the various update groups.
    In the special case incoming order/returns, all of the returns order types are assigned to statistics group 02 and all other order types to statistics group 01. These different statistics groups are assigned to different update groups and thus key figure groups.
    You can assign an update group to certain business transactions using the Customizing function in Sales
    The two types of key figure groups used in the Sales Information System are invoice values and credit memo values. These key figure groups are differentiated by the different update groups (000001/000002).
    Assigning certain types of invoices to the update group 000001 and types of credit memos to update group 000002 is done automatically by the types of orders belonging to them.
    Just go through the following very useful link below:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/c1/3756d5449a11d188fe0000e8322f96/frameset.htm
    Hope it helps...

  • Error in DTP load from PSA to IC - Error - Key figure 0 not allowed for

    HI ALL,
    ERROR - Key figure <> 0 not allowed for unit ' '; see long text
    Diagnosis
        The unit/currency ' Source unit MEIN ' with the value 'space' is
        assigned to the key figure ' Source Key Fig. DIFF ' with the value '
        4240.000- '.
    System Response
        A key figure that is not equal to 0 and for which no unit/currency is
        set has an inconsistent data state. The data record is not processed.
    Procedure
        Correct the source data.
    Procedure for System Administration
    Please guide
    BR
    Prasad

    Hi ,
    First af all identify all such records by creating an error DTP so that the same can be collected in Error stack .
    1. Go to the Update tab of the normal DTP and there you can find the create Error DTP option .Click on that .
    2. This will take you to the Error DTP screen .Use the option 'Valid record updated reporting possible (request green).You can increase the number of errorneous records to be avoided there only .
    3. Please make sure you have activated the option of ' Valid records update reporting possible request green ' both in the Normal and Error DTP .Also the number of errorneous records to be avoided to be mentioned in both the DTP's.
    4. Activate the DTP's (Both Normal and Error) .
    After this can you please run the Normal DTP again .You can check the Error stack to see the errorneous records .When you double click on any record in the error stack it will thrown an error message from where you can find the exact error with those records .You can rectify these records in the errror stack and then run the error DTP to update the same to the data target.
    Ideally these records should be rectified in the Source system .
    Thanks
    Kamal

  • How to choose the characteristics and key figures for a cube

    Hi Gurus,
    To create a CO-PA cube, based on a DataSource, what chars and kfs should I select from std objects? I have the list of fields from the datasource, but how to interpret what infoobject/s are relevant for each io?

    To create a CO-PA cube, based on a DataSource, what chars and kfs should I select from std objects? I have the list of fields from the datasource, but how to interpret what infoobject/s are relevant for each io?
    Hi,
    For CO-PA since it is a generated DataSource, except for the common characteristics ( E.g. Company Code, Controlling Area ) where you get standard InfoObjects for all other Characteristics and Key Figures you end up creating custom or Z characteristics and key figures. This is unavoidable.
    Assigning points is the only way of saying thanks in SDN
    Thanks,
    Shan.

  • Hidden Key figures are not being displayed after unhiding

    We've applied SP 14 - SP 22 in our 3.1C BW system. Prior to the patches going in, users were able to unhide hidden key figures through the Change Query local view and view them in the report once the query was executed. After the patches were applied, even though the key figures
    were unhiden through the change query local view, they are not returned in the report after executing the
    query.
    As anyone run across this after appling this patch level ?

    Hi Rajkumar,
    Actually it is a generic extractor (customized) and the ODS active data is getting the delta records correctly. After I extract from R/3 and activate the ODS, the active table has correct results, but the change log table has the problem described before. All the fields comes from one single extractor.
    The 0RECORDMODE that I mentioned is about the setting in the transformation to the ODS. You have the Technical rule group where you can set the 0RECORDMODE, in my case it is set to ' ' (blank) which means it will receive After-Images from the extractor (which I think is correct in my case). The most curious is that it is working for almost all key figures (all amount type), except for the Price Unit which is Quantity type.
    Any other ideas?
    Thanks.

  • Key figures in PM Orders

    Dear Experts,
    Can you please tell me what is the significant of u201CKey figuresu201D in Maintenance order cost Tab. How the same is distinct from value categories and activity type.
    How can you make use of this key figures while generating in maintenance report.
    AR

    Hi,
    Value Category - generally value category groups several cost element account together.
    For example,
    Cost elements A451xx (Mech. Services) and A452xx (Facility Services), etc may be grouped into a Value Category called INTERNAL Services.
    Cost element A4652xx (Ext. Mech Consultant) and A4651xx (Ext. Facility Consultant ), etc, may be grouped into a Value Category called EXTERNAL Services
    Both Value Categories INTERNAL and EXTERNAL services can be aggregiated into a PM Cost Key Figure called SERVICES.
    Which value categories are grouped together under which key figure depends on your chart of accounts.
    To answer your question, the Key Figure gives you an aggregiate actual value of several value categories.
    Example
    In a work order, the following work has been carried out
    $500 of Mech Services, $500 of Facility Service, $500 of Ext Mech. and $500 of Ext Facilit consultant.
    The Actual value for Value Category INTERNAL service = $1000 and Value Category EXTERNAL services = $1000.
    Actual Cost of Key Figure SERVICES would be $2,000 (+ actual cost of other value categories assigned to this Key Figure.)
    I am not sure if there is PM report where the Key Figure field is displayed (or can be used as filter). In IW38, you can display the total Actual Cost, but not the details of the Key Figure.
    Try in the PM WO Cost Tab, you should be able to display the cost details if you click "Report Planned/actual" or "Report budget/commts" button.
    Regards,
    Joey

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

  • Report Painter - new Basic Key Figure for Currency Translation

    Hi,
    I need a report painter report which allows to translate the company code currency HSL in GLPCT into several target currencies. Theoretically I need to translate each month with an own translation rate and possible different translation keys.
    In table T804B I tried to create a new basic key figure for GLPCT in order to translate the HSL amount with a second TCURR rate. I copied the original basic key figure GLPCT - CC_HSL. I selected structure GLBDZ and fields CCH++ as data source and assigned new variables for the TCURR selection.
    The report painter report is setup with three columns : one in HSL, one with CC_HSL and one with the new key figure. In the selection screen of the report painter report I can enter two rates. But after execution the translation of the new basic key figures is done with the same rate as the CC_HSL column is using.
    Did anybody encounter an equal problem?
    Many thanks and regards
    Markus

    have you created a new calculation routine in form pool SAPFGRWG equivalent to E06_CALC_CURR_CONV_HSL? doesnt this explicitly get the company code currencies

  • 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

  • Assign currency via routine

    Hi,
    I have a key figure with an amount and currency. Both values need to be retrieved from another source than the one in the transformation rule. The solution for this is of course a routine where I'm able to assign the amount, but not the value. The only ways to assign a currency is via source (not the correct one) or conversion.
    How can I assign a currency via a routine?
    Eddy

    Hi Eddy,
    in BI 7, Tranformations, try with "Routine with Unit", here we take only Currency amount, and unit is assigned inside routine.
    i am not sure this meets requirement.
    Best Regards.

  • Currency translation problem for calculated key figure

    Hi All
    I have a problem with the currency translation for a calculated key figure.
    I have a requirement to show the MM consignment stock value in the specified currency from the selection screen.
    For consignment stock, there is no value maintained in the system. So for this we need to calculate the value as below
    Restricted key figure: RKFConsignment stock: Total stock with special stock indicator restriction "K"
    Calculated keyfigure: Consignment stock value = Nodim( RKFConsignment stock) * (Standard cost / price unit).
    Here, in the calculated keyfigure properties --> I have used a currency translation for the 0CALMONTH.
    The query has selection on the 0calmonth.
    But in the result the I am getting unexpected results.
    Do we have any inconsistencies in the currency translation on the formulas?
    Please help me on this.
    Regards
    S.R

    Hi All
    I have noticed something. I changed my query date selection to Calendar day - Keydate instead of calendar month.
    And I have changed the currency variable to fixed exchange rate "CHF", it is working fine.
    I think I have some problem with the currency translation variable.
    Could anyone of you please send me the currency translation variable for Calendar month with the below parameters
    exch rate  type :  M
    Time reference : 0CALMONTH
                               End of month
    Target currency for a variable : < var created on 0currency>
    For my report,  i need calendar month selection, currency selection.
    Please help me with your ideas.
    Thank you
    Regards
    S.R

  • Conversion routine for time key figure

    Hi,
    i have a filed in datasource which has length 5 ( of numeric char ).it may be coz time can be represented as "hh:mm" which has of course of length 5.
    this particular field is mapped to a key figure of type time ( which is only 4 numc ).
    because of this mismatches transfer rules are not getting activated.
    what i need to do now? is it neccessary to write a conversion routine again?if yes, can any body write here the code required for it?
    thanks,
    Ravi

    Hi Ravi,
    Assuming time comes in 'HH:MM' , colon placed explicitly , Code should look like ...
    bwtime(2) = r3time+1(2) .
    bwtime2(2) = r3time3(2).
    Where BW_Time stands for info object.
              R3time stands for transfer structure field.
    Normally time field is of type  numc lenght 6 ( HHMMSS) and inthat case should not be any issue when used in BW system.
    Hope that helps.
    Regards
    Mr Kapadia
    ***Assigning points is the way to say thanks in SDN.***

Maybe you are looking for