Input ready query and Circular reference formula

Hello Everyone,
I have a situation whereby I have to calculate following:
Current Salary  Merit Inc %  Merit Inc Amount
(user entry)      (user entry)  (user entry)
10,000             10%            1,000
While users are planning to enter above using Input ready query, if Merit Increase   % is entered formula should calculate the Merit Inc amount but if Merit Inc Amount is entered then it should also calculate Merit Inc % automatically.
Is this kind of calculation possible?  I can calculate either Merit % based on Merit Amount or Merit Amount based on % but cannot  dynamically calculate both the values  based on user's choice of entry.
Any suggestions.
Regards,
Sachin

Ragav,
My example can be somewhat similar, which only works one way which means it calculates merit percentage based on amount entered,  but if I try to change Merit % Merit amount is not changing because of missing fox code which I am not able to formulate.:
Operand display      {Key Figure Name,Posting period}
DATA PERIOD TYPE 0FISCPER3.
DATA MERPER TYPE I.
DATA MERAMT TYPE I.
Key figure ZCURRSAL represents base salary
Key figure ZMERITPCT represents Merit %
Key figure ZMERITAMT represents Merit amount.
*MERPER = {ZMERITPCT,#}.
*MERAMT = {ZMERITAMT,#}.
IF {ZMERITAMT,#}  = 0.
{ZMERITAMT,#} = {ZCURRSAL,#} * {ZMERITPCT,#}/100.
ELSE.
{ZMERITPCT,#} = {ZMERITAMT,#}/{ZCURRSAL,#}*100 .
ENDIF.
Alternative one which I was trying with no luck was:
IF MERPER > 0.
*MERAMT = 0.
{ZMERITAMT,#} = {ZCURRSAL,#} * MERPER/100.
ENDIF.
IF MERAMT > 0.
*MERPER = 0.
{ZMERITPCT,#} = { ZMERITAMT,#}/{ZCURRSAL,#}*100 .
ENDIF.
Thanks,
Sachin

Similar Messages

  • Input ready query and display only rows

    I am trying to replicate scenario which is equivalent to creating manual layout in SEM-BPS with settings for layout category - Key Figures in Data columns, and rows defined individually.  In this version it is possible to restrict certain rows as comparision only.
    How can I acheive this using Input ready query? In my query I have created a strucure for Planning Items, but I am not able to show certain planning item selections as display only.
    Any thoughts?

    Hello Gregor,
    Thanks for you answer.
    I already have two structures as mentioned by you.
    Can you please let me know what exactly you meant by set the input flag on the cell level? What settings I have to change to set the flag, do I have to use any formula?  In my example I have three rows for Planning item row structure and I want only one row to be selected as display only row. 
    Regards,
    Sachin

  • Input-ready query and aggregation level or multiprovider

    Hi,
    is it true that input-ready querys can only be created based on an aggregation level and not a multiprovider?
    thanks.
    regards
    P.Rex

    Hi,
    Input Ready Queries can only be built on aggregation levels.
    If you want to create an input ready query on a multiprovider, first create an aggreagtion level on top of this multiprovider and build your query on this aggregation level.
    If you have any problems in getting the input readiness, you can always revert.
    Regards,
    Srinivas kamireddy.

  • Fields in Input Ready Query and Aggregation Level

    Hi All - New to IP. What if we dont include all the fields of Aggregation level in Input Ready Query.
    Supose there are 4 fields in Aggregation level and we are including only two in Input Ready Query.

    Hi Harry,
    For a Keyfigure to be input ready, all the characteristics of the Aggregation should be filled with some values at the time of input.
    The characteristics should be either in Static Filter, Dynamic Filter, Row, Column. New Selection.
    If a characteristic is not there in any of the above area then it is considered to be null and query will not be input ready.
    Regards,
    Gopi R

  • Data from an Input ready query back into BW

    Hi All,
    One of the reports I am working on should allow users to write comments for each characteristic value (i.e in each row). I have toyed with different ways of doing it, but based on our company specific requirements, I have finally arrived at this design - Users enter comments in a column in an input ready query and the data is sent back to a real time cube.
    However, I have never done this kind of stuff before. Can anyone please give me a step by step procedure of how to achieve this?
    The most informative answer will be rewarded with the highest points.
    Thank you.

    I had already tried the document property in BI, but unfortunately it did not seem to work. This is the error I got when I did a right click on a characteristic value -> Documents -> Create new comment
    u201CCannot determine the KM folder for storing documents with these types of propertiesu201D
    u201CError while launching new document dialogu201D
    http://img184.imageshack.us/img184/6505/docproperror1wg8.jpg
    When I asked my basis team about this error, they had no clue what it meant and they thought it had to do with KM, and currently we do not have KM enabled in BI portal. Thats the reason why I had look for an alternative. However, I am pretty sure its not a KM issue because I believe "Characteristic is a Document Property" is a standard out-of-box BI property.
    Do you know what that means and how to fix it?

  • Copy Input Ready Query Variables into Planning Sequence

    Hi all,
           We have the following scenario. We developed a model using Web Template. The model has an input ready query and a Panning sequence associated with it. Both of them using the same Planning Filter that has a input variable for Profit Center (say ZPCTR). If I run this model in Portal the planning sequence automatically takes the variable given for the input ready query and the sequence runs without any problem.
           We were asked to implement the same model in BEx as the users felt more comfortable using Excel when working on this model. When we assinged the planning sequence to a button and after we run the input ready query and then click on the button to run the planning sequence, we get an error message saying "You have to enter values before you execute". The Planning sequence is not taking the values we enter for the input ready query automatically.
          I read through the forums on the same issue and saw that most of them reported about the same but could not find a conclusive answer. I tried the following options.
    1) Enter the expected values in the excel in one location and gave the address in the "Command Range" of the planning sequence. Still it does not work.
    2) Tried SAP suggested method as given in http://help.sap.com/saphelp_nw70/helpdata/en/45/e301089d574a88e10000000a155369/frameset.htm It also does not work
    3) Couple of them suggested to use a different variable for Profit Center in the filter of Planning sequence (say ZPCTR_EXIT) and populate this variable. I wrote an exit for this variable and populated a fixed value say '100' into it. The sequence runs as expected. But I do not want use a constant, I want to store the value entered in ZPCTR into ZPCTR_EXIT.
       when I use the regular logic "LOOP AT i_t_var_range INTO var_inpiut WHERE vnam = 'ZPCTR' ", it does not work. the exit variable works if I store some constant values, not variable values.
        Can you please suggest how can I work with this. Is there any table from which I can read the profit center value the users enters into the Exit variable.
    Thanks for your time,
    Ram.

    This error generally comes when we use some user input variable in the sequence which is not restricted in the query. Even though you are using the same filter for both planning sequence and query, check the planning functions inside the sequence which might read an user input variable which is not available in the query so that it is not appearing in the query selection screen. Like in FOX reading a variable using VARV or a variable restricted in the field for condition of planning function etc. Make sure that all the variables used in the sequence (planning functions) are kept in query restrictions if they are of type ready for user input so that they will appear in the selection screen.

  • Wrong cache for input-ready query

    Dear Expert,
    I encountered some issues about input-ready query. When I first open one input-ready query and input some plan data, I can save the data successfully. But after I saved data for the first query, if I don't re-connect the analyzer and open a new query, usually the plan data in the new query can not be saved successfully. After re-connect the analyzer, it works well. When I debug it, if I do not re-connect analyzer, I found the new query I opened still got some data which belong to the first query (Such as variable value). I guess it probably caused by some Bex cache? (It's not OLAP cache in RSCACHE, as we have disabled the cache for planning query in RSRT).
    Could you please help me with this? Is there any way we can disable this kind of cache for the input-ready query? Or if we have any solution to clear this kind of cache without re-connect bex analyzer every time when I open a new input-ready query.
    Thank you in advance.
    Best Regards,
    Fuyang

    Hi Fuyang,
    We are facing similar problem.
    1st problem:
    (1) When we run workbook that time variable values are automatically filled up.
    (2) Variable values for version, year is filled up and then query output is displaying.
    (3) There is no personalization or variant used. Its looks to me Values are coming from Cache.
    (4) Cleared RSRCACHE and there is no cache used for this query.
    (5) If we enter version = u201CZ2010u201D and Year = u201C2010u201D and after running workbook (input query) and then closing and reopening same variable values are coming. If we change version from u201CZ2010u201D to u201CZ2011u201D and run/save query and again reopening version variable values are coming again to u201CZ2010u201D.
    2nd problem:
    (1) We have planning sequence which is using below variables.
    (2) Version, Year, Plant.
    (3) Version and Year is input ready variables
    (4) Plant is Userexit variable.
    (5) Plant Dropdown is used.
    (6)When we execute planning sequence first time without filtering plant then it is working fine. Receiving message u201C100 records read,100 records changedu201D u2013 This is working fine.
    (7) When we use plant dropdown and filtering u201CABCu201D plant then planning sequence working fine and receiving message u201C20 records read, 20 records changedu201D u2013 This is working fine.
    (8)When we clear drop down/filter using CMD - REMOVE FILTER which is used in button clear plant u201CABCu201D filter. u2013 This is working fine.
    (9) Then we again apply planning sequence for all the records and receiving message u201C20 records read, 20 records changedu201D.  This is not working. The message should come u201C100 records read,100 records changedu201D
    This time plant variable has still with value u201CABCu201D and not clearing in variable cache.
    We are on below BI 7 level and above application is Excel based.
    SAP_ABA u2013 701-SAPKA70104
    SAP_BASIS-701-SAPKB70104
    SAP_BW-701-SAPKW70104
    BI_CONT-701-SAPK-70403INBICONT
    SAP GUI  7.1 patch 17
    SAP BI BEx AddOn 7.1 patch 10 (1000)
    Any help will be greatly appreciated.
    Thanks in advance.

  • Input ready Query - Issue No data available

    Hi Gurus
    Part of the sand box build I created  a real time cube and an aggregation level. I have created an Input ready query and ensured the key figures are having the option of Data Can be changed . Chars are selected with only Master data option.
    Query is checked to be started in change mode and extyernal access allowed.
    I have run the filter and restricted the master data on company code and business area.
    When I execute the query I get a No Data Available . I dont even see the formatted struicture of Master data of selected chars and then Key figure ready to input.
    We are on latest SPS . Please advice if I am missing some thing or give tips on how to build a successful Input Ready Query.
    Points will be awarded.
    Thanks & Regards
    Edited by: IASIPS on Feb 7, 2008 3:33 PM

    Hi,
    there is an easy example in the documentation
    http://help.sap.com/saphelp_nw70/helpdata/en/43/1d023a41130bd5e10000000a422035/frameset.htm
    In this examply you may set 'access mode for result values' to 'master data' or 'characteristic relationships' and use a reasonalbe filter on product. Then the query will also show non-posted values.
    Regards,
    Gregor

  • How to calculate and save planning data in bex input-ready query using keyfigures for calculation from different infoproviders

    Hi Dear All,
    We have two real time infocubes and two aggregation levels based on these cubes in one multiprovider
    first cube1 is like
    char1| char2| keyfig_coefficient(single value for each combination of char1 and char2)
    same aggregation level1
    (we have input query to fill coefficients by one responsible user)
    second cube2 is like
    char1| char2| keyfig_quantity| keyfig_result
    same aggregation level2
    Input ready query should be like (for all other users of different org units)
    char1|char2|keyfig_coeff| keyfig_quant(for input) | keyfig_result = keyfig_coeff*keyfig_quant(calculated value, should be saved to cube2)
    And we don't have pregenerated lines in cube2, users have to add new lines themselves by wad.
    Question is, what is the optimal (easiest) way to make calculation and save result data to cube2 where keyfigures for calculation should be used from different infoproviders. I need just a hint.
    Appreciate any help.
    Nadya.

    I found decision, agregation levels sould be based on multiprovider, not included.

  • How to set input ready query to display mode and set edit mode in WAD?

    when I create A input ready query but not set query propery  start  query in change mode ,but I want to set this query in input ready mode ,how to set this in WAD?
    hope anyone can help me
    regard  by
    wenlong

    Hi,
          You can get all the info from this thread , try it out
           WAD - set data entry mode
           Hope it helps.
    Regards,
    Priya.

  • Input Ready Query, Variable read mode setting Only Values for InfoProvider

    Hi,
    I have a problem with Selection Variable for a BEx Query :
    - I'm working with SAP BI 7.0 support package 15
    - My query is an input ready query built for an "aggregation level" based on "real time infocube" (Planning);
    - Characteristic, I want to filter with variable, has query property Advanced->Query Execution for Filter Value Selection = Only Values in InfoProvider
    - Characteristic (info-object) has set the property: Business Explorer tab--> Query Def. Filter Value Selection as Only Values in the info-provider...
    My problem is:
    when I execute a query,
    the Select Values for Variables screen appears
    I push on the Select from List button
    and Select Values For MyCharacteristic appears...
    but it shows me all values in master data table of my characteristic instead of only values in the infoprovider!!!
    If I build a query for the Real Time Cube it works correctly, but if the query is built for the aggregation level it doesn't work!
    Could someone explain me why it doesn't work correctly?
    Thanks in advanced
    Fede

    Thanks to  Mariana Lazar
    30.03.2009 - 12:30:36 CET - Risposta by SAP     
    Dear Fede,
    Regarding the query built on aggregation level please note the following
    the aggregation level is always a Virtual Provider built other
    InfoProvider and hence it does not have the dimension table and hence
    the F4 mode D is not supported.
    Therefore when aggregation level is used in a query, F4 does not supportD-mode: 'Only Values in InfoProvider' and all master data values are
    displayed in the value list.
    Reference from the note
    984229 F4 modes for input help as of SAP NetWeaver 2004s BI
    4. Since other InfoProviders do not have a dimension table, the system
    displays only posted values if you select "Only Posted Values for
    Navigation". Otherwise, it displays the values from the master data
    table.
    Hope this should clarify your doubts. Please let me know if you have
    questions else please confirm the message at your earliest convenience.
    Thank you for your cooperation and kind regards,
    @KR@ Mariana Lazar
    Senior Support Consultant
    SAP Active Global Support
    Netweaver Business Warehouse

  • ****************Input ready Query**************in IP.

    Hi guru's
    I am bit new to IP,
    I have the Fspecks now, but in that what i observed that some of the fileds are requires to be manual entry in the reports.
    Based on the input upto now i under stood that need to go for input ready query.I have pasted my idea below.please go thru and found something wrong please........ alert me.
    Now i need to one basic cube...i.e for actuals,.
    Need to create one more cube ( Real time ) with key figures which are requires manual entry in the report.
    Now i will create one multi - provide and will create aggregation level on this,...and will run the query......
    in the planning i can change the required key figures into manual enty///////.
    Please correct me if i am wrong ....other wise please guide me how to move forwad.
    Thanks in advance ......
    Subhratha mukargeee.

    You are going in the right direction. basically, the endusers will be able to make references of actual data to do their planning. Having an aggregation level on top of this multiprovider will enable the users to compare actuals/plan data.  Try to keep the aggregation levels as small as possible i.e only include the necessary infobjects.
    After you setup the aggregation level, it acts like an infoprovider so create the input ready query using the designer. For a query to be input ready, start by including all the char and keyfigures in the row and cols respectivley.Set the property for keyfigures as data can be changed using manual entries.
    Anyways, welcome to the world of IP. Best of luck.

  • Input Ready Query needs Actual Data too

    Hi Gurus
    Our customer requires last 3 months of actual data for reference on the Input Ready Queries, to plan  . They need to see last 3 months actuals when they start seeing planning season.
    Is it a good option to show actual and Input enabled plan piece together.
    We can build a MultiProvider and Build the Agg levels.
    Pls advice if this would be a best practice or should we create a WAd Dash board showing 3 months actuals in one column of the Table lay out and allow the In put ready query in another column.
    Please advice
    Points would be awarded .

    Hi,
    You can easily achieve by providing the Plan data and Actual data in two different worksheets of the work book.
    First, create an aggregation level on the plan cube and then an input ready query on this aggregation level.
    Then create one more query on the actual cube(agg level is not needed as input readiness is not required).
    In the Analyzer, open the first query in the first worksheet. Then create one more worksheet, create a data provider in the design mode and embed the second query.
    The user can see the actuals in the second sheet and can plan on the firsst sheet.
    Hope this will resolve your problem.
    Thanks and Regards,
    Srinivas Kamireddy.

  • IP: How to hide currency/unit from input-ready query headers?

    Hi,
    Is there a way to hide currency/unit from input-ready BEx web query headers? I've used NODIM-concept for read-only reports, but with input-ready it won't work since formulas cannot be input-ready. Is there a setting somewhere or workaround? The web query is published by WAD.
    Thanks!
    Aki

    Hi Aki,
      If you wanna do this in input-ready query, there is only one scenario: you restrict 0UNIT and 0CURRENCY as one certain constant value for the 'Characteristic Restrictions' in the 'Filter', and DON'T set the according 'Can Be Changed at Execution' selected. Then the 0UNIT and 0CURRENCY can be put into 'Free Characteristics', no neccessary moving them to data area.
      If there're multiple value for 0UNIT or 0CURRENCY for your planning, you can't hide them in data area of INPUT-READY query, since they belong the dimension 'U'.
    Hope this will help.
    Gerald

  • Input ready query with default data

    hi expert
    How do I make input ready query to have a default value when signing in using WAD?
    thanks.

    Hi,
    Use the following document for your query. If found useful do grant me number!
    Revaluating Planning Functions (with Analysis Web Item)
    Use
    You want to build a planning application with which you can enter turnover amounts for certain account numbers and revaluate them using a factor that can be set. If you select a row of the table, only the amount in this row is to be revaluated. If you do not select any rows, all values are to be revaluated. The planning application is to look roughly as follows on execution:
    This example serves in particular to clarify the interaction between a planning function and an Analysis Web item. Special properties here are:
    ●      Variable handling in the planning function
    ●      Row selection in the Analysis Web item
    Prerequisites
    In the planning modeler, you have created an aggregation level that contains the following InfoObjects: unit Currency Key, time characteristics Quarter and Calendar Year, key figure Amount, characteristics Version, Account Number, Cost Center.
    The planning function and the query are to use the same data of this aggregation level.
    Procedure
    Planning Modeler: Creating Planning Functions, Variables, and Filters
           1.      Choose the Planning Functions tab page and create a planning function of the type Revaluate with technical name REVALUATE and description Revaluate for your aggregation level.
           2.      On the To the Parameters tab page, use the input help for the revaluation factor to create the REVAL_FACTOR variable with the Revaluation Factor description. The variable is to be specified in detail as follows: The variable is to be a required variable and is to be input ready; it is to be of type Number, but is not to contain a standard default value.
           3.      Choose the Filter tab page and create a filter with technical name ACCOUNT_FILT and description Revaluation Selection for your aggregation level.
    Select the characteristics one after another and choose the input help icon in the column after Characteristic Restrictions. The dialog box for specifying characteristic restriction appears. Specify the required restrictions (in our example, Version = VERSION 1, Quarter = QUARTER 1, Calendar Year = 2007; Cost Center = 100002, Currency = Euro; for Account Number, all values are taken over), choose Add, and save the selections by clicking OK.
    Choose Show Extended Settings and ensure that the Version characteristic cannot be changed on execution. (It must be possible to change the Amount key figure).
    More information about creating planning functions, variables, and filters: Modeling Planning Scenarios
    BEx Query Designer: Creating Queries
           1.      In the BEx Query Designer, create a query Revaluate (technical name: QUERY_REVALUATION) for your aggregation level.
           2.      Drag and drop the ACCOUNT_FILT filter into the Characteristic Restrictions area for filter values. In doing so, all characteristics are restricted to single values.
    Drag and drop the Account Number characteristic into the area for default values.
           3.      Specify that the Account Number characteristic is in the rows. The values for this come from the master data.
    Specify that the Amount key figure is in the columns. The values for this can be changed; on the Planning tab page, choose the Data Can be Changed Using User Input or Planning Functions option.
           4.      Save your query definition.
    BEx Web Application Designer: Creating Web Templates
           1.      In the BEx Web Application Designer, create a Web template with technical name REVALUATION.
           2.      Create the following data providers:
    ○       DP_PLAN_DATA of the type Query View Data Provider, based on query QUERY_REVALUATION
    ○       DP_FILT_REVALUATION_FUNCTION of the type Filter. The data binding should come from the ACCOUNT_FILT filter.
           3.      Create the following Web items:
    ○       INPUT_FIELD_REVALUATION_FACTOR. Specify 10 as the default value (Internal Display ® Text: 10).
    ○       BUTTON_GROUP_ REVALUATION. Using Internal Display, create pushbutton1 with label Revaluation and, as Action, use the command wizard to assign the following commands (INSTRUCTION):
    Table of Commands
    Command
    Parameters
    Data provider-specific command: SET_SELECTION_STATE BY BINDING (Set Filter Values According to Different Sources)
    ●      Command target: target data provider DP_FILT_REVALUATION_FUNCTION
    ●      Data binding: selection binding using the Account Number (ZD_ACCNT) characteristic, where the value of the Web Item Selection binding type is to come from the ANALYSIS_ITEM_1 Web item, characteristic Account Number (ZD_ACCNT).
    Planning-specific command EXEC_PLANNING_FUNCTION_SIMPLE (Execute Planning Function )
    ●      Data binding: Reference to data providers of type Filter DP_FILT_REVALUATE_FUNCTION, where the value from variable REVAL_FACTOR of connection type Web Item with Manual Input (ITEM_INPUT) is to come from INPUT_FIELD_REVALUATION_FACTOR.
    ●      Command-specific parameter: planning function REVALUATE
    ○       ANALYSIS_ITEM_1. Data provider DP_PLAN_DATA is assigned to the analysis grid as the (source) data provider.
    Choose Behavior ® Row Selection ® Multiple (MULTIPLE).
    In this case, it must be possible to select multiple rows and to execute the revaluation command on all selected rows. It is not therefore possible to give the command along with the row selection; the command must instead be given using pushbuttons.
           4.      Create a CONTAINER_LAYOUT_ITEM_1 (Web Items ® Enhanced ® Container).
    Divide the container into columns, choose the With Tray display option, and enter label Revaluation under Tray Settings.
    Add the following Web items to the container:
    ○       1st row, 1st column: INPUT_FIELD_REVALUATION_FACTOR
    1st row, 2nd column BUTTON_GROUP_ REVALUATION
    ○       2nd row, 1st column (with option Colspan=2, that is, with a merge of columns 1 and 2): ANALYSIS_ITEM_1
    The following figure illustrates the layout of the REVALUATION Web template:
    Execution on the Web
           1.      Execute the Web template on the Web.
           2.      For testing, extend the URL to include parameter &debug=X.
    If you have set this parameter, the selection is shown in the Executing Planning Function section.
           3.      Enter amounts for one or more account numbers, change the revaluation factor if necessary (default value = 10), select the required rows, and choose Revaluation.
    For example, enter amount 100 in the first row, retain revaluation factor 10, and choose Revaluation. The query outputs an amount of 110 in both the selected row as well as in the overall result (as long as you have not entered any other values).
    Regards,
    SUbha

Maybe you are looking for

  • Permission denied: fopen('/usr/local/ssl/openssl.cnf'

    When installing phone software (CounterPath-Bria3) i get an error message in the system: Permission denied: fopen('/usr/local/ssl/openssl.cnf'..) CounterPath is arguing, they use their own SSL library. Does anybody have an idea, how to fix this?

  • Installing own kernel...

    I have no problem git cloning my kernel of choice and configuring. My question is when compiling a new video drivers or any other package that might be dependent on Linux sources. I usually use the /usr/src directory. I am having trouble with the PKG

  • Problem with a acces databases

    Hi I've made an applet that's connecting to a acces databases, the programs works fine in IDE this is my connection string "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};highScore.mdb"; but after I make from all the files a jar file and I signed

  • Problem with Playbook Webbrowser

    Does anyone have a problem with the integrated webbrowser in the blackberry playbook? Since i update my tablet to os 2.0 the browser crash very often thing that never happen to me before i upgrade the os. The window of the browser close when it crash

  • Does time machine backup open files that I am currently working on?

    Will time machine backup files that are open? I have a quickbooks file or others that sometimes will be open for as long as a week. I was having problems with a file I was working on that had days worth of data that I had been changed. When I tried t