Use of  "findByMultipleParameters" for   "OR " between two Query Filters

Hi,
I am also working in CE7.1 .I have  a query regarding the use of  "findByMultipleParameters" .
That is how to use "OR " between two Query Filter condition,because if we add multiple queries into Query Filter List it will by default taking "AND " .
For an example, I have to pull data from a table/BO with a condition col A = 10 OR ( col B > 100 AND col c = "XYZ") .
My code snippet looks like given below.......
List queryFilters = new ArrayList();
QueryFilter queryFilterOne = QueryFilterFactory.createFilter("ROLLUMBER",Condition.EQ, rollNumber);
QueryFilter queryFilterTwo = QueryFilterFactory.createFilter("NAME",Condition.EQ, "123");
queryFilters.add(queryFilterOne);
queryFilters.add(queryFilterTwo);
List students = studentServiceLocal.findByMultipleParameters(queryFilters, false, "xyz");
I have tried all these and found all of them deprecated,Please suggest something appropriate.Your quick response will help a lot.
//queryFilterOne.setAction(QueryFilter.OPERATION_OR);
//QueryFilterFactory.createBoolOperator(queryFilterOne.OPERATION_OR);
//queryFilters.add(QueryFilter.OR);
//queryFilters.add(queryFilterOne.setOperation(QueryFilter.OPERATION_OR));
My another Query is what is the role of implCheck(Boolean),findByName(String) in "findByMultipleParameters()" ?
Thanking you for your help in advance.
Regards,
Sonali
Edited by: Sonali Das on Sep 14, 2010 2:32 PM

Hi Praveen/Harris,
As Mr Bhanu said , we can get the result by using formula variable defined on attribute with replacement path as processing type.
There is document in https://websmp101.sap-ag.de/bi
in infoindex->How to Calculate with attributes
To findout the difference between formula variable and current date, define one more formula variable with processing as custoemr exit.And fill this variable with sy-datum or something else.
with rgds,
Anil Kumar Sharma .P

