Query value

Hello gurus,
On my query, on some calculated kfs doesn't appear any value, insteade it appears *.
This should have values cause the restricted kfs that contribute to this calculated kf have values...
For example:
calculated         *
restricted1        1000
restricted2         500
Could you help me?
Thanks in advance.
Vitor Ramalho

Try to use NODIM in the calculation.... And try again..
Khaja

Similar Messages

  • How to use FMS on OPCH field to query value on a field in PHC1 form?

    Hi All,
    I have a problem. I created a user defined field in the AP Invoice form (parent form-OPCH). Now I would like to use the formatted search to add a query to that field that will select a value from another field also on the same form but at the row level (child form-PCH1). It seems that this is not possible. Any suggestions?
    A general question for this: is their any way that I could use the formatted search to query value on an opening form that is inactive?
    Thanks
    Duc

    Hi Sampath Kumar devunuri,
    Thanks for your reply. It does not work. I have tried to searched through the forum about this topic and it seems that FMS will not work at row level. Not sure if there is any solution to overcome this.
    My query is for example: I want my UDF on OPCH form to capture the description of the first row in PCH1:
    Select $[$39.1.1]
    If I assign it to a UDF at row level it works perfectly.
    If I assign it to the Remark field on OPCH it still works.
    But if I assign it to a UDF at title level it does not (this is what I need)
    This may be because at title level the form name is OPCH which is different with the form name at row level: PCH1
    I cannot think if there is any way that I could set focus on PCH1 to get the value.
    Duc

  • Query Values are not updated.

    Hello All,
    While refreshing the query on the cube 0IC_C03, i am not getting the correct values in the query,  Cube 0IC_C03 values and query values are differ.
    when i Tested inthe RSRV test it shows
    "<b>Dimension key 398 missing in dimension table /BI0/D0IC_C03P</b> "
    if any one knows plz guide me.
    Regards
    Chintaps

    Hello,
    I did not find DIM ID in DImension table. and
    when i checked Masterdata consistency check at RSRV level it gives-
    There is a inconsisitency in masterdata for 0MATERIAL.
    Characters not allowed characteristic values(characteristic 0MATERIAL)
    Value in SID table 000001000001/ correct value 000000000001000001/ SID in SID table 41037
    Value in SID table 000001000002/ correct value 000000000001000002/ SID in SID table 41038
    Value in SID table 000001000003/ correct value 000000000001000003/ SID in SID table 41039
    Value in SID table 000001000004/ correct value 000000000001000004/ SID in SID table 41040
    Value in SID table 000001000005/ correct value 000000000001000005/ SID in SID table 41041
    Value in SID table 000001000006/ correct value 000000000001000006/ SID in SID table 41042
    Value in SID table 000001000007/ correct value 000000000001000007/ SID in SID table 41043
    Value in SID table 000001000008/ correct value 000000000001000008/ SID in SID table 41044
    Value in SID table 000001000009/ correct value 000000000001000009/ SID in SID table 41045
    Value in SID table 000001000010/ correct value 000000000001000010/ SID in SID table 41046
    and i checked the program RSDMD_CHECKPRG_ALL for the 0MATERIAL
    Characteristic 0MATERIAL: 288 values from table /BI0/TMATERIAL do not exist in table /BI0/SMATERIAL.
    and  gives me a message Some versions are incorrect.     
    if anyone have an idea , please suggest me.
    Regards
    Chintaps

  • Query values in a form

    I'm trying to use a form to display query values and then pass a value to another page for processing. Here's part of my code
    <%
    rs = statement.executeQuery("SELECT * FROM users WHERE start_date > '7/1/2001');
    %>
    <table>
    <form name = "form1" action = "xyz.jsp" method = "get">
    <% while(rs.next()) %>
    <tr>
    <td><%out.println(rs.getString("user_id);%></td>
    <td><%out.println(rs.getString("user_name);%></td>
    <td><input type ="hidden",
    name="user"
    value="<%out.println(rs.getString("user_name));%>">
    <input type="Submit" value = "Do it">
    </td></tr></form></table>
    In the form that I'm calling I have this code to receive the value:
    String user_in = requet.getParameter("user");
    The problem that I'm having is if the query returns 10 records and the user_id are numbers 1- 10. When I select the second user_id (user_id = 2) to submit, it is always passing the value of the first record (ie user_id = 1). How can I code this to make it pass the correct value?

    How are you selecting second user ? I dont see anything relates to that in your code.
    I dont under stand problem completely but when you create hidden fields in a loop with same name it create create duplicate hidden fields with same name and different values
    replace hidden field code with this
    <%int i =1; %>
    <input type ="hidden",
    name="user"+'<%=i%>'
    value="<%out.println(rs.getString("user_name));%>">
    <%i=i++;%>

  • How to set Query value in WAD w. parameters

    Hi
    Is it possible to set the queryname in the dataprovider using javascript.
    My scenario is that I want to fetch the queryname from the URL with the following javascript
    I have the script:
    function GetPara( name )
         name = name.replace(/[\[]/,"
    \[").replace(/[\]]/,"
         var regexS = "[
    ?&]"name"=([^&#]*)"; 
         var regex = new RegExp( regexS ); 
         var results = regex.exec( window.location.href ); 
         if( results == null )   
              return ""; 
         else   
              return results[1];
    And then I want to implement something like the following in the template
    //First dataprovider (TAB_A_DP) initialization
    <bi:QUERY_VIEW_DATA_PROVIDER name="TAB_A_DP" >
                    <bi:INITIAL_STATE type="CHOICE" value="QUERY" >
                        <bi:QUERY value="SCRIPT_FUNCTION">
                               <bi:SCRIPT_FUNCTION value="GetPara('TAB1')" />
                        </bi:QUERY>
                    </bi:INITIAL_STATE>
                </bi:QUERY_VIEW_DATA_PROVIDER>
    //SEcond dataprovider (TAB_B_DP) initialization
    <bi:QUERY_VIEW_DATA_PROVIDER name="TAB_B_DP" >
                    <bi:INITIAL_STATE type="CHOICE" value="QUERY" >
                        <bi:QUERY value="SCRIPT_FUNCTION">
                               <bi:SCRIPT_FUNCTION value="GetPara('TAB2')" />
                        </bi:QUERY>
                    </bi:INITIAL_STATE>
                </bi:QUERY_VIEW_DATA_PROVIDER>

    Hi Leo
    Sorry I haven't explained my goal very well.
    I want to create a dynamic webtemplate w. two tabs. One tab showing data from one dataprovider and the other tab showing data from another dataprovider.
    My problem is that it's easy enough to set the dataprovider to a specific query but as I have several reports which should use this template then instead of coping the template and change the query name I want a generic way to set the queryname  (e.g. in the url) so I only have one template and not a template per report pair.
    In short I want to set the Initial State dynamic.
                                <bi:QUERY_VIEW_DATA_PROVIDER name="TAB_A_DP" >
                                    <bi:INITIAL_STATE type="CHOICE" value="QUERY" >
                                        <bi:QUERY value="dynamic" text="dynamic" />
                                    </bi:INITIAL_STATE>
                                </bi:QUERY_VIEW_DATA_PROVIDER>
    When I only have one dp I can leave it empty and set the query by typing ?query=<queryname> but what if I have several dataproviders with different queries?
    /John
    Edited by: John Dolph on Aug 26, 2009 3:22 PM

  • Tkprof High query value

    Hi friend;
    I have one tkrpof and end of the file the query value is too high like 43830952, what doest it mean? How i can solve this problem

    Yes you can :) You need to use \ tags.
    \Your text here\yieldsYour text hereThe query column reflects the number of logical I/Os performed. So it looks like you performed 43,830,952 logical I/Os in roughly 33 minutes. What I would do personally is if you are having performance problems try and identify the query or queries in the TKPROF report that are performing the most I/O or have the highest elapsed time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Get Query value Technical Name

    Hi,
    I have ZANALYSIS template and different queries use this template, I have to show a link to download a document. The document will be stored as Query Techincal Name.DOC.
    So i need to get QUERY techincal name in runtime to build path, how can i get the query techincal name....using javascript.
    <object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="GET_ITEM"/>
    <param name="NAME" value="THIS VALUE WILL BE FROM Bex iview"/>
    function buildUrl(){
    var url = "http:testbox:50000/irj/km......"document.getElementById("QUERY").innerHTML".DOC";
    alert(val);
    basically my document path is .."http:testbox:50000/irj/km......"<QUERY TECHNICAL NAME>".DOC"
    Iam not gettng the QUERY techincal name..can anyone please help to solve this issue...
    iam using NW04's...
    Thanks,
    Damodhar.

    Hi,
    I have to get the query value using java script.....
                <bi:QUERY_VIEW_DATA_PROVIDER name="DP_1" >
                    <bi:INITIAL_STATE type="CHOICE" value="QUERY" >
                        <bi:QUERY value="<b> i need to get this value using java script</b>" />
                    </bi:INITIAL_STATE>
                </bi:QUERY_VIEW_DATA_PROVIDER>
    any suggestions ..please..
    Thanks,
    Damodhar.

  • DRG-11112: length of CLOB query value exceeds maximum of 64000

    Is there a CLOB length limitation when running an Oracle Text search? (v 11.1.0.7) I have checked the Reference Guide and Application Developer's Guide.
    --create table
    create table nk_1929(id number, vc_a clob);
    --insert dummy data
    declare
    vc_clob clob;
    begin
    vc_clob := lpad(to_clob('a'), 222920, 'a');
    insert into nk_1929 values(1, vc_clob);
    end;
    --create index
    create index nk_1929_ndx on nk_1929(vc_a)
    indextype is ctxsys.context parameters('
    datastore ctxsys.default_datastore
    stoplist ctxsys.empty_stoplist');
    --run query with a search string longer than 64000
    declare
    str1 clob;
    query_term clob;
    begin
    select vc_a into query_term from nk_1929 where id = 1;
    str1 := 'select id from nk_1929 where contains(vc_a, :1) > 0';
    execute immediate str1 using query_term;
    end;
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-11112: length of CLOB Query Value exceeds maximum of 64000
    Please let me know if I am missing something here?

    Same 64000 CLOB query value limitation is also generated with a simple select:
    --run query with a search string longer than 64000
    declare
    vn_id number;
    query_term clob;
    begin
    select vc_a into query_term from nk_1929 where id = 1;
    select max(id) into vn_id from nk_1929 where contains(vc_a, query_term) > 0;
    end;
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-11112: length of CLOB Query Value exceeds maximum of 64000

  • Programatically Querying Values from Garbage Collector Manager MBean

    Querying attribute values from some MBean are very easy such as : Available
    Object mbeanObjectName = new ObjectName("java.lang:type=OperatingSystem");
    Object attribute = _mbsc.getAttribute(mbeanObjectName, "AvailableProcessors");My question is... Is there an easy way to query values such as
    LastGcInfo in java.lang:type=GarbageCollector,name=MarkSweepCompact
    Inside this attribute, the value for memoryUsageAfterGc is a type of Map (TablularData). The tablular data contains a key and value pair. I am after Perm Gen. The value is a CompositeData type.
    After drilling all the way in, I arive at the value I am after "used".
    Is there an easy way to query this value directly? Maybe through getAttribute?
    Or, is the only way to write a lot of code and iterating through the maps and composite data?

    By far the easiest way of dealing with MXBeans programmatically is through MXBean proxies. You can do this:
    import com.sun.management.GarbageCollectorMXBean;
    import com.sun.management.GcInfo;
    ...other imports from java.*...
    GarbageCollectorMXBean gcm =
         ManagementFactory.newPlatformMXBeanProxy(
            _mbsc, "java.lang:type=GarbageCollector,name=MarkSweepCompact",
            GarbageCollectorMXBean.class);
    GcInfo gci = gcm.getLastGcInfo();
    Map<String, MemoryUsage> map = gci.getMemoryUsageAfterGc();
    MemoryUsage mu = map.get("PS Perm Gen");
    long used = mu.getUsed();It's still a fair amount of code, but you don't need to iterate over anything or look at CompositeData ever.
    The com.sun.management interfaces used here are documented at http://java.sun.com/javase/6/docs/jre/api/management/extension/overview-summary.html
    Regards,
    �amonn McManus -- JMX Spec Lead -- http://weblogs.java.net/blog/emcmanus

  • Report-Query Value

    Hi Experts,
    Currently we are using one BW report in 3.5version(report query against multi provider).
    Current issue:
    Cube Fields:
    PO Number: 123
    Order value 100.
    Confirmation value 50
    Final Delivery Indicator: X (YES-No more confirmation is expected)
    Calculation on the Query:
    Outstanding Confirmed Value= Order Value - Net Confirmed Value
    Here Outstanding Confirmed Value = 100-50=50.So in the reports, Outstanding Confirmed Value shows 50.
    But the PO's Final Delivery Indicator is marked. So No more confirmation is expected
    Question:
    I am not able to create any formula against the filed Final Delivery Indicator. But i want to show in the report that if the PO's Final Delivery Indicator marked, then Outstanding Confirmed Value has to be 0(ZERO).
    Please help me achieve this result. Thanks.
    Advance Thanks.
    RR.

    Hi ,
    This can be achived in the following way.
    1. Create your formula
        "Outstanding Confirmed Value= Order Value - Net Confirmed Value" and hide it using the property.
    2. Create one more forumala which will check the condition. i.e. if the Final Delivery Indicator is marked then it will set the outstanding confirmed value as zero else it will show the value which we are getting by using above mentioned formula.
    put the following condition in the formula.
    [Final Delivery Indicator = = 0 ] * 0 + [Final Delivery Indicator <> 0]*Outstanding Confirmed Value
    This will work as follow.
    For example : Outstanding Confrimed Value is 50 and Final Delivery Indicator is marked.
    = [ 0 == 0 ] * 0 + [ 0 <> 0 ] * 50
    = 1* 0 + 0 * 50              " When the condition is satisfied its result is 1. here 0 == 0 condtion is satisfied so its return value is 1.
    = 0
    Hope this will help.
    - Jaimin

  • bi:QUERY value= dynamic in the WAD.    How to do it ?

    Hello,
    I need to define the query name somehow when the WAD is executed.
    We have one common web template for all of our queries and that is why I need to dinamicaly say in the WAD code that if the query tech is ZTEST then the real value should be ZTEST_DOC, which is a separate query where we have to store the documents.
    How to do this ?

    During runtime you can get the query ID using text elemets, then using java script you can generate the query document format by appending ther required text to the query ID.

  • How to get the query values from the url in a servlet and pass them to jsp

    ok..this is the situation...
    all applications are routed through a login page...
    so if we have a url like www.abc.com/appA/login?param1=A&param2=B , the query string must be passed onto a servlet(which is invoked before the login page is displayed)..the servlet must process the query string and then should pass all those values(as hidden values) to the login jsp..then user enters username and pswd, then there should be another servlet which takes all the hidden values of jsp and also username and pswd, authenticates the user and sends the control back to that particular application along with the hidden values...
    so i need help on how to parse the query string from the original url in the servlet, pass it out to jsp, and then pass it back to the servlet and back to the original application...damnn...any help would be greatly appreciated...thanks

    ok..this is the situation...Sounds like you have a bad design on your hands.
    You're going to send passwords in a GET request as clear text? Nice security there.
    Why not start with basic security and work your way up?
    %

  • Error in query " Value '' of characteristic  is not a number with  spaces "

    Hi Gurus,
    I am facing an error in a query with the description:
    Error
    Value '' of characteristic  is not a number with  spaces
    System error in program SAPLRRK0 and form RSRDR;SRRK0F30-01-
    Description
    This error is occuring in Production system only, the report is running fine in Development environment.
    The error is also visible when I execute it in RSRT, I am not able to find the cause of error through RSRT.
    Can anyone please help me with the possible solutions.
    Thanks & Regards,
    Shreyas

    Hi Juergen,
    thanks for the input, I tried to run the report after loading the master data but still there was no improvement.
    I am not sure why this kind of problem is rising, some of the similar reports on same infoprovider are running fine.
    Please let me know if you know anything about the cause of error.
    Thanks & Regards,
    Shreyas

  • How to get this sql query value in oracle query?

    Hi all,
    i am using one query in sql that is
    select @EarlyLeaversMin = DATEDIFF(Minute,@OutTime,@nshiftmax)
    suppose first line query is getting 60 minutes.
    select @EarlyLeaversMin1=DATEDIFF(Minute,@temphrs,@ShiftTime)
    second line query is also getting 60 minutes
    set @EarlyLeaversMin=@EarlyLeaversMin+@EarlyLeaversMin1+1
    and now here it's calculating both variable minutes and storing in @earlyleaversmin that should store like 60+60+1=121 mintes
    select @EarlyLeaverstimeformat = CONVERT(char(8),Dateadd(n,@EarlyLeaversMin,0),108)
    so now it will store in this query that value in this format : 01:21:00
    can i use the same which it's happening here??
    thanks

    Oracle handles dates and time very differently from SQL Server (as I gather others on this forum have already tried to explain to you).
    Anyway, Oracle does not have a TIME datetype, but what it does have are INTERVALs. In this case you would use INTERVAL DAY TO SECOND. It's not completely clear what you mean by "store in this query that value" but we can use INTERVALS as both table columns and PL/SQL variables.
    So your first query would be something like this:
    declare
        interval_var  INTERVAL DAY TO SECOND;
    begin
         select (nshiftmax - outtime) day to second
         into interval_var
         from whatever;We can do arithmetic with interval variables.
         select (nshiftmax - outtime) day to second +  (shifttime - temphrs) day to second
         into interval_var
         from whatever;To add a hard-coded interval such as 1 minute you can use this functionality:
         interval_var := interval_var + to_dsinterval('0 0:1:0');There's loads of info in the Oracle documentation. [url http://docs.oracle.com/cd/B28359_01/server.111/b28286/sql_elements001.htm#sthref115]Find out more.
    Cheers, APC

  • How to calculate query value on extended range of data

    Hi,
    This is my first post, so let me greet all forum users. I'm reading the forum for few weeks and I'm really impressed with the force of this community.
    My question is based on some real problems but I'll ask in general:
    In a BEx query - is it possible (and how?) in a result cell to obtain value that is calculated based on some more extended range of infoprovider records than it results from all the characteristics related to that cell?
    The question is somehow about a reverse case to the restriction in Selection. I'm asking about a kind of 'extension' of selection.
    Example for the question follows (it is somehow simple, I put it here just to picture the problem, note: the question is more general!)
    cube: ch: 0CALMONTH, 0MATERIAL, 0PLANT
          kf: 0QUANTITY (ex. of outgoing deliveries)
    What I need is to obtain in any query the SUM(0QUANTITY) over all 0PLANT (this can lead to knowing the 'activity' of the specific plant by calculating the share. that activity can be calculated at diferent level of detail).
    The 'dream' query would look like:
    rows: 0CALMONTH, 0MATERIAL, 0PLANT      
    cols: 0QUANTITY  SUM_OVER_0PLANT
    resulting in ex:
    0CALMONTH  0MATERIAL  0PLANT  0QUANTITY  SUM_OVER_0PLANT  PLANT_ACTIVITY
    2005.01    00001      P100    10         30               1/3
    2005.01    00001      P200    20         30               2/3
    2005.01    00002      P100    30         70               3/7
    2005.01    00002      P200    40         70               4/7
    2005.02    00001      P100    50         110              5/11
    2005.02    00001      P200    60         110              6/11
    2005.02    00002      P100    70         150              7/15
    2005.02    00002      P200    80         150              8/15
    after removing drill 0MATERIAL:
    0CALMONTH  0PLANT  0QUANTITY  SUM_OVER_0PLANT  PLANT_ACTIVITY
    2005.01    P100    40         100              4/10
    2005.01    P200    60         100              6/10
    2005.02    P100    120        260              12/26
    2005.02    P200    140        260              14/26
    after removing drill 0CALMONTH:
    0PLANT  0QUANTITY  SUM_OVER_0PLANT  PLANT_ACTIVITY
    P100    160        360              16/36
    P200    200        360              20/36
    For this specific case I investigated several solutions:
    1) using formula & function SUMCT (Result). This has a drawback that Result for 0PLANT must be present in right place (bottom level) in the resulting query. I don't like this.
    2) SUM can be directly precalculated in the cube. Well, I'd prefer Bex only...
    Please keep in mind also following:
    1) there may be a need to refer to the data that is outside prompt/filtering/restricting range.
    2) I want to preserve all the OLAP freedom, so all the solution should be a query with some tricky formula/kf/??? to be used by user in any situation and producing right result.
    I hope I'm not demanding to much...
    (now after this long example please have a look at the question again!)
    Regards,
    Mirek

    Hi Ashwin,
    while using SUMCT I loose the freedom of OLAP. SUMCT calculates properly SUM_OVER_0PLANT only when the 0PLANT is the lowest drillin level. If this is not the case (ie. some other ch is the lowest level or 0PLANT results are suppressed) the approach won't provide right result.
    sure I will reward all helpfull posts.
    regards,
    Mirek

  • Querying value from a range of two values

    I have patched together a shopping cart, operating on CF8,  and am now trying to add shipping.  The client wants the shipping charges based on the cost of item, ie:
    0-$499 is $20
    $500 – $999 is $25.00
    $999 – up $45
    I built an access table (simplified) with the following rows
    Price_min, Price_max,ship_cost
    The idea is to query the subtotal from the price_min and Price_max to determine the shipping cost:
    <cfquery name="getInfo" datasource="#application.databasePRD#">
    select ship_cost, price_min,price_max
    from shipping
    where price_min >= #form.subtotal# and price_max <= #form.subtotal#>
    </cfquery>
    </cfif>
    <cfoutput query="getInfo">
    #ship_cost#
    </cfoutput>
    Alas, I get the following error:
    Syntax error (missing operator) in query expression ‘price_min  >= 29 and  price_max <= 29'.
    What am I doing wrong?

    Rickaclark54,
    I expected your query to work. However, from your explanation, I expected the operators to be the other way round! That is, this query:
    <cfquery name="getInfo" datasource="#application.databasePRD#">
    select ship_cost, price_min, price_max
    from shipping
    where shipping.price_min <= #form.subtotal#
    and    shipping.price_max >= #form.subtotal#
    </cfquery>
    If you continue to have problems, then verify that the database columns ship_cost, price_min and price_max have numeric datatypes. In any case, an even better query statement is:
    <cfquery name="getInfo" datasource="#application.databasePRD#">
    select ship_cost, price_min, price_max
    from shipping
    where shipping.price_min <= <cfqueryparam cfsqltype="cf_sql_numeric" value="#form.subtotal#">
    and    shipping.price_max >= <cfqueryparam cfsqltype="cf_sql_numeric" value="#form.subtotal#">
    </cfquery>

Maybe you are looking for