Update the Query view

Hi
I have one query with 12 different views. Now if i change the query is there any ways the view will be saved ? Or do i have to do changes everytime in view manually ?
please advise.
I will assign the points to answer.
Thank You,
KSmith

Hi
When you modify the query, the modification will effect the existing views.
Example: if you add a free characteristic, then the views will remain same.... and the user will be able to drill on this free characteristic.
if you add a Key Fig.... then it will change all the views for this query.
Hope this helps!

Similar Messages

  • UPDATING the query in materialized view

    Hi,
    i have a little doubt in Materialized view. i created a materialized view and log with the following query,
    create table test_mv (a number ,b number )
    alter table test_mv add constraint t_pk primary key ( a );
    insert into test_mv values (1,2);
    insert into test_mv values(2,2);
    insert into test_mv values(3,2);
    insert into test_mv values(4,2);
    insert into test_mv values(5,2);
    commit;
    CREATE MATERIALIZED VIEW LOG ON test_mv
    WITH SEQUENCE, ROWID
    *(a,b)*
    INCLUDING NEW VALUES;
    CREATE MATERIALIZED VIEW product_sales_mv
    ENABLE QUERY REWRITE
    AS SELECT  b  from test_mv;
    Now i want to update the query in the MV as 'Select a from test_mv' . for that i tried with
    *'ALTER MATERIALIZED VIEW product_sales_mv AS SELECT a from test_mv;'*
    But it throwing error,
    Error starting at line 5 in command:
    alter  MATERIALIZED VIEW product_sales_mv   AS SELECT  b  from test_mv
    Error report:
    SQL Error: ORA-00933: SQL command not properly ended
    +00933. 00000 - "SQL command not properly ended"+
    *Cause:+   
    *Action:+
    i guess i am doing wrong. kindly help me here. i want to update it without drop and recreate.
    thanks,
    Jeevanand.Ke

    Hi Jeeva,
    No. you cannot add or drop columns to the materialized view using the ALTER Statement.
    To Change the Structure of the view , drop and re-create the materialized view.
    To Alter a materialized view log, You can use the ALTER MATERIALIZED VIEW LOG. By this,
    You can add new columns to a materialized view log.
    ALTER MATERIALIZED VIEW LOG ON sggi_mrps.emp ADD(deptno);Thanks,
    Shankar
    Edited by: Shankar Viji on Aug 24, 2012 2:11 AM

  • How to update the Query of an existing WEBI document's dataprovider, through the RESTful Web service SDK.

    Hi,
    I am trying to update the Query of an existing WEBI document's dataprovider, through the RESTful Web service SDK.
    For this, first i will get the Dataprovider information,
    Example:
    URI: http://localhost:6405/biprws/raylight/v1/documents/11111/dataproviders/DP0
    Expected result;
    <dataprovider>
         <id>DP0</id>
         <name>Query 1</name>
         <dataSourceId>1234</dataSourceId>
         <updated>2014-04-18T11:55:21.000-08:00</updated>
         <duration>1</duration>
         <isPartial>false</isPartial>
         <rowCount>113</rowCount>
         <flowCount>11</flowCount>
         <dictionary>
              <expression qualification="Dimension" dataType="String">
                   <id>DP0.DO1</id>
                    <name>EmpID</name>
                   <description>Employee ID.</description>
                    <dataSourceObjectId>DS0.DO1</dataSourceObjectId>
              </expression>
              <expression qualification="Dimension" dataType="String">
                   <id>DP0.DO2</id>
                   <name>EmpName</name>
                   <description>Employee Name.</description>
                   <dataSourceObjectId>DS0.DO2</dataSourceObjectId>
              </expression>
         </dictionary>
         <query>SELECT Employee.EmpID, Employee.EmpName FROM Employee</query>
    </dataprovider>
    Then Changing the above dataprovider's Query to some thing like below,
    <query>SELECT Employee.EmpID, Employee.EmpName FROM Employee where Upper(Employee.EmpName)='RAJ'</query>
    Please let me know the RESTful Call required to do this.
    Thanks in advance.
    Thanks,
    Mahendra.

    FYI, the output of this call returns something like:
    <?xml version="1.0" encoding="UTF-8"?> 
    <queryplan>
        <union>
            <fullOuterJoin>
                <statement index="1">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="2">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.nb_guests) FROM SALES, INVOICE_LINE, SERVICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) AND ( SERVICE.SL_ID=SERVICE_LINE.SL_ID ) AND ( SERVICE_LINE.service_line = 'Accommodation' ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
            <fullOuterJoin>
                <statement index="3">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="4">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.days * INVOICE_LINE.nb_guests * SERVICE.price) FROM SALES, INVOICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
        </union>
    </queryplan>

  • TP problems, transporting the query views

    Hello Expert's
    I created two query views on the exiting querys, now i transporting the two views,
    How to do transfer the views,
    i am confusing following procedures,
    1. In RSA1 -> Transport Connector ->Object types -> query views ->Two query views are selected. YES (or)No
    2. If selecting views i am not selecting the query and query elements, only the views. YES (or) No
    3 And i saved the querys in Package and created a TP. YES (or) No
    if selecting the query views after that what i has done
    please suggest me suitable answer
    it urgent
    thanks in advance
    aravind.s

    Hello Anand,
    1. In RSA1 -> Transport Connector ->Object types -> query views ->Two query views are selected. YES (or)No
    Yes, Collect only the view if the Query is already transported. If the query is not transported then select the Query with Dataflow afterwards it will collect all the views as well.
    2. If selecting views i am not selecting the query and query elements, only the views. YES (or) No
    Yes, if the query are already transported.
    3 And i saved the querys in Package and created a TP. YES (or) No
    Yes, definitely you have to capture these views in a package and transport request.
    Once the views are collected in a transport request , release the request and inform the transport team to import to the target system (Qual or Prod)
    Note : In BI/BW BEx tranports are handled differently and not like other objects such as InfoCube, InfoObject. So whenever you are working with BEx Objects make sure that you assing a transport request in the following
    RSA1->Transport Connect -> BEx Icon (Truck Symbol) -> Assign Package and Request using the Assign Button.
    If you transport system is configured to capture the BEx objects during creation or modification then the above step is not required.
    Thanks
    Chandran

  • Unable to upload "filescopied_48862.txt" to update the current view of the

    Hi Team,
    While applying applications patch I am getting the below error in the patch log file.
    Start Processing Snapshot Info
    AutoPatch error:
    Unable to upload "filescopied_48862.txt" to update the current view of the snapshot.
    But when I checked in the ad_bugs table it is showing the bug_number.Actually this patch has to change the version of file fadp6.lpc,but it is not changing it.
    We already have updated current view snapshot.
    Please suggest me on this.
    Thanks,
    Suresh

    Hi Hussein,
    Thanks for quick reply and the details are:
    Q)Please post the application release, database version and OS.
    ApplicationRelease:R12.1.1
    Database Version:11.1.0.7
    OS:Windows Server 2008(32 bit)
    Q).What is the patch number?
    12338963
    Q).Is this the complete error message?
    In the whole patch log file this is the only error it is showing.
    Q).Did the patch continue to run after this error and completed successfully?
    Yes It has continued to run after this error and completed successfully.
    Q).Please apply the patch again from the beginning and see if you encounter the same issue.
    I have applied the patch again from the beginning and we are getting the same error.
    The only error in patch log file it is showing is:
    Start Processing Snapshot Info
    AutoPatch error:
    Unable to upload "filescopied_48862.txt" to update the current view of the snapshot.
    Q).What is the version of fadp6.lpc you already have? What is the version of fadp6.lpc delivered by this patch? Have you verified the timestamp of the file?
    fadp6.lpc 120.36.12010000.7 and the timestamp is:2009/07/28 07:55:40
    Version of fadp6.lpc delivered by this patch is:120.36.12010000.13
    Thanks,
    Suresh

  • How can I see the Query view created for a different user

    Hi All,
    How can a user see the View of a query created for a different user??
    I would like some info about how to give access ( if it is a access problem) or tell me the steps to do that.
    Regards, Federico

    Hi all,
    Maybe I didn't explain me as i should or maybe you dont know what is a Query View. Lets try again, showing you the steps to open a "Query view".
    This way is from Bex Analyzer (Excel)
    I open the Bex Analyzer and connect to the system -> Open query -> Under "Type" choose "Query View"...this is just a different view of the original query (more or least columns/rows).
    This way is from Bex Web:
    Once you open/execute the query, you have a ComboBox to choose the view (previously saved)
    The problem that we have is that the views created for a user, can NOT be found by other user. The only user who can is the owner.
    Could it be an authorization problem? or is ther any configuration possible to see it?
    Thanks in advance, Federico

  • Update the Content Viewer on Ipad

    hello
    the day yesterday was testing the digital publishing suite and it worked fine but nowwhen you open the InDesign CS5.5 asked me an update schedule and other sheetproducer, but when fuy to try me . folio tells me that my ipad can not be download thefile to the Content Viewer is not updated and not aprece app store update as I fix this???

    You'll love to learn that you needed to update the folio builer only and not the folio producer tools, so you could still be able to use them. It's kind of a pain to downgrade too. Check other thread : http://forums.adobe.com/message/4269053

  • Where to update the query

    Hi All,
    I am new to webadi. Pls do the needful to resolve my problem. My clinet gave letter names and he told me that, letter are retriving incorrrect results. So, change the query to get the proper details. So, Can anobody suggest what i need to do like where to change the qurery and how to find integrator.?
    Thanks in advance.
    Hasini.

    Hi Mohan,
    First you may want to check if this error is surfaces in other environments as well or this is the only environment where you are seeing this.
    If it does not work only in this environemnt you may want to have a look at the counters table and check if all counter are good.
    also if any of the values are hardcoded you may wnat to check if they conflict with something in the UCM.
    also cehck ther permission of ther service that you are calling.I hope you are calling CHECKIN_UNIVERSAL.
    hope it helps.
    cheers,
    swapnil

  • Update the query with increment

    Hi, How I can update the column r2 with the new number. r2 column which needs to be updated from 300000 with increment 1.
    drop table #cric
    create table #cric (r1 int, r2 int, rt char(4),rp char(6))
    insert into #cric values (111111,0,'GR','ATYOP')
    insert into #cric values (222222,0,'GE','ATYOP')
    insert into #cric values (100112,0,'TX','ATYOR')
    insert into #cric values (100113,0,'TX','ATYOP')
    insert into #cric values (100114,0,'TS','ATYOS')
    insert into #cric values (100117,0,'TS','ATYOP')
    insert into #cric values (100118,0,'TS','ATYOP')
    --Output
    Select * from #cric
    r1    r2    rt    rp
    111111    300000    GR      ATYOP
    222222    300001    GE      ATYOP
    100112    300002    TX      ATYOR
    100113    300003    TX      ATYOP
    100114    300004    TS      ATYOS
    100117    300005    TS      ATYOP
    100118    300006    TS      ATYOP
    Thanks.

    This is easily achieved with the row_number() function:
    create table #cric (r1 int, r2 int, rt char(4),rp char(6))
    insert into #cric values (111111,0,'GR','ATYOP')
    insert into #cric values (222222,0,'GE','ATYOP')
    insert into #cric values (100112,0,'TX','ATYOR')
    insert into #cric values (100113,0,'TX','ATYOP')
    insert into #cric values (100114,0,'TS','ATYOS')
    insert into #cric values (100117,0,'TS','ATYOP')
    insert into #cric values (100118,0,'TS','ATYOP')
    go
    WITH numbering AS (
       SELECT r2, rowno = row_number() OVER(ORDER BY r1)
       FROM   #cric
    UPDATE numbering
    SET    r2 = 30000 + rowno
    go
    SELECT * FROM #cric
    go
    drop table #cric
    Except that this will not give you the result you are asking for. But there is no apparent indication why you want exactly that order. Hm, maybe
       ORDER BY substring(rt, 1, 1), substring(rt, 2, 1) DESC
    But that is a little far-fetched.
    If you really mean that the rows are inserted, there is no way to safely do this, unless you have a column that records the insertion order. You could try "ORDER BY (SELECT NULL)" but that really means "any order, I don't care which".
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to Create/Modify/Delete a query view from the web template in BI 7.0

    All:
    In BW 3.5, the <b>Query Selection View</b>  web item was introduced for users to create a query view to save the navigational state of a query. This web item was also available to modify and delete an existing query view.
    The Query Selection View web item <u>does not</u> exist in BI 7.0. I see the drop down web item can be used to display the query views associated to a query.
    Can anyone share how to create,modify,save or delete a <b>query view</b> on the web in BI 7.0
    Thanks,
    Kumar

    Sanjay, we experienced the same issue. Below are a few pieces of information that may be of help: 1-The Save As button on the 0ANALYZER template saves the query to the portal. From Bex Web or Bex Analyzer, you have no access to these saved views. We created a ZANALYZER copy of the 0ANALYZER template and removed the Save As button. 2- If you right mouse click on any item in the query results grid of Bex Web, you get a small menu. Clicking on the menu item Save View will save the view to BI. You do not have the ability to delete the saved views from Bex Web. However, you can delete them from Bex Analyzer. This was not an option for us since most of our users are using Bex Web. 3- On the same menu, clicking on Bookmark, saves the navigation and also opens the Internet Explorer Favorites maintence window. The navigation is saved as an entry into the users Internet Explorer favorites where they can organize and delete their entries. However, deleting the favorite does not delete the entry for the bookmark in BI. The bookmarks are stored in table RSWR_DATA. Program RSWR_BOOKMARK_REORG can be used to manage the saved bookmarks. We are loading RSWR_DATA into a chracteristic so that we can query the information in order to help us manage it. I hope this helps you and others that appear to be struggling with the issue of saved views in Bex Web.

  • Query View missing in the BI Content

    Hi
    I want to install a 3.x Web Template which is using a Query View as the dataprovider, but the Query View is not available as D-version and hence the Web Template throws an error that the query view is missing and hence cannot execute the web Template.
    I have checked in the tables : RSZWVIEW and there is an entry but there is not object in RSORBCT to install.
    SAP BI_CONT version 704 level : 003
    When i try to activate the D-version of the query view the it gives the following message:
    *Object 0CSAL_C07_Q0101_V01 (Query View) could not be collected for object  ()
    Message no. RSO296
    Diagnosis
    You have collected objects in the BI Metadata Repository. Associated objects for object  of type  have also been collected. Object 0CSAL_C07_Q0101_V01 of type Query View was among these objects.
    However, this object 0CSAL_C07_Q0101_V01 of type Query View is not available in the metadata repository.
    System Response
    Object 0CSAL_C07_Q0101_V01 of type Query View is ignored in further collections. The links for object  of type  are incomplete. This may result in you not being able to activate this object.
    Procedure
    If this error occurs while you are installing BI Content, an error may have occurred during the delivery. Inform SAP. In all other cases, check that the object has not been deleted by another user during collection, for example.*
    Please let me know incase of any other info required.Thanks!

    Hi Kumar....
    Go to Datasource Repository(RSA2)................give the datasorce name and click on display.......from there u will get the extract structure name......copy it ...........go to SE11.............In the table field give the Extract structure name.............and click on the Where used list in the top.................from there u will get all the program name/Function module............where this extract structure is used...........copy that name and open it through SE37................
    Hope this helps..........
    Regards,
    Debjani........

  • Table which has info about all "Query views" in the system

    hi all,
    which is the table that stores information about all the "Query views" present in the system?
    i searched in tables RSRREPDIR and RSZELTDIR, but i could not find any query view that is already present in the system.
    regards,
    Rk

    To know execution time, execute the query and then analyze the table RSDDSTAT using t-code se16..
    i think u need to check the value of  QTIMEOLAP var in the table for getting query execution time..
    more info please refer the note 130696
    U can execute query in RSRT also after setting options for Statistics

  • Displaying name of the Used Query-View in a Web Template

    Hello Experts,
    I am using a Query View as Dataprovider in a Web Template.
    Now I would like to display the name of the View.
    But with a Text Element this isn't possible.
    You can only display the name of the Query.
    Is there a way to display the name of the used Query-View?
    Thank you for your help.
    D.Kramer

    Hi Sumit,
    hi Björn,
    thank you for your hints.
    We use a template to enable users to create Views.
    So its dynamic.
    That way we don't know the Name of the Views in advance.
    (So putting the text into 'Title' is not possible)
    We already use the "Query View Selection". This works out for users that are able to see different Views. (Power User)
    But is it also possible to display the Query View Name in an Item or with html methods for those templates where there is only one View (as dataprovider) we don't know in advance?
    Thanks again.
    D.Kramer

  • Saving a Query View

    Hi,
    In my reports when I am doing a SAVE AS and saving the query view on Favorites, it is saving. But when i hit open and try to open the Saved view it is taking me back to the variable selection screen. Only after entering the variables is it showing the view. This was not happening earlier, when i used to hit open and click on the view it would open the saved view right there. How can I fix this problem, please advise,
    Thanks
    Rashmi.

    Please check the property of query, you will find a check box for refesh data when open the query.
    If you select the box, the system will automatically refresh the data from server when you open a query / view. The system will pop up the variable screen for var. entering.
    If it is not selected, i am wandering that the system will not pop up the var. screen and show you the report directly. But the data won't update.

  • Update a maintenance view.

    Hi ,
    I want to update a maintenance view.
    Data is coming from a text file which i am uplaoding.
    Which function module should I use to update the maintenence view.
    Thanks,
    Ram.

    hi,
    use this FM VIEW_MAINTENANCE_CALL
    hope it will work.
    use this code .
    &----& Report  Z_TEST_PROGRAM&--*& Demo program for blog http://abap-explorer.blogspot.com/&--
    REPORT  z_test_program.DATA:i_sellist TYPE STANDARD TABLE OF vimsellist INITIAL SIZE 0,i_header  TYPE STANDARD TABLE OF vimdesc INITIAL SIZE 0,i_namtab  TYPE STANDARD TABLE OF vimnamtab INITIAL SIZE 0.PARAMETERS: p_view TYPE viewname MATCHCODE OBJECT viewmaint OBLIGATORY.AT SELECTION-SCREEN.CALL FUNCTION 'VIEW_GET_DDIC_INFO' EXPORTING   viewname                    = p_view     VARIANT_FOR_SELECTION       = ' ' TABLES   sellist                     = i_sellist   x_header                    = i_header   x_namtab                    = i_namtabEXCEPTIONS  no_tvdir_entry              = 1  table_not_found             = 2  OTHERS                      = 3         .IF sy-subrc <> 0. data: l_message type NATXT. CONCATENATE 'Table/View' p_view INTO l_message SEPARATED BY space. MESSAGE e001(00) WITH l_message ' not in the Dictonary'.ENDIF.START-OF-SELECTION.CALL FUNCTION 'VIEW_MAINTENANCE_CALL' EXPORTING action                               = 'S' view_name                            = p_viewEXCEPTIONS  client_reference                     = 1  foreign_lock                         = 2  invalid_action                       = 3  no_clientindependent_auth            = 4  no_database_function                 = 5  no_editor_function                   = 6  no_show_auth                         = 7  no_tvdir_entry                       = 8  no_upd_auth                          = 9  only_show_allowed                    = 10  system_failure                       = 11  unknown_field_in_dba_sellist         = 12  view_not_found                       = 13  maintenance_prohibited               = 14  OTHERS                               = 15         .IF sy-subrc <> 0. MESSAGE i001(00) WITH 'Error while calling the view'. LEAVE LIST-PROCESSING.ENDIF.
    Edited by: katigiri linganna on Apr 20, 2009 4:31 PM

Maybe you are looking for

  • Can we trust customer service?

    Hopefully someone from VZW can help me, otherwise this will be another complaint against VZW. When I had purchased a new phone (outside VZW), I had contacted VZW customer service to inquire about waiving my activation/upgrade fee of $30.  When I talk

  • Chnaging the count of doucments on filtering

    Hi I have this report which I have created which also gives the count of distinct documnets at the top-of page, on filtering that number dosent and wont change as that comes from the internal table , I need to show the count of actual number of docum

  • How can I download/update my contacts between my MacBook address and my iPhone 5?

    Hi, Can anyone help me on this problem? How can I download/update my contacts between my MacBook address and my iPhone 5? They don't sync with each other.  Thanks

  • HDMI vs Component cables

    I burned a dvd using idvd.  When I play it on my Samsung BluRay DVD player using the HDMI cables to the flatscreen tv, the "theme" plays, but no other added slideshows or clips will play.  The counter on the dvd player shows something is playing.  Ho

  • How to make a JScrollPane not getting Focus?

    How to make a JScrollPane not getting Focus? When i tab out from a textfield inside a scroll pane focus is going to ScrollPane .And if i press tab once more then only focus is going to other textField which is outside the scrollpane. For me when i pr