How to avoid regenerate(altering again) in sub views whenever i add new column in root views

Hi,
I have root view and have subviews.
i am using root view in all subviews.  i add any new column in root view and altered it,But, it is not coming in subviews unless i re altered in subviews.
i need to regenerate(Altering again) subviews everytime if i add a new column in root view.
how to newly added column in subviews without regenerating(Altering again) ?

That is how views work in SQL Server.  The column list is created a CREATE/ALTER time, not runtime.  So using SELECT * in a view does nothing.
You can refresh the view definition by using sp_refreshview.
https://msdn.microsoft.com/en-us/library/ms187821.aspx

Similar Messages

  • How to add new columns in materialized view

    We are using Oracle 10g Release2.
    We need to add new columns to a prebuilt fast refresh materialized view. We want to add 4 new columns in this table and make them part of select statement in the materialized view. We can drop the view but we cannot do complete refresh after that because the paymentsInfo table has a creation_timestamp column which is populated by before row insert trigger with systimestamp. If we did the complete refresh, all values in this column shall be changed.
    CREATE MATERIALIZED VIEW  paymentsInfo
    ON PREBUILT TABLE
    REFRESH FAST
      ON DEMAND
      START WITH SYSDATE
      NEXT SYSDATE+5/1440
      WITH PRIMARY KEY
    DISABLE QUERY REWRITE AS
    SELECT PAYMENT_ID,BATCH_REFERENCE, TRANSACTION_REFERENCE, NO_OF_TRANSACTIONS, DEBIT_ACC_NUM,... from payment@dblink
    I want to know is there any other way to add new columns without losing any changes from the master table.
    Thanks.

    There is no way to add new Columns to Materialized view. To add new columns, it has to be dropped and re-built again.
    Extract from Oracle Documentaion:
    Use the ALTER MATERIALIZED VIEW statement to modify an existing materialized view in one or more of the following ways:
      To change its storage characteristics
      To change its refresh method, mode, or time
      To alter its structure so that it is a different type of materialized view
      To enable or disable query rewrite
    If you have a problem of Complete refresh, then It may be beneficial to get the backup of the MView; Drop and re-create it with modified definition; Restore the backup data leaving the new columns untouched (assuming they are to be kept as fetched from the Master site).

  • How to add new columns in predefined matrix  in system form

    Hi all,
    I am new to SAP B1. I am going to add New column to Good Receipt PO matrix. I faced the one error " Matrix Line Exists " While adding new column to good receipt PO matrix".
    =========================================================
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
                 oMat = oForm.Items.Item("38").Specific
                   oCols = oMat.Columns
                    oCol = oCols.Item("U_MyCol")
            If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = True And pVal.FormType = "143" Then
                Try
                    oForm = SBO_Application.Forms.Item(pVal.FormUID)
                    oMat = oForm.Items.Item("38").Specific
                    oCols = oMat.Columns
                    'oCol = oCols.Item("U_MyCol1")
       oCol = oCols.Add("U_MyCol1", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                    oCol.TitleObject.Caption = "Qty Accepted"
                    oCol.Width = 40
                    oCol.Editable = True
                    oCol = oCols.Item("U_MyCol1")
                Catch ex As Exception
                    SBO_Application.MessageBox(ex.Message)
                End Try
            End If
    oDBDataSource = oForm.DataSources.DBDataSources.Add("PDN1")
            ''oEdit.DataBind.SetBound(True, "PDN1", "U_QtyAccepted")
    ============================================================
    And i also added for Datasource to Databind. what there is no result ??i wanted Clear information regarding this to add new columns in matrix in  middle of Matrix items. I wanted Clear coding& information for this to add new Columns in Matrix ?help me regarding this asap??
    Regards
    ANAND

    Anand,
    If you use the "search" feature of this forum and type "add column", you will find many posts that may help you such as this one ...
    How to add a column on sales order matrix?
    HTH,
    Eddy

  • How to add new column to COPA datasource?

    Dear all,
    It seems we have to delete the COPA datasource and regenerate it when we need add new column, if so,we should regenerate the initialIzation for the delta.
    Beacause only the new delta data need have value for new column,so I do not want to reextract the historical data,do you have any solution?
    Best regards
    Simon

    Hi Simon
    You are correct, COPA DS need to be regenerated.
    Initialize without Data Transfer might help you. But was thinking how do you manage the 'lost' delta in between the processes?
    I m not sure about your flows i.e how data moves from PSA to cube  but I think at least you should
    Initialize the delta for the current fiscal year ( with Data Transfer) and then continue with delta.
    Which type of COPA you are using? Account based or Cost Based? For Acc Based delta initialization starts from summarization level , so you also need to fill up summarization level at least for the current year.
    Regards
    Anindya

  • How can I add a new column to Grid view under Tests tab

    I understand in "ORACLE Test manager for web Applications", the Grid view under Tests tab should be customised.
    How can I add a new column to Grid view under Tests tab? Thanks Katherine

    I don't think this is possible.
    Regards,
    Jamie

  • How to add new column in Report ME2L

    Dear Sir,
    We are using ME2L for various purposes . In the ME2L report we need to add 2 new columns i.e Item Delivery Date and WBS Element .
    Although in the standard ME2L report , after the basic list generation , there have been provided 2 icons for getting the report displayed  with either WBS Element or with Delivery Date .  It means we can not get both the column Delivery Date and WBS Element  available simultaneously in the standard ME2L report .
    We request you to kindly guide us as how can we add these column in the ME2L report pl .  We are on ECC-6.0 and not having enhancement package 4.0 .
    Kindly help us pl .
    Regards
    Sonia Agarwal

    HI  Pradeep,
    Goto the transaction code (Change Report) GR32.
    Give you library name and report name
    And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element  and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
    How to enter formula: you can see the formula components in that id and description.
    Id is columns that are present and description indicates explanation of that column.
    Enter formula according your requirement.
    Examples:
    Enter formula screen:
    ID :    des
    X001  amount
    X002  pt000
    X003  test
    1. Enter formula as: ( X001 u2013 X002)
    The above formula is for fist column u2013 second column.
    2. ( ( X001 u2013 X002) / X003) * 100
    First column u2013 second column and devide by third column after that multiple with 100.
    Hope this will help you
    Regards
    Manohar

  • How to add new column in report painter

    Hi Experts,
    I want to add new column in report painter which as to calculate the previous column . value in the new column should be the precentage of previous column existing on left side...

    HI  Pradeep,
    Goto the transaction code (Change Report) GR32.
    Give you library name and report name
    And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element  and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
    How to enter formula: you can see the formula components in that id and description.
    Id is columns that are present and description indicates explanation of that column.
    Enter formula according your requirement.
    Examples:
    Enter formula screen:
    ID :    des
    X001  amount
    X002  pt000
    X003  test
    1. Enter formula as: ( X001 u2013 X002)
    The above formula is for fist column u2013 second column.
    2. ( ( X001 u2013 X002) / X003) * 100
    First column u2013 second column and devide by third column after that multiple with 100.
    Hope this will help you
    Regards
    Manohar

  • Alter table add new column

    I have table structure like this
    select
    PROJECT_NAME, OBJECT_NAME, INCOMMING_DOC, DESIGN, DESIGN_REVIEW, DESIGN_REWORK, BUILD, BUILD_REVIEW, BUILD_REWORK, TEST_CASE_PREP, TEST_CASE_REVIEW, TEST_CASE_REWORK, INSTALLATION_SCRIPT, UNIT_TESTING, WAIT_TIME, COMMENTS, INITIAL_DATE
    from initial_effort
    i want to add a column after unit_testing
    How to include
    Thanks
    Sudhir

    Directly you can add the column in existing table, No matter which position column find in the table, Its depend on your SELECT Statement. You add column in the table like this..
    ALTER TABLE TEST
    ADD COL_NAME DATATYPE CONSTRAINTS
    OR
    Rename your table table , Take the same table creation script add your column whereever you want.
    Run the script and drop the old table.

  • How do i get my events to change colors when i add new ones in my calendar

    How do I get my events to change colors when I add a new event in my calendar?

    When you add an event and you see the heading "Calendar", do you see a name to the right of it such as "Work"?  If you tap on the heading "Calendar" does it show you a list of calendars?
    I'm basing this on my experience using iCal on a Mac to sync with my iPad.  I created a number of calendars on the Mac and assigned them different colors.  Those appear on my iPad.  I don't know how to create additional calendars on the iPad alone - I must create them in iCal or MobileMe then they show up on the iPad.  Are you using a Mac or MobileMe?

  • HOW TO ADD NEW COLUMN IN EXISTING QUERY

    hi,
    i m working on oracle reorts 10g. i have a multiple query based report. now i want to add a new column in query 1 and order by on that new column .
    i added column in query but when i see that group i dont find that column in that group.wt do i need to do to visible that column in query1 group thats y the order by on that column is not working i think.
    tell how to solve it ?
    thanks

    Hi,
    The new column you have added might be in the least level group of that query.
    Drag it to the desired group level, first postion and set the break order for that item in the property pallette..
    (If still the item not coming, check whether you have put 'comma' in the select query after writing the column name)
    Simply giving the column in the order-by clause will not work in report.
    In Report, record display order is completely based on the break-order of the items given in query-groups
    If you change accordingly it will work
    Regards
    Dora

  • How add new column in analysis from two subject area

    which is the right way to add a new column to an existing combined analysis from two subject areas?
    if I add the new column first in my two combined queries, then I saw a new column in the results column panel, but this new column is empty and I can't edit its propreties (the button edit column doesn't work). I can't even save the modified analysis due to a "bad xml" errror.
    if I try to first add a new column from the results panel and then in my combined queries, obiee says that new columns are not of the same type.
    I suppose this is because the new column in results panel has no aggregation formula, unlike new columns in queries.
    But I don't know how to change the properties of the new field in the results panel, with no subject area available.
    I have to restart from a single subject area? possible?
    In this case, there is a way to save/copy filters ecc. from the old analysis?
    If anyone can help.
    Thanks
    Luc

    When you are using union clause in analysis or combining with other subject area you suppose to have same number of columns and their datatypes with other analysis.
    for datatype issues you can use cast in column expression in each analysis. If you want to add a column only from 1 analysis just add and in other analysis use dummy column with exp 0 or ''(for char) based on the datatype.
    These you have to deal with each analysis.
    If helps pls mark

  • How to add new column in partition table

    Hi,
    In Oracle 10g Database, I have one table (X) with list partition . I have added one new column to "X" by "Alter Table" command. Please advise whether any other command needs to be executed since it is a partition table .
    The "X" table is used for partition swapping with another table (Y). I have added the same column also in table "Y". Will there be any issue while swapping the partion with the following command
    alter table X exchange partition partition_name with table Y
    Version Details :
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 OS
    Solaris 5.10
    Thanks in advance

    you would have to explicitly put that into the create table as select - the partition details.
    ops$tkyte%ORA10GR2> create table t1
    2 PARTITION BY RANGE (dt)
    3 (
    4 PARTITION part1 VALUES LESS THAN (to_date('13-mar-2003','dd-mon-yyyy')) ,
    5 PARTITION part2 VALUES LESS THAN (to_date('14-mar-2003','dd-mon-yyyy')) ,
    6 PARTITION junk VALUES LESS THAN (MAXVALUE)
    7 )
    8 COMPRESS
    9 as
    10 select * from t;
    Table created.
    Source:http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:69076630635645
    Hth
    Girish Sharma

  • How to add new column inside ME28 PO Approval Screen?

    Hi Abapers,
    Can u please explain and give sample code to me,  how to add new customise column inside standard Layout ME28 PO Approval Screen.
    Waiting for yours reply.
    Tks,
    S.Muthu.

    Hi
    Don't need a code or customize.
    1- Execute ME28
    2- select a line in the ALV
    3- type 'F1'
    4- Go to technical information
    5- Go to Table name 'MEREP_OUTTAB_PURCHDOC_REL' it is a structure
    6- Append the new field into that structure using SE11
    7- return to ALV in ME28 and change Layout
    8- you will find at right your new field, deplace it to left part and it's OK.
    REM :your new field will be filled only if the ME28 program is reading your field and passing it to the ALV structure (MEREP_OUTTAB_PURCHDOC_REL)
    It worked for me with EKPO-AFNAM
    cordially,
    Faycel MOSLAH.

  • ERec: How to add new column in Recruiter TRM New Registered Candidates list

    Hi,
    In the Recruiter tab, active query for TRM> New Registered Candidates, there are 9 columns which has candidate name, registered since, resume, interest group and so on. If I want to add "Country" in the view, how to proceed?
    Please advice. Thanks a lot.

    Hello,
    Usually the columns are defined in the POWL feeder class method IF_POWL_FEEDER~GET_FIELD_CATALOG. In case of the POWL query 'new registered candidates' the class is CL_HRRCF_M_NEWREGCAND_POWL_UI. You can copy that class to a custom one, adjust the get_field_catalog method with the column 'country'.
    Regards
    Nicole

  • How to add new column in specific position

    Say, a table has existing columns of A, B, D, and E.
    Now I want to add a new column C. But I want this column appear between B and D. I found that the newly added column always goes to the end of the table, i.e., A, B, D, E, C, instead of, A, B, C, D, E.
    How can I do it?

    scottjhn wrote:
    Say, a table has existing columns of A, B, D, and E.
    Now I want to add a new column C. But I want this column appear between B and D. I found that the newly added column always goes to the end of the table, i.e., A, B, D, E, C, instead of, A, B, C, D, E.That's right; new columns are always added at the end.
    Why is is so important to have the columns in a specific order? If the order is important, why aren't you specifying it in the SQL code that actually uses the table?
    How can I do it?When you add C, add columns called NEW_D and NEW_E as well, in that order, where NEW_D has the same data type as D, and NEW_E has the same data type as E. Then UPDATE the table to set NEW_D and NEW_E to be the same as D and E, drop the original D and E, and rename NEW_D and NEW_E to the original names, D and E.

Maybe you are looking for

  • Need help on optimization of query

    Basically I had some query which should have been optimized. I did some optimization, but I guess it could be optimized more. Please help DATA_ PK - ID FK - ID (HIER ID) VAL nullable ATTR1 not null ATTR2 not null HIER PK -ID L1 - not null L2 - not nu

  • Network users doesn't show up on snow leopard client

    Hello, I am having a weird problem with my snow leopard client that won't show a list of the network users. The server is a open directory server and other snow leopard client can show the list of the network users on login screen except one. I've tr

  • OIM Custom validation on entitlement request submission.

    Hi, We have a requirement in OIM to do some custom validation on entitlement request submission through catalogue. Can we leverage the requestdatavalidator here. Is there any other way of doing it? Thanks in advance,

  • Pixel Perfect XY

    is there a swing method like JButton.setXY(20,20); to get perfect swing layouts, all mine so far keep resizing themselves in odd ways, I've used setGridLayout() and setPrefferedSize() with no avail, please help!

  • How can I know who Unscheduled Process Chain

    Hi, I am looking for a way to know who unscheduled process chain. After looking in forum I got to know about Table TBTCO but there are huge no. of entries in that. Above that I need to know about a chain that was unshceduled on 4th May can I give tha