Currency convertion in bex with user exit

Hi,
In cube 0fiar_c03 we have documents where 0doc_number is 'USD' or 'ARS' we need to use differents currency when 0doc_num is 'USD' or 'ARS'... i am thinking use a virtual kf but i dont know where put the code when the user press convertion currency... in one case we want to use the historical currency and in the other we need to use actual currency
Best regards
Juan
Edited by: Juan Carlos Diez de Medina on Sep 16, 2008 8:55 AM

bump
Regards
Juan

Similar Messages

  • MRP Run with User Exit key for Follow up material

    Dear Gurus,
    I want to run MRP only for followup materials by using User exit key. For example i have a material X(with discontinued Indicator as 1) and it's follow material is Y.
    So we have a user exit key as ZFL, with coding as shown below. Now when i run MD01 with user exit key ZFL and parametre as 1, it only runs MRP for material X and not for material Y. What else we need to do so that when i run MD01 with user exit key ZFL, it shoudl consider both X and Y. 
    WHEN 'ZFL'.
    DATA : BEGIN OF ITAB5 OCCURS 0,
    KZAUS LIKE MT61D-KZAUS,
    END OF ITAB5.
    TRANSLATE USER_PAR TO UPPER CASE.
    SPLIT USER_PAR AT ',' INTO TABLE ITAB5.
    IF ITAB5[] IS INITIAL.
    EXIT.
    ENDIF.
    CLEAR: NO_PLANNING, STOP_PLANNING.
    READ TABLE ITAB5 WITH KEY KZAUS = MT61D-KZAUS.
    IF SY-SUBRC <> 0.
    NO_PLANNING = 'X'.
    ENDIF. 

    Hi Kumar,
         You can use either MRP Type, MRP Controller, MRP Group in this user exit to control the MRP run. For these set of Materials you have to assign any of same value or at least differentiate these material from other material. Then only you can control the MRP by using this user exit even though if you use different MRP Group and MRP Controller. In User Exit, you may have to add your dependent material's MRP Group/MRP Controller. Make sure that these set of materials are different than all other materials.
    If you don't have any plan to run MRP for other materials then as per Ajit suggestion you make that material's MRP type as "ND". But, in your business case they may want to activate the MRP for all the material not now but may be latter.
    Thanks

  • Valuation price with user exit/BADI/Enhancement Spot (In valuation variant)

    Hi all,
    i am facing problem finding enhancement when creation of sales order of Valuation price with user exit/BADI/Enhancement Spot  (In valuation variant)
    For refferenece:
    When going to t.code VA03, select one item and go to extras in the menu bar and select costing then you find some amounts calculation i.e valuation price automatically.
    So when creation of sales order i am giving material and that material price automatically takes from material master and creating sales order.
    My customer requirement is to get the valuation price of the input material from Z-table during the sales order cost estimate.
    This Z-table contains the material code, plant , grade  of the material.
    Ex:
    Material         Plant   Grade Price
    A                1000    XYZ     25000
    A                1000    PQR     35000
    A                1000    BCD     45000
    Suppose it depends on sales document type and which grade price i have to take.
    So first of all i am unable to find enhancement where to change this code to get change the valuation price.
    Does anybody have any idea , is there any user exit/BADI/enhancement for this.
    So please help me in this issue.
    Thanks & Regards,
    lokeshgoud

    pls allow me to post the questions

  • Please help me with user-exits or baids for TCode : FOE2 & FOE1

    Hi  Experts
    Please help me with user-exits or baids for TCode : FOE2 & FOE1.
    I found these but not picking values from VIMI01,VIOB03 and VIOB41.
    User-exits
    FVCH0001                                CH-specific enhancements: Esp. POR
    ISRE0001                                Determine bank procedure account no.
    ISRE0002                                IPD reporting data retrieval
    Business Add-in
    FVD_HANDLE_FORMULA                      Processing of Condition Formulas

    Hi,
    ASk your basis regarding the CI_CSKB table active issue, and first of all i dont see any table with the name CI_CSKB.
    And check this exit-COOMKS03 whether it works for your screen exits.
    Cheers!!
    VEnk@
    Edited by: Venkat Reddy on Nov 4, 2008 5:59 PM

  • Issue with user exit ZXPADU01 and ZXPADU02

    Hi,
    I am trying to change the existing record for the info type 0015 for an employee in Pa30 transaction.
    my requirement is i need old value and new value when i am changing the existing record in info type 0015.
    When i kept break point in user exit ZXPADU01 it is not triggering it is triggering only when we creating the record.
    i tried with user exit ZXPADU02 it is not working as per my requirement.
    My requirement is :whenever i am changing the existing record(modifying record) i need old value and new value.
    Anybody can suggest me how to fix this issue.
    Thanks,
    Maheedhar

    Dear Maheedhar,
    The best way to achieve this requirement is to use the PAI user exit ZXPADU02 import parameter PSAVE. The PSAVE parameter contains the PBO original / initial record, before any changes take place.
    The INNNN parameter contains the current PAI record as usual, in order to be used for customer check and new values. Thus, you've got both the old and the new record in place, and you can make your comparison according to the business requirements:

  • Valuation price with user Exit on activity types

    Hi All,
    Our customer could have different activity cost for different products even if they are processed on the same cost center, same activity type and same activity time. So I wonder whether SAP has valuation price with user Exit on activity types as what on material valuation, when we select "U" in the relevant valuation variant. Could anyone knows advise please?
    Regards
    Walter

    Hi Walter,
    an idea might be to include an ABC template into the costing. ABC tempaltes allow a big degree of freedom in determinin which processes to use and in which quantities. To use the product as a cost driver is certainly not an issue. I doubt that you can directly influence the process 'price' to be applied, but to change the quantity could bring the same result.
    See the docu for more info:
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/7e/cb7d1443a311d189ee0000e81ddfac/frameset.htm]
    best regards,
                        Udo

  • Formula variable with User Exit

    Hi,
    Can we create a Formula Variable of processing type USER EXIT...which will display a constant Value Y
    Any syntax would be helpful
    Thanks

    Hi,
    check this for formula variables with user exits;
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/customer-exit-to-derive-formula-variable-to-text-variable-sap-bw-35-3030684
    Also Check the issues and solution :
    Formula Variable with User Exit....Problem
    Thanks
    Hemav

  • Difference between the different structures while dealing with User-Exits

    While dealing with User-Exits, we come across the different structures/Tables like XVBAP,YVBAP,TVBAP,IVBAP,*VBAP....
    What is the difference between them ?

    Usually X<tablename> and Y<tablename> are used in change document management to determine records updated (Y is old values and X new ones).  (Look at transaction SCDO)
    T<tablename is an internal table read from database and I<tablename> is an import table parameter of the same structure. <tablename> is an equivalent of <tablename> declared with statement TABLES and contains usually the "old" value.
    Look at exit documentation. start at [User Exits In Sales Document Processing|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm]
    Regards

  • BI 7 Bex Query - User exit variables after variable screen re-processed

    User exit variables are not re-calculated after the variable screen is called up to re-run report with a new selection.  Is there some way to force the user exit variables to change?   I am aware of note 1064273 but this doesn't seem to help in these circumstances.
    Example:
    My Bex Query uses OI_FYPER for a static characteristic selection and  I have defined a customer exit formula variable which uses the values in OI_FYPER.
    All works fine when the query is run first time but if the user calls up the variable screen to change the selection and re-run the query, the customer exit formula variable is not re-calculated (customer exit is called but only with ISTEP = 3).
    Software version is NS2004S (BI 7.0)  SPS10, BI ABAP SP11, BI JAVA SP10, BI Front End Package 1401 rel 354.

    hi.. i just came to know about this in another thread..
    I_STEP 3 does not have I_VNAM stored. So, to access values at I_STEP3 :
    data: l_range TYPE RRS0_S_VAR_RANGE.
    if I_STEP = '3'.
    read table I_T_VAR_RANGE into L_RANGE with key VNAM = 'OI_FYPER'
    if SY-SUBRC = 0.
    ...code as required...
    endif.
    endif.
    Customer-Exit for analysis Authorizations: i_step = 3, i_vnam is empty

  • Numeric value variable problem with user exit

    Dear experts,
    I've created a variable (numeric value, user exit) and I want to get the value of variable from an user exit.
    Actually, I want to convert "0calyear" to a number to be albe to calculate (multiplying, dividing etc).
    If there is a possible solution only in FOX, the solution will be the best. However I couldn't find anything.
    So, the next solution I am trying is user-exit. But I am in stuck here.
    The problem is that I have no idea whether the numeric value variable has any sturcture like other variables(char. value) or not. If yes, what structure it has?
    I know, the characterisc value variables have the structure as blow,
        ls_varsel-chanm =
        ls_varsel-seqno =
        ls_varsel-sign  =
        ls_varsel-opt   =
        ls_varsel-low   =
    I've tried several times with the same way like above, but it doesn't work when I call the variable in "BPS0" or "UPSPL".
    How can I solve it? Please let me know.
    I am using SEM_BW 4.00.
    Many Thanks.
    Bruce

    Hi Ravi,
    Sorry, there's a correction. <b>var2 is used for getting the first month of the year selected by the user in var1</b>. If the user doesn't enter a value for var1, then var2 should take first month of current year from var1 which has by default last month of current year (populated in i_step1 from sy-datum). The user can select the value of var1 according to his requirement. Then var 2 should get first month of the year selected. That's why I'm using two exit variables.
    It works fine during the initial run of the query. But when the user clicks on the variable button in the toolbar and executes the query, var1 is not being displayed and an error message <i>No value could be determined for var2</i> is shown. All other variables used in the query are displayed except var1.
    Krzys, Is the option <i>Can be changed in Query Navigation</i>  available for Exit variables. I'll check that and get back to you.
    Boujema, Thanks for the OSS note.
    Thanks
    Hari

  • Formula Variable with User Exit....Problem

    Hi
      My requirment is to create a Formula Variable on User Exit that will give me Current Cal Year...so that i can use that vale in Formulas
    Created Formula Variable with processing Type Customer Exit single Value,Mandator and Unchecked the Variable input ready
    The below code in CMOD
    WHEN 'XXXXXXX'.
    Year  = sy-datum(4).
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = Year.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND l_s_range TO e_t_range.
    But when i execute the query i am getting the below error
    No value could be determined for variable xxxxxxx.
    Incorrect call of OLAP layer CL_RSR_OLAP; error in BW-BEX-ET
    Diagnosis
    This error diagnosis is specific only to the variables 0P_FVAEX or 0P_CTPCA !
    Termination message BRAIN 632 appears:
    Could not determine value for variable 0P_FVAEX (or 0P_CTPCA).
    WHAT WRONG I AM DOING...please update me

    Use the code:
    WHEN 'XXXXXXX'.
         IF i_step = 2.
              Year = sy-datum(4).
              CLEAR L_S_RANGE.
              L_S_RANGE-HIGH = Year.
              L_S_RANGE-SIGN = 'I'.
              L_S_RANGE-OPT = 'EQ'.
              APPEND l_s_range TO e_t_range.
         ENDIF.
    Let me know, if it is work or not!
      - Balajee Kannan

  • VIrtual Cube with user exit

    Hi,
    This is the Scenario :
    Version : Bi 7 / Nw04s patch 11.
    Source : ECC 6.
    1) Virtual Cube V1 based on a generic Data source D1 in ECC or R/3 source system
    2) The generic data Source has 10 fields , 7 are from a Standard Table, the 3 are populated during extraction via Transaction data User exit ZRS01*).
    3) When I run the extractor checker for Data source D1 in R/3 all the 10 fields are populated.
    4) Problem : when I do A list cube in BI on the virtual cube all te data in ECC is seen however the enhanced fields derived in the user exit are coming in as blank.
    Any experience on this, whether this is a limitation of I need to create a message with SAP.
    Would apreciate any thoughts or experience n this are,
    thanks
    TC

    Check the user exit,if the code has been written to that specific datasource which was meant for the ODS(Watch out for case statements).

  • BPS Help with user exit.----- Quick one for Marc.B?

    Hi All,
           I'm using an user exit to prefix the GL/account with '2' to make it a stat account.In the fields to be changed , i have included all the characteristics like gl account,region,line of business...key fig name..etc.However when i run the exit, my key figure amount is doubling up.Need a quick fix or a second pair of eyes..also found that xth_data cannot be used in MODIFY statement because of hash table .so I'm using a collect.But as soon as i exit out of the loop, the key figure amount doubles....any pointers????
    Here is the code.................................
    FUNCTION Z_SEM_PREFIX_2ACCOUNTS.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(I_PLEVEL) TYPE  UPC_Y_PLEVEL
    *"     REFERENCE(I_PACKAGE) TYPE  UPC_Y_PACKAGE
    *"     REFERENCE(I_METHOD) TYPE  UPC_Y_METHOD
    *"     REFERENCE(I_PARAM) TYPE  UPC_Y_PARAM
    *"     REFERENCE(IT_EXITP) TYPE  UPF_YT_EXITP
    *"     REFERENCE(ITO_CHASEL) TYPE  UPC_YTO_CHASEL
    *"     REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"     REFERENCE(ITO_KYF) TYPE  UPC_YTO_KYF
    *"  EXPORTING
    *"     REFERENCE(ET_MESG) TYPE  UPC_YT_MESG
    *"  CHANGING
    *"     REFERENCE(XTH_DATA) TYPE  HASHED TABLE
      DATA:
        ls_data   TYPE t_s_alloc,
        lth_data  TYPE t_th_alloc.
    *Loop thru the data and check if its a valid GL account.
    *If its a valid GL account, Prefix '2' to the beginning of the
    *account and also add 'DDD' to the transaction type in order to
    *identify the record.once the prefixing is over , you will have the  old as well as the new set of records.
    *records as they will not have the 'LOB' flag in the transaction type.
      lth_data = xth_data.
      LOOP AT lth_data INTO ls_data.
        if ls_data-s_chas-0gl_account
                                    is not initial.
           if ls_data-s_chas-0gl_account+3(1) = '0' AND
             ls_data-s_chas-0gl_account+4(1) <> '0'.
              concatenate '000' '2'
              ls_data-s_chas-0gl_account+4(6)
              into ls_data-s_chas-0gl_account.
              ls_data-s_chas-zoctrtype = 'LOB'.
           endif.
       endif.
      collect ls_data into lth_data.
      ENDLOOP.
    DELETE Lth_data
            where s_chas-0gl_account+3(1) <> '2' and
                  s_chas-zbpsflag = 'C'.
      xth_data = lth_data.
    ENDFUNCTION.

    Hi Sudz,
    you got it almost right. If you do the collect the system will add the changed records to the exiting ones since you start with lth_data = xth_data. So use the following logic:
    start with empty table
    refresh lth_data.
    now process all exiting data
    LOOP AT xth_data INTO ls_data.
    if ls_data-s_chas-0gl_account is not initial.
    if ls_data-s_chas-0gl_account+3(1) = '0' AND
    ls_data-s_chas-0gl_account+4(1) <> '0'.
    concatenate '000' '2' ls_data-s_chas-0gl_account+4(6)
    into ls_data-s_chas-0gl_account.
    ls_data-s_chas-zoctrtype = 'LOB'.
    endif.
    endif.
    and collect the new data
    collect ls_data into lth_data.
    ENDLOOP.
    return only the new data
    xth_data = lth_data.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Customer Credit Balance with user exit: LVKMPFZ1

    Hi SD Gurus,
    Is it possible to use exit:LVKMPFZ1 with USER 1 in transaction OVA8 to be able not to check credit limit when the customer has credit balance....If possible, please advise.
    Thanks
    Themba

    Hi,
    Good evening and greetings,
    In the dunning procedure, FBMP transaction code click on the Dunning Levels and inside the dunning levels there is an option under the print parameter tab to print all items...Check that box and the system would include even the credit line items lying in the customer account and that can be printed out.
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • FI rule transport with user exit

    I'm transporting FI substition rule, there are two selection checkbox: logical rules and boolean class,
    if I want to transport pre-requisite only, do I need to select logical rules only? what happens if I don't select?
    if I want to transport also user exit under the substitution rule, should I choose boolean class and de-selct logical rules?
    what should I select for each above two case?

    Hi,
    Boolean classes and logical rules have nothing to do with pre-requisites and/or user-exit of your substitution. Logical rules is something you define outside the subsitution as additional feature.
    Regards,
    Eli

Maybe you are looking for