Default values in query designer

Hi,
We have little weird requirement in our project.
We have 2 variables on week char. in the query. One in global restriction which is manual input and other is in default values which is populated through customer exit. This is done to make sure if user does not enter anything on the variable screen in weeks variable, weeks will be populated from customer exit. In case if he/she enters anything  on the screen ,query should only consider values entered by the user.
E.g If user executes the report and doesnu2019t input anything, customer exit will populate 200901 to 200910. Again if user goes to variable screen from the option in the analyser and inputs 201001 to 201015, query should only consider 201001 to 201015 values. But in this case values populated from customer exit in earlier run do not get delete automatically. I want to delete those values, if user inputs anything on the variable screen.
I was thinking of deleting entries from e_t_range table but this is not possible as e_t_range table in turn passes the values to some SAP internal table(in std sap code) which we can not touch) and clears the e_t_range table in each run.
Could you please suggest any other way to resolve this issue?
Many Thanks.

Hi,
GO to the Customer exit and check what is the I_STEP value it is taking.
I think the Query is not refreshing with the for the second time when the user is imputing the values manually.
Use I_STEP = 2 in the Customer exit and check.
For more details
http://help.sap.com/saphelp_nw04/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm
Santosh

Similar Messages

  • Dump when trying to display characteristic values in QUERY DESIGNER

    Hi Experts,
    Life seems to become a struggle with 7.0 for me :-(.
    My current problem:
    If I try to display characteristic values  in Query Designer (left section of screnn, wthin dimensions) system dumps frequently.
    It's that kind of dump, that doen't help really (to my oponion)_
    What happened?
        The exception 'CX_RSR_X_MESSAGE' was raised, but it was not caught anywhere
         along
        the call hierarchy.
        Since exceptions represent error situations and this error was not
        adequately responded to, the running ABAP program
         'CL_RSBOLAP_BICS_SERVICES======CP' has to be
        terminated.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UNCAUGHT_EXCEPTION" "CX_RSR_X_MESSAGE"
        "CL_RSBOLAP_BICS_SERVICES======CP" or "CL_RSBOLAP_BICS_SERVICES======CM003"
        "HANDLE_UNCAUGHT_EXCEPTION"
    ... etc.
    BW 79, SP21
    GUI 7100.4.14.3136
    Any ideas?
    Thanks in Advance and Regards
    Joe

    Hi Vikram,
    Thanks for reply. Reinstalling GUI was successful, but - error still occurs. ..
    Regards
    Joe
    Edited by: J.F.B. on May 28, 2010 3:02 PM

  • Adding column values in query designer

    Hi,
    I have requirement to add value in query designer the values should look like this
    Column A     Column B
    10                    10
    20                    30
    30                    60
    40                    100
    the first values of column B will be same as Column A 10. The second value of column B = column A 1st value +Column A second value similarly Third value of column B = 1st + 2nd + 3rd values of column a. So on and so forth
    Any help will be highly appriciated.
    Regards,
    ray

    Hi
    Just create the formula and go to the properties of that formula and go to the calculattion tab and in the "CALCULATE SINGLE VALUE AS "  select the option the additive ( not sure but once check that will perform additive operation plz once check it) and select the cumulative check box.
    I think u can get it , because in one of my project i did that calculation.
    Hope u got it,
    Thanx & Regards,
    RaviChandra

  • Precalculated Value Set - Query Designer - information Broadcasting NW2004

    Hi Buddies,
    Needs your help!
    i have question regarding to the precalculated Value set distribution type for infomation Broadcasting NW2004.
    According to my understanding, firstly i created a broadCasting setting Z_Test based on Query1 to calculated the value Set, for example ,  for company code.
    And then in the Query Designer, New a Query2 which contains a Variable type precalculated value set and its default value point to the broadcasting setting created before.
    but when i check the query, it present an error message : 'Default value for Variable 'PM_Comp' are not within permitted value range'.
    could anyone can help me out with it?
    Thanks a lot!!
    B.R
    Vivi

    Hi,
    I am also getting the same error. Have you got any solution ??
    Regards,
    Sheetal

  • How can I use today's date as default value in query string filter web part in SharePoint

    I have a query string filter on my web part page. I am trying to figure out how I can set it's default value to Today? I can't find anything online...

    Hi,
    Per my understanding, you might want to set a default value to the Query String Filter Web Part.
    It would not be able to set default value to the Query String Filter Web Part with the OOTB features available.
    By default, with a Query String Filter Web Part in the current page, we can filter other web part in the same page by adding parameters and values in the address bar
    of browser.
    If setting the “Query String Parameter Name” of a Query String Filter Web Part as “t”, then we can filter the corresponding connected web part by inputting such an
    URL into the address bar:
    http://sharepoint/SitePages/Page1.aspx?t=value1
    Suppose you want to filter the list view with a value dynamically when user opens this page, as a workaround, we can generate an URL with the parameters needed when
    page loaded, then redirect user to this URL afterwards. This can be achieved using JavaScript.
    About how to redirect user to other page with an URL:
    http://www.tizag.com/javascriptT/javascriptredirect.php
    How to get today’s date using JavaScript:
    http://www.w3schools.com/js/js_dates.asp
    Best regards      
    Patrick Liang
    TechNet Community Support

  • All Dates displayed for "Characteristic Values" in Query Designer

    Hello Experts,
    We are on BI 7.0, level 13.  I am having an issue within the Query Designer with regards to dates.  I have a write-optimized DSO that contains 3 date fields (for example, ZDATE1, ZDATE2, and ZDATE3).  Each date InfoObject is of type DATS so the system automatically creates it with reference to 0DATE. 
    When I create a query in the Query Designer, on the left hand side, I expand the "Characteristic Values" node under each date field.  The Query Designer shows the same list of values for each of the 3 dates even though they are not valid values posted in the DSO for those fields.
    For example, ZDATE1 only has 1 value posted in the DSO (01/01/2005).
    ZDATE2 only has 1 value posted in the DSO (01/01/2006).
    ZDATE3 only has 1 value posted in the DSO (01/01/2007).
    Bute when I expand the "Characteristic Values" node in the Query Designer, I see ALL THREE values under each date field.  I would expect to only see the 1 value posted for the InfoObject in the DSO.  Also note that each InfoObject is defined to show "Only posted values in InfoProvider".
    It appears that Query Designer will show all values for the reference InfoObject 0DATE instead of the ones posted to the actual InfoObject in the DSO.  If I delete the data in the DSO, the Characteristic Values list still remains because they exist in 0DATE.  Anyone encounter this before?  How can I get the Characteristic Values list to only show posted values for that InfObject?
    Thanks for your help!
    J

    Thanks for the response.  I went into the DSO and right clicked on each of the Date fields.  I looked at the Provider-specific properties and there is the option for "Query Exec.FilterVal" which only restricts what values appear when restricting during execution, not during query creation.
    Is there someplace else I should look or someplace else I can make change to only display posted dates when creating a query?  Thanks!

  • Hide a row or column for characteristic value # in Query Designer

    Hi gurus,
    I would if we could hide a result row / column if one of the characteristic value is #. The requirement is actually to remove the meaningless row / column from the whole result set. For example, I have a char Material Group in the column. Since not every Material is assigned to a Material Group, I will get the following layout:
    Material_Group A
    Material_Group B
    Material_Group C
    Is it possible to define in query designer so that the column with # will automatically not be displayed?
    Thanks,
    Meng

    Hi Meng,
    I guess we have the same users..
    But there is one thing that is going to make a non sense on the report: if you do not display the "#" for material group, then the total of your query by material group will not be the summation of what is displayed on the screen...and if the user explort the information in Excel (pretty sure they will do so), you will have some calls that your query does not balance....
    Based on that assumption, tell the users to assign a material group to the materials, so that this unassigned column disappears. You could even give them a control report listing all the parts that do not have a material group
    If this is a standard business rule not to have a material group for all parts, then, what you could do is to change the text for empty rows for Material group, then the "#" will disappear and wil be under the text description you defined.
    But keep in mind that your data is made of materials which do not have a material group in their definition, noraml or not ?
    PY

  • Value for a characteristic changed with an other value in Query Design

    I want to change the value for a characteristic (Type) in Query Design (not the description, the value).
    In my cube I have these values:
    Customer *** Type
    22222********SmallCorp
    22223********SmallCorp
    22224********MedCorp
    The report should like:
    Customer *** Type
    22222********LEGALENTITIES
    22223********LEGALENTITIES
    22224********LEGALENTITIES
    Or only the "SmallCorp" value should be changed in LEGALENTITIES.
    How to do that?
    Thanks,
    Dragos

    You can write an exit to replace Type SmallCorp to LEGALENTITIES.
    But this will reflect in other queries too....
    Or If change in modelling is still an option, you can add one more Type 2 in the cube and update in the transformation with Constant =  LEGALENTITIES. Use the Type 2 in the queries.

  • Filter certain InfoObject values in Query Designer

    Hi
    I've the following scenario:
    - InfoObject 0ACCOUNT contains some account numbers with prefix 'XYZ' followed by a number, e.g. 'XYZ12345'
    - These values may never be shown to the analysts, i.e. I need to filter (remove) them in the characteristic restrictions of the Query Designer
    How can I do that? Hard-coding all these values makes no sense as new account numbers could be created anytime.
    I think the only solution is using a customer exit or does someone have another idea?
    Thank you for you help
    Patrick

    Hi Patrick,
    Exclusion with multiple values generally hampers query performance, so better I would suggest you to include required values in filter if that is feasible (As I know there is some limit on number of filter value inclusion also).
    You can simply create a customer exit variable on 0ACCOUNT, select all the master data values of 0account in internal table and then delete the values starting with 'XYZ'.
    DELETE i_t_account where 0account CP 'XYZ'.
    after that you need to populate all these values in variable. I would suggest you to do this operation in I_STEP = 2, otherwise if you do it in step 1 then it might take some time for user to see the selection screen.
    Regards,
    Durgesh.

  • Bifurcation of values in Query Designer

    Dear BI Gurus,
    In a column we are getting both positive value and -ve value. We want to bifurcate the values and show only +ve value in one column and show -ve value in another column. Is it possible through Bex query designer?
    Please through some light on this issue.
    With Regards,
    Balachander.S

    Hi,
    i think yes. You need two rules for your keyfigure and this rules contains an IF...ELSE loop like this:
    For negativ keyfigure:
    Rule1 = (KeyFigure LT 0) * Keyfigure
    For positiv keyfigure:
    Rule2 = (KeyFigure GT 0) * Keyfigure
    Hope it helps
    Regards

  • Rounding the values in Query designer

    In Query Designer, I am trying to store the rounded value of the below calculations to use in calculating a difference amount and %variance.
    Currently:
    Report shows actual % of 1.1 and budgeted % of 1.1, because we are rounding the actual value of 1.0798 to 1.1 and the budgeted value of 1.1326 to 1.1.  The difference is calculated as budget u2013 actual or 1.1326 u2013 1.0798 = .0528 and the percent variance is 0.0528/1.1326 = 4.66%.
    Requested:
    The end user wants the rounded values of 1.1 used in calculating the differences and percent variance, so 1.1 u2013 1.1 = 0 difference and percent variance is 0/1.1 = 0%.
    What function can I use to recall the rounded values to use in difference and percent variance calculations?
    Thanks for any and all help!
    Kim Plut

    HI Al -
    Your suggestion:
    If you want to round a key figure "KF" to have zero decimals:
    ( FRAC ( 'KF' ) < 0.5 ) * FLOOR ( 'KF' ) + ( FRAC ( 'KF') >= 0.5 ) * CEIL ('KF')
    An equivalent MS Excel formula you can use to test is:
    =IF(A3-TRUNC(A3)<0.5,FLOOR(A3,1),CEILING(A3,1))
    If you want to round a key figure "KF" to have 2 decimals:
    ( FRAC ( 'KF'*100 ) < 0.5 ) * FLOOR ( 'KF' * 100 ) / 100 + ( FRAC ( 'KF'
    100 ) >= 0.5 ) * CEIL ('KF' * 100) / 100
    The equivalent MS Excel formula to test it is:
    =IF(A5100-TRUNC(A5100)<0.5,FLOOR(A5100,1)/100,CEILING(A5100,1)/100
    is exactly what I need, I am struggling to find the formula to round the key figure to 1 decimal in the query, any suggestions on how to modify the above formulas to return one decimal.  I was able to successfully test in Excel but cannot get the correct formula in Query designer.
    Thanks
    Kim

  • Getting default value in query PLD

    Hi Experts,
    I have made a query PLD.When I preview the pld,I shows me someother value.
    For eg
    If I want to see preview of vendor let say V0007 but in preview I can see only for V002.V002 is default in pld.If I use any vendor code instead of v0007,it give preview of v0002 only.
    So pls help me out in this regard.
    Thanks,
    Saurabh Jain

    Hi
    From what I understand, my suggestion would be to create a Customer Exit variable to read from the table RSECVAL for i_step = 1. U can get the user from system variable -.sy-uname. 
    Could u also check the below document on Dynamic Authorization?
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0f9f33c-0f17-2d10-d3a2-ae52ccd00780
    Regards,
    Aparna

  • Summation of rounded values in query designer

    Summation of rounded values
    Hello,
    we would like to know if there is a function which we could insert into e fixed structure that works like the query function  Summation of rounded values.
    It seems like it doesn' t exist....
    Davide
    "Example
    Summation of rounded values
    The example below shows the values of a simple query where sales have been set with a scaling factor of 1,000.
    Customer
    Sales
    EUR 1,000
    Customer 1
    2,246
    Customer 2
    2,126
    Total
    4,372
    If you now reduce the number of decimal places, the values are rounded:
    Customer
    Sales
    EUR 1,000
    Customer 1
    2,25
    Customer 2
    2,13
    Total
    4,37
    You can see that the total seen locally is not the value that you would expect. This value was calculated first then displayed and then the value was rounded.
    If you activate the Summation of rounded values function, the value is rounded first, then calculated, then displayed. The query then appears as follows:
    Customer
    Sales
    EUR 1,000
    Customer 1
    2,25
    Customer 2
    2,13
    Total
    4,38"

    Hi,
    If you want to sum up the value of pswdt follow the sample which i handled with select statement;
    SELECT MATNR  SUM( LSMNG ) SUM( WEMNG )
              INTO (V_MAT, V_LSMNG, V_WEMNG)
              FROM S012
              WHERE MATNR = WA_MAT-MATNR
              GROUP BY MATNR.

  • BI 7.0 Order of Query front end default value fields

    Hello,
    I have a ordered the default values in query designer, but when I display the query in bex web analyzer, the order of the dimension variables is not in the same order as I specified in query designer.  It does not appear to be alphanumeric or even based ont the technical name.   How can I control the order of the default values?
    Thanks for any information
    Lee Lewis

    Simply go to the query properties and here you can re-order the charachteristics

  • Query Designer - Hide Repeated Key Values - Doesn't work in the web

    Hello Experts,
    I'm facing a problem with a query. The user requested that he/she wants to see all the values of the key values.
    I already unchecked the option "Hide repeated key values" in query designer, but it still hiding it. I tested in BEx and it's working fine, but when I run it in the web the key values are being hidden.
    Anyone knows what is happening? I'm not using WAD and there is no possibility to use it.
    Thanks,
    Helder

    Hi,
    I have seen this problem - setting that option still does not show the repeated key values in web. You will indeed need to use WAD and uncheck that option in the properties of the analysis item. If you can't do that, the other option would be to do this change in the default web template (which is generally 0Analysis_pattern for BI WAD) but note that this will affect all queries.
    Also, please note that if the query is exported to excel, it will show the repeated values. This is the reason sometimes the users ask for key values to be repeated - maybe you would want to confirm that.

Maybe you are looking for

  • ITunes Freezes/Crashes On MacBook Pro When Connecting iPad

    iTunes (v10.7) crashes on my new MacBook Pro Retina (OSX 10.8.2) almost all the time when I connect my iPad Retina (IOS 6.0.1). When i connect via USB, iTunes comes up but the iPad does not appear as a recognizable device. This problem started about

  • Safari Not Responding

    I was just informed that I should start a new thread on this subject. I thought the other four threads would be enough - but whatever. Safari has gotten so bad in NOT QUITTING that I just got thru DELETING Safari completely. My only Browser is FIREFO

  • Period End Closing in sap b1 8.8

    Hi All Expert, Pls. Provide me step of period end Closing. How we can execute previous year period (i.e 2010) in SAP business one.inform me with details. Thanks

  • PHOTOS Display order in Albums i4

    What should I do to maintain a pre-set order (sequence) of pics upload to my iPhone from my PC? I have numerically numbered the files in my PC but...on sync the order is completely altered (at random). Any help on this subject will be greatly appreci

  • Image XObject in PDF

    Good day everyone, I have a few questions with regard on the Image XObject and I hope u guys can help to clear my confusion. Say if i insert a tiff image (Using PDEImageCreate) into a blank pdf and save it, the image will be saved as a Image XObject