Condition variables in workbook

Hi Gurus,
How to display condition variables in the navigational area of the WORKBOOK.
Thanks
Liza

Hi Praveen,
Could give me some more deials ? I would appreciate it.
You said design mode, is it query or workbook  design mode ?
In tools , I did not see any insert condition option.
Could you  give step step process ?. I would assign you all the points.
Thanks
Liza

Similar Messages

  • Similar code to n=n+1 (n=n+x) with conditional variable to stop

    This may be an simple algorithm, but I can't do it.
    I need to do a VI with an algorithm so similar to n=n+1 , but I need 2 variables, something like n=n+x, and other conditional variable (numerical control).
    I need to enter the values n and x with a control and after the sustraction of these values but I need to print the value and after repit the process until the conditional value, and impress all the values incluiding the the first n value and the conditional value. And stop the process when the value is equal to the conditional value to get a data.
    Basically
    n=n+x
    n=0
    x=2
    Conditional value (y)
    y=10
    and impress all the values in a data
    n=0 (impress)
    n=0+2 -->2 (impress)
    n=2+2--->4 (impress)
    n=4+2---->6 (impress)
    n=6+2---->8 (impress)
    n=8+2---->10 (impress)
    And get a data like
    0
    2
    4
    6
    8
    10
    The real problem is that I need enter with numerical controls all values and get the data with the n's first value and the conditional value.
    If someone can help me, I appreciate it very much.
    Thanks

    ramktamu wrote:
    This is what you are looking for.
    The stopping problem has already been mentioned.
    The "first call?" and "select" can be eliminated by initializing the shift register with "n".
    Unless the "x" and "y" are allowed to vary during execution of the loop (would need very fast fingers and would generate irreproducible results!), these terminals belong before the loop. No need to go to the UI to re-read their value with every iteration of the loop.
    Typically, the number of iterations can be calculated from the inputs using simple math, so a FOR loop would be much more appropriate and efficient here.
    Try to simplify according to these comments and re-post.

  • Conditional Formating in Workbook

    Hi,
    My Requirement is to add conditions to a workbook.  I know to do it in a query using Conditions & Exceptions but how about applying conditions to a workbook?
    Help me in this regard.  Thaks for all your time.
    Regards,
    Murali

    Hi Murali,
    You can define a condition to hide information that is not currently relevant. You can define a condition for a query or a query view. The navigational state of the analysis grid is updated according to your specifications.
    Conditions that you create in the BEx Analyzer are local conditions that are attached to the query view. Ensure therefore that local conditions are specific to the workbook that you are saving. You cannot delete global settings.
    Procedure
           1.To create a new condition, call the Conditions Dialog in analysis mode.
           2. In the BEx Analyzer, in the context menu for the selected cell, choose Query Properties and then the Conditions tab page.
           3.In the context menu, choose Create Condition to create a condition.
    The Conditions Dialog appears.
           4.Enter a description of the condition.
           5.Specify the parameters for the condition.
    You can define one or more condition rows for a condition.
    a.      In the screen area of the General tab page, choose New in the context menu. The fields are now input ready.
    b.      Select one or more key figures that you defined in the used query.
    c.      Select an operator.
    d.      Enter a relevant value for the selected operator.
    e.      To transfer your specifications to the list of factors, choose Transfer.
          6.Make the characteristic assignments.
    For more information, see Characteristic Assignment in Definition of Conditions.
           7.Specify whether the condition is active or inactive.
    To activate the condition, on the General tab page, select the Condition Is Active checkbox. If the condition is active, it is applied to the result set for the query. You can also activate a condition on the Conditions tab page of the Query Propertiesdialog box by using the context menu.
    More information: Using Conditions
    Deleting or Changing a Condition
           8.To change your condition or delete a condition row, select the relevant condition row and choose the required function in the context menu.
    To delete a condition, select the relevant condition on the Conditions tab page of the Query Propertiesdialog and choose Delete in the context menu.
    he Change and Delete functions in the context menu are only displayed if you defined your condition in the BEx Analyzer. You cannot change or delete conditions that you created in the Query Designer. You only activate or deactivate these conditions.
    Creating a Condition Using the Context Menu
           9.You can also create a condition from the context of the current data cell in the results table. You can do this using one of the following options:
      a. You can choose a condition in the context menu; this condition is based on the context of the selected data cell.
    The context of the current cell is determined by the value of the cell. The key figure is determined by the position of the data cell. You choose the required operator from the list of condition rows. By default, the last drilldown characteristic in the results table is used as the characteristic assignment.
    Note that this context menu is only available if there is no characteristic in the columns and it is not drilled down; otherwise it would be unclear which characteristic assignment is relevant.
    ■       Choose Context Menu for Selected Cell ® Create Condition ® Required Condition Row.
    b.You can also call the conditions dialog in the context menu for the selected cell and then create a condition as you require.
    ■       Choose Context Menu for Selected Cell ® Create Condition ® Using Dialog Box.
    c.You can choose a ranked list condition from the context menu and specify a threshold value.
    ■       Choose Context Menu for Selected Cell ® Create Condition ® Set Threshold Value.
    d.Furthermore, you can use the context menu to specify whether a condition is active or inactive.
    ■       Choose Context Menu for Selected Cell ® Toggle Condition State.
    Note that the context menu option Toggle Condition Stateis only displayed if you defined at least one condition when defining the data provider (query or query view).
    Hope this helps u...
    Regards,
    KK.

  • What are condition variables? how do condition variables and monitors work?

    What are condition variables? how do condition variables and monitors work? Isn't condition variables the same as semaphore? After reading their implementaion over and over again..I still don't know how condition variables and monitors work together to provide good synchroniztion.
    Thanks

    I can tell you they have nothing to do with Serialization.
    Are you refering to the Condition class in Java 5+
    Usually you would use either a Condition or use synchronization, so you shouldn't need to use them together.

  • Display value of condition variable in the output

    Hi
    I have written a BEX query for sales analysis that has <b>condition</b> for sale value, the user enters 2 variables, the upper and lower limit of sales value.Customers whose sale lie in the value range is displayed.
    in the results now I wish to display the values of variables entered by users, how can I achieve that?.

    Hello ,
               You can go for textelements option to display the value of the variables.
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_2"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="CAPTION" value="SAP_BW_TEXT?PROGRAM=ZEW06_TRANSLATE_HTML_TEXT&amp;KEY=001"/>
             <param name="WIDTH" value="371"/>
             <param name="SHOW_COMMON_ELEMENTS" value=""/>
             <param name="SHOW_FILTERS" value=""/>
             <param name="ELEMENT_TYPE_1" value="VARIABLE"/>
             <param name="ELEMENT_NAME_1" value="test1"/>
             <param name="ELEMENT_TYPE_2" value="VARIABLE"/>
             <param name="ELEMENT_NAME_2" value="test2"/>
               ITEM:            TEXTELEMENTS_2
    </object></P></TD>
    hope it helps,
    assign points if useful

  • Conditions: Variables on date key figures

    Dear Sirs,
    I am trying to create a condition on a key figure of type date (subtype: dats). I want the user to select a date interval for this condition, using variables.
    The problems seems to be that the variable input screen thinks the user should enter an amount and not a date. If I enter a date in the variable then no data is beeing displayed.
    So how can I get the variable to understand that the input is a date ?
    Has anyone done what I try to do sucessfully.

    Hello Rakesh,
    thanks for your input. However, I am not able to get it to work.
    I create a condition on the key figure "date". I use e.g greater than. Then create a variable with replacement path to 0CALDAY, and transfer the condition.
    When I run the report I get the following error.
    Termination message sent
    ABEND BRAIN (418): Variable VAR_20080128112329 (D2LEOFV2P3JFW0YWPGXBKJ53A) does not exist or is incorrectly used 4 D2LENS95OIB2G5DTW28S323D2
      MSGV1: VAR_20080128112329
      MSGV2: D2LEOFV2P3JFW0YWPGXBKJ53A
      MSGV3: 4
      MSGV4: D2LENS95OIB2G5DTW28S323D2
    Have you managed to solve the excact same requirement?
    regards,
    Jørgen

  • Variables from workbook are not visible in the Planning function

    Hi,
    We're using a workbook with a bunch of queries in it. Every query has a lot of variables declared that are calculated based on two input ready variable that users are required to fill the first time.
    Everything works as expected until the save data function is called, which in turn calls the planning function.
    Here, the user exit variable try to be recalculated again. Unfortunately, this planning function loses track of the two input ready variables that were on the workbook, so the user exit variables have no values.
    Can you please suggest a method so that:
    a) The user exit processing in the planning function "sees" the two input ready variables
    b) The user exit processing is not triggered in the planning function and it's taking the already calculated values
    Let me know if you require further information.
    Best regards,
    George

    Hi,
    the variables in the filter of the query lives in one variable container and the variables of the filter of the planning sequence live in another variable container. They do not know each other. You need to establish a relationship between them. Usually this is done via variable binding for regular variables. For exit variables the variable binding can be done as written above.
    If as in your case you have variables in the filter of the query and you want to use their values in the variable of the planning sequence than you need to store the values somewhere where you can retrieve them in the exit. This can be in a e.g. in shared memory or in the session memory. To do this you need to spend an extra exit variable in the filter of the query. The exit variable reads the real values and stores it somewhere (e.g. shared memory, global parameter of a function group, a class member or something similar). Now as the variable value is stored it can be read in the implemenation of the exit variable in the filter of the planning sequence.
    In total we have 3 variables:
    Variable 1 contains the value which the user keys in and exists in the filter of the query.
    Variable 2 reads variable 1 and stores the value. It needs to be defined in the filter of the query as well.
    Variable 3 reads the stored value and needs to be defined in the filter of the planning sequence.
    Regards Matthias Nutt
    SAP Consulting Switzerland

  • Variable on Workbooks

    Hi guys,
    I've a simple Balance Sheet query. I changed the look (colours, fonts, etc) and saved it as Workbook. It looks nice now but the variables for selection are not displayed anymore. The workbook take the variables that were saved from the query.
    Is there any way to get my own layout for an excel report and also have the variables to select ?
    Thanks in advance

    Hi Pablo,
    If the other answers solve your problem, ignore this note.
    I think what you want is to be able to see the variables that were used on last refresh to display in your workbook.  The way to do this is:
    1.  refresh the query
    2.  on Business Explorer toolbar, select Layout >> Display text elements >> Variables.
    You can CUT and paste ( or drag and drop, but DO NOT copy and paste) these cells another location is you do not like where BW put them initially.
    You only need to do this one time.  After that, BW will maintain the values for you each time you refresh the query.
    Hope this helps.
    - Pete

  • Bex Exit variable with workbook

    Hi experts,
    I've defined a query that uses an exit variable which select a specific range of customers.
    When I execute the query the variable is populated with correct values.
    Then I saved this query as workbook; but when I execute the workbook, the selection is not taken into account; it's as the exit is ignored.
    When executing the workbook I 've got an information message as follow:
    "The Can be changed in query navigation property has been set for variable VACLCONSID, characteristic 0BILLTOPRTY. However, the variable is used in the query in such a way, that the system is unable to apply this change-option"
    But in my query definition for VACLCONSID, flag "can be changed in query navigation" is't checked.
    Moreover I can't debug exit ZXRSRU01 with a workbook.
    Any ideas
    Thanks in advance
    Thierry

    Hi Radha,
    thanks for your reply.
    My exit variable depends on a customer variable which is filled during variables screen processing
    User selects a period, and exit defines customers selection with this information
    I use i_step= 2 in exit ZXRSRU01
    No other parameters are filled in the workbook by user
    Regards
    Thierry

  • Command buttons to Assign Query / Query view with variables on Workbooks

    Hi experts,
    We want to have a workbook with buttons that will change the Query/Query view displayed in the unique grid we have.
    We've included command buttons on a workbook, as "<b>Data Provider Specific Command</b>" and chose the Queries, selecting the "<b>Assign Query / Query View</b>" option.
    When using queries without variables or just SAP exit variables it works perfectly, clicking the buttons change the table displayed accordingly. But when using queries that have at least one variable, in our test to select time interval, it doesn't work anymore.
    In our test, we're using just 2 queries and they have the same input variable (to select months interval); but when clicking the button no change/error occurs.
    Any ideas?
    Thanks in advance.

    Hi,
    Here is one approach - Keep three analysis items in the WT. Assign three different data providers to all three analysis items. If you do not want to show any query when the WT first loads, don't assign any query to the data providers. When a button is pushed, you can use the command SET_DATA_PROVIDER_PARAMATERS to assign a query to a DP so that that query will show up.
    Other commands that will help you would be SET_ITEM_PARAMETERS using which you can hide analysis items and also, you can use the command BACK_TO_INITIAL_DP_STATE on data providers so that they do not show up if they were blank at the start.
    Another way to hide a query is to assign the analysis item to a data provider which is blank.
    For your requirements, you will have to put multiple commands behind each button - you can decide which of the above commands suit you best.

  • Variable Assignment : Workbook broadcast

    Hi gurus,
    We have been broadcasting 31 Inventory workbooks on a weekly basis for the past couple of months. The workbook is based on 1 inventory query which has a Cal Month and Store Location as mandatory variables. Obviously, while broadcasting the same, we should be able to set these variables in the Variable Assignment of the Workbook Precalculation Tab.
    Earlier I was able to see them in the variable assignment assignment for this workbook. We havn't changed the query, no changes in the system, No changes at all. But now I am not able to see a single variable in the variable assignment except for this variable that says Tech.Cont.: Time Frame for which Data is Selected.
    I am not sure where can I see the variants for this workbook. Anyways, we havn't mentioned any variants in the workbook precalculation tab. Please help me with this issue.
    I executed the query and tried broadcasting the corresponding query, Here I am able to see the variable assignment. But not for the corresponding workbook. Creating all the settings right from the scratch for changing from workbook broadcast to query result broadcast would be a very tedious task which I don't want to undertake right now.
    Can anyone please help me with this problem.
    Thanks & rgds,
    Sree

    Hi Murali,
    Thanks for your answer and sorry wasn't able to respond early.
    As I had mentioned, this problem didn't exist earlier. However, all of a sudden, we have started to face this issue. Global variants were never created because we are not using the option of VARIANTS, instead we use Variable Assignments. This has been the practice for the past many months, but all of sudden since last month, we started having this strange issue where we could'nt determine the variable assignment.
    When know I click on the variable assignment create link, there is only one variable that appears in the screen "Tech.Cont.: Time Frame for which Data is Selected", I donot see any other variables. Earlier though, i was able to see all the other variables (Plant, division, etc).
    Please let me know if you have any answer for this issue.
    Thnks & rgds,
    Sree

  • Variable Assignment-Workbook Precalculation

    Hai Guys,
    I have a problem while executing.please,go through it
    Start---BEx Analyzer--
    Create new work book.While executing the work book,it is asking me to enter variable values.Once the variables are given and when start executing it, i am getting the ouput correctly and when i  broadcast the same through email,in work precalculation tab, again it is asking me to enter variable values.I have done that and  executed.  But I am  not able to receive any email.Infact,after taking 3 mnts it showing Timed out error.Kindly,suggest me with a solution to this. Where should I exactly enter variables?
    Kindly,give me a solution for this.
    Thanks,
    Mohan Chand Reddy A

    Hai Shakir,
                    First i thank q for ur reply to my question.But is it correct that we should assign Variables only in the Workbook Precalculation tab?Some one are suggesting like variables can be given both in foreground calculation i.e., while creating a workbook and also we should give the same variables in the workbook  precalculation tab.But in one document, i found there is no variable assignment tab in the Broadcasting settings.It means they might have given variables in the workbook creation itself.
          Please,reply me.It's very urgent.
    Thanks,
    Mohan Chand Reddy A

  • Hierarchy node variable in workbook

    Hi all,
    I am scheduling a workbook in precal,
    The work has nine queries with same hierarchy node variable in all teh query selection.
    The work book is taking long time in opening even when auto refresh is off.
    the precalculation takes 30000 sec and running...
    any thought on what can be done to reduce the calculation.
    regards,
    Rakesh.

    Hi,
    As precalculation just automates the process of opening, refreshing and applying the variant on a workbook I would suggest trying to find improvements there. Perhaps the notes below can help.
    1289127
    1160093
    1179647
    1260213                         
    also use the latest precalc server support pack "BW 7.x precalculation service SP1200 - GUI 7.10" (note 1387291).
    Thanks,
    Michael

  • Condition variable for sql query

    I have created the follwing query which adds the open sales orders and forecasts to create a projected cashflow.  The query works fine except I would like to be able to enter the forecast code, rather than have it hard coded.  If I enter Where OFCT.code='[%0]', I get no results for the forecast. 
    SELECT     FCT1.ItemCode "Item", FCT1.Date "Date", FCT1.Quantity "Qty", ITM1.Price "Price", (FCT1.Quantity*ITM1.Price)"Ext Price"
    FROM         OFCT INNER JOIN
                          FCT1 ON OFCT.AbsID = FCT1.AbsID INNER JOIN
                          ITM1 ON FCT1.ItemCode = ITM1.ItemCode
    WHERE     (ITM1.PriceList = '2') AND (OFCT.Code ='5/24/2010')
    UNION
    SELECT          RDR1.ItemCode "Item", RDR1.ShipDate "Date", RDR1.Quantity "Qty", RDR1.Price "Price", (RDR1.Quantity*RDR1.Price)"Ext Price"
    FROM          RDR1
    WHERE          RDR1.LineStatus = 'O' and  RDR1.OpenQty >'0'
    ORDER BY DATE
    Edited by: Sandra Clavell on May 27, 2010 3:50 AM
    Edited by: Sandra Clavell on May 27, 2010 3:51 AM

    Try this:
    Declare @fcod char(16)
    set @fcod/* select f.code from ofct f where f.code*/='[%0]'
    SELECT FCT1.ItemCode "Item", FCT1.Date "Date", FCT1.Quantity "Qty",
    ITM1.Price "Price", (FCT1.Quantity*ITM1.Price)"Ext Price"
    FROM OFCT INNER JOIN
    FCT1 ON OFCT.AbsID = FCT1.AbsID INNER JOIN
    ITM1 ON FCT1.ItemCode = ITM1.ItemCode
    WHERE (ITM1.PriceList = '2') --AND (OFCT.Code =@fcod)
    UNION
    SELECT RDR1.ItemCode "Item", RDR1.ShipDate "Date", RDR1.Quantity "Qty",
    RDR1.Price "Price", (RDR1.Quantity*RDR1.Price)"Ext Price"
    FROM RDR1
    WHERE RDR1.LineStatus = 'O' and RDR1.OpenQty >'0'
    ORDER BY DATE

  • Bex variable not calculating when using on a workbook

    Hello!
    I've created a variable on 0date.
    The default value is the current month.
    The code is in ZXRSRU01 with i_step = 1.
    When calling this variable using the query the value is correctly shown :
    For exemple we are in march, the variable default value is 03.2011.
    But the workbook based on this query don't update the variable default value:
    The workbook shows all the time "02.2011" even if we are in March.
    In fact, this workbook was saved in February, he seems to remember that value.
    How to make dynamic variable in workbook ?
    regards,

    Not sure if you have tried this, if not give it a try.
    In workbook properties, there is a setting 'Process variable on refresh' - if this is checked the workbook uses the saved variable.
    from [http://help.sap.com/SAPhelp_nw70/helpdata/en/54/a493f7256b43698191a2623e5a0532/content.htm]
    Process Variables on Refresh
    If any query in your workbook contains variables, any current values set for the variables are part of the query view definition and are therefore stored in the workbook.
    Set this indicator if the values saved in the workbook are to be used automatically.
    You should have this unchecked.

Maybe you are looking for

  • Apex With SSO not working

    When running htmldb 2.0.00.29 with SSO , we receive ORA-06550: line 2, column 1: PLS-00201: identifier 'WWSEC_SSO_ENABLER_PRIVATE.GENERATE_REDIRECT' must be declared ORA-06550: line 1, column 45: PL/SQL: Statement ignored Error Unable to run portal_s

  • How do I add a submit button to a pdf form?

    hello I am trying to add a submit button to a pdf form... is this possible though forms central or Acrobat Pro?

  • Process exited with exit code 128 using embedded OC4J (jdevsetudio1013)

    I've just downloaded Oracle JDeveloper (10.1.3) - Production JAN 2006 version (Studio Edition), installied and configure as the install guide, downladed SU5 (Studio Edition version 10.1.3.0.4 Build JDEVADF_10.1.3_NT_060125.0900.3673) and JUnit extens

  • PDF form template displaying multiple sets of data loaded from xfdf

    Hello I would like to use PDF Forms with data stored in xfdf files. Is it possible to create pdf form (template) for displaying and printing multiple sets of data stored in xfdf? For example: pdf form contains 2 sets of data. Form field names:  F_1 a

  • Apple Tv & Airport Express

    If we want music in other rooms do we buy the aiport express and speakers or can we use it via the technology in the apple tv version 2. Regards Paul