Pre-define filter for query in a BEx Report

Hi all experts, I have a question, I have created a report with WAD and Query Designer, and I need a pre-define filter for different user or different role. Anyone knows where should I set this pre-define filter to the query ? In the WAD itself, or must do it in backend ? My scenario is, lets say User A login to this report, he will have value A, B, C as filter value in characteristic Z, User B login to this report, he will have value D, E, F as filter value in characteristic Z. Perhaps you guys can understand what I trying to say.

Hi,
You can set a customer exit variable on characteristics Z. the value for Variable is populated in customer exit written in CMOD using I_STEP = 1.
You also need to maintain a mapping table for value of characteristics Z to user. Now if user A checks the Report, using the sy-uname you lookup to the mapping table and get the corresponding values of characteristics Z and populate the default value of the variable or straight away restrict it in the query by not making it ready for input.
Hope it helps....
Regards,
Umesh

Similar Messages

  • Issues in creating a Pre-defined filter in Universe

    Hello Everyone,
    Here is the problem...
    The idea is to have a prompt (Prompt1) to allow user select the Input type ..ie."Check Number or Invoice Number". There is the second prompt (Prompt2) which will allow user to input a value. Based on Prompt1 value, the prompt2 input should be evaluated against Check Number object or Invoice Number Object.
    This is using a universe based on a BEx query.
    Following useful information in the OLAP universe Best practice doc available [here] which Ingo once shared with us [on this forum], I created following pre-defined filter in my universe.
    <OPTIONAL><FILTER EXPRESSION="IIF(@Prompt('Select Input type','A',{'Check','Invoice'},mono,free)='Check', [ZFIAP_IS1___F20].[LEVEL01],[ZFIAP_IS1___F46].[LEVEL01])"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Enter Check or Invoice Number','A',,mono,free)"/></CONDITION></FILTER></OPTIONAL>
    Where [ZFIAP_IS1___F20].[LEVEL01] = Check Number & [ZFIAP_IS1___F46].[LEVEL01] = Invoice number.
    The object is parsing without errors in the universe. But when I use it in my report, the report throws an error " failed to execute with the error Invalid MDX command with " "
    I took the MDX statment and tried to run/debug using MDXTEST and could never get it to work with the above objects. It was seen that the filter created in such a way is handled [Measures] object which only accepts Numeric values and not Strings. Where as my Check number and Invoice Number values are strings. The MDx statement is given below.
    Has anyone experienced this issue earlier ?
    WITH MEMBER [Measures].[4C46B176-CC15-DF11-92,5D,25,C2,A9,6F,0,0] AS ' IIF(Check=Check, [ZFIAP_IS1___F20].[LEVEL01],[ZFIAP_IS1___F46].[LEVEL01]) ' SELECT { [Measures].[4GQZ1D26O6QATUDY32CGL1C38] } ON COLUMNS , NON EMPTY FILTER( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( [ZFIAP_IS1___F93].[LEVEL01].MEMBERS, [ZFIAP_IS1___F94].[LEVEL01].MEMBERS ), [ZFIAP_IS1___F92].[LEVEL01].MEMBERS ), [ZFIAP_IS1___F71].[LEVEL01].MEMBERS ), [ZFIAP_IS1___F55].[LEVEL01].MEMBERS ), [ZFIAP_IS1___F46].[LEVEL01].MEMBERS ), [ZFIAP_IS1___F20].[LEVEL01].MEMBERS ), [Measures].[4C46B176-CC15-DF11-92,5D,25,C2,A9,6F,0,0] = 0000041924670) DIMENSION PROPERTIES [ZFIAP_IS1___F55].[2ZCCNODE01], [ZFIAP_IS1___F55].[2ZCCNODE02], [ZFIAP_IS1___F55].[2ZCCNODE03] ON ROWS FROM [ZFIAP_IS1/QZFIAP_BOUNV2]
    Edited by: vaibhav patil on Feb 11, 2010 9:53 PM
    Edited by: vaibhav patil on Feb 11, 2010 9:55 PM

    Hi,
    In fact, what you are requiring is feasible in Microsoft Analysis Services by defining a calculated meaure and a filter using this calculated measure.
    Unfortunately, due to MDX restrictions in SAP, it is not possible to do it in universes.
    I suggest that you create a range variable on Time to allow the user to only retrieve the dates needed.
    You can retrieve all the dates and then apply a filter in Web Intelligence document: this solution might have the disadvantage to retrieve more data than necessary.
    Didier

  • MSAS OLAP Universe Pre Defined Filter

    Hi:
    We have a Universe based on a MSAS cube. The cube has only three time u201Cdimensionu201D objects u2013 Year, Quarter and Month. All come across as Character data types. The Month object displays the year and the month concatenated together (2009.JUL, for example). What we need to do is to create a pre defined filter in the Universe that will always give us the data for rolling 16 months. So, for example, if we run the report in July, the data would be for April 2009 through July 2010 u2013 of course, if the report is run next month in August, the data would be for May 2009 through August 2010.  If anyone can offer any help in what the pre defined filter in the Universe would look like, that would be much appreciated.
    Thanks!

    Hi Didier:
    Thanks again for your response u2013 the revised filter works without any syntax errors.
    There are two problems. Firstly, we need it to dynamically calculate the 16 month period based on the month when the query is run, instead of prompting the user to enter the ending period as it does now.
    Secondly, the dates that it brings back donu2019t appear to be correct. Here is what it brings back, if July 2010 is entered for the prompt:
    2009.MAR
    2009.MAY
    2009.NOV
    2009.OCT
    2009.SEP
    2010.APR
    2010.AUG
    2010.DEC
    2010.FEB
    2010.JAN
    2010.JUL
    What I would expect it to bring is the following:
    2009.APR
    2009.AUG
    2009.DEC
    2009.JUL
    2009.JUN
    2009.MAY
    2009.NOV
    2009.OCT
    2009.SEP
    2010.APR
    2010.FEB
    2010.JAN
    2010.JUL
    2010.JUN
    2010.MAR
    2010.MAY
    Here is the exact Filter that I am using:
    <FILTER EXPRESSION="IIF([Time].[H1].currentmember.member_value &lt;= STRTOMEMBER(&quot;@Prompt('Select period','A','Time\Month',Mono,primary_key,Persistent)&quot;).member_value AND [Time].[H1].currentmember.member_value &gt;= STRTOMEMBER(&quot;@Prompt('Select period','A','Time\Month',Mono,primary_key,Persistent)&quot;).lag(16).member_value ,1,0)">
    <CONDITION OPERATORCONDITION="Equal"><CONSTANT CAPTION="1"></CONSTANT></CONDITION></FILTER>
    Also, it does not seem to change the number of months returned even if I change the lag(16) to lag(15).
    BTW, I installed the Adventure Works cube and tested the query there u2013 it works as expected when I use it there, as you had suggested in thefirst example you gave me.
    Thanks again for your help with this.
    Regards,
    Nishant.

  • How to use pre-defined scenarios for RosettaNet with XI 3.0

    Hi all.
       I am working in Comgroup Shanghai co. ltd. which is partner of SAP China.
       We have a potential customer who use RosettaNet as their Supply Chain EDI system.
       I would like to make a demo for demostrate the pre-defined scenarios for RosettaNet RNIF 2.0 packages.
       Where can I find such guideline ? I have checked the article: implementing RosettaNet with XI 3.0, but it cannot help me.
       Another question is how I can develop my own scenarios for the RNIF standards which are not included in XI RosettaNet business package ?

    Hi Andy,
    See the instructions below after you installed the RosettaNet STK.
    Below given is the sample config for PIP3B2 Scenario. Part I is using STK and Part II is using 2 XI systems.
    <b>Part I. Test Using STK</b>
    In your XI ID:
    1) Define both the parties 1) Shipper(Your Partner) 2) Receiver(Your company) with identifiers like DUNS Number.
    2) In ID goto>Tools>Transfer Integration Scenarios from IR-->select the scenario "PIP3B2_Receiver" from the drop down list.
    3) Follow the 4 steps in the config wizard.
    4) While creating your CC, create it from the channel template delivered with the RosettaNet BP.
       4.1) Specify the URL for STK which should be in the following format
    http://<STK Server>:<port>/rosettanet/servlet/listenerServlet?userId=<Party Name>
       4.2)In the location fields, enter your location and your partner location.
    In your STK
    1) Start the RosettaNet STK.
    2) enter the UserID<Partner Name in XI>
    3) Select the Test Scenario, 3B2V01.01-AdvanceShipmentNotification-0001-Scenario-Shipper
    4) Enter Global Business ID(DUNS Number) and Location ID for both the partners. These fields should be same as in your R/3 Party configuration.
    5) Enter the URL as follows:
    http://<XI Server:<J2EE_Port>/MessagingSystem/receive/RNIFAdapter/RNIF
    If everything is configured correctly as mentioned, you should be able to test your single-action scenario.
    <b>Part II Test using another XI System</b>
    For these follow the steps above for XI Config.
    Configure one XI System as PIP3B2 Shipper using the Scenario "PIP3B2_Shipper" and config wizard as mentioned above.
    Configure the other XI as PIP3B2 Receiver using the scenario "PIP3B2_Receiver" and config wizard.
    In the Url field, specify the URL as follows:
    http://<XI host>:<J2EE_Port>/MessagingSystem/receive/RNIFAdapter/RNIF
    Hope this helps.
    Regards,
    Sam Raju

  • BW Macros for Advanced Formatting of BEX Reports

    Hi BW Gurus,
    Would like to bring to ur attention for a small solution which i have proposed for SAP Tech Ed. As a BW consultant, you would have come across a situation where you had to decide a reporting tool that was flexible, reliable, user friendly, less expensive and that can be used with less training but still have all the features of Excel.
    Topic : BW Macros for Advanced Formatting of BEX Reports
    Abstract : The workshop will help you to provide advanced formatting with Bex Reports. You will also learn how to add and retain Formats in Bex reports with BW Macros. Advanced formatting includes retaining of formats with excel shawdow boxes, automatic print settings, comments, hiding rows or columns, adding calculations, changing color, maintaining report titles. etc.  The solution will help the business users/ power users to maintain different formats of a report without going for any 3rd party tools like Crystal or Business objects. As most of the business users are familiar with Excel, it would be easy for them to maintain or change the reports rather depending on IT for each change.
    For additional details please have a look at this
    http://www.netsaptech.com/sdn/BWMacrosforFormatting.pdf
    If you feel that this presentation is going to help you dont forget to vote the presentation at sdn.sap.com for SAPTech Ed 2006 - Las Vegas.
    For details on how to vote click the below link.
    http://www.netsaptech.com/sdn/sdn.htm
    Bio of the Author.
    http://www.netsaptech.com/resume/MMDinesh_Org.doc
    Regards,
    Dinesh Mukundu

    HI ,
        Can you please send me the link where  I can see the material  for formatting of BEX reports...
    I tried opening the link which u had sent i your post but it is not opening....
    thanks,
    Nip

  • How to define variable for value range in Bex Query?

    Hi
    How to define variable for Keyfig. value range on runtime like characteristic in Bex Query?
    Example: On runtime user select one of the following condition:
    1)User want to those records where amount is greater than $1000
    2)User want to those records where amount is greater than $1000 and less than $5000
    3)User want to those records where amount is greater than and equal to $1000

    Hi ,
    Need to Use exceptions & conditions for this scenario's  & need to create variable for exceptions based on condtions.
    Below document provides steps how to make selections at run time for a kfg.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b33a28-dca2-2d10-f3b2-d2096b460b1e?QuickLink=index&overridelayout=true&48842368468641
    Regards,
    Seshu.P

  • Pre defined BAPI for Change Master

    - Is there any Pre defined BAPI or Function Module which will serve the functionality similar to the RFC “RFC_CREATE_CHANGE_MASTER”.

    Hi Nikhil,
    For the SAP R/3 4.7 version, there is the BAPI_ECMORD_CREATE BAPI Function Module.
    NOTE: To find the BAPIs in the R/3 system, you can use the BAPI transaction.
    Regards,
    Daniel Carvalho.

  • Generating pre-defined events for system or applications ?

    I would like to write a script of some kind which generates a series of pre-defined events to the system or an active application: such as "a mouse is clicked on position x,y", a "mouse is dragged to position z, w", a "key is pressed", etc. How do I even approach this? And what exactly it should be (probably not an application...)
    Thanks in advance.

    The short answer: it can be done with Applescript.

  • Need for Portal to support BEx Report (Excel based) in BI7.0

    Experts,
    We are on BW 3.5 version and upgrading to BI7.0. We have all the reports so far is Excel Based (no web reporting). Do we need to have portal implemented for our BW report to run after upgrading to BI 7.0? In other words, is Portal mendatory to have to run any BEx Report in BI 7.0 invironment? Thanks.
    NP

    Hello Nimesh,
    No, in BI7.0  BEx Analyzer is still supported. Portal is used only for web reports and if needed these web reports can be exported to excel or pdf. It is not mandaory to have portal to see BEx reports.
    Thanks
    Chandran

  • Getting wrong values  for decimal value in Bex report

    Hi,
         I am getting some problem in Bexreport decimal values.
       In ODS i am able to look the values for this key figure
      (Total PO Release Val)= 140.692,00,the same value in Bex report looks like this $ 140,692.00.
         Here one calculation is going with these above values
       % Used = 'Total PO Release Val' / 'Target Value' * 100
        as per ODS value calculation  it is correct = 140.692/1000 * 100 =14.692
       as per Bex  it is coming like this = 140,692.00/1000 *100 = 142.692.
        in Bex report Percentage valus is not considering value is taking as 140,692.00 rather than 140.692.I mean to say decemal values are ignoring while calculation in Bexreport.can you any please advice me how to comeout of this problem.Appreciate your help.
    Regards
    Ramesh

    <i> "(Total PO Release Val)= 140.692,00,the same value in Bex report looks like this $ 140,692.00."
    </i>
    How do you check the ODS value? The amount will only have two decimal places after it, so you can't have a value like 140.692,00. It seems to be an issue of user's decimal notation (where decimal is represented by comma, and thousand seperator by '.'). Go to user profile, change this setting (in default tab) to correct one (ie decimal being represented by '.') and login again and check it. The value that you see in ODS is 'one hundred forty thousand six hundred ninety two, the same that you get in Bex, only the representation is different).

  • Set variable filter for query from dashboard in IR 9.3

    I have a dashboard that I want to set up to a process a query that has a variable filter. Can I set the variable filter in Javascript so the user does not see the variable filter/limit dialog? I'm using IR 9.3.

    OK, never mind. I figured out how to do it right after I posted this:
    mylimit = ActiveDocument.Sections["Query: New Users"].Limits[1]
    mylimit.CustomValues.Add("TAA")
    mylimit.SelectedValues.RemoveAll()
    mylimit.SelectedValues.Add("TAA")
    ActiveDocument.Sections["Query: New Users"].Process()
    var MySection = ActiveDocument.Sections["Report"]
    MySection.Visible = true
    MySection.Activate()

  • Need help - Pre-defined length for JSpinner

    Hi,
    How do I set the length for JSpinner editor while constructing it self? As of now, we are trying to use the key listners to determine the length and restrict.
    Thanks,
    Raj

    Hi,
    you can use method setMaximum of SpinnerNumberModel, see
    SpinnerNumberModel API docs
    http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/SpinnerNumberModel.html
    JSpinner API docs
    http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JSpinner.html
    Ulrich

  • Filter for an 2D array of data, to obtained and defined range of data

    I am generating data from a ultrasonic sensor at 1K Hz, and its a lot of data (data points range from 0-10). However, in some cases when I know data should be around 7 (for example) I get outliers (about 9 and around 10). Is there a way to set a filter to obtain data in defined range.
    I will be average the data obtained to get a mean value, and the outliers are spoiling it. In worst case, my outliers are 30-40% of the data generated. I created a filter to sort the data and taking data starting from lowest value. I stop the loop when data hits a higher value then 9. But this seems to take a lot of time (since the loop checks for each data point and there are 1000s of them).
    Is there a better way to filter this data and set a pre-defined range for array to be collected?
    I am attaching my filter.vi.. and a sample data set from my previous run. The data ranges from 10 -8, and would like to have range set to 7.5 to 8.5 to be considered. The sensor is recording voltage here, and the problem can be solved in installing a different type of sensor, but a if a filter in LabView can due it, the sensor we are using now is absolute great.
    I am in kind of emergency, my design in stalled due to this problem, if anyone can find sometime to share few suggestions, I will be grateful.
    Thanks in advance.
    Solved!
    Go to Solution.
    Attachments:
    US filter.vi ‏14 KB
    Ultrasonic raw data.xlsx ‏119 KB

    See attached.  I embedded the data you posted into the vi.  It didn't seem like any data was less than 8.7 or so, so I modified the range so there would be some points to average.  Some sets were completely out of range so the mean came back as NaN (not a number) because of a divide by zero.
    Randall Pursley
    Attachments:
    US Filter mod.vi ‏72 KB

  • MDX syntax for current year in a Pre-defined condition

    Hi,
    I'm looking for assistance in building a Pre-defined condition in a universe based on an MSAS 2005 OLAP cube, that only returns the current year.
    My year is defined as [Time Accounting].[Accounting].[Accounting Year]
    I can create a Pre-defined filter that accepts a constant value as follows:
    <FILTER KEY="[Time Accounting].[Accounting].[Accounting Year]">
         <CONDITION OPERATORCONDITION="Equal">
              <CONSTANT CAPTION="2008"/>
         </CONDITION>
    </FILTER>
    and it works fine, however, I would like to make it dynamic.
    There is an attribute called current year that is defined as [Time Accounting].[Accounting Year].[Accounting Year].[Current Year].[Value] but when I try and put this into my pre-defined filter nothing is returned:
    <FILTER KEY="[Time Accounting].[Accounting].[Accounting Year]">
         <CONDITION OPERATORCONDITION="Equal">
              <CONSTANT CAPTION="[Time Accounting].[Accounting Year].[Accounting Year].[Current Year].[Value]"/>
         </CONDITION>
    </FILTER>
    Is this possible? What am I doing wrong?
    What I'm ultimately aiming for is a rolling 12 month condition.
    Thanks,
    Colin

    Hi,
    In OLAP universe, you cannot define a filter with CAPTION = another universe object.
    What you can do is CAPTION = String or CAPTION = @Prompt.
    By the way, if you want to achieve what you are requiring, I suggest you create a calculate expression such as:
    <EXPRESSION>
    IIF([Time Accounting].[Accounting Year.].CurrentMember.Properties("Name") = [Time Accounting].[Accounting Year.].CurrentMember.Properties("Current Year"), 1, 0)
    </EXPRESSION>
    Then you can define your filter on your new calculated expression and the operator to Equal and CAPTION = 1
    Didier

  • Filter for queue prioritization ...

    Hi guys,
    I have a question relating to filters for queue prioritization. I have defined filter for large messages (i.e. messages larger than 2048kB should go into XBTL queue). Is it possible to define another one that would say:
    "All messages from Sender Name XXXXX larger than 1024kB should be passed into XBTL queue" ?
    I know how to create such filters for other queues but XBTL queue is special case.
    Do you know how to do it?
    Thanks in advance!
    Regards
    Zbynek

    Hi,
    Please find the link for "How To prioritize XI messages in queues" below.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/59e837d3-0201-0010-c096-dc1869733413.reward me if useful. Let me know if ur issue not resolved.
    Thanks,
    Ramesh

Maybe you are looking for

  • Is there a way to adjust the sensitivity of the keypad on an iPhone touch screen?

    The keypad is so senstivoty its extremely difficult for me to use.  If even a tiny part of my finger brushes a key, its 'typed'. Yet if I try to use a stylus or something smaller so I don't acciently touch a key, there is no response at all.  Right n

  • PDF Portfolios

    Unusual problem with 10X PDF portfolio. Create a PDF porfolio, with titles etc All look great and am using linear view. Add files etc, and in edit mode they are all there an its perfect. Save the portfolio and reopen it and you can only see the first

  • MacBook Pro locked at log in screen

    I am unable to log back onto my computer after logging out.  The grey screen comes up with my user names, and my mouse seems to work, but I am unable to click on any icons on that screen.  I have tried a few things I have found on here, but so far no

  • User 2 photo library has become unreadable

    I am the adminstrator of our iMac. My wife is the other user and when she tries to access her photo library a message appears: "photo library has become unreadable .." Does anyone know how to resolve this?

  • Explorer.exe restarting in Windows 8.1

    Hi, The thing is that yesterday I was on my computer, and then I became to have a problem with the Explorer.Exe, I install a couple of third parties porgram that I never had problem with, in my past computers, the problem is that I tried a lot of stu