Similar Messages

  • How to switch between two query in Web templete.

    Hi all,
      Here i am facing problem to switch between two query in web template by using one 'table' web item. is there any way to use hyperlink 'SAP_BW_URL' and we can switch to query. here i am using these HTML code..
    <table><tr><td class="SAPBEXBtnStdBorder" cellspacing="0" cellpadding="0" border="0"><tr><td>
    <table><tr><td class="sapbexbtnstd" ><A href="<SAP_BW_URL cmd='reset_item' item='table_data' query_ID='ZSD_ZSD_M01_Q20' apply_cmd_on_target= "X">" >Switch to other query</A></td></tr></table>
    but i am not getting correct functionality.
    please help me to solve this problem.
    I know the best way to say thanks in SDN.
    thanks
    Kiran Patel

    Kiran,
      Use the web api reset_data_provider as links or in select option in HTML.
       Onchange event of this select option should call JAVASCRIPT method and
       this in turn resets the current dataprovider to your concerned one.
       How to change graphs:
       The graph item has the default data provider:
       <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="CHART_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_CHART"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="TMP_CHART_DATA_HANDLE" value="IIP_49MOXB0UVNOMM6JOZMZU7QO21"/>
             ITEM:            CHART_1
       </object>
      So if you change the DATAPROVIDER_1 using RESET_DATA_PROVIDER to your concerned DP, this changes chart as well !!
       Please use this method and refer to sample code for Onchange Event on SELECT OPTION:
      <HTML>
    <HEAD>
    <script>
    function callDP() {
         if(document.forms[0].dp.value == "1") {
            //form your URL here..
           url = SAP_BW_URL_Get() + "&CMD=RESET_DATA_PROVIDER&DATA_PROVIDER_1=..&...";
            SAPBWOpenURL(url);
            //or docuemtn.location.href = url..
            //etc..
    </script>
    </HEAD>
    <BODY>
    <form>
    <select name="dp" onChange="javascript:callDP();">
    <option value="1">1</option>
    <option value="2">2</option>
    </select>
    </form>
    </BODY>
    </HTML>
    HOPE THIS HELPS !!!

  • On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this?

    On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this ?

    Thanks for posting this!
    I would only mention that your definition is incomplete for this -
    Contextual selector A type of Style Sheet Selector that
    and that it's most often referred to now as a Descendent selector, not a contextual selector.  It's basically the same as the Compound selector that you have already defined....

  • Create time slicing for transformation between two InfoSources

    Hi All,
    i would like to create a time slicing for transformation between two InfoSources in bw.
    Could you please explain the scenario and steps?
    Thanks.
    Gilo

    Hi Brendon,
    The non- cumulative key figures are not mapped in the transformation. Only the 'Inflow' and 'Outflow' key figures for the non- cumulative key figure are mapped.
    You can check the property for the non- *** KF in RSD1, where you would find the corresponding inflow and outflow kf. If both of these are mapped in the transformation, the non- *** kf would calculate the value in the report in which it is included as:
    Non-*** KF value = Inflow value - Outflow value.
    Hope this helps.
    Regards,
    Abhishek.

  • Requirements about delay and bandwith for using OTV in Nexus 7000 between two data centers separated 25 miles?

    We have two Nexus 7000, and I need use them with OTV between two data Centers separated 25 miles, but I don´t know what are the optimal values about bandwidth and delay (ms) for extended VLANs IDs (production and DAG replication) for Microsoft Exchange environment. Can somebody tell me please which are the values required for operate OTV in optimal conditions in this case? We have about 35 000 users that will use that platform of email. Thanks a lot for your comments. Regards.

    We have two Nexus 7000, and I need use them with OTV between two data Centers separated 25 miles, but I don´t know what are the optimal values about bandwidth and delay (ms) for extended VLANs IDs (production and DAG replication) for Microsoft Exchange environment. Can somebody tell me please which are the values required for operate OTV in optimal conditions in this case? We have about 35 000 users that will use that platform of email. Thanks a lot for your comments. Regards.

  • View Link between two query views

    Hi is it possible to create a view link between two views having the where clause bind variables.
    How you set the bind variables at the run time for the View objects. It is giving hard time for me to use the Master view in the XmlData bean to generate the Xml document.
    I am able to set the Master views bind variables, but for view link destination view
    where clause bind variables are not able to set ( link object link condition bind variables are binded run time but the views where chause bind variables of destination view are unable to setand bind)
    Thanks
    null

    Easiest way to do this is to add additional transient attributes to your master view object, and then include those additional transient attributes in the list of source attributes for your view link. This way, you can get BC4J to automatically refer to their values with no additional code on your part.

  • Using 1394 to perform communication between two PCs

    Hi all,
    Does anybody knows how to use a 1394 (firewire) to implement a communication between two computers using Labview ?
    Do I need a special toolkit for this ?
    Thanks
    Eduardo

    Currently, if you have installed NI-VISA, you should have the 1394 Passport already installed and running. This gives you the ability to communicate with 1394 instruments via your 1394 instruments. This is important because this helps determine how you will communicate from one computer to another. If you want to use the VISA and communicate using the FireWire INSTR, then you need to find or create drivers for your 1394 ports that allow you to communicate with them as 1394 instruments. There might be other ways to do this, but this is probably the most simple. Once you've got the pcs set up, you can just use VISA to communicate with your other devices.
    Logan S.

  • Use ccBPM mainly for correlation between different systems

    In his presentation: "Design Patterns for SAP NetWeaver Exchange Infrastructure"
    William Li ,from SAP NetWeaverRIG Americas, stats that following:
    *Use ccBPM mainly for correlation processing between messages from different systems
    Although this practice is well known Ito me , would like to know what stands behind this recommendation (Except for
    eSOA BP). is it performance issue, other...
    your insights will be most wellcome.

    Nimrod Gisis wrote:Hi Nimrod,
    ccBPM offers achieving some difficult requirements easily , that means some cases using standard way of integration not possible .it is true that ccBPM scenarios uses one more layer(BPE engine) but it doesn't mean that it is going to give worst performance.
    i had done couple of implementations where we used extensively ccBPM to achive complex integration logics, i never felt ccBPM performance point of view any problems, all interfaces working perfectly in production.my view is it is really awesome.
    we have to design any interfaces by following best architectural standards in case of ccBPM also same,there is so much negative publicity about ccBPM, but is it not all true.
    the thing that intrigues me the most is the reference to different systems .
    > if lets say I have to construct a mesage from 20 other messages taken from the same applicative system....
    > will that be a "good practice" or an architectural design flop?
    >
    it is a good practise to use ccBPM in this case and it is offering correlation mechanism to maintain the reaction between messages so that you can easily differentiate and suppress the unwanted messages.
    Regards,
    Raj

  • SSRS expression for difference between two currency values

    Hi All;
    I need to get the difference between two currency values
    Below is my report
    I need to get differene between Actual Income and Profile Income and this value should be in "£" In this example it should be £0.00
    Any help much appreciated
    Thanks
    Pradnya07

    =sum(Fields!ProfileIncome.Value - Fields!ActualIncome.Value)
    This could have either field first, but depends on which field is expected to be larger. You would then format the textbox to show in pounds.
    HTH

  • Howto deploy a temporary exchange 2013 server for migration between two Office 365 accounts?

    Objective:
    We plan to migrate our office 365 from our current tennant (E3) to a new tennant (M) to drastically cut our annual costs for the same services, while retaining the mail and group memberships of all our users. This will involve installing an exchange server
    to download and upload mail from the old tennant to the new tennant.
    Background: 
    We are a longtime O365 customer, and have been a customer since before the "Midsize business" plans existed. There is no "cookie cutter" migration path from E3 to M. Microsoft currently recommends deploying an MS exchange server and off-boarding
    the mailboxes from your E3 subscription and then On-boarding them to a new account under the M plan.  As ridiculous as this is, this is indeed the path our company has decided to go. It isn't cool/fair that we're being shackled to the E plans (that are
    vastly more expensive) when we're a small/midsize business that has been a longtime customer of O365, while new customers of equal size to us can expect to save over $4000 annually. The services (when compared) offered are nearly identical.
    After calling MS support several times for guidance for this issue, I am advised that we should contact a 'partner' and ask for their support in doing this migration. We did as requested and were provided a quote to the tune of approximately $15,000 to do this
    migration for us. Obviously this is unacceptable, and thus our business has decided to rely on my abilities to get it done. Again, involving an MS partner is not an option.
    Environment:
    1 MS AD domain:
    - Original FQDN was @contoso.ca of this domain and UPNs were [email protected]
    - UPN has been changed to [email protected] to allow for ADFS
    - ADFS has been deployed and SSO works for all users with UPN [email protected]
    - An "On-Prem exchange server" does not yet exist
    1 O365 Account where main tennant FQDN is @corp.com
    - There are 5 registered domains
    -contoso.ca
    -corp.com
    - contoso.legacy.ca
    -deprecated/will be deleted
    -deprecated/will be deleted
    - There are 40 E3 licenses, all using a @corp.com UPN
    - There are 5 E1 licenses (we acknowledge that these will be upgraded to an M following the migration) that use the UPN contoso.legacy.ca
    - No accounts currently use contoso.ca for email
    - O365 was upgraded to 'the latest version' sometime in summer 2013.
    Migration Plan (High Level):
    Setup a local windows server (trial license)  
      Deploy an exchange 2013 server (trial license) on the aforementioned windows server  http://technet.microsoft.com/en-us/evalcenter/hh973395.aspx
      Prepare and deploy Dirsync Deployment
    of Dirsync
      Add exchange to office 365 and begin replicating the mailboxes from the cloud to the exchange server. Wait for synchronization to complete.
    More information: http://technet.microsoft.com/en-us/library/hh534377(v=exchg.150).aspx
    http://help.outlook.com/en-us/140/ff633682.aspx
      Evaluate total time it took to sync data. 
    Time it takes to download data to exchange should be relatively similar to time it takes to restore mail to the new service.
      Open a new office365 account under the M plan.
      Plan a 1 hour mail & contoso.ca domain login outage
      temporarily change all user UPN's to match the new tennant
      perform a dirsync to the new tennant
      disable dirsync after all accounts have been auto-created/provisioned
      re-establish UPN + mail access.
      Plan a date and time for the cut over.
      remove the exchange hybrid server from the old tennant. 
      Point MX records directly to the exchange server.
      Cut office 365 service.
      After the 30 minutes ~ 1 hour 'mandatory' wait time imposed by MS to 'register' the domain with O365, add @corp.com to
    the new tennant
      fix all user UPN's in the cloud to match their real UPN's.
    This can be done with powershell.
      attach exchange hybrid server to new tennant
      Point MX records to the new tennant 
      Migrate all data from the local exchange server to the cloud under the new plan.
    Current progress (Lab):
    I have created a sandbox (Lab with no internet access or connectivity to production) environment in VMware and cloned the following servers to it:
    1x Domain Controller (DC) running windows server 2012 (named DC02)
    1x DC running windows server 2008 R2 (named DC01)
    1x windows server 2012 R2 - prepped with all the pre-requisites to install exchange 2013. (named EXC01)
    Where I am stuck / Problem:
    I have installed exchange on the server EXC01 in the lab environment using my account. I am a domain administrator in the contoso.ca domain, but my UPN is [email protected]
    After the installation of exchange, I notice that my email address in Active Directory changed from @corp.com to @contoso.ca. By default, I do not see @corp.com to be an available email address to select as my email address, and changing it in AD does not resolve
    the problem. 
    In the exchange portal, I found "Mail flow ---> Accepted Domains", and believe I should add @corp.com to the accepted domain list. Questions:
    1) Must I add corp.com and the other domains that exist in office 365 to the local exchange before I go through with the hybrid wizard?
    2) If I must add them to exchange, I am provided with three choices: 
    - Authoritative Domain
    - Internal Relay Domain
    - External Relay Domain
    Given that the domain is currently in office365 and is authoritative there, which of these applies?
    3) Most documentation I have found has been about a one way migration from on-prem to the cloud. I have had a hard time finding a step by step guide for cloud to local (new server) and then back to cloud. Does anyone here have any good documentation for this
    process? Would love it if it took into consideration multiple UPN/email addresses.

    Hi,
    Here are my answers you can refer to:
    1. Yes, we should select the primary SMTP domain for our organization and any other accepted domains that will be used in the hybrid deployment:
    http://technet.microsoft.com/en-us/library/jj200787(v=exchg.150).aspx
    2. It depends on the usage of the specific accepted domain. And Exchange version has no influence.
    To determine it, you can firstly check the function of the three types in the following article:
    http://technet.microsoft.com/en-us/library/bb124423(v=exchg.150).aspx
    3. Here are some reference about the migration from on-premise Exchange server to Office 365:
    http://www.msexchange.org/articles-tutorials/office-365/exchange-online/configuring-exchange-2013-hybrid-deployment-migrating-office-365-exchange-online-part1.html
    Additionally, since the issue is related to Exchange online, I recommend you ask for help on our Exchange online forum to get more professional help:
    http://social.technet.microsoft.com/Forums/msonline/en-US/home?forum=onlineservicesexchange
    If you have any question, please feel free to let me know.
    thanks,
    Angela Shi
    TechNet Community Support

  • Recommendations for switching between two machines and one monitor

    Hi,
    I have a MacMini and a MacBook Air, both with Thunderbolt Display ports but I have one monitor. I'd like to switch between the two without having to unplug and plug the monitor back in every time. Any recommendations for some sort of switch or Thunderbolt hub would be greatly appreciated.
    Best,
    Chris

    This should work if the display use display port/mini displayport inputs. A mini display port connectors plugs into the Mac's Thunderbolt port for video
    http://www.kanexlive.com/snapx

  • Wait for while between two functions execution

    Hi, Pro,
    I am now using jdk1.2 to develop GUI using Swing. I need help from you to figure out how do you make program waiting for while(like sleep) between function A and function B, and still not block the screen allow user to do other thing on the screen.
    like:
    private void Function(){
    functionA();
    //wait for 30 seconds here but
    functionB();
    Thank you very much!!
    ywang

    I did put it on, but I got message as:
    java.lang.InterruptedException: operation interrupted
    at java.lang.Thread.sleep(Native Method)Then you're probably trying to sleep the dispatcher thread. Sleep should never be called in event handler processing. A GUI event which triggers a process taking a substantial ammount of time, like this one, should always spawn a new thread to do it and, itself, return promptly.

  • Cant use dynamic constant for measure MDX SSRS query

    I am trying to write a dynamic MDX query in SSRS.  I was sucessful with the groups being dynamic,
    but the measures are not working as they do in SQL Mgmnt Studio.  For example,  this text
    is not working (the data set is invalid after when executed):
    ="WITH "
    +" member [Measures].[Measure1] AS "+iif(Instr(Join(Parameters!ColumnValues.Label,","),"01") > 0,Parameters!ColumnValues.Value(0),"0")
    So if ColumnValue "01" was not selected measure1 should just be "0". 
    It works ok if you just hard code : "member [Measures].[Measure1] AS 0", but fails when used in the IIF().
    Anyone see the problem with this?
    Thank You

    Hi billywinter,
    You issue can be caused by the Parameters!ColumnValues.Value(0) will return the integer value which missing the "", so it will cause the issue.
    Please modify the query like below  to have a test:
    ="WITH "
    +" member [Measures].[Measure1] AS "+iif(Instr(Join(Parameters!ColumnValues.Label,","),"01")
    > 0,CStr(Parameters!ColumnValues.Value(0)),"0")
    If you still got some issue, please try to provide the error message to help us better analysis about the issue.
    Any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Using EDI/IDOC transfer data between two systems

    Hello,
    I would like to transfer invoice data from one R/3 system to another R/3 system using XI.
    I am thinking that it should be possible using Output type determination of the TCode MIRO.
    Is it possible to achieve this by creating
       1. Output type determimation EDI
       2. Create partner profile for message code INVOIC.
    Could you share your expertise on how to achieve this?
    Thanks
    William

    Thanks Venkat,
    For some business reasons, we would be using XI to send invoice from R/3 to R/3 and Yes we need IDoc adapter.
    Let me rephrase my question.
    Can I use output determination EDI to send Invoice from R/3 to R/3 via XI? If it is possible then what are steps required.
    William

  • GetPosition for in between two markers

    I  hope someone can help me with a bit of code that I can't figure out - I don't even know if it's possible. The following code works fine:
    if (sym.getPosition() > 4000) {
        sym.getSymbol("symbol1").playReverse();
    sym.stop("symb1");
    else {
    sym.stop("symb1");
    What I know need to add to the code is tell it to execute those actions only when the position is between 4000 and 5000, not when it is just above 4000. Symbol1 should play if the position is between 4000 and 5000 and symbol2 when the position is above 5000. Basically, a click on this element should decide: if below 4000 do this, between 4000 and 5000 do this and above 5000 do this. A normal if - else probally doesn't suffice as my problem has three instances and not two. I have no idea how to code this though.
    To clarify what I want to do with this: the current code checks if a box is open (the symbol1 box is in the timeline after 4000) and either closes the box or not (because it's already closed). Now I need two boxes in the same setup. The code should check if a box is open (only one box can be open at the same time) and then closes whichever of the two boxes is open.

    I am answering my own post - I found my solution. The following works fine:
    if ((sym.getPosition()> 4000)&&(sym.getPosition() < 5000)) {
        sym.getSymbol("symbol1").playReverse();
    sym.stop("symb1");
    if ((sym.getPosition()> 5000)&&(sym.getPosition() < 6000)){
        sym.getSymbol("Symbol2").playReverse();
    sym.stop("symb2");
    else {
    sym.stop("symb1");
    I had forgotten to add && - with just one & it didn't work.

Maybe you are looking for