Formula variable is a user entry ??

Hi All,
I have created formula variable as a number and how i can use this formula variable is a user entry variable
Please help me this
Regards,
Ravi

Thank you very much I have used this formula variable in condition so I was missing some Key figure values, now I am getting total Key figure values 
I appreciate your help
Regards,
Ravi

Similar Messages

  • Formula variable for a user input DATE value

    Hi All,
    I want to create Formula variable for a user input DATE value as I need to use it in a formula to compare between user entry date & date in the DSO. Does any body has any idea about it?
    I tried to create formula variable with manual entry but then I am not getting DATE option.
    Regards,
    Sonal

    Hi ,
    You have to create a formula variable in the formula.
    The formula variable in the general tab would have the reference characteristic as your date characteristic on which you have created a user entry variable or on which you intend to create a date entry variable.
    Give the proceesing type as replacement path.
    Next in Replacement path mention you would replace the variable with value of another variable.
    Mention the variable name.(This is the actual varaible created on the selection screen),
    Also mention you would replace only from value/to value of the variable.
    Check the following help link
    [Replacement path type formula variable|http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
    Hope this helps,
    Best regards,
    Sunmit.

  • Variable Creation on user entry FISPER

    Hi All,
    I need help to design a BEx Query , currently I am facing a challenge. The client require the report query design as per the screen shot.
    Hence I have
    1. I have calculated YTD using 0P_FPER (User Entry Value).
    2. But the rest figures , I need to display over the periods , for example user entered 003.2009 , the Key Figure should be displayed under three column 001 till 003 and YTD Key figure in single column cumulative of all three periods.
    3. Please help as I am unable to create variable which will give me 002.2009 and another variable 003.2009 ..
    The number of column should be dynamic in nature depending upon user entry.
    Regards,
    Subhasish

    So , I just have to use it as restriction (filter) = 0I_BA106 for the Previous Year YTD.
    Do I need to consider any other variable for Fiscal Year restriction ?
    The Function module states :
    FUNCTION RSVAREXIT_0I_BA106 .
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(I_VNAM) LIKE  RSZGLOBV-VNAM
    *"     VALUE(I_VARTYP) LIKE  RSZGLOBV-VARTYP
    *"     VALUE(I_IOBJNM) LIKE  RSZGLOBV-IOBJNM
    *"     VALUE(I_S_COB_PRO) TYPE  RSD_S_COB_PRO
    *"     VALUE(I_S_RKB1D) TYPE  RSR_S_RKB1D
    *"     VALUE(I_S_RKB1F) TYPE  RRO01_S_RKB1F
    *"     VALUE(I_THX_VAR) TYPE  RRO01_THX_VAR
    *"     VALUE(I_STEP) TYPE  I DEFAULT 0
    *"  EXPORTING
    *"     VALUE(E_T_RANGE) TYPE  RSR_T_RANGESID
    *"  EXCEPTIONS
    *"      NO_PROCESSING
    *"      NO_VALUE
    * Purpose:
    * get actual period from variable 0P_FPPER
    * and compute interval from first period to corresponding period
    * in previous fiscal year
    * returning parameter
      DATA: l_s_range TYPE rsr_s_rangesid.
    * work area for I_THX_VAR and Period
      DATA: l_wa_thx_var   LIKE LINE OF i_thx_var
          , l_ta_range     LIKE l_wa_thx_var-range
          , l_wa_range     LIKE LINE OF l_ta_range
          , l_period(3)    TYPE n
          , l_year(4)      TYPE n
          , l_prev_year(4) TYPE n
    * some checks to start with
      IF i_vnam <> '0I_BA106'.
        RAISE no_processing.
      ENDIF.
      IF i_step <> 2.
        RAISE no_processing.
      ENDIF.
      REFRESH e_t_range.
      CLEAR l_s_range.
      CLEAR l_period.
      READ TABLE i_thx_var INTO l_wa_thx_var
        WITH TABLE KEY vnam   = '0P_FPER'.
      l_ta_range = l_wa_thx_var-range.
    * only one value allowed
      READ TABLE l_ta_range INTO l_wa_range INDEX 1.
      l_year   = l_wa_range-low(4).
      l_period = l_wa_range-low+4(3).
      IF  ( l_period IS INITIAL )
       OR ( l_year   IS INITIAL ).
        CLEAR l_s_range.
        RAISE no_value.
      ELSE.
    * get previous year
        l_prev_year = l_year - 1 .
        CONCATENATE l_prev_year con_first_period INTO l_s_range-low.
        CONCATENATE l_prev_year l_period         INTO l_s_range-high.
        l_s_range-sign = 'I'.
        l_s_range-opt  = 'BT'.
      ENDIF.
      APPEND l_s_range TO e_t_range.
    ENDFUNCTION.
    Please suggest.
    Regards,
    Subhasish

  • Calculating with formula variables of type user exit

    I created the following query:
    Rows: Characteristic = Employee
    Column: KYF = Status
    Filter: Year, Month
    The KYF ist a formula containing a formula variable. This variable of type user exit should return a value recording to the value of employee and has to be read in a customizing (data-) table by the user exit.
    Is it possible to read the values of employee row by row from the internal table which contains the amount of data before processing to output screen and fill the 'Status'-KYF or should I create a virtual keyfigure for this case.
    Thanks for all your feedback,
    Angelika

    Hi,
    It seems like Status is master data of Employee.
    As per your process, if you do either formula variable or virtual keyfigure you will face query performance problem. More over you cant simply access record by record characteristic value in formula variable. It will be another complex process like you have to call the characteristic value via replacement path.
    You have the following choices:
    You mentioned master data is availabe in custom table. Try to pull the custom table master data into employee info object. Maintain  status as one of the attribute of the master data. Then you can display Status value simply in the report. This will be global access like you use this Status value n number of info providers which is having Employee as one of the info object in the info provider.
    If the previous way is not possible, include the Status in the info provider level and write a simple update routine to populate the values. This will be info provider level.
    I am not sure whether you are in development environment or productive. If developement, then you can choose simply any one of the above ways.
    Regards,
    Vivek

  • Assigning a customer exit variable to a user entry variable

    Hello all,
    I'm creating a PCA query and would, in a certain column, like to show the year's cumulated value (key figure amount), based on documents posted up until a certain posting period (specified via a user entry). E.g. from 01.2006 to [user entry] where the "from"-year is also dependent of the user entry.
    1) Where do I do this coding (transaction code/function module etc..)?
    2) How do I do this coding?
    3) Does this kind of variables exist as standard? If yes, which one?
    Thanks!!!
    Best regards,
    Fredrik

    Hello again,
    I have now created a new input variable named 'Z_FPER' (single value)  which I want to read into the exit variable...
    I debugged the query and found out that the value of I_STEP is 1, which is wrong. It should be I_STEP = 2... However, I have definied my user exit variable as "no input" and "mandatory". What else should I do to make it a '2'?
    Thanks,
    Fredrik
    P.S. This is the code:
    *&  Include           ZXRSRU01
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    CASE I_VNAM.
    WHEN 'Z_FISCPE'.
    IF I_STEP = 2. "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'Z_FPER'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4)."low value, e.g.200001
    L_S_RANGE-LOW+4(3) = '001'.
    L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "high value = input
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    ENDCASE.

  • Formula variable used in exception and condition - gives a check error

    The same formula variable is used in a condition and exception within a query. When I click on "check", I get the message "Variable <myvar> Is Used By More Than One Infoobject". The variable is a formula variable, processed by User Entry/Default Value, with optional entry, ready for input, Dimension "number", default value -0.01.  However, the query still saves, generates and executes without problem.
    This is with BW 7.0, SP 14.  And with query designer 3.5, version 3500.7.572
    I'd be grateful if a few people could try to reproduce this, letting me know their version.  To reproduce it:
    Create a query. Create formula variable processed by User Entry/Default Value, with optional entry, ready for input, Dimension "number", default value -0.01. Create a condition using the  variable. Create an exception using the variable. Click on Check. Save and execute the query.
    Thanks
    Matt

    It is a warning and you can ignore it , if in query execution you get correct result / output...(then it implies u r on safe side)
    But if you are so much concerned about warning then as a workaround just create another Formulae variable and use it in Condition and use the previous formulae variable for Exception.
    This way you will have 2 variables for 2 different purposes
    and you will get rid of the warning message.
    So far if you get the correct output of query then there is no need to worry.
    Edited by: kartikey on Dec 20, 2007 1:45 PM

  • SAP exit  -- user entry variable

    Hello,
    In my report i need two columns: one is for displaying the value of the current period and the other one is for displaying the cumulated value up to the current period. The info object is 0FISCPER.
    1. The current period should be entered via user entry and based on this, an exit variable should pick up the year's cumulated value. Which variables could I use to fulfill these requirements?
    2. Furthermore i have looked in SE37 to find the code of SAP Exit variable "0FYTCFP". However, the FM for the variable doesn't seem to exist. Why? The variable however exists in table RSZGLOBV. How do I find the code?
    Thanks in advance,
    F C

    If you are gonna use fiscper as a variable parameter, your requirement would need a customer exit. 
    If i get it right, the first would column should be derived from the user entry which wont be possible with the suggested SAP exit as that would bring the current fiscalyear/period (based on sys date) not giving the user the option to enter the fiscalyear/period. And the second column should be a YTD for that particular year the user has entered as a input parameter. the suggested SAP exit will again be calculating based on ur system date not on the user input.
    the only way you can overcome this is if you have the flexibility to use fiscalyear and posting period seperately. if you can do that, you can avoid the customer exit. the procedure would be -
    You can create ur own variable of type user entry on fiscalyear and posting period.
    the first column would have ur KF further restricted by fiscalyear and posting period restricted by the variables you created ... so in the 1st column you would get the value for that period.
    in the second column, the selections would be same (KF further restricted by fiscalyear and posting period ) but while restrict posting period make it a value range - and in the range pick period 1 - the variable u created, that would give you the YTD from period 1 to the user entered period.

  • Query problem - authorization and user entry variable as filter

    hi,
    I made two variables for the characteristic 0COMP_CODE.
    The first variable is a user entry variable for the selection.
    The second variable is my authorization variable with multiple single values.
    This two variables are defined as filter in the query.
    The problem is as follows:
    A user is authorized to see the data from three companies. For example companies 1, 2 and 3.
    Now he enters on the selection for the 0COMP_CODE the value 2 to see only the data of this company. The query result gets me confused. It shows all data of the companies 2 and others. It basicly shows more companies than he has selected.
    Other companies of the authorization variable are shown.
    It works if the user has the authorization over all companies.
    Did someone has the same problem?
    Thanks for your help/advice.
    regards,
    Pascal

    Hi Pascal,
    this is an issue. The main problem is that you just can't influence via the exit for a vairable "ready for input".
    What could be done is define a dummy element (hidden in the final display) in your query like a restricted KeyFigure to a variable based on COMP_CODE; let's say VAR1 ready for input.
    You char COMP_CODE would then be filtered by a variable not ready for input processed by user exit, VAR2.
    The exit would ready VAR1. If there any value complying with the authorized one then populate VAR2 with it, otherwise remove it (you could use STEP_3 to raise a message "you aren't authorized to use comp_code XYZ" and return to the initial variable screen). If VAR1 is empty, then populate VAR2 wit all corresponding aithorized values.
    The main issue is that
    1- this is bypassing the standard functionality of authorization variables
    2- any report would have to be designed like that!
    What we have done is to add nav_attr / and added more IObjs in the InfoProviders related to 0COMP_CODE reflecting a country, region or any other group of comp_code authorization and then have based our authorizations on those nav....
    hope this helps...
    Olivier.

  • Formula variable user exit.

    Hello experts;
    I will provide max points for help with this.
    In query designer can I access a key figure from another cube and use it in a formula?
    I cannot use multi-cube in this solution so I was looking into creating a formula variable using a user exit to access a key figure stored in a different cube.
    Ex:
    I have a Tracings cube with customer and material cost information.
    I need to calculate the cost per patient for Absorbent material.
    I can get the customer cost for Absorbent material but the number of patients is stored in a different cube called Census information.
    Since the Census information is not related to a material (only customer) I cannot get the number of patients together with the cost of the absorbent material. I was hoping to access the Census information (number of patients) from the query calculating the cost per patient.
    Thanks
    Den

    I really don't see how you can implement it using exit variable even if you can read data from other cube in exit. If you still want to explore it, refer the following thread - How to read data from an InfoCube in BI 7.0?
    Why can't you build a multiprovider - these kind of requirements are precisely the reason why multiprovider is there (when you need information present in multiple infoproviders in the same report)

  • Decimal places for formula variable

    Hello,
    I have created a formula variable of type manual entry and type number. I'm multiplying it to an amount. The problem is that the user is unable to enter a decimal place value.
    eg:
    cannot enter 0.5 or 0.05. the query regards it as 5 (converts 0.5 or 0.05 to 5)
    when i enter 5.1, it converts it to 51
    when i enter 51.11, it converts it to 5.111
    when i enter 51.111, it keeps it the same and does not change it.
    Is there a setting that i need to change in the query or the fomula variable? I need the variable to accept decimal values with out changing the decimal places.
    Regards,
    Sameer

    This was an issue with the number format setting for the user.
    His setting was 1.000.000,00 and he was trying to enter it in this format: 1,000,000.00
    Hence I noticed the fictional change in decinal places.
    Should have caught it sooner.
    Regards,
    Sameer

  • Formula variable type amount

    Hi all,
    I created a formula variable type amount (so I can select my currency EUR), the user enters a value in the popup screen...
    but when I display this value, the currency is not displayed...
    I tested this also on another system, and I have the same problem.
    please advice,
    Joke
    we're on BI 7.0

    Hi Joke,
    1. Try to check by adding one amount keyfigure and execute the report and check whether the units are displaying for that keyfigure.
    2. Try to creat new formulia variable and add in formula with the below settings:
    Formulia Variable:
    processing type: user entry/replacing path.
    Variable entry is: Mandatory.
    Ready to Input: selected.
    Dimension Indicator: Amount.
    Currency: Eur.
    Default Value: 50,000.
    Add this formulia variable into the formula. Save the query and execute.
    I executed with the same setting which are mentioned above, it is displaying 50,000.00 EUR in my report.
    try this and let me know.
    Regards,
    Siva.

  • Formula variable in condition

    Hello gurus,
    I have a requirement where i need to provide the selection option in the variable screen for the key figure. for this i hav created the fomula variable of type user entry at the condition level. I am getting the variable  in the selection screen but when i pass the value its not filtering it on that value and i am getting the same whole result.
    Pls let me know i am missing any thing
    thanks in advance
    Regards

    Hi KK,
           If you would have followed the below procedure correctly, it should work for you.
            Go to Conditions-> Right click -> New Condition -> Edit -> New -> Select the Key figures from the drop down( the KFs that are used in the rows/columns) -> Select Less than from the operator drop down (less than is for you case) -> Values, there is an option to create a variable -> Select the variable -> transfer. It will appear on the top.
    Save & Execute, you will find it in your selection criteria.
    Re: How to create a variable for key figure (value will be entered by the user
    Regards
    Sunil

  • Formula Variable with User Entry

    Hi,
    I'm  confused with Formula Variable with Replacement Path and Formula Variable with User Entry.
    PLz, Explain with an example .....In which senarios  Formula Variable with Replacement Path is used and In which senarios Formula Variable with User Entry is used.

    Hi,
    Suppose you have some key figure sales.
    Now in the report you want to display 10% of sales or may be 20% of sales based on the user input.
    In this case you will define formula variable with user input. Because here percentage will be varying based on user input.
    And suppose you have a key figure price which is attribute of material and you want to use that price for calculation in the report. In this case you will define formula varible with replacement path.
    Let me know if you need more information.
    Regards,
    Mansi

  • User Exit Formula Variable - to calculate #days of any month

    Hello Team,
    I need a column in my report layout which shows the #days of any month entered by the user. User entry 01.2014 to 03.2014 report should have 31 28 & 31 according to the Calendar month in the rows.
    To achieve this I'm using a user exit formula variable in my local calculation. An Optional Interval User Entry variable on CALMONTH is also put in at the filter section.
    I created a CLASS with 2 methods CONSTRUCTOR( vNam = 'ZC2C_DSONWDAYS') & GET_VALUES. We may also use FM /OSP/GET_DAYS_IN_MONTH but i need the code because I failed terribly.
    GET_VALUES method code:
    if i_step = 2.
       DATA: wa like line of i_t_var_range[].
       DATA: L_V_INDICATOR TYPE SCAL-INDICATOR.
       data: begin of ccrange ,
               iobjnm(30) type c,
                 sign(1),
                  opt(2),
                  low(7) type c,
                 high(7) type c,
             end of ccrange.
      data: l_s_range type rrrangesid,
            no_of_wrkdays type i value 0,
            startdate     type d,
            enddate       type d,
            startmth(2)   type c,
            endmth(2)     type c,
            startyr(4)    type c,
            endyr(4)      type c,
            endday(2)     type c,
            leapyear      type i value 0,
            dayofmth      type syst-datum.
    DATA:  day           type SCAL-INDICATOR.
      loop at i_t_var_range into wa.
        if wa-iobjnm = '0CALMONTH'.
           ccrange-sign = wa-sign.
           ccrange-opt = wa-opt.
           ccrange-low = wa-low.
           ccrange-high = wa-high.
           exit.
        endif.
      endloop.
      startyr  = ccrange-low+0(4).
      startmth = ccrange-low+4(2).
      endyr    = ccrange-high+0(4).
      endmth   = ccrange-high+4(2).
      concatenate startyr startmth '01' into startdate.
    * determine last day of the end month
      if endmth = '02'.
         leapyear = endyr mod 4.
         if leapyear = 0.
            endday = '29'.
         else.
            endday = '28'.
         endif.
      elseif ( endmth = '04' or endmth = '06' or endmth = '09' or endmth = '11' ).
           endday = '30'.
      else.
           endday = '31'.
      endif.
      concatenate endyr endmth endday into enddate.
      dayofmth = startdate.
    IF startmth <= endmth.
       startmth = startmth+1.
    ENDIF.
    * do it for all days in space of time
       WHILE dayofmth <= enddate.     "to date
         CALL FUNCTION '/OSP/GET_DAYS_IN_MONTH'
         EXPORTING
           input = startmth
         IMPORTING
           output = no_of_wrkdays.
           CLEAR l_s_range.
           l_s_range-sign = 'I'.
           l_s_range-opt = 'EQ'.
           l_s_range-low = no_of_wrkdays.
       append l_s_range to e_t_range.
           startmth = startmth + 1.
           CONCATENATE startyr startmth '01' into dayofmth.
        ENDWHILE.
    endif.
    endmethod.

    Hi Vasavi,
    1)  Create a FV to calculate no.of days  like below, with calmonth in ref characteristics :
    2. If you see number of days is an attribute of calmonth. Please enter that as below :
    3. Create a formula with above variable and make sure calmonth is added in the row.
    Its giving output like this :
    I hope this will help you.
    Thanks,

  • Check user entry in Customer Exit Variable in i_step2

    Hi Folks,
    at the moment I'm facing a challenging problem. In an BW Query i have a Customer Exit defined as "not ready for Input" to catch the Variable in I_Step = 2 and fill by a certain algorithm. When i change the CE Variable to "Inputready", the user can enter values, but i have no chance to react on these values as i_step = 2 will not b reached during execution- And this behaviour is correct. BUT is there any chance to Check user entries in an Customer Exit variable and change this somehow in des code?
    Thanks for all replies.
    BR,
    Maik

    Hi there,
    It is possibel depending on what you wish to accomplish.
    You can create two variables for the same characteristic.
    The first is an input ready variable for the user to enter the data and the second is a not input ready variable CE where you can in step 2 process the data entered from the variable ready for input.
    You can than fill the CE variable with any data, but you will have the variable restricted by the two variables (the ready for input and the CE).
    But for validating you could throw an error message based on the variable input ready.
    Diogo.

