Adding a new column to an existing database table

How can I add a new column to an existing table (ex. dcs_product) and can anyone tell me the required configuration changes i may need to make.
Thanks in advance!

create/customize /atg/commerce/catalog/ProductCatalog.xml:
<gsa-template>
<item-descriptor name="product" xml-combine="append">
<table name="my_dcs_product" type="auxilary" id-column-name="product_id">
<property category-resource="categoryInfo" name="myDescription" column-name="myDescription" data-type="string"/>
</table>
</item-descriptor>
</gsa-template>
Hope it helps.
-RMishra

Similar Messages

  • Impact of new column addition to existing database

    Hi,
    I have a business reqt where in the existing table, I have to add a new column. Yet it is not finalised whether the column is going to be nullalble or NOT NULL.
    But I would need a help to judge where all the addition of new column in the existing Db can cause a impact.
    I know few things but need to know the complete picture:
    1. dependent SP's would get invalidated ( specially with INSERT statement)
    2.
    3...
    ..and all those.
    Please help.
    Regards,
    Aashish S.

    As Satish pointed out the locking issue - I once saw someone lock up a whole application for hours because they added a new column with a default value on a large table because that took a DDL level lock on the table.
    Also, if people have coded their inserts properly (using column names and values) then you should not have any problems with the order of column names even though the column is added to the end, unless you use DBMS_REDEFINITION.

  • Adding new column in an existing report which was build using Union

    While working in OBIEE 11g I encounter an issue.
    My existing report was build using UNION at Criteria Tab in Analysis. Now I have a requirement to add a new column into the same report. For each criteria I have added the new column but when I go back to the "Result Columns". I see a new field added but it is not allowing me to open or edit column properties for that new column & at the same time it is not allowing me to navigate to other tabs like Results, Promts, and Advanced.
    I don’t want to build this report from scratch. Is there any workaround to get it resolved?

    Hi,
    Just check it once the new added column data types are mismatched or not?
    and the new added column should be navigated into excluded section, so u should edit the report and dragged into the table column section.
    Thanks..

  • Issue adding a new column to OBIEE presentation layer

    Hi,
    I am pretty new to OBIEE so this may be a silly question. I am facing some problems trying to add a new column from a physical table the OBIEE presentation layer.
    Below are the steps I followed:
    Task: add a product category set to the presentation layer.
    Steps:
    1) First verified that the product category set is being populated in the W_PROD_CAT_DH table in the datawarehouse. this was done by running the following sql
    SELECT W_PROD_CAT_DH.TOP_LVL_PRODCAT_NAME
    FROM W_PROD_CAT_DH, W_INVENTORY_PRODUCT_D
    WHERE W_PROD_CAT_DH.integration_id = W_INVENTORY_PRODUCT_D.INV_PROD_CAT1
    This sql gave the right category value.
    2) created a "Alias" of the table W_PROD_CAT_DH in the OBIEE Admin tool physical layer. (done by right clicking W_PROD_CAT_DH >>New Object>> Alias)
    3) named the Alias of W_PROD_CAT_DH as "Dim_W_INV_MKT_CAT" and created a key of the alias named "integration id" on the column "integration_id"
    4) opened the pre-existing alias of W_INVENTORY_PRODUCT_D the alias was called "Dim_W_INVENTORY_PRODUCT_D" and added a key called "MKT_CAT" on the column "INV_PROD_CAT1" in this alias (Dim_W_INVENTORY_PRODUCT_D of the table W_INVENTORY_PRODUCT_D)
    5) in the alias of the "W_INVENTORY_PRODUCT_D" called "Dim_W_INVENTORY_PRODUCT_D" added a "Foreign Keys" the expression of the key is following: ("Oracle Data Warehouse"."Catalog"."dbo"."Dim_W_INV_MKT_CAT"."INTEGRATION_ID" = "Oracle Data Warehouse"."Catalog"."dbo"."Dim_W_INVENTORY_PRODUCT_D"."INV_PROD_CAT1")
    Logical layer
    6) Opened the existing logical folder called "Dim - Inventory Product" and clicked on "Sources" tab then double clicked the source "Dim_W_INVENTORY_PRODUCT_D" and added a new mapping under "Map to these tables" under "General" tab. The column that was added was the physical alias "Dim_W_INV_MKT_CAT"
    7) added a new column mapping to the same logical table source (Dim_W_Inventory_PRODUCT_D) this new mapping was a column from the alias "Dim_W_INV_MKT_CAT" (column name "TOP_LVL_PRODCAT_NAME")
    Presentation Layer
    8) dragged the newly added column (TOP_LVL_PRODCAT_NAME) from the logical layer "Dim - Inventory Product" to the presentation layer "Product" folder.
    ISSUE
    after adding everything and checking global consistency and save and checking-in my work when i login from the front end presentation services. I see the newly added column is showing under the "Product" folder. on dragging the column by itself to the Ad-Hoc analysis I can see the different values of the category. On adding a second column from the same logical folder (Dim - Inventory Product in logical layer) i still see the right product name and corresponding category. BUT when I drag any other column from any other folder (such as "Day" from "Time" or any fact values) the result does not fetch any data (message: The specified criteria didn't result in any data.)
    I am not sure if I am missing any step but I know I am mapping the new table alias to the inventory_product_d since i see right results on creating analysis of columns in those two folders. but no other folders give me any data.
    I also know that the logical folder "Dim - Inventory Product" is joined with other tables as I can see results when i do not add the newly added catagory column but other folder and other columns of "Dim - Inventory Product"
    I would really appreciate any insight to this very much. we are using OBIEE 11.1.1.6 with the Oracle 11.5.10 Adaptor (SDE_ORA11510_Adopter)
    I will try to upload some screenshots if needed but presently not sure if its something really simple.

    Hi Prassu,
    thanks for the responce. and Apologies for the delay in getting back to you.
    1) 1.First of all set the logging level to 3 in the admin tool save it.
    You can get the SQL query from here
    settings(Answers right top)-->Administration-->manage sessions-->view log
    When I try to do this I get the following message. and no log files.
    Error
         Log Could Not Be Retrieved
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <3790667783>: Syntax error [nQSError: 26012] . (HY000)

  • Problem in adding the new column in VO : ADF

    Hi,
    I am using jdev 10.1.3.2 with ADF.
    I added a new column in a table in the database. In my ADF application, I right clicked on the entity object of the changed table, and selected ‘Synchronize with DB’ which added the new column in the entity object also.
    I had a jsp which uses this view object’s (VO). I had to change the VO also to add this new column.
    After all this, in the jsp page, I dragged and dropped this new column as an input text field.
    But while running this page, the field is empty. Also when I drag and drop it, this field doesn’t have the ‘id’ attribute.
    Below is the code. Please let me know how I can fix this issue.
    <af:inputText value="#{bindings.RebillNumber.inputValue}"
    label="#{bindings.RebillNumber.label}"
    required="#{bindings.RebillNumber.mandatory}"
    columns="#{bindings.RebillNumber.displayWidth}">
    <af:validator binding="#{bindings.RebillNumber.validator}"/>
    </af:inputText>
    Thanks,
    Venki

    Hi Venki,
    Please check if the object on the page is bound to the same iterator as the other components. Sometimes dragging and dropping new attributes makes JDev create a new iterator, and the two iterators will not be in sync.
    You can check this in the pageDef file and correct any strange things you may find.
    Jeroen van Veldhuizen

  • Add a New Column Before An Existing Column in 10g.

    Hi all,
    I Want to add column in a table ,before an existing column in Oracle 10G database.
    table A:
    id number,
    name varchar,
    job varchar,
    status char.
    i want to add a column before "JOB".
    I.E) USING AFTER OR BEFORE IN ALTER TABLE SYNTAX.

    887268 wrote:
    Hi all,
    I Want to add column in a table ,before an existing column in Oracle 10G database.
    table A:
    id number,
    name varchar,
    job varchar,
    status char.
    i want to add a column before "JOB".
    I.E) USING AFTER OR BEFORE IN ALTER TABLE SYNTAX.There's no such option, and to be honest there's no real need to do it as Oracle doesn't care what order the columns are in, and you can select out the columns in your queries in whatever order you want. You could use the DBMS_REDEFINITION package (http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_redefi.htm) but unless you're really struggling then that's perhaps a little bit over the top. The simplest way if you really feel you need to do it is to create a new table based on the existing one with your new column in it and selecting the data into it at the same time...
    create newtable as
    select id, name, cast(null as varchar2(10)) as newcolumn, job, status from tableA;and then drop the original table and rename the new one...
    drop table tableA;
    rename newtable to tableA;of course you would need to recreate any constraints, indexes, triggers etc., and it could be problematic if you have foreign keys etc. but you have to weigh up what you are wanting to do and why you really need to put a new column in the middle of other columns rather than just putting it on the end.

  • Need to add 2 new columns to the existing table control of C223 transaction

    Hi ABAP Gurus,
    I have to do a screen enhancement for transaction C223.
    Below is the requirement:
    need to add 2 new columns to the existing table control of C223 transaction.
    there is no customer exits, screen exit or user exit present for this transaction C223, i have found one enhancement spot for this transaction.
    i dont have any idea how to do this in standard transaction C223, the table control in C223 saves the data to MKAL table and the table control uses the structure MKAL_EXPAND in the screen program.
    i have created an append structure for  the 2 fields to the standard table MKAL.
    Can anyone please suggest me how this can be done in standard screen C223, will the enhancement spot can be used to do this....
    please sugest...
    Thanks & Regards

    Hi Santosh,
    Thanks for the reply. I have looked into this Enhancement Spot CPFX_SCREEN_SET , inside this there is only one method INPUT_DISABLED having below parameters
    IM_MKAL     Importing     Type     MKAL                                                                                Production Version
    EX_MSGID     Exporting     Type     SY-MSGID                                                                                Messages, Message
    EX_MSGTY     Exporting     Type     SY-MSGTY                                                                                Messages, Message
    EX_MSGNO     Exporting     Type     SY-MSGNO                                                                                Messages, Message
    EX_MSGV1     Exporting     Type     SY-MSGV1                                                                                Messages, Message
    EX_MSGV2     Exporting     Type     SY-MSGV2                                                                                Messages, Message
    EX_MSGV3     Exporting     Type     SY-MSGV3                                                                                Messages, Message
    EX_MSGV4     Exporting     Type     SY-MSGV4                                                                                Messages, Message
    EX_INPUT_DISABLE     Exporting     Type     CHAR1                                                                                Display Only if X Was Set
    the BADI definition present here is a SAP internal so we cant implement the BADI , but we can created a enhancement spot implementation for this. as per my understanding on this the enhancement spot is only for making the table control fields display / change .  i dont think this can be used to add two new coloumns to C223 table control.
    I am not sure thats why seeking your help/valuable sugestion on this.
    Please provide your sugestion on this , so that i can come to conclusion on this issue.
    Thanks & Regards
    Siddhartha Mishra

  • When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder?

    When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder? The endless scrolling technique is far too tedious when trying to add a new bookmark, because the window is simply too tiny. Is there maybe a plug-in that will let me grab the corner of that window and re-size it? Thanks!

    I suggest you install the "Add Bookmark to Here2" extension, then you can expand the the list but you will not see the bookmark itself in the list if that is what you wanted. At the top you have three major folders you can select one of them and scroll up and down. Below that you have your most recently used folders and you can select one of them instead and scroll up and down. You can see the folder the bookmark is in -- they get added to the bottom
    If you really want to see the bookmark within the folder the same extension allows you to bring the bookmark to the folder from say the bookmarks sidebar that is why it is named as such. I use it but mainly i use the dialog.
    Please continue reading about bookmarks and some related extensions at
    * http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    * https://addons.mozilla.org/firefox/addon/add-bookmark-here-2/
    * http://dmcritchie.mvps.org/firefox/firefox.htm#addbookmarkhere2
    * http://dmcritchie.mvps.org/firefox/kws.htm
    If you are not using tags at all, you can remove a whole lot of confusion by removing them from the dialog via the extension.

  • Adding new field in an existing condition table

    Dear friends,
    I have an existing condition table for material exclusion with the combination of Plant and material.
    Is it possible to change this table and add a field of division also?
    Regards,
    Ronnie

    Hi,
    The optimzed solution is to better create a new sequence of fields including the division, so that a new condition table is created based on the key combination or access sequence.
    You can add a new field to an existing condition table using APPEND structure facility in Se11. But once on activating the table, how will this division field get populated in the table.
    But whereas if you create a new key combination, the data for this condition tables will automatically gets filled up while creating master data thro VK11.
    So, its better to go for a new access sequence combination
    as a new table is created for this key combinations.
    Regards,
    JLN

  • How to mapping Entity beans to existing database tables.

    dear all
    how can i mapping Entity beans to existing database tables and not to create new table in Orion.
    thanks for any input.
    seabin

    * You define the name of the table that an Entity EJB maps to in orion-ejb-jar.xml. For eg:<entity-deployment name="MyEntityEJB" data-source="MyDS" table="MY_DB_TABLE" ...>* If you don't want to let Orion create the tables for your EJBs, have the following entry in either of the files given below:<orion-application autocreate-tables="false" ...>1) <orion-home>/j2ee/home/config/application.xml (global effect)
    2) orion-application.xml file of that particular application (application specific)
    HTH.

  • Add a new field to an existing Condition table

    How can I add a new field to an existing condition table?
    I have table 971 and I want to add INCOTERMS (INCO1) to this existing table but do not see how to add it.
    Thanks

    Hi Vicky,
        I dont think you can add new fields to the condition table once you have activated the condition table.
    SAP says you can only make limited changes to the condition table, like changing the description, fast entry screen, header and footer fields, but not able to add new fields to the table, and I think that is the correct approch or else for the same table you will have two sets of condition records.
    Please refer to the below link:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/de/7a8534c960a134e10000009b38f83b/frameset.htm
    What you can do is create a new condition table with additional field and assign this table before the currently used table in the access sequence.
    Hope this helps.
    Regards
    Raj

  • How to display Column Names of a Database Table in JSP

    Dear All,
    I want to display all the attribute names(column names) of a database table on JSP.
    [ ex:  mytable contains : ( EmpId,EmpName,Dept ). This should be display as  EmpId--text box                    
    EmpName--text box
    Dept----textbox
    please note , i don't want to display values,but only column names

    Yeah make use of methods like
    ResultSet DatabaseMetaData.getColumns(String catalog, String schemaPattern, String tableName, String columnNamePattern)
    else use
    String ResultMetaData.getColumnName(int column_index)
    search google i'm sure u wud get thousands of example on it... :)

  • [HTML DB] How to use the existing database table?

    [HTML DB] How to use the existing database table?
    I installed Oracle 10g database in Computer A(Windows 2000), and I already create all the tables with data and the data size is about 300MB.
    In Computer B(Windows 2000), I installed HTML DB 1.6.
    How can I use /get the existing database table (in computer A) for HTML DB?
    Could anyone help me on this? I am newbie and I need some detail instructions. or Where can I find the examples.....
    Thanks

    Well I guess if you wish to retain that architecture, i.e. HTMLDB on one machine and your data on another, you will have to establish database links to access the data. Oracle documentation will describe how to achieve that.

  • Adding a new Column in Sim Datawarehouse Delivery screen

    Hi All,
    I need to add one new column 'comments' in Sim Datawarehouse delivery Screen(navigation:Shipping/Receiving->Warehouse Delivery ->select ASN->Select Container) .That column should be mapped with comment_desc colun in rk_shipment_items table
    1.created a 'comments' class in src\oracle\retail\sim\shared ,
    2.created a 'CommentsDisplayer' in src\oracle\retail\sim\shared\swing\displayer.modified
    WarehouseDeliveryCartonDetailPanel.java as-
    public List<SimTableAttribute> getAttributes() {
    List<SimTableAttribute> attributes = new ArrayList();
    attributes.add(new SimTableAttribute("Comments", "comments",true));
              new CommentsDisplayer()));
    3.In WarehouseDeliveryLineItemWrapper added the get and set methods for 'comments'
    public String getComments() {
    return lineItem == null ? null : ((SimpleShipmentLineItem)lineItem).getComments();
    public void doSetComment(String quantity) throws BusinessException {
    if (lineItem != null) {
         ((SimpleShipmentLineItem)lineItem).doSetComment(quantity);
         //lineItem.setQuantityDamagedBasedOnUOM(quantity);
    Now that column is coming on screen and mapped properly with the database column comment_desc
    .But that column is coming as disabled on the screen.What else should be done to make that enable?

    You first need to add a new column to the definition of the internal table that is passed to the ALV function.  You'll then need to loop through the table and update the new total column.  For example,
    LOOP AT itab.
      itab-total = itab-cost + itab-discount.
      MODIFY itab TRANSPORTING total.
    ENDLOOP.
    You'll need to determine whether discount should be added or subtracted from cost.
    The only other change would be to update the field catalog.  There is likely a subroutine in your program that populates the field catalog table with the expected columns in the internal table.  Use the existing code as an example and add another record to the catalog for your total column.

  • How to add a new column to a existing table?

    Hi all,
    I have requriment acc which i need toadd a new column to a exsiting table.the name of the columns is taken frm database.I.e.,
    say if i have 3 names in DB name1,name2,name3
    i need to add in the table these three names as columns and tat to as inputfield(tablecelleditor) .Please help me with the code, i'll give full points to everyone who gives me correct answer 
    Regards
    Sharan and please this is Really Urgent!!! plzzzzzzzzzz
    Edited by: Armin Reichert on Dec 30, 2007 7:47 PM

    Hi,
    You can add the following lines of code where-ever  you want to add the table:
        IWDTransparentContainer tr = (IWDTransparentContainer) viewObj.getElement("trans");  // Container where table will be added 
         IWDTable tab = (IWDTable) viewObj.createElement(IWDTable.class ,"Table ID");
         tr.addChild(tab);
         IWDNodeInfo nodeInfo = wdContext.nodeProducts().getNodeInfo();
         tab.bindDataSource(nodeInfo); // datasource of your table.
         // First Column
         IWDTableColumn tc1 = (IWDTableColumn) viewObj.createElement(IWDTableColumn.class, "TC1");
         IWDCaption cap1 = (IWDCaption) viewObj.createElement(IWDCaption.class,"cap1");
         cap1.setText("Column Heading 1"); // name1 of your column
         tc1.setHeader(cap1);
         IWDInputField inp1 = (IWDInputField) viewObj.createElement(IWDInputField.class,"INP1");
         tc1.setTableCellEditor(inp1);
         IWDAttributeInfo attrInfo1 = wdContext.nodeProducts().getNodeInfo().getAttribute(IPrivateTEST.IProductsElement.PRODUCT_ID);
         inp1.bindValue(attrInfo1);
         tab.addColumn(tc1);
         // Second Column
         IWDTableColumn tc2 = (IWDTableColumn) viewObj.createElement(IWDTableColumn.class, "TC2");
         IWDCaption cap2 = (IWDCaption) viewObj.createElement(IWDCaption.class,"cap2");
         cap2.setText("Column Heading 2");
         tc2.setHeader(cap2);
         IWDInputField inp2 = (IWDInputField) viewObj.createElement(IWDInputField.class,"INP2");
         tc2.setTableCellEditor(inp2);
         IWDAttributeInfo attrInfo2 = wdContext.nodeProducts().getNodeInfo().getAttribute(IPrivateTEST.IProductsElement.NAME);
         inp2.bindValue(attrInfo2);
         tab.addColumn(tc2);
         // Third Column
         IWDTableColumn tc3 = (IWDTableColumn) viewObj.createElement(IWDTableColumn.class, "TC3");
         IWDCaption cap3 = (IWDCaption) viewObj.createElement(IWDCaption.class,"cap3");
         cap3.setText("Column Heading 3");
         tc3.setHeader(cap3);
         IWDInputField inp3 = (IWDInputField) viewObj.createElement(IWDInputField.class,"INP3");
         tc3.setTableCellEditor(inp3);
         IWDAttributeInfo attrInfo3 = wdContext.nodeProducts().getNodeInfo().getAttribute(IPrivateTEST.IProductsElement.DETAILS);
         inp3.bindValue(attrInfo3);
         tab.addColumn(tc3);
    For any further doubts you can always come back to me.
    thanks & regards,
    Manoj

Maybe you are looking for

  • How can I authorize an iPod Classic with my own Apple ID?

    How can I authorize an iPod Classic with my own Apple ID? It belonged to someone else so presumably it has been authorized with another id. Your help and answers are much appreciated.

  • FTP Clients on E72: can't get any to work

    Hello again. So, I've been trying to get FTP Client functionality on my Nokia E72. I guess I'm just doing something wrong, but I cannot figure it out. I tried: * SIC! FTP (native Symbian App) * PaderSyncFTP (Java) * MobyExplorer (Java) None of the ap

  • MacBook does not start after installing more RAM

    Ok i bought a second hand MacBook from early 2009 and planned to use it to record songs in a small home studio using GarageBand, Live and protools, it came with 2gigs Of RAM and i tought i should take it up to 4 -the max it can handle- so i bought 2

  • How to Achieve "POPIN in TreeByKeyTableColumn" ?

    Hello, SAP online help for NW 7.01 say's its not possible to have cell popin's in TreeByKeyTableColumn [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fc/501b42b5815133e10000000a155106/frameset.htm] But is there a way we can develop using POPIN wit

  • Can't get RAID Card to work.

    I bought a Rosewill RC-200 raid card and can't get windows to instal to it with 2 x 80 gb drives RAID 0.  In the BIOS, it doesn't show up in the "Standard CMOS Features" list, which I guess might make sense, but it does show up in the Hard Disk Boot