Query structure problem (i think)

hi am trying to get selected strings out of a jlist
and concanate them into a query i dont have any
problems getting the strings out of the list and
into the query ,i think that my problem lies within
the structure of my query.i am trying to create a new
user for a database and set their privleges when i run
the program and create a new user every things fine as
long as the only value that i select from the
privilegs list is "ALL PRIVILEGES" or "CREATE" any ther values
and i get a connection failure to the MySQL server. could any one tell
me where i am going wrong or knows the structure of another query
that can do the same job???
cheers gerry
final String privilegetype[] = {"SELECT","INSERT","UPDATE","DELETE","CREATE"
,"DROP","ALL PRIVILEGES"};
String databasename[] = {"garage","music store",};
//the query where mk=the selected string from privilegetype,
mkk=the selected string from databasename,
name=new username,new String(pass)=the new user password
s.executeUpdate ("GRANT "+mk+" ON "+mkk+" TO "+name+" @"+host+"
IDENTIFIED BY '"+new String(pass)+"' WITH GRANT OPTION");

Output the actual query string and see if you can run it outside Java. If you cannot, then it's a database/SQL problem, not a Java problem. If you can, come back and post more details.

Similar Messages

  • Query structure problem

    Hi,
    I need to create a query with a column structure described bellow:
    Key figure .................|.. 0Quantity .....|.. 0Amount
    Posting period ...........|.. # .................|.. Var1 (5,6, 7, ... 12)
    The problem is that the column 0quantity should show only a figure for the entire year and the 0amount should show figures only for periods while the number of periods shown for 0amount is a variable range. 0amount should not show a figure for entire year (for #).
    Creating two different queries does not seem like a solution as an expandable account hierarchy should be shown on the rows. The hierarchy should show the same view for both 0quantity and 0amount when a node is opened by user.
    Any suggestions how to solve this?
    Aino
    Edited by: Aino Tuominen on Apr 2, 2008 11:36 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:37 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:46 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:47 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:48 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:49 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:52 AM

    To see the periods for 0amount also 0quantity will have the periods shown as they are both in columns. This is not what I want. I only want to have period "#" shown for for 0quantity and periods "1-12" for 0amount. Even if I have restricted these they will be shown as both 0amount and 0quantity are in the same structure for columns.

  • XML query structure problem

    Hi experts,
    I am looking for help on the following XML query. I have a table (example) organized as such:
    meas     data_element     
    ABC     rate                  
    DEF     rate1                   
    DEF     rate2                   
    DEF     rate3                   
    GHI     rate                   
    JKL     rate1a           
    JKL     rate2b             I'm trying to keep the "meas" column as the top node attribute, with the "data_elements" as attributes of the children of "meas"
    In short, I'm looking for the following output, but, well..keep coming up short.
    <meas id="ABC">
         <data_elements>
            <data_element id="rate">
                <rpt>false</rpt>
             </data_element>
        </data_elements>
    </meas>
    <meas id="DEF">
         <data_elements>
              <data_element id="rate1">
                   <rpt>false</rpt>
              </data_element>
                     <data_element id="rate2">
                   <rpt>false</rpt>
              </data_element>
              <data_element id="rate3">
                      <rpt>false</rpt>
              </data_element>
         <data_elements>
    </meas>
    .....and so forth...I'm having trouble with getting the multiple rows of 'data_element' under 'data_elements', and under the single 'meas' one node, any suggestions? My code keeps generating multiple rows. The rpt node is a constant value of 'false'
    Thanks

    You have to group, and aggregate using XMLAgg :
    SQL> set long 5000
    SQL>
    SQL> with sample_data (meas, data_element) as (
      2    select 'ABC',     'rate'   from dual union all
      3    select 'DEF',     'rate1'      from dual union all
      4    select 'DEF',     'rate2'  from dual union all
      5    select 'DEF',     'rate3'  from dual union all
      6    select 'GHI',     'rate'   from dual union all
      7    select 'JKL',     'rate1a' from dual union all
      8    select 'JKL',     'rate2b' from dual
      9  )
    10  select xmlserialize(content
    11           xmlagg(
    12             xmlelement("meas",
    13               xmlattributes(meas as "id")
    14             , xmlelement("data_elements",
    15                 xmlagg(
    16                   xmlelement("data_element",
    17                     xmlattributes(data_element as "id")
    18                   , xmlelement("rpt", 'false')
    19                   )
    20                   order by data_element -- if necessary
    21                 )
    22               )
    23             )
    24           )
    25           indent
    26         ) as result
    27  from sample_data
    28  group by meas ;
    RESULT
    <meas id="ABC">
      <data_elements>
        <data_element id="rate">
          <rpt>false</rpt>
        </data_element>
      </data_elements>
    </meas>
    <meas id="DEF">
      <data_elements>
        <data_element id="rate1">
          <rpt>false</rpt>
        </data_element>
        <data_element id="rate2">
          <rpt>false</rpt>
        </data_element>
        <data_element id="rate3">
          <rpt>false</rpt>
        </data_element>
      </data_elements>
    </meas>
    <meas id="GHI">
      <data_elements>
        <data_element id="rate">
          <rpt>false</rpt>
        </data_element>
      </data_elements>
    </meas>
    <meas id="JKL">
      <data_elements>
        <data_element id="rate1a">
          <rpt>false</rpt>
        </data_element>
        <data_element id="rate2b">
          <rpt>false</rpt>
        </data_element>
      </data_elements>
    </meas>

  • Query designing problem while applying cell properties

    Hello Experts,
    I have a problem while designing query. Problem is as follow:
    I have a calculated field on key figure column. This key figure calculates variance between 2 columns.
    for E.g I have 2 columns Budget and Actual and third column is %Variance which should be          
    1. ((Actual - Budget)/Budget) *100 or
    2. ((Budget -Actual)/Budget)*100, depening on some values on the row i should use any of these 2 formulas but the result should be dispalyed in single column % Variance.
    how can i change the formula in key figures depending on these conditions. I can achieve this by applying cells but i dont want to do so as it is very complex way to desing these queries.
    also let me know applying cells on query affects its performance or not?
    Regards,
    Nirav

    Hi Nitin,
    Your reply may help me.
    But my exact requirement is not that. Requirement is as follow:
    I have created Char. Structure in row which contains few rows as revenue and few rows as expense.
    I created them by creating selections. Now in case of expense the variance should be                (Budget-Actual)/Budget *100.
    In case of revenue variance should be (Actual-Budget)/Budget *100.
    So, here i have to find out revenue & expense char. iresspective of which one is greater.
    Regards,
    Nirav

  • API to access query structure / bad performance Bex query processor

    Hi, we are using a big P&L query structure. Each query structure node selects a hierarchy node of the account.
    This setup makes the performance incredible bad. The Bex query processor caches and selects per structure node - which creates an awful mass of unnecessary SQL statements. (It would be more useful to try to merge the SQL statements as far as possible with an group by account to generate bigger SQL statements.)
    The structure is necessary to cover percentage calculations in the query, the hierarchy is used to “calculate” subtotals by selecting different nodes on different levels.
    I am searching now for a different approach to cover the reporting requirement - or - for a API to generate out of the master structure smaller query structures per area of the P&L. It there any class to access the query structure?
    We tried already to generate data entries per node level (duplicating one data record per node where it appears with an characteristic for the node name). But this approach generates too many data records.
    Not using hierarchy nodes would make the maintenance terrible. To generate "hard" selections in the structure out of the hierarchy an API to change the structure be also useful.

    The problem came from a wrong development of exit varibale used in Analysis Authorization
    Edited by: SSE-BW-Team SSE-BW-Team on Feb 28, 2011 1:46 PM

  • About query related problem

    hi ,
           we are generate query in 2005b,and procced for execuite query.following problem occure'<b>odbc sql server driver'[sql server] syntax error the converting the nvarchar value' 70302/20307' to column of data type int received alert OAIB</b>
    QUERY SHOWN BE AS FOLLOW.
    SELECT T5.DocNum as'Po. No. ', T5.DocDate as 'Po Date',T0.CreateDate,T5.NumAtCard as 'Man.PO. No/ Dt.', T0.DocNum as'AP No. ', T0.DocDate as 'AP Date',T0.NumAtCard as 'Vendor Ref. No.', T0.U_vbdt as 'Vendor Ref. Date', T0.CardName as 'Vendor', T1.Dscription as 'Item',  T1.Quantity AS 'QTY'  , T1.Price as 'Basic Rate', (T1.Price *T1.Quantity) as 'Value',T0.Comments as 'Po No. & Po.Dt.' FROM OPCH T0 INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode INNER JOIN OPDN T3 ON T2.CardCode = T3.CardCode INNER JOIN PDN1 T4 ON T3.DocEntry = T4.DocEntry INNER JOIN OPOR T5 ON T2.CardCode = T5.CardCode INNER JOIN POR1 T6 ON T5.DocEntry = T6.DocEntry INNER JOIN OITM T7 ON T1.ItemCode = T7.ItemCode INNER JOIN OITB T8 ON T7.ItmsGrpCod = T8.ItmsGrpCod WHERE (  T1.BaseRef  =  T3.DocNum )  AND ( T4.BaseRef =  T5.DocNum ) AND (  T0.U_vbdt >=[%25]AND  T0.U_vbdt <=[%26]) AND ( T4.Dscription =T1.Dscription ) AND ( T4.Dscription = T6.Dscription  ) AND  (( T1.Dscription=[%0] OR T1.Dscription=[%1] OR T1.Dscription=[%2] OR T1.Dscription=[%3] OR T1.Dscription=[%4] OR T1.Dscription=[%5] OR T1.Dscription=[%6] OR T1.Dscription=[%7] OR T1.Dscription=[%8] ) OR ( T0.CardName=[%10] OR T0.CardName=[%09] OR T0.CardName=[%27] OR T0.CardName=[%28] ) OR ((  T8.ItmsGrpNam =[%11]  oR T8.ItmsGrpNam =[%12] OR T8.ItmsGrpNam =[%13] OR T8.ItmsGrpNam =[%14] OR T8.ItmsGrpNam =[%15] OR T8.ItmsGrpNam =[%16] OR T8.ItmsGrpNam =[%17] OR T8.ItmsGrpNam =[%18] OR T8.ItmsGrpNam =[%19] ) and  ( T7.U_FirmName =[%20] OR T7.U_FirmName =[%21] OR T7.U_FirmName =[%22] 
    oR T7.U_FirmName =[%23] OR T7.U_FirmName =[%24] )) )

    Hi Vishal,
    the value '70302/20307' is not an whole number so converting it to an int is not possible.
    You should check your data for this value an change your query or data.
    Regards
    Ad

  • Query has problem

    Below query has problem .
    Pls see the queries for Usage Summary with Partition and Without Partition
    . I have executed this now so it may be in Buffer …****
    DB Query ... SUM from event objects, bin variables
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    --                   and event.Poid_id0 >= 266838277921701888****
    --                 and event.Poid_id0 < 267928993456455680****
    --               and ebal.obj_id0 >= 266838277921701888****
    --             and ebal.obj_id0 < 267928993456455680****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.
    resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    and event.Poid_id0 >= 264199450015039488****
    and event.Poid_id0 < 265237388991660032****
    and ebal.obj_id0 >= 264199450015039488****
    and ebal.obj_id0 < 265237388991660032****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    --

    848478 wrote:
    Below query has problem .
    Pls see the queries for Usage Summary with Partition and Without Partition
    . I have executed this now so it may be in Buffer …****
    DB Query ... SUM from event objects, bin variables
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    --                   and event.Poid_id0 >= 266838277921701888****
    --                 and event.Poid_id0 < 267928993456455680****
    --               and ebal.obj_id0 >= 266838277921701888****
    --             and ebal.obj_id0 < 267928993456455680****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.
    resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    and event.Poid_id0 >= 264199450015039488****
    and event.Poid_id0 < 265237388991660032****
    and ebal.obj_id0 >= 264199450015039488****
    and ebal.obj_id0 < 265237388991660032****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    --Consider getting the asterisk key fixed, since it results in invalid SQL syntax

  • Issues with Bex query structures and Crystal Reports/Webi

    Hi experts,
    I'm having an issue with Bex Query structures and nulls. I've built a Crystal Report against a Bex query that uses a Bex Query structure. The structure looks like the following
    Budget $
    Budget %
    Actual $
    Actual %
    Budget YTD
    etc
    if I drag the structure into the Crystal Report detail section with a key figure it displays like this
    Budget $     <null>
    Budget %     <null>
    Actual $     300
    Actual %     85
    Budget YTD     250
    the null values are displayed (and this is what is required). However if I filter using a Record selection or group on a profit centre then the nulls along with the associated structure component are not displayed.
    Actual $     300
    Actual %     85
    Budget YTD     250
    Webi is also behaving similarly. Can anyone explain why the above is happening and suggest a solution either on the Bex side of things or on the Crystal Reports side of things? I'm confused as to why nulls are displayed in the first example and not the second.
    Business Objects Edge 3.1 SP2
    SAP Int Kit SP2
    OS: Linux
    BW 701 Level 6
    Crystal Reports 2008 V1
    Thanks
    Keith

    Hi,
    Crystal Reports and Web Intelligence will only show data which is in the cube. You could have an actual 0 or Null entry whithout grouping but by changing the selection / grouping in the report the data does not include such entry anymore.
    ingo

  • IMac (March 2009) - Invalid Node Structure problem

    Hi All
    I was using my iMac as normal yesterday, when suddenly the system ground to a halt (something I never seen since using OS X). As I had work to do, after about an hour, I restarted, expecting it to be an app misbehaving or something straight forward, but on restart the same thing happened almost straight away.
    So, I restarted again, only for the iMac to get stuck on the blue screen which follows the grey 'cog' screen. After looking through these discussions, and some other Mac forums, I booted from the installer disk, tried to run Disk Utility, which found issues and couldn't repair the disk.
    I then tried Safe-User mode and fsck, which reported the aforementioned Invalid Node Structure problem. After checking a few more forums, I thought I would try to Erase the disk and reinstall Mac OS. I restored from my Time Machine backup, and finally got it to start, but the system moved at a snail's pace, and wouldn't open any apps or files.
    I've tried again with fsck, and also fsck_hfs -r /dev/disk0s2 but all I get is the same error message:
    disk0s2: I/O error.
    Invalid Node Structure
    (4, 38403)
    ** Volume check failed.
    /dev/rdisk0s2 (hfs) EXITED WITH SIGNAL 8
    So, does anyone know if there is anything I can do to save the iMac? Or does it need a new HD? It is my primary work computer, so I really need to get it back, and after buying it in the UK, am now in France for 6 weeks, so it's difficult for me to take it to an Apple specialist.
    Any help would be greatly appreciated, thanks in advance,
    Daniel

    As the last user stated, Disk Warrior maybe able to correct it, however if you search the net, you will see there are more than one user with this problem. I had the same problem, however, my machine is out of warranty, It started like you are saying, I RAN disk warrior which corrected the problem long enough to boot the system. In a matter of 10 minutes or so, the system started pausing (apps hung, but in a matter of seconds recovered). I was checking the disk with fsck_hfs and fsck while booted from a USB drive with a maintenance install of 10.5.6. After running fsck the 5th time with different options suggested from the internet, I rebooted with my disk warrior DVD only to find the drive NOT mounted, Drive utility see's it (even can attempt to run disk repair, but it locks up the system when trying this). Disk Warrior doesn't even see the disk to run a directory repair, although in the "check s.m.a.r.t status it sees it as a sata device, and SAYS ITS NORMAL).
    Since my iMac was out of warranty, I followed the online instructions to replace the hard drive (not too difficult) and everything is fine now.
    The old drive still wont mount, but another utility I bought (data rescue II) has been able to quick scan it and access all the data, even though it wont clear a fsck fsck_hfs or disk warrior, anyways, get it back while you can, IT IS THE hard drive itself, and lots of other iMac users online with the same issue (can you say WHY is my iMac SOOO HOT on the apple in the back (right where the drive is and not sufficient cooling in my opinion, but hey, some people might want to lay their computers face down and fry eggs on the it or something... ))
    -SD

  • I have a problem with iPhone is that I can replace it at points of sale in the U.S. because I bought from Saudi Arabia because the problem I think in the hard ware software worked more than 3 times did not fix

    dears,
    I have a problem with iPhone is that I can replace it at points of sale in the U.S. because I bought from Saudi Arabia because the problem I think in the hard ware I do resoftware more than 3 times did not fix.
    Network also always missing.
    I am living in KS Wichita. I hope you help me pleas.
    Regards.

    iPhone warranty is not international. You will have to return your
    iPhone to Saudi Arabia for repair/replacement. Either take it back
    yourself or send to friend/relative for them to take to Apple. Apple
    will not accept international shipments for repair nor will Apple
    ship repaired/replaced iPhones out of the country where the repair
    was done.

  • I have a question my iphone4s has a problem when updated iOS8 there will be freeze problem i think iOS8 is not supported in 4s!!!!!!!!!

    i have a question my iphone4s has a problem when updated iOS8 there will be freeze problem i think iOS8 is not supported in 4s!!!!!!!!!.
    one more question when i phone5 update with iOS 8.1.2 this iOS supported iphone5???

    Hi Ios 8.1.2 Should work on iPhone 4s / 5 You may have a bug Backup to  cloud over WiFi Then Restore back to Factory  Settings This will make iPhone as new. Use same Apple ID & you will get your Apps & Data back Do Restore over your WiFi. Cheers Brian

  • I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF file

    I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF files on my iphone?

    Apple never bopthered to explain that this would happen
    Your iDisk is still accessible after moving to iCloud in exactly the same way as before. Nothing is deleted until June 30th 2012.
    , so I could easily have lost ALL of the files I kept on iDisk.
    No, you couldn't. Firstly, nothing was deleted from your iDisk. Secondly, any files stored on your iDisk should never be your only copy. Even if your iDisk spontaneously combusted, you should keep local backups elsewhere.
    Does Apple WANT people to move their storage elsewhere and stop paying Apple for it?
    Yes. Apple doesn't provide such a service anymore, nor are you paying them for it.
    Apple has made no effort to suggest remedies for the problem it has given iDisk users
    They've provided instructions on how to download your files from your iDisk. What you do with them after that is your choice.

  • Dynamic selection in query structure

    Hi everyone,
    I wonder if it is possible to create dynamic selections in a query structure. Here is my scenario:
    In the columns section of my query I have a structure with all months of a year. Depending on the time of the year, all past months shall contain "actuals" whilst the upcoming months contain "forecast" data. (As far as I know) Using variables, I should be able to fill and name each month dynamically using variables. If it's March now, I would have the following resulting structure:
    - "Jan - Actual"  (containing actuals)
    - "Feb - Actual" (containing actuals)
    - "Mar - Forecast" (containing forecast)
    - "Apr - Forecast" (containing forecast)
    Each month is represented by a selection (if I understand correctly).
    Is it possible, to show or hide such a selection dynamically? The reason I ask: for the current period (March) I also want to display the "current" value (besides the forecast). Unfortunately, this selection moves a long the structure as time moves on: this month, the "current" shall be placed right before "Mar - Forecast".
    - "Jan - Actual"  (containing actuals)
    - "Feb - Actual" (containing actuals)
    - "Mar - Current" (containing currents)
    - "Mar - Forecast" (containing forecast)
    - "Apr - Forecast" (containing forecast)
    Next month it shall be right before "Apr - Forecast".
    - "Jan - Actual"  (containing actuals)
    - "Feb - Actual" (containing actuals)
    - "Mar - Forecast" (containing forecast)
    - "Apr - Current" (containing currents)
    - "Apr - Forecast" (containing forecast)
    Is this possible with BW 3.5? Or otherwise with BI 7? Or is this requirement too dynamic?
    Thanks in advance, Dan

    Hi,
    as already mentionned you can do that with the help of variables.
    For the "moving" column one solution would be to systematically create the column for each month and restrict it to the current month. Only one of this column will get a result different than 0. Then you enable the zero suppresion at query level and allow as well the suppression of the element of your structure (will will hide all the non current columns). This solution is not so elegant but would work.
    Othewise it shoul be also possible to make it with a complex variables implementation (ABAP etc...); in thery that should be possible, the question is it worth the time to develop it so sophisticated??
    hope this helps...
    Olivier.
    Edited by: Olivier Cora on Jan 9, 2008 12:38 PM

  • How to work with sap bw bex query structure

    Dear Friends,
    How can we use SAP BW bex query structure in crystal reports.
    Thanks with regards.
    Malik

    i have two structure in my query.
    and structure is comming in my Crystal report.
    i have 10 memebers in that structure and i make display off for some of members .
    but in crystal all of members are comming either its property is hidden or not.
    any help higly appricated.
    Regards
    Malik

  • WARNING BRAIN (230):Could not buffer query structures.

    Hi
    We are trying to run a OOTB report and we are getting redirected to Bex but we are getting the following error in the UI
    Unknown Error: [object Object].
    com.sap.bi.base.application.exceptions.AbortMessageRun
    timeException: Termination message sent
    WARNING BRAIN (230):Could not buffer query structures.
    Buffer too small
    Could you please suggest how to proceed further on this?
    Regards
    Neel

    Hi Neel,
    As the message indicates the query you are trying to execute is too large.  You might have to request your basis team to add more memory for this report execution.
    Secondly of this reason we do not recommend anybody to run the SPM - Spend Analysis Final query as is, because we have a whole bunch of dimensions & measures in the query.  If you have a lot of data in your system then the system would need quite a bit of resources to run this query.
    I would request your basis team to look into the query cache parameters (Global & Local cache size) and see if they can be increased.  Also check query caching persistence mode and see what works best.
    Regards,
    Rohit

Maybe you are looking for

  • External Hard Drive won't start or load

    I have a Western Digital 750G external hard drive that I have been using on my MacBook Pro for about 6 months. Last night it shut down and now I can't get it to even turn on or load onto the computer. Has this happened to anyone before and does anyon

  • Tree in an viewstack always selecting Root on focusOut

    So I have a tree in a viewStack and whenever the app loses focus the app selects the root node in the tree. 1. Select a leaf node in the tree 2. click off screen or show a popup 3. click the browser window or app 4. watch your app select the root nod

  • InDesign CS5 won't save rotated views as PDF

    I'm using InDesign CS5 to create a calendar. I am using rotated view for the spreads. I have page 4-27 I want to send to my client for proofing. I only want the "smallest File" for screen viewing ioption. I've never had a problem creating PDFs. This

  • What is query optimization and how to do it.

    Hi What is query optimization? Any link can any one provide me so that i can read and learn the techniques. Thanks Elias Maliackal

  • Need help with short cuts...

    Are there any short cuts for replying or forwarding an email without clicking multiple times? I only ask because there are som many neat ones already being used. If anyone has a help, I would appreciate it. One other thing, I ask because I recall my