Creation of 4 new formula variable in bex.

Hi All,
i have one requirement from my customer.Can you please suggest me to achieve on this.
All,
Please can 4 new Formula Variables be created in SAP BW for all relevant structures
Can the Pipe Test Date, Gas On Date, Completed Date and Abandoned Date be all based on Working days rather than calendar days
My queries to the above requirements is:
1.Do we need to write a code in customer exit(EXIT_SAPLRRS0_001) to achieve this.
Please advice.
Regards,
Sakthivel S

Hi,
Do you have Working days field or data in your system? I think you are talking about Factory calendar.
You can create 4 Formula variables by taking reference chars as Pipe Test Date, Gas On Date, Completed Date and Abandoned Date
Yes, you need to write CMOD code to consider Working days.
Can you explain requirement much more clearly?
Regards,
Suman

Similar Messages

  • Formula Variable in Bex , Urgent

    Hi Experts,
                        I have created a formula variable on 0Material with replacement path as processing type. I am using this formula variable in a formula that i have created. The formula works fine.
    However , when i create another formula variable on 0Prod_hier ( which has a navigational technical name 0MATERIAL__0PROD_HIER ) with replacement path as processing type, The formula which i have created doesnt work.
    Ex:
    1) ('MAT_FORM' == 100010001)'NET_SALES'10  , This works fine
    2) ('HIER_FORM' == 10000010000001)'NET_SALES'10    . This fails.
    Iam using the same formula process but with different formula variables , i cant understand why the formula is failing
    I have checked the data, in the cube and the infoprovider (0Material has 0PROD_HIER data) , but i am stuck as to why the system is not recognizing the prod hier values,
    Kindly help me on this,

    Hi,
    Please read the following:
    BEx Query Designer: Creating formula variables
    You have loaded data into your InfoProvider. To be able to use sign reversal in reporting, you have to define a formula variable in the query definition:
           1.      You are in the Query Designer. Under Key Figures, use the context menu to choose New Formula. The Formula Builder opens.
           2.      Under Formula Variables, choose New Variable from the context menu. The variables wizard appears.
           3.      Enter a name and a short text for the variable. Choose Replacement Path as the processing type.
           4.      Choose your hierarchy basic characteristic.
           5.      Choose Hierarchy Attribute as the replacement. The attribute Sign Reversal is automatically displayed.
           6.      Save your formula variable. When defining the formula variable, you get the factor 1 or –1, with which you can multiply the required key figure.
    Regards,
    Subha
    If you find it useful, pleae grant me points

  • Drop-Down-Box (F4 Input Help) for formula variable in BEx Analyzer (BI 7.0)

    Hi Gurus,
    is it possible to get a drop down box for a ready for input formula variable in the BEx Analyzer (not BEx Web!)?
    We want to let the users choose scaling factors 1, 1000 or 1000000 (implemented via this formula variable). In the settings of the formula variable you can only choose a default value but there seems to be no option to provide all three factors in a drop down box like the ones for characteristic value variables.
    We could prevent other entries in the variable pop up via customer exit (i_step 3) but the business is wishing an F4 input help like the ones for characteristic values.
    Thanks for your help,
    Marco

    Hi Macro,
    Its not possible to get drop down box for a ready for input formula variable. Because it is possible only for characterstic value variables but not formula variable.u donnot get any drop down box like ready for input for formula variable.
    Regards,
    Premalatha.C

  • What is a formula variable in bex

    hi friends,
      can anybody tell me about what is a formula variable. how can we use formula variable. give me one simple example. thankk u.
    thanks,
    sree

    Hi..
    Here is the sap link which will gives u the best about variable...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0a/cd6e3a30aac013e10000000a114084/frameset.htm.
    Here is some examples  how u can use formula variable...
    1) If u want to multiply the key figure in the data target(DSo or CUBE) with an attribute of masterdata which is used in the Data target.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/72f4a790-0201-0010-5b89-a42a32223ffc.
    2)caliculating the aging.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/calculating%20the%20ageing%20of%20the%20materials.pdf
    3) the difference in the dates at the query level
    Re: Calculate no.years/months/days in Bex formula
    Regards....KP
    Edited by: kundan.sap on Jul 3, 2010 5:41 PM

  • Date formula variable in BEx output

    Dear All,
    In Bex , I made a formula variable F_CURDATE and used it in formula. I fill it with current date
    l_s_range-low = sy-datum.
    My value in BEx comes 201,40,604. This is 04 Jun 2014.
    Why isn't it coming in date format. I then, used data function [date]'process value as date. The output shows value X.
    How can I show  date in date format in BEx?
    Regards,
    cleo

    Hi Cleo,
    The bit l_s_range-low = sy-datum must be coming from the customer exit code, right?
    And should this code not be used for populating a cust exit variable? How do you populate sy-datum to a formula variable in the query? Pls correct me if i m missing something in your question.
    However if it is a formula variable on 0CALDAY, there are standard SAP variables giving current date.
    Can you not use them in your query as per your requirement?
    Regards,
    Srilakshmi B

  • Formula variables from BEx to WebI

    Hi,
       I have a formula variable(manual input) in a Bex Report, based on this variable only the result output is displayed using conditions.But when i create a webi report on this , the formula variable is coming as a default prompt, but the condition doesnt work.
    Thanks,
    Praveen

    Hi ,
        Can anyone please give me suggestions on this
    Thanks
    Praveen Kuamr

  • CMOD - New Formula Variable

    Hi.  I use CMOD all the time to create new variables from info objects, but now I want to create a formula variable - not one from an infoobject.  Do I do that in CMOD still?  If so, where?
    Thanks.

    Hi David,
    Yes you still have to use CMOD and   enhancement                                                        
    RSR00001 BW: Enhancements for global variables in reporting  " which you have been using when you create new varaibles using customer exits.
    Jaya

  • Formula Variable in BEx

    Hi All,
    Can some one explain to me whta a formula variable is all about and how it works.
    With an example or point to some document for the same...it will be very helpful.
    Thanks in advance.
    Tina

    hi Tina,
    check this
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/579b3c494d8e15e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/579b3c494d8e15e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/1e9b3c334d8c15e10000000a114084/content.htm
    hope it helps.

  • Change the description dynamically for formula variable in Bex

    Hi Everyone ,
    I need to change the description of my formula variable that i have created in coulmns.
    My requirement is as follows:
    Depending on the date it must show for next 5 days . So i have created 5 formulas and i need to change the description dynamically.
    22 july 2013
    23 july 2013
    24 july 2013
    25 july 2013
    26 july 2013
    XXX
    XXX
    XX
    XXXX
    XXXX
    Please help me in this.
    Thanks in Advance.
    JC

    Hi,
    Please follow this doc to create text variables to display texts dynamically.
    http://scn.sap.com/docs/DOC-11187
    Regards,
    Suman

  • Creation of a new Formula Routine for condition base value calculation

    hello people,
    i am stuck up in a situation where SAP has itself said that nothing can be done.
    but i know you all can guide me to some way or the other
    see, the scenario is like this
    1. i have to calculate the base value for a pricing condition.
    which will follow the formula
    net value + excise duty + freight
    2. in standard routines two things are normally bieng used
    xkwert for the value that has to be finally calculated(taking reference of routine 004)
    komp-netwr for the net value
    3. i have to calculate the excise duty by adding up all the base values of existing pricing conditions like JMOP, JEC1 etc that i have which i saw in internal table
    XKOMV on debugging
    4. now freight is to be calculated from all the values of condition types that are in KOMP which is a structure and no internal table is defined in standard main program
    now ppl
    can you guide me by looking at the standard program
    what is this xkwert field and where it is assigning the value.
    how to get field from other structure and table.
    please guide as to how to approach the problem.
    thanks and regards
    Nitin

    HI,
    the scenario u r talking abt is condition based value formuls of VOFM transaction.
    here the data is retrieved as 'X' structures and will hold normal tables with respective names. and in this case all the pricing data is in KOMV ie XKOMV
    Final amount including tax
    form frm_kond_basis_004.
      xkwert = komp-netwr + komp-mwsbp.
    endform.
    always calulation is done in xkwert field and final value is stoerd in xkomv.
    *.................. text ............................................. *
    Condition base value formula to get the assessable value of the     *
    saleable material from j_1iassval. If the value is not maintained   *
    then the selling price will be taken as the base                    *
    TABLES: J_1IASSVAL.
    DATA XXKOMV LIKE KOMV .
    XXKOMV = XKOMV.
    SELECT SINGLE * FROM J_1IASSVAL WHERE J_1IWERKS = KOMP-WERKS AND
                                         J_1IMATNR = KOMP-MATNR.
    IF SY-SUBRC EQ 0.
        IF J_1IASSVAL-J_1IVALNDP NE 0.
        XKWERT = J_1IASSVAL-J_1IVALNDP * KOMP-MGLME / 1000.
        ENDIF.
        IF J_1IASSVAL-J_1IVALASS NE 0.
        XKWERT = J_1IASSVAL-J_1IVALASS * KOMP-MGLME / 1000.
        ENDIF.
    ELSE.
       XKWERT = XXKOMV-KAWRT .
    ENDIF .
    XKOMV = XXKOMV .
    ENDFORM.
    and as far as ur  req select allthe condition type data and sum and take the average value and pass it.

  • Formula Variable with replacement path on 0CALDAY

    Hi,
    I am trying to enhance an existing query.
    I am creating a new formula variable processing by replacement path.
    In Reference Characterisitic I have choosen 0CALDAY.
    In the tab options , I selected replacement path.
    In the replacement path tab, in Replacement Rule /replace variable with I am trying to select the variable. But in the variable list I am not able to find 0CALDAY variable, which we have already created and restricting in some other key figures.
    Please help me in this regard.
    Thanks & Regards,
    Madhav

    Hey in the replacement path tab you need to choose either its infoobject or variable from which the value needs to be taken.
    If you choose infoobject you get the options of choosing its attributes etc.
    If you choose variable you get option to choose variable associated.
    But under "General Tab" under reference characteristic you need to choose your CALDAY.
    Hope this helps.
    Edited by: Praveen G on Sep 26, 2008 5:53 AM

  • Formula Variable with customer exit

    Hi,
    can we use Formula variables with customer exit based  on characteristics(ex Bill date)? if yes, can you guys help me on this.
    Thanks
    kri

    Yes , you can use a formula variable with customer exit based on characteristics .
    Depends on the requirement what you want to show in the formula variable ,
    Eg : if you want to show the max fiscal year period , in that case :
    create a new formula in the keyfigure section of your query , go to edit , you can see formula variable below the keyfigures ,
    right click on the same and create new formula variable :
    Write the code for the formula varible in the backend as we do for normal customer exit varaible :
    for this e.g the code will be :
    FORM get_variable_value
          tables E_T_RANGE      type RSR_T_RANGESID
          using I_VNAM          type RSZGLOBV-VNAM
                I_VARTYP        type RSZGLOBV-VARTYP
                I_IOBJNM        type RSZGLOBV-IOBJNM
                I_S_COB_PRO     type RSD_S_COB_PRO
                I_S_RKB1D       type RSR_S_RKB1D
                I_PERIV         type RRO01_S_RKB1F-PERIV
                I_T_VAR_RANGE   type RRS0_T_VAR_RANGE
                I_STEP          type I.
      DATA L_S_RANGE LIKE LINE OF E_T_RANGE.
      DATA loc_var_range LIKE rrrangeexit.
    Data  : l_inPer TYPE string.
    IF i_step = 1.
    Select min( distinct FISCPER )
            from /BIC/A(DSO name)
            into l_minper  .
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        l_s_range-low = l_minper  .
        APPEND l_s_range TO e_t_range.
    endif.
    drag the formula variable in the new formula created and exexcute the query , you will be able to see the output .
    This is just an example , your code will differ as per your requirement .

  • Formula variable problem on replacement path

    Hi all,
    I created a characteristic value variable for the 0CALDAY (ZVAR1) with the following details.
    - Characteristic Value
    - Customer exit
    - Calendar day
    - Mandatory
    - Variable is ready for input  unchecked
    Now i need to give the calculated value in customer exit by I_STEP 2 in a new formula variable (ZVAR2).
    So:
    1) I create in columns a new Formula (zFormula)
    2) In edit mode I create a formula variable (ZVAR2)
    3) in edit mode of the formula I set the following details:
      - Replacement path
      - Replace variable with: Variable
    Here the problem: when I open the popup on selected box to choose the vcharacteristic value variable I don't see the ZVAR1.
    I don't understand where is the problem.
    May you help me ... regards, Roberto

    Ok solved.
    Roberto

  • Formula Variable error

    Hi All
    I have a requirement to calculate an aging bucket. ( CURRENT_DATE - EXPIRE_DATE). I have Expire_date as a characteristic InfoObject of DATS type.
    I found a solution to create formula variable in BEX and use replacement path functionality.
    When i do the same i can save the variable and the query. but on performing a query check i get the following error:
    variable used incorrectly or does not exist.
    Kindly suggest why this is happening. We are using Bex 7. I refered to the following link.
    http://www.sd-solutions.com/SAP-HCM-BW-Replacement-Path-Variables.html

    Hi,
    check out tths pdf.It will give you whole insight on how to work on ageing report.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f15839-0cf1-2b10-c6a7-ebe68cc87cdc?quicklink=index&overridelayout=true
    Hope it helps.
    Regards,
    AL

  • BEx Analyzer report "New Formula", "Scaling Factor" property not working

    Hi Experts,
    I have created a New Formula(Ex:- Dispatches * 2) in BEx Analyzer report. The result of the "New Formula" is 2000. When I maintain Scaling Factor as "1000" to the  New Formula properties, the result should be 2 but here 2000 is coming again.
    When I maintain this property to the existing keyfigure in Analyzer report, it is working fine.
    Please help me in this whether Scaling Factor can be applied to the New Formula or not in BEx Analyzer report. If it works, what changes we have to make to the New formula.
    SAPKW73010 is applied already to SAP BW-730
    Please see the attachment.

    Sree,
    Is the variable ABC the new one that you've created with Scaling factor setting given? The message you get on doing a syntax check on the query indicates that settings are ignored for use beyond the query.
    And if this is the case, this is a known issue. 
    However such settings will work on existing keyfigures as it is in your case.
    What you can hence do for this new variable is that if you are developing reports on top of this bex query, you can make the scaling factor setting at the report level.
    Let me know if this works for you.
    Regards,
    Srilakshmi B

Maybe you are looking for