Restriction in Query

Hi Experts,
For the object Zabc the values should not be between 001 to 009 .
other than these values has to be displayed in the query output.
  Plz help me to resolve this.
Thanks in Advance.

Hi,
in the query designer right click on this object (i think you mean an info object) and use "restrict" funtion - just select those values u mentioned and use the right mousebutton on each of them. There is an exclude option.
Or better. Right click on info object, select restrict, as selection use value range, select your items, right click, exclude!!
Regards,
Adem

Similar Messages

  • RESTRICT THE QUERY IN THE REPORT

    Hi.
    I have created a Data-Block which doesn't based on a table. In this Block I
    have a Text-Item which I need to restrict my Query.
    For example I write in the Text-Item the "empno" 7788. If I click the OK-Button
    then reports should start and it must show me a report of all Information of
    this employee.
    To do this I have created in Forms a Report. When Reports Builder start I can
    write my Query. I wrote:
    SELECT * FROM emp WHERE empno=:control.empno;
    But it doesn't work so. What must I do.

    You need to pass the value in your Form item to the report as a parameter - read up in the reports documentation about creating and using Reports parameters

  • 0FISCPER Restriction in Query Designer

    Hi All,
    We are on BI 7.0 -- SP 17 .
    Issue: When 0FISCPER is restricted in Query Designer it shows only one value (Period 00 0000 ) as opposed to values in Master data values. We went to SP 10 to 17 recently and since then this issue croped up.  Any thoughts will be appreciated.
    Tasks taken care:
    1.Transfered global settings from Source system T009 table is consistent.
    thanks
    Mr.BI

    Mr. BI,
       Did you resolve the issue?
    The problem exists with filter value selection based on  " Values in Master data table" .
    When the setting is changd in Info object mantenance to "Only values in Info provider"  you can see values for Fiscal year/peiod.
    Jaya
    Edited by: Jaya Mogali on Jul 11, 2008 9:00 PM

  • How can i restrict the query specific to the user??

    Hi all,
    I have a query used by multi users; I wanted to restrict the users how can I do that??
    Regards
    Kiran Kumar

    Hi,
    check this links
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/restrict-query-to-user-1453172
    Restrict Query on the logged User
    regards,
    shikha

  • Restricting the query result.

    Hello Experts ,
    Senario :
    I have Keyfigures 1)PO Line Item Count and 2) PO Value
    I want the number of PO Line Item having PO Value between 0 to 2,500$.
    I cant restrict a key figure with another keyfigure.
    Also in the query result i dont have any characteristic drilled, only key figure count is present.
    Please help.
    Thanks,
    Vinay

    Hi,
    Use RRI QUERY, Pass the query result of the first query to Second one and in the second query Use condition to display only       "Ito display the number of PO Line Item having PO Value between 0 to 2,500$."
    And Use "Count" function to display the number of Purchase Order Line items.
    Hope it helps...
    Regards.

  • Restricting a Query execution

    Hi,
    I'am using Report Builder 6.0.8.11.3. I'm getting parameters from the user and want to execute specific query based on it.
    Is it possible to restrict the execution of a query at runtime....
    Thank you....

    I don't know whether your problem is solved or not? I did the similar work combining two different tasks in a report.
    But here is the solution, yes you can enter a parameter at runtime to select a specific query and ignore the rest.
    Create a parameter as OPTION which takes list of values.
    for example as 'SUMMARY' and 'DETAIL'( You can see List of values in properties of parameter).
    For example if you have summary and detail reports as different queries. you can combine them as one.
    in summary report query add :p_option = 'SUMMARY'
    in detail report query add :p_option = 'DETAIL'
    And on the main frame of the layout u can include a pl/sql code to select that specific report.
    Example:
    ========== for summary report ==========
    function M_1FormatTrigger return boolean is
    begin
    IF :P_OPTION = 'SUMMARY'
    THEN
    RETURN(TRUE);
    ELSE
    RETURN (FALSE);
    END IF;
    return (TRUE);
    end;
    =========for detail report =============
    function M_2FormatTrigger return boolean is
    begin
    IF :P_OPTION = 'DETAIL'
    THEN
    RETURN(TRUE);
    ELSE
    RETURN (FALSE);
    END IF;
    return (TRUE);
    end;
    Hope this gives an idea!! If you have any other method to achieve that do let me know.
    Message was edited by:
    Prathima
    Message was edited by:
    Prathima

  • Key Figure Restrictions in Query

    Hi all,
    I've got this scenario on hand:
    I want to display a Bex report with the a particular key figure (Actuals) restricted to only specific value COMBINATIONS of two characteristics (Cost Centre and Cost Element). i.e. The restrictions should only apply for each individual combination of the characteristics (e.g for Cost centre = S0561 and Cost Element = 70400 , another combination could be for Cost Centre = S0352 and Cost Element = 70610 ).
    The challenge here is that if you restrict the key figure based on the individual characteristics (say, for Cost Centre = S0561 , S0352 and for Cost Element = 70400 , 70610) then it blocks off other figures from characteristic combinations that are should be allowed (e.g. Cost centre = S0561 and Cost Element = 70610 ,  and another combination of Cost Centre = S0352 and Cost Element = 70400).
    Any suggestions on how to handle this, typically from a previous experience, will be appreciated.
    Regards,
    Uche

    Hi Uche,
    A workaround for this scenario would be to include a hidden keyfigure for every characteristic combination. (If there are not many combinations)
    For e.g.
    Hidden KF1  Restricted on Cost centre = S0561 and Cost Element = 70400
    Hidden KF2  Restricted on Cost Centre = S0352 and Cost Element = 70610
    Then another final key figure, which is visible and is a formula KF
    Actuals     Formula = Hidden KF1 + Hidden KF2 + ..
    Best Regards,
    Dabre

  • Problem in Restricting a Query

    Hi All ,
      I have a scenario where we have a Keyfigure say A . In Query the user gives the input for CALWEEK which is mandatory. Let say he gives the Input B . I want to display the result as "the values for A in Calweek (B-1)" i.e. one week before the input calweek.
    How can i achieve this ? Because if i am creating a formula then  in the operands i am only getting the keyfigures not the Calweek . Any pointers??
    Thanks
    Sam

    hi Priti ,
    Thanks for the reply . let me make you understand the complete scenario. The user gives the Input for Calweek . Now there is another date field called planning run date. i want that the values of key figure A should be displayed for Planning Run Date which is equal to (Calweek - 1).
    For example if the user give input for calweek as 200902
    then the values of A which should get displayed is for Planning run Date = 200901 .
    And for rest of the characteristics the values should get displayed for calweek =200902
    How can i achieve this .
    Thanks
    Sam
    Edited by: Samir Bihari on Feb 17, 2009 12:27 PM

  • Restricting the Query Design Mode Toolbar in BEx

    Hello,
    Query Design Mode toolbar is available to Citrix users when using the BEx Analyser. THe client would like this switched off in the workbooks so users cannot see the make-up of the query.  Does anyone one know who to carry this out?
    Thanks,
    Hema
    Edited by: Hema Bharti on Jul 30, 2008 2:36 PM

    Hi Hema,
    To answer your question:
    From query design toolbar, I do not see how you can see the make up of a query.
    The design toolbar has been introduced to be able to make changes to the query as users need and save them for personal in Favorites or if they have authorization into roles.
    As lomg as they do not have access to query designer, they cannot see make up of query.
    There is no authorization to disable design toolbar.

  • How to remove access restrictions in query

    Hi all,
    We have a query " My master agreements and contract documents" where files in contract document is one of the result fields in query(clickable)
    Issue is files are accesible only to the collaborators, inorder to remove the access what I have to do?
    Please see below for the query which I have written at column level
    CASE T4.ATTACHMENT_IS_FILE WHEN 1 THEN '</FCI/USERSESSION/APP-PATH>/download/' <%+%> <%URL_ENC(T4.ATTACHMENT_DISPLAY_NAME)%>
    <%+%> <%CHR%>(63) <%+%> 'id=' <%+%> <%URL_ENC(T4.ATTACHMENT_DISPLAY_NAME)%> <%+%> '~true~' <%+%> RTRIM(CAST(T4.ATTACHMENT_FA_OBJECT_ID AS CHAR(12)))
    <%+%>':'<%+%> RTRIM(CAST(T4.ATTACHMENT_FA_CLASS_ID AS CHAR(12))) <%+%> '~' <%+%> RTRIM(CAST(T4.OBJECTID AS CHAR(12))) <%+%> ':2003~'
    <%+%> RTRIM(CAST(T4.ATTACHMENT_SIZE_IN_KB AS CHAR(12)))
    <%+%> '~2003~null' ELSE T4.ATTACHMENT_REFERENCE END
    Collaborators able to access and download it but other users are unable to do.
    What changes we have to make inorder to make it accecable to every user?
    Please suggest me.
    Thanks,
    Raj.

    This check is being done by the system. And this is in compliance with the expected security around these documents. You should not attempt to bypass the system security model. The system is working as expected.
    Regards,
    Gary

  • Grouping of Char Restrictions in Query Designer

    Hi
      Can you please update me on how can i achieve this at report level (Quesry Designer)
    Lets assume i had a Char Product which had 26 different values as Master data.
    Key: A,B,C.....Z
    In the report i need to group those values,Line
    North should display A,B,C,D
    South should display EFGH
    WEST Should display IJKL
    other should display the remaining all other  products
    Can i achieve this in Query Designer
    Thanks

    Hi,
    As per your requirement i can suggest you a way:
    1. Create as the structure as per your requirement: NORTH, SOUTH, EAST, WEST, OTHERS
    2. Then select the key figures and in the display properties; select the "hide (can be shown)"
    3, there you won't get the column heading. then you can describe your own column heading.
    PS: But you can do this only in BEx analyzer (in the workbooks). You cannot do this in the Web reports.
    Regards,
    Ravi Kanth

  • Current fiscal year and previous fiscal year restriction in Query  Customer

    Hi ,
    My requirment is disply current year qtrs and previous year qtrs in the report . User will not enter year , date , month or qtr . system should calucualte and disply curremt year qtrs and previous year qtrs .
    I have created ZFISCYEAR reference of a 0FISYEAR year . now I would like to write customer exit for Current fiscal year and previous fiscal year to display current year qtrs and previous year qtrs.
    Could you please provide customer exit code if you have or recomend if you know any other options.
    Appriciate you help
    Thanks

    hi try this
    take into account that I don't know th periv you use could be K4 or one defined by you so I have commented it.
    The coding here is for the current fiscal period for the previous year just to another l_year varibale and populate with offset for instance l_year = l_year - 1.
    so for current year
    WHEN 'CURRPERIOD'.
        current_date = sy-datum.
        CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            i_date  = current_date
        '    i_periv = ''
          IMPORTING
         '   e_buper = l_period.
            e_gjahr = l_year.
        l_s_range-low = l_year.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
    for previous period
    WHEN 'PREVPERIOD'.
        current_date = sy-datum.
        CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            i_date  = current_date
        '    i_periv = ''
          IMPORTING
         '   e_buper = l_period.
            e_gjahr = l_year.
        l_year = l_year - 1.
        l_s_range-low = l_year.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
    bye
    Boujema

  • How to restrict the quantity in bex  query?

    Hi all,
    i have created a query using infosets and it looks like this :
    material   cost      tax amount units
    madhb    21,693   1,443.42   99 each.
    I want to restrict the query in such a way only one unit value need to be displayed.
    How to restrict it by showing only single unit.
    The expected result should be like this??
    material cost  tax amount units
    madhb    293   144        1 ea
    Can anyone let me know how to restict the quanity so the query will display the results only for one unit.
    thanxs
    haritha

    Hi Pradiba santosh,
    I have created a conditions and restricted the key figured.
    zunit equal 1.
    and i have saved and executed the query. But still it displayed for all the units. And it didnt display the query for one unit. Why is that so?
    can you let me know what went wrong on it?
    thanxs
    haritha

  • Corrupted Query Designer with strange External Restriction

    Dear Experts,
    I have a dilemma with query, when I run the query in RSRT and debug it with OLAP, in the restriction side it appears to restrict the query with two Attributes which are not even used in my query not also their master-data.
    I have created the same query again but still it gave the same behavior.
    Please help me to remove this dilemma.
    Regards,
    Mohammed

    close all applications re-use RSRT
    hope it works

  • Error when trying to restrict query by Date/Time

    I'm running the following Power Query
    let
    ParamTable = Excel.CurrentWorkbook(){[Name="tbl_Parameter"]}[Content],
    StartDateRow = Table.SelectRows(ParamTable, each ([Parameter]="Start Date")), //Find row with Start Date, returns a table
    StartDate = StartDateRow{0}[Value], //Only 1 row in Table so assume row 0 is the value I want
    EndDateRow = Table.SelectRows(ParamTable, each ([Parameter]="End Date")),
    EndDate = EndDateRow{0}[Value],
    Source = Excel.CurrentWorkbook(){[Name="SAMPLE_Excerpt"]}[Content],
    #"Filtered Rows" = Table.SelectRows(Source, each [SAMPLED_DATE] >= StartDate and [SAMPLED_DATE] <= EndDate),
    #"Removed Duplicates" = Table.Distinct(#"Filtered Rows", {"PRODUCT"}),
    Products = Table.SelectColumns(#"Removed Duplicates",{"PRODUCT"})
    in
    Products
    The query returns the correct list but always has an extra error row with the following error message
    Expression.Error: Cannot apply operator < to types DateTime and Number.
    Details:
        Operator=<
        Left=1/1/2015 12:00:00 AM
        Right=42013
    42013 corresponds to 1/9/2015 which is not a date entered anywhere in my query or spreadsheet.  I tried using the DATETIME#() function to convert a text string to a date but still get the same message.
    Can anyone provide an example of restricting a query by a date range pulled from a parameter table in Excel?

    Hi,
    I think this errors due to different date and date time format . So that, you can correct the formula line of StartDate and EndDate to below :
    StartDate = DateTime.From( StartDateRow{0}[Value] )EndDate = DateTime.From( EndDateRow{0} [Value] )
    I hope this to help you.
    Regards,

Maybe you are looking for