Maybe you are looking for

  • New Family Sharing and iTunes Match

    Hello to all. With the release of iOS8 and the Beta of Yosemite, I have decided to leverage the new family sharing of the iTunes accounts. The set up works fine and I have gotten it working, just wondering how to get iTunes match to work with it. So

  • Win 8.1 upgrade, laptop freeze for 10 second

    Hi, Anyone experiences this, after upgrading for Win 8.1, my laptop freezes 10 seconds every now and then. It doesn't matter if I am running just the browser or working in excel. Anyone have similar problems and any solutions?

  • Keyword List doesn't show the correct images when clicked

    I'm using LR 2.3RC on a Windows Vista Ultimate PC, although the same error occurs on LR2.2. I have a keyword structure "Karl > Family > People" with Karl having 33 images with this keyword. When I use the "Keyword List" on the right panel in the Libr

  • Preloader with skip button

    I have a preloader working fine but having problems integrating a "skip" button (so users can skip opening animation) Each of the code blocks ("//skip it" and "//Preloader" work ok without each other but when I combine them I get; "Error #1009: Canno

  • How can I get my logo to show up on my podcast page?

    My podcast recently was approved for the iTunes store (http://itunes.apple.com/us/podcast/gems-from-the-prince-of-sales/id449704237). I'm wondering how I can have my logo instead of the WordPress logo.  I'm figuring this is somehow being pulled of th