BW Query Conditions & Results

I have got a query which shows sales office, billing document, No of Billing Items & Net Value.  I have got a condition where I have selected the billing document as the single characteristic and the condition is where the Net Value is GT 0.
The problem I have got is that whether the condition is on or off the results line always shows the same numbers (the value when the condition is off).
Is there anyway in which I can make the results line show what is actually showing on the report?
Regards
Carly

The condition itself is working  as the billing document is shown (i.e. it is only showing billing documents with a net value of GT 0).  It's just that the results line shows the same value all the time regardless of whether the condition is active or not.
(i.e the total amount when the condition is INACTIVE is 956,617 but when the condition is ACTIVE and all the negative values are removed, when I add up all the individual rows the total is 1,003,462 but the results line still shows 956,617)

Similar Messages

  • Problem to get ResultSet when it is used a Date type in the query condition

    hello ,
    I having a bit of nightmare getting a ResultSet how result of one simple Query for a table when the condition WHERE involve a Date type.
    To change the String value in a date to use in the query condition, I tried both:
    String strDate = "dd/mm/yyyy";
    (1.) java.sql.Date sqlDate = new java.sql.Date(strDate.getTime() )
    (2.) SimpleDateFormat formatter = new SimpleDateFormat(strDate) ; sqlDate = formatter.parse(strDate);
    and finally I use this code to get the ResultSet:
    sql = "SELECT * FROM myTable Where (idCli = " + cd_Cli + " And dateReg = " + sqlDate + ")";
    statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    resultSet = statement.executeQuery(sql);
    boolean ok = resultSet.last();
    totNumberOfRegistration = resultSet.getRow();
    But In both the cases I get a empty resultSet.
    I shoul like if someone would look my code to say me where it is the mistake...
    thank you
    tonyMrsangelo
    P.S. I tryed using PrepareStatement too to get the ResultSet, but in that case I couldn't use the ResultSet because executing the statement resultSet.last() I get the error: "Result set type is TYPE_FORWARD_ONLY"

    In a database like Oracle, you need to use a function like TO_DATE; other databases may have something similar.
    However, the proper way to do this is to use a PreparedStatement. Then you can say
    PreparedStatement ps = conn.prepareStatement("update SOMETABLE set SOME_DATE=? where SOME_ID=?");
    ps.setDate(1, new java.sql.Date(someJavaUtilDate.getTime()));
    ps.setInt(2, theId);
    ps.executeUpdate();

  • How to set a BEx Query Condition in Design Studio (e.g. Net value GT 0)

    Hi experts,
    I have set a simple condition in my BEx Query...
    e.g. key figure "Net value" GT 0 to become only positive values in the query result.
    In the Query runtime the condition works successful, but in the Design Sudio view the defined Query condition doesn´t work.
    In my Design Studio crosstab I have tried to switch between the display setting "Conditional formating Visible" true/false, but without success.
    By the way, before I have posted this thread, I had a look at this two blogs...
    Design Studio 1.0: Create a Scorecard Using SAP BW BEx Query Exceptions
    Design Studio 1.2  - a Second Look
    Any ideas or experiences?
    Thanks and regards,
    Michael

    Hi Michael,
    I think you are mixing up two different BEx terms. Conditions are filters on key figures (show me only the results with a value bigger than 50). Exceptions do not filter the result set, but provide a formatting based on the values in the result set (if value is bigger than 50, make its cell red).
    The Conditional formatting setting in Design Studio refers to the BEx exceptions. For the BEx conditions there isn't such a setting available. You just have to activate the condition in your BEx Query and use that for your data source in Design Studio.
    If you want a workaround to enable/disable conditions from Design Studio, check this blog I wrote: HackingSAP.com - SAP Design Studio and Conditions It shows how you can use variables to adjust the conditions (and also activate) from within Design Studio.
    Cheers,
    Xavier

  • Query Rules - length limitation on query conditions set via powershell

    My current client has 200 custom keywords in SP 2010 which they would like to migrate to SP 2013 query results.  I have powershell scripts to perform the export from SP 2010 and import into one of three SP 2013 environments.
    One limitation I have found in powershell -- that does not happen in the search service application UI! -- is a 100 character length limit on the keywords used for matching query conditions (synonym data in SP 2010).   The keywords can be set through
    the UI without limitation but are limited to 100 characters when using powershell!  It makes no sense!
    I suppose my final update could be done by hand (ugh!) and I would much rather be able to script these updates.  
    Any pointers or help?

    Hi grobinson,
    If you used this code line in your Powershell and have the following error:
    [string[]]$QueryRuleTerms=@($QueryRuleConditionTerm)
    Exception calling "CreateKeywordCondition" with "2" argument(s): "The value must be at most 100 characters long.
    Parameter name: Term"
    At line:2 char:1
    + $QueryRuleCondition = $QueryRuleConditions.CreateKeywordCondition($QueryRuleTerm ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentOutOfRangeException
    You need to use the following code line with Split() method to add the multiple terms, it will work.
    $QueryRuleConditionTerm = "a1;a10;a100;a101;a102;a103;a104;a105;a106;a11;a12;a13;a14;a15;a16;a17;a18;a19;a2;a20;a21;a22;a23;a24;a25;a26;a27;a28;a29;a3;a30;a31;a32;a33;a34;a35;a36;a37;a38;a39;a4;a40;a41;a42;a43;a44;a45;a46;a47;a48;a49;a5;a50;a51;a52;a53;a54;a55;a56;a57;a58;a59;a6;a60;a61;a62;a63;a64;a65;a66;a67;a68;a69;a7;a70;a71;a72;a73;a74;a75;a76;a77;a78;a79;a8;a80;a81;a82;a83;a84;a85;a86;a87;a88;a89;a9;a90;a91;a92;a93;a94;a95;a96;a97;a98;a99;a991"
    #use the following codeline, it worked for me
    [string[]] $QueryRuleTerms = $QueryRuleConditionTerm.Split(";")
    $QueryRuleConditions = $QueryRule.QueryConditions
    $QueryRuleCondition = $QueryRuleConditions.CreateKeywordCondition($QueryRuleTerms,$true)
    $QuerySourceContextCondition = $QueryRule.CreateSourceContextCondition($ResultSource)
    $QueryRule.Update()
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • How to define the query condition of Image Theme in MapBuilder?

    Hi,
    I'm trying to add an dynamic Image Theme in OracleMap, but there's a problem.I defined the query condition of Image Theme like this:
    select scanimage,shap from image where scanimgid=467
    The shap column is the MBR column
    And the XML CODE:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules theme_type="image" image_column="SCANIMAGE" image_format="JPEG" image_unit="M" image_resolution="1.0">
    <rule>
    <features> select scanimage,shap from image where scanimgid=467 </features>
    </rule>
    </styling_rules>
    When i preview this Image Theme ,there is an ORA-00936 error means lack of expression.
    Is there any problem with my definition?Or can query an image from an Image Theme?
    Thanks a lot for your help!
    Message was edited by:
    N.Mars
    null

    Hi Mars,
    predefined image theme definition does not support a "select" statement in the <features> tag. You should just define a query condition in the <features> tag.
    It seems that you are trying to use an image theme in Oracle Maps, but it currently does not support a FOI image theme. You should add a predefined image theme as part of the basemap, and maybe add scales values to set the visibility range of this image theme.
    Joao

  • Main Query modification result Report builder crash [Solved]

    Hi,
    I want to modify main Query of report builder because (it shows two columns which are not generated by query and when I run report it raises error that columns not found) but when I modify the query it result in report builder crash, plz give me any solution, I had experience same issue a month ago and I created new query with all formula columns but this time I have too much CF and CP columns is there any way to drop it from one group to another.
    Thanks and Regards, Khawar.
    Details:
    OS windows XP/2000
    Report Builder 10.1.2.0.2
    ORACLE Server Release 10.1.0.4.2
    Oracle Procedure Builder 10.1.2.0.2
    Oracle ORACLE PL/SQL V10.1.0.4.2 - Production
    Oracle CORE     10.1.0.4.0     Production
    Oracle Tools Integration Services 10.1.2.0.2
    Oracle Tools Common Area 10.1.2.0.2
    Oracle Toolkit 2 for Windows 32-bit platforms 10.1.2.0.2
    Resource Object Store 10.1.2.0.2
    Oracle Help 10.1.2.0.2
    Oracle Sqlmgr 10.1.2.0.2
    Oracle Query Builder 10.1.2.0.2 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle ZRC 10.1.2.0.2
    Oracle XML Developers Kit 10.1.0.4.2 - Production
    Oracle Virtual Graphics System 10.1.2.0.2
    Oracle Image 10.1.2.0.2
    Oracle Multimedia Widget 10.1.2.0.2
    Oracle Tools GUI Utilities 10.1.2.0.2
    Message was edited by:
    S. Khawar

    Hi,
    I saved the report in JSP format and did the required change and it works great.
    Regards, Khawar.

  • Query with results always needed...

    Hi
    Would you please help me to get this query? I noew with Oracle 9i...
    What I need is to create a query Not empty or with rows always.
    I have a list below where I need to get the count and the sum grouped by Source in a Date range.
    - The fact is that if I change my date range (suppouse aprl/01/04 thru apr/30/04) the query will result with No rows, ok.
    I need to create a row for every group (SAP, CAC), with Zeroes on the Count and on the Sum...
    - If any group (SAP/CAC) have rows but the other one not also need to create a Zeroes row for the group that does not fall in the date range, suppose 03/03/2004...
    Source Payment Code_Emp In_Date
    SAP 100.00 001 01/01/2004
    SAP 100.00 001 01/01/2004
    SAP 100.00 001 02/02/2004
    SAP 100.00 001 02/02/2004
    SAP 100.00 001 03/03/2004
    CAC 100.00 001 01/01/2004
    CAC 100.00 001 01/01/2004
    CAC 100.00 001 01/01/2004
    CAC 100.00 001 01/01/2004
    CAC 100.00 001 02/01/2004
    CAC 100.00 001 02/01/2004
    Total for date range from 01/01/2004 to 01/31/2004
    Sum of Count
    Payments
    Totals for SAP 200.00 2
    Totals for CAC 400.00 4
    Difference –200.00 -2
    I GOT SOMETHING LIKE THIS, BUT THIS WILL RETURN ME MORE THAN 2 ROWS, ONE FOR SAP OTHER FOR CACE AND OTHERS WITH NULLS....
    SELECT Source,
    NVL(Count(code_Emp),0) T_Payment_Req,
    NVL(ROUND(Sum(payment),2),0.00) T_Payment_Amount
    FROM ApDetail
    WHERE Reconciliation_Id is Null
    AND In_Date BETWEEN To_Date('01/01/2004','MM/DD/YYYY')
    and To_Date('01/31/2004','MM/DD/YYYY')
    GROUP by Source
    union
    SELECT Source, 0, 0
    FROM ApDetail
    WHERE Reconciliation_Id is Null
    KIND REGARDS.

    SELECT
    Count(SAP.code_Emp) SAP_T_Payment_Req,
    Count(CAC.code_Emp) CAC_T_Payment_Req,
    ROUND(NVL(Sum(SAP.payment),0),2) SAP_T_Payment_Amount,
    ROUND(NVL(Sum(CAC.payment),0),2) CAC_T_Payment_Amount,
    ROUND(NVL(Sum(CAC.payment),0),2) -
    ROUND(NVL(Sum(SAP.payment),0),2) Difference
    FROM ApDetail CAC, ApDetail SAP
    WHERE
    (SAP.Reconciliation_Id is Null
    AND SAP.In_Date BETWEEN To_Date('01/01/2004','MM/DD/YYYY')
    and To_Date('01/31/2004','MM/DD/YYYY')
    AND SAP.SOURCE = 'SAP')
    AND (CAC.Reconciliation_Id is Null
    AND CAC.In_Date BETWEEN To_Date('01/01/2004','MM/DD/YYYY')
    and To_Date('01/31/2004','MM/DD/YYYY')
    AND CAC.SOURCE = 'CAC')
    This Query ALWAYS return ONE record.

  • Ak query condition

    Hi all,
    How we can query the following conditions using ak query.
    there is 2 variable say A and B if A&B is present then condition must be where A=value of A and B=value of B this condition works when given qo0 and qo1 value as IN but other condition when A or B is null I am not able to retrieve anything.Please help me when any of the value is null wht is the query to be and condition to be.
    Thanks
    Mark

    Your approach is valid. You can put a complete query in the query condition box. Mapviewer is smart enough to tell whether it's a complete query or a where clause condition.

  • Query Builder results seem to max out at 500 lines.  How to change?

    Hi all,
    Some of out Application Express users are using the Query Builder tool for ad-hoc reporting. The idea is to run the SQL to extract the data, then download to MS Excel. The Query Builder results seem to max out at 500 lines. I want to increase that value. I searched all Application Express forums for 'query builder output max 500' and then 'query builder output' and did not find the answer.
    How do I change the 500 line limit in Query Builder results?
    Thanks!
    Application Express 3.1.2.00.02
    Oracle 10g
    Standard PDF printing (not BI Publisher)

    Bryan,
    Here is a link to an HTML-DB studio application, that is a QBE "replacement" for the query tool in APEX development..
    http://htmldb.oracle.com/pls/otn/f?p=18326:7:1387557504245687::::P7_ID:1222
    It is for an older version of APEX, but you should be able to make it work for your needs..
    Thank you,
    Tony Miller
    Webster, TX

  • 'Show Query Conditions' in Charts Portlet

    Is it possible to display 'Query' conditions in the 'Run as Portlet' option in a Chart?
    If not, is there a workaround to display the conditions?
    Thanks.

    Juha,
    I have a similar problem what you have. Can you share the solution with me.
    My problem
    My LOV has following select:
    Select ename, empno from emp;
    I want to Show only Ename in the LOV and display Ename on the form too. but I want to store only empno and nothing to do with ename.empno is a hidden column.
    Can anybody please help me. Can you please reply to [email protected] also.
    Thanks in advance.
    Murali

  • Error - DRG-51030: wildcard query expansion resulted in too many terms

    Hi All,
    My searches against a 100 million company names table on org names often result in the following error:
    DRG-51030: wildcard query expansion resulted in too many terms
    A sample query would be:
    select v.* --xref.external_ref_party_id,v.*
    from xxx_org_search_x_v vwhere 1 =1
    and state_province = 'PA'
    and country = 'US'
    and city = 'BRYN MAWR'
    and catsearch(org_name,'BRYN MAWR AUTO*','CITY=''BRYN MAWR''' ) > 0
    I understand that is caused by the presence of the word Auto to which we append a * . (If i remove the auto the search works fine).
    My question is - is there a way to limit the query expansion to only , say 100, results that get returned from the index?

    Thanks for the reply. This is how the preferences are set:
    exec ctx_ddl.create_preference('STEM_FUZZY_PREF', 'BASIC_WORDLIST');
    exec ctx_ddl.set_attribute('STEM_FUZZY_PREF','FUZZY_MATCH','AUTO');
    exec ctx_ddl.set_attribute('STEM_FUZZY_PREF','FUZZY_SCORE','60');
    exec ctx_ddl.set_attribute('STEM_FUZZY_PREF','FUZZY_NUMRESULTS','100');
    exec ctx_ddl.set_attribute('STEM_FUZZY_PREF','STEMMER','AUTO');
    exec ctx_ddl.set_attribute('STEM_FUZZY_PREF', 'wildcard_maxterms',15000) ;
    exec ctx_ddl.create_preference('LEXTER_PREF', 'BASIC_LEXER');
    exec ctx_ddl.set_attribute('LEXTER_PREF','index_stems', 'ENGLISH');
    exec ctx_ddl.set_attribute('LEXTER_PREF','skipjoins',',''."+-/&');
    exec ctx_ddl.create_preference('xxx_EXT_REF_SEARCH_CTX_PREF', 'BASIC_STORAGE');
    exec ctx_ddl.set_attribute('xxx_EXT_REF_SEARCH_CTX_PREF', 'I_TABLE_CLAUSE','tablespace ICV_TS_CTX_IDX');
    exec ctx_ddl.set_attribute('xxx_EXT_REF_SEARCH_CTX_PREF', 'K_TABLE_CLAUSE','tablespace ICV_TS_CTX_IDX');
    exec ctx_ddl.set_attribute('xxx_EXT_REF_SEARCH_CTX_PREF', 'N_TABLE_CLAUSE','tablespace ICV_TS_CTX_IDX');
    exec ctx_ddl.set_attribute('xxx_EXT_REF_SEARCH_CTX_PREF', 'I_INDEX_CLAUSE','tablespace ICV_TS_CTX_IDX Compress 2');
    exec ctx_ddl.set_attribute('xxx_EXT_REF_SEARCH_CTX_PREF', 'P_TABLE_CLAUSE','tablespace ICV_TS_CTX_IDX ');
    exec ctx_ddl.set_attribute('xxx_EXT_REF_SEARCH_CTX_PREF', 'I_ROWID_INDEX_CLAUSE','tablespace ICV_TS_CTX_IDX ');
    exec ctx_ddl.set_attribute('xxx_EXT_REF_SEARCH_CTX_PREF', 'R_TABLE_CLAUSE','tablespace ICV_TS_CTX_IDX LOB(DATA) STORE AS (CACHE) ');
    exec ctx_ddl.create_index_set('xxx_m_iset');
    exec ctx_ddl.add_index('xxx_m_iset','city, country');
    exec ctx_ddl.add_index('xxx_m_iset','postal_code, country');
    Users will always use city or postal code when searching for a name. When I run this query -
    SELECT dr$token
    FROM DR$XXX_EXT_REF_SEARCH_CTX_I1$I
    where dr$token like 'AUTO%'
    ORDER BY dr$token desc
    i get more than 1M rows.
    is there a way to include and search for the city name along with the org name?
    Thanks again..

  • Syntax for calling a form & passing a query condition

    I have a stored PL/SQL procedure where I am attempting to link to a master detail form from a button created in the procedure. The procedure is called from a form based on a table.
    I want to pass an id from the first form to the second when the user clicks the button and have that id bring up the master record in the calling form (query condition to be automatically executed).
    I am using the Portal technical FAQ 10.10 as a reference. However, I must be off in the syntax. Here's what I have:
    objectId - contains id from calling form
    OBJECT_ID - column name in called MD form
    elsif (button = 'Subject Matters') then
    PORTAL30.wwa_app_module.link(
    p_arg_names =>
    PORTAL30.wwv_standard_util.string_to_table2('_moduleid:_show_header:OBJECT_ID:_OBJECT_ID_cond'),
    p_arg_values =>
    PORTAL30.wwv_standard_util.string_to_table2('2215270925:YES:'&#0124; &#0124;to_char(objectID)&#0124; &#0124;':%3D'));
    The best I get is the id passed and the called form opened in INSERT mode.
    I have been playing with this for days!
    If anyone spots the error in my code and could point it out, I'd greatly appreciate it.
    Regards,
    Judy

    try this
    String b = (String)am.invokeMethod("getValue", params);
    Thanks,
    Prasanna

  • Send query's result via SMS (BW3.0b)

    Hi
    we need to send query's results via sms.
    We're going to use reporting agent (we configured an exception in bex and created a follow up action).
    Now I can only send a SAP office message.
    In order to send a sms, could you help me to understand which are the necessary configuration?
    It is enough configure adequately users?? Is any configuration on the system needed?
    Is any additional component needed? we're working on a BW 3.0B release.
    Thanks in advance for your cooperation.
    Regards,
    Stefania Iandolo

    Hi dear,
    look here to have more info about BEx Mobile Intelligence:
    http://help.sap.com/saphelp_bw30b/helpdata/en/f1/50583cf7388362e10000000a114084/frameset.htm
    Hope it helps!
    Bye,
    Roberto

  • Uploading a text file from webi filter area as part of the query condition

    Post Author: balasura
    CA Forum: Publishing
    Requirement : Uploading a text file from webi filter area as part of the query condition Hi, I am in a serious requirement which I am not sure available in BO XI. Can some one help me plz. I am using BO XI R2, webi I am generating a ad-hoc report, when I want to give a filter condition for a report, the condition should be uploaded from a .txt file. In the current scenario we have LOV, but LOV could hold only a small number of value, my requirement is just like a lov but the list of values will be available in a text file ( which could number to 2000 or 2500 rows). I would like to upload this 2500 values in the form of a flat text file to make a query and genrate report. Is it possible in BO XI? For Eg:- Select * from Shipment Where u201CShipment id = u2018SC4539u2019 or Shipment id = u2018SC4598u2019u201D The u201Cwhereu201D condition (filter) which has shipment id will be available in a text file and it needs to be loaded in the form of .txt file so that it will be part of the filter condition. Content of a .txt file could be this shipment.txt =============== SC4539 sc2034 SC2343 SC3892 . . . . etc upto 2500 shipment Ids I will be very glad if some could provide me a solution. Thanks in advance. - Bala

    Hi Ron,
       This User does not have the access to Tcode ST01.
       The user executed Tcode SU53 immediately following the authorization failure to see the authorization objects. The 'Authorization obj' is blank and under the Description it has 'The last Authorization check was successful' with green tick mark.
      Any further suggestions, PLEASE.
    Thanks.

  • DRG-51030: wildcard query expansion resulted in too many terms

    Hello,
    I have sql report in my apex application that is based on sql query with oracle text. I am trying to execute query with % parameter: select * from mytable where contains(term, '%')>0
    I now that wildcard_maxterms default maximum is 5000 and in sql-developer query works normally without any errors, but in apex I receive DRG-51030: wildcard query expansion resulted in too many terms.
    Please help!!!

    Hello,
    There's a good discussion of that exception here -
    How to limit the number of search results returned by oracle text
    John
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

Maybe you are looking for