How to add a new data element for existing table filed(Primary key field)

Hi Experts,
How to add a new data element for existing table field(Primary key field)
For this filed ther is no foreign key relation ships and even check table.
while activating table it is giving message like below.
can you help any one to solve this and wil steps to add new dataelement for existing primary key filed of a table.
Check table (NAMING SPACE/TABLE NAME(EX:/TC/VENDOR)) (username/19.02.10/03:29)           
Primary key change not permitted for value table /TC/VENDOR
Check on table  /TC/VENDOR resulted in errors              
Thanks
Ravi

Hi,
Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
Maybe there are other ways, but this works.
Success,
Rob

Similar Messages

  • How to add a new data element?

    friends,
         the data elements for the fields ECSRATE and orig_ecsrate in the structure j_1iexitem is different in our development and production systems...the correct one is j_1iexecsrat, which is in development...how to change the data element of this field in the production system..thanks all.

    Hi,
    Kindly check the transport requests for the structure in both DEV & PRD.
    Utilities -> Versions -> Version Management.
    Kindly check the transport request in the DEV against the "activ" checked.
    Look for the same request number in the PRD for the structure.
    If there is a mismatch, kindly transport the request in DEV to PRD.
    You cannot directly change the data elements in PRD system.
    It should be done through the transport requests from DEV to PRD.
    Hope this helps!
    best regards,
    Thangesh

  • How to add a new column to a existing table and add data to this column?

    I have a table with about 10 millions row and I want to add a new column to this table, then fill this new column with prepared data.
    How to do it ?
    Thank you

    Can I use insert statement to add the data to new-added column?No.
    07:19:37 oracle >create table test (x number);
    Table created.
    Elapsed: 00:00:03.05
    07:19:53 oracle >
    07:19:53 oracle >
    07:19:53 oracle >insert into test values (1);
    1 row created.
    Elapsed: 00:00:00.00
    07:20:01 oracle >insert into test values (2);
    1 row created.
    Elapsed: 00:00:00.00
    07:20:10 oracle >insert into test values (3);
    1 row created.
    Elapsed: 00:00:00.00
    07:20:12 oracle >
    07:20:13 oracle >commit;
    Commit complete.
    Elapsed: 00:00:00.00
    07:20:14 oracle >
    07:20:19 oracle >select * from test;
             X
             1
             2
             3
    Elapsed: 00:00:00.00
    07:20:22 oracle >
    07:20:36 oracle >alter table test add (y number);
    Table altered.
    Elapsed: 00:00:00.05
    07:20:41 oracle >
    07:20:41 oracle >
    07:20:41 oracle >
    07:20:41 oracle >select * from test;
             X          Y
             1
             2
             3
    Elapsed: 00:00:00.00
    07:20:43 oracle >
    07:20:44 oracle >
    07:20:44 oracle >update test set y=1;
    3 rows updated.
    Elapsed: 00:00:00.02
    07:20:52 oracle >commit;
    Commit complete.
    Elapsed: 00:00:00.00
    07:20:56 oracle >select * from test;
             X          Y
             1          1
             2          1
             3          1
    Elapsed: 00:00:00.00
    07:20:58 oracle >Anand

  • 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

  • How to add the new dep area in existing cod

    Dear all,
    how to add the new dep area in existing cod we are planing to implement the IFRS by using leading ledger and non leading ledger present we are using OL leading ledger
    present we are using dep area 01 ,15
    how to achive the parallel accounting in asset accounting how to add new dep area 30 in existing COD
    if any document plz refer me  

    Hi Bhayyapu,
    Please refer to the links given below.
    New Depreciation area
    Adding a New Depreciation Area to Existing Assets - Financial Accounting (FI) - SAP Library
    Hope this will help you.
    Regards
    Eugene

  • 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

  • How to add an unique column to an existing table?

    How to add an unique column to an existing table?
    I have a large table which has no unique constraint. and I want to add an unique column for it. How to do it?
    Does adding a sequence is a good choice? How to do it?
    Thank you

    Hi,
    alter table tablename
    add constraint contraint_name unique (columnname);but before that you need to check in the table.column there is no duplicate record exist.
    Does adding a sequence is a good choice?
    Your talking about unique constraint then yes.
    Regards,
    Taj

  • How to add a new data type of oracle to SIM(7.0)

    Hi........
    I need to add a new data type(CLOB) to SIM of oracle .can anyone tell me how to modify or add this new data type.
    Any pointers to this will be highly appriciated.......
    thax in advance...

    Hi,
    Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
    You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
    Maybe there are other ways, but this works.
    Success,
    Rob

  • How to add a new pin to an existing subvi

    Hi,
    I've been using Labview for sometime now but I still haven't found a convenient way to add a new pin to an existing subvi other than opening up the subvi and adding a control or whatever and then highlighting the code and using create subvi. Then naming this new subvi with the name of the old one. There must be a better way than doing this ??
    Thanks.
    John

    Hi John,
    I think you want to have a new connector where you can wire to.
    Open the VI, create the control or indicator on the front panel and then make a right click on the icon. Choose show connector pane. Your mouse cursor changes to the wire cursor. Click in the pane on a free connector and then click on the new control/indicator. This way the control/indicator is assoicated with the connector on the connector pane. Keep the rule controls left indicators right side. If there is no more connector left you can choose a new pane.
    Normally we use only a limited set of panes for all subVIs to avoid benches in the wires. Most we use the pane with 4 connectors left and 4 connectors right.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How to add a footer row to an existing table?

    The LiveCycle on-line help is pretty cryptic on this one . . . .
    I have an existing table in a form in which the designer (me) left off a footer row by mistake. In lieu of deleting the table and rebuilding it using the Table Assistant, is there a way to add a footer row to the existing table? The on-line help seems to indicate that it's possible, but offers little in the way of instruction on how to do it.
    Thanks in advance!
    Bill

    Hi Bill,
    in your hierarchy view of your table,
    selsct the body row of your tabke and
    right-click and select 'Insert'.
    Then select 'Rows below'.
    You will see a new row beneath your original body row.
    Select your new row, and in your Object tab, select 'Footer Row' under type.
    Now, under the Pagination tab select wether you want to see the footer row on every page or just the last page.
    Good Luck!
    Zoe

  • How to add a new data source

    Hi,
    Can anyone help, I need to add a new oracle database connection between OBIEE and the database. How can I acheive this, do I need to set an ODBC connection or are there any underlying configuration files on the server that need to be updated?
    Thanks

    Hi,
    If you are importing from some new database then you need to create DSN for that db and import tables into rpd.Open rpd in online mode file->Import from Database->select DSN->Import from Database,else if it is just to import tables from same database no need to create any DSN.
    Regards,
    Srikanth

  • How to add a new filter in an existing web service method (BIWS - WEBI document)

    Hello Experts, we have 7 web service query's connected to a dashboard. Basically it is one WSDL URL and 7 Get Methods...Web service queries are BIWS (via WEBI document instance). There are filters setup for each of these web service methods.
    Recently there was a request to add 2 new fields to the webi document and also the 2 fields need to be included as filters in the 7 methods. I know there is an option to edit the method, but when i edit the method, i cannot find the 2 new fields in list to set as filters.Can anybody help me understand how to add filters to an existiing web service method? I do not want to delete the method and republish the block as web service.
    Any help will be great and points rewarded.
    Thank you
    Ann

    Hi Ann,
    The reason you are not able to see any of the new columns as a option to select in your web service block is because when you have published that block, they were not present. Add these two new objects in your block and publish it again. You will be prompted for duplication content. Select the highlighted block for duplicate and now you can see the new added objects in the filter option. Update and this will overwrite your published block. Please note, web services do appear to behave weirdly when used with dashboards so I request you to please try it in a separate test report first.
    Hope that helps.
    Regards,
    Tanisha

  • How to add a new library to an existing java project

    Hi ,
    i just moved to writing java applications in jedit after working in eclipse for a while , in eclipse it was easy to add a new library jusr rightclick and add but how do i do the same when working with a text editor of jedit style and what do i need to change in order of javac.exe and java.exe to work properly , i tried google but i got no comprehensive article about it i'd appreciate a link or even better a simple explanation .
    thanks in advance .

    you just need to include it on your classpath

  • How to add a new .me account to existing apple id

    My wife just got an iPad, and we're going to use my apple id to keep purchases on the same account. I created an apple id for her thinking I could just add it to mine, but doesn't work that way. How can I create a new .me email account for her, but keep her under my apple id? I already have an email for myself.
    This is one area where apple has not made things easier. Did you use to be able to add up to 5 email accounts to one apple id? Any help/clarification would be appreciated.

    Hi,
    Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
    You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
    Maybe there are other ways, but this works.
    Success,
    Rob

  • How to add another new report painter in existing T-code?

    HI,
    Can someone guide me, how to add a report painter report ZAL into a existing T-code?
    My T-code contain 2 report, now i wish to add a new one. So when user execute this T-code, we can see these 3 report.
    Thanks

    Hi,
    add the new report to the report group (T-code GR52) where the 2 already existing reports belong to.
    In report painter you don't execute a report but always a report group including one or more reports.
    Best regards, Christian

Maybe you are looking for