Importing field level definitions

I have a model that was created by reverse engineering an Oracle database. This model is really small, about 400 columns, but I'd really like to get definitions of the columns and tables into this thing before it gets really big. Being an old-time data modeler, I know how to bulk import definitions into other modeling tools like Erwin and ER/Studio. But I'm just now trying to figure out SDDM.
Is there a way for me to bulk import definitions for all the columns and tables in the Relational model? i have the text already, just don't really have time to pound it in one column at a time.
Steve

Hi,
below is a script that do what you want but it imports from excel file into notes property. It works for logical model, entities and attributes. You need to change it for relational model, tables and columns. Also add code if you want to import comments and comments in RDBMS properties. Pay attention on the name of excel sheet - it's "Sheet 1". Also you need to create ODBC Data Source for your excel file- named "Excel_imp" in example below
Philip
var model;
function getAttribute(entities,ename,aname){
if(current!=null && current.getName().equals(ename)){
  return current.getElementByName(aname);
for (var i = 0; i < entities.length; i++) {
  current = entities;
if(current.getName().equals(ename)){
     return current.getElementByName(aname);
return null;
//====
var current;
model = model.getDesign().getLogicalDesign();
entities = model.getEntitySet().toArray();
java.lang.Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
// url - jdbc:oracle:thin:@host:port:sid
//"user","pswd"
conn = java.sql.DriverManager.getConnection("jdbc:odbc:Excel_imp", "", "");
stmt = conn.createStatement();
rset = stmt.executeQuery("select * from [Sheet 1$]");
if(rset!=null){
while(rset.next()){
entity_name = rset.getString(1);
attr_name = rset.getString(2);
descr = rset.getString(3);
if(descr!=null){
attr = getAttribute(entities,entity_name,attr_name);
if(attr!=null){
attr.setNotes(descr);
attr.setDirty(true);
rset.close();
stmt.close;

Similar Messages

  • Why I can not find field:Level in Project Hierarchy in BAPI_BUS2054_NEW?

    Dear experts,
        Why I can not find the field of "Level in Project Hierarchy" in structure BAPI_BUS2054_NEW?
    I only define the data to upload wbs:
    PROJECT DEFINITION
    PROJECT DESCRIPTION
    PROJECT PROFILE
    WBS Element
    WBS description
    Can you tell me which fields must to upload?
    Looking forward to your reply.
    Many thanks.
    Merryzhang

    Anyone can help me ?I need the field "Level" in BAPI_BUS2054_NEW,But I can not find it.

  • Data conversion is necessary at field level

    Hi everybody.
    Im a BW consultant in a BCS project, and I had to make a change in a objetct that is used in BCS as a custom attribute.
    What I made, is to remove the ALPHA routine in the object.
    Later, the BCS consultant generetad the data basis again, and now when enter the UCWB a warning is showed, the message below:
    But I dont know how to do the procedure showed in the message, does anyone face with the same problem? Any suggestion? 
    Best Regards,
    Thiago
    Field /BIC/ZC_EMPBPM: Data conversion is necessary
    Message no. UGMD418
    Diagnosis
    Following a change to the definition of field /BIC/ZC_EMPBPM it is necessary to convert the old data for this field before the new attributes can be activated. This arises, for example, when the following attributes have been changed:
    Conversion exit
    Version or time dependency of hierarchies
    System Response
    You cannot start the application. A data conversion is necessary first.
    Procedure
    Execute the necessary data conversion at the field level. To do this, press the respective button with the  symbol in the hierarchical detail display at the level of field /BIC/ZC_EMPBPM. If necessary, the system will prompt you for more information in a separate dialog box.
    Regards!
    Edited by: Thiago  França Carvalho Silveira on Jun 10, 2010 11:13 PM

    Hi,
    I quess the following should help.
    Execute UCWB01 t-code, goto your data basis, in the tabstrip for assigning roles drag and drop any characteristic, then save. The system will find the change and check and regenerate data structures (that's what you need).
    Then either in UCWB or UCWB02 t-code got your ConsArea and regenerate it.

  • Error during transport-Structure change at field level (convert table /BIC)

    Hi,
    I am trying to transport from DEV to Test when I encountered this error.
    The tables are both consistent when I checked with SE14.
    Start of the after-import method RS_CUBE_AFTER_IMPORT for object type(s) CUBE (Activation Mode)
    Error/warning in dict. activator, detailed log    > Detail
    Structure change at field level (convert table /BIC/DZCRUSDI026)
    Table /BIC/DZCRUSDI026 could not be activated
    Return code..............: 8
    Following tables must be converted
    DDIC Object TABL /BIC/DZCRUSDI026 has not been activated
    Error when activating InfoCube ZCRUSDI02
    Error/warning in dict. activator, detailed log    > Detail
    Structure change at field level (convert table /BIC/DZCRUSDI023)
    Structure change at field level (convert table /BIC/FZCRUSDI02)
    Table /BIC/DZCRUSDI023 could not be activated
    Table /BIC/FZCRUSDI02 could not be activated
    Return code..............: 8
    Following tables must be converted
    DDIC Object TABL /BIC/DZCRUSDI023 has not been activated
    Error when resetting InfoCube ZCRUSDI02 to the active version
    How do I resolve this
    thanks

    Hi,
    There are no Inactive objects in the cube in DEV system. Also must of the changes I made in Test are already in the cube in TEST But the cube is not active.
    SAP proposed that the cube be activated manually but is not a good procedure to activate in TEST system.
    Error when resetting InfoCube ZCRUSDI02 to the active version
    Message no. RSO410
    Diagnosis
    Errors arose when activating InfoCube ZCRUSDI02. An active version already existed before the activation.
    System Response
    InfoCube ZCRUSDI02 could not be reset to the old active version. Since the generated objects no longer correspond to the old active version, they were reset to inactive.
    Procedure
    The old active version of InfoCube ZCRUSDI02 can no longer be used. Remove the cause of the activation error and activate InfoCube ZCRUSDI02 anew.
    thanks

  • Field level Validation in SAP PI

    Hi All,
    I am integrating with a 3rd Party system (File to Proxy scenario). Source file contains around 30 fields. I was asked to do field level validations for each of this field in PI. Is this a good practice. Do we do field validation in PI Integration development? I think PI should contain more of integration logic than field level validations. Please suggest.
    Also out of all the 30 fields few are numeric, some are text and some are dates. While creating data types do I need to created all as string or based on their nature I need to use integer,date etc? Please suggest which is the best practice.
    Thanks.

    I agree with Rahul.
    Yes we can perform validation in PI (most of the cases we do by request of the Business team).
    But always have a thumb rule for your self.
    1. Check first weather the source system is capable of doing the validation at its end.
    2. If YES make sure the source system does the validations required. (I am sure most of the app would be able to the validation).
    3.If NO then accept the validation process to be done in PI end.
    One Important thing:
    What kind of validation are you taking about? i assume this is field level validation rite?
    and this is a Proxy to file scenario rite.
    I will strongly suggest you to do following things at source and receiver Business systems.
    1.gather a meeting the with the end business teams (source and receiver).
    2.Force them to create data type at their end (sorce and target)with  same data type structure- with same field length even.
    ie, if source first field is integer with maxlen25  corresponding reciver field is also integer with maxlen25, if source has char field then in reciver also its char.
    If you make both the source and reciever business to have same data type at there end, NO VALIDATION would be required to be done in PI
    also in this case you can declare all the data type as STRING in PI and pass the data to receiver system. (which has the same data type as sender).
    Regards,
    Senthilprakash.

  • BW Field level Autorizations are not working in the WEBI Reports

    Dear All,
    1. I have created Authorization roles with Infoobjects Authorization Objects.
    2. In Bex Query Authoizations are working on the Infoobjects like for
    Ex: For USER1 I have given Company code = 1000 &
    User 2 I have given authorization for 1100.....
    3. Import those roles into Business Objects-CMC.
    4.Users were Imported.
    But in the WEBI Reports BW Field level Authorizations are not working i.e for USER1 authorization for Company code is 1000 , in WEBI report it is showing all the Company codes data for USER1.
    For USER2 also showing all the data in the WEBI report.
    Plz help me on this issue.
    Thanks,
    Kiran Manyam

    Hi,
    For Authorization to work in BO you can check the following:
    1. You need to create authorization variables in your BEx query.
         Also these variables should not be input ready.
    2. While creating universe in BO you need to select "Single Sign On" option available in the parameters iwhile creating a new
        connection.
    Regards,
    Rohit

  • Field level validation

    I was looking at the Add/Modify Customer page – page 7 in the Sample Application which can be loaded into Oracle XE and was surprised to discover that there doesn’t seem to be any field validation. For example customer first name is set to varchar2(20) at database level yet more than 20 characters can be entered into the application field and there is no error message when moving cursor focus to another field. Credit Limit field is numeric only but alpha characters can be entered and again, there is no error message when moving cursor focus to another field. Error messages are only displayed on hitting the Create button and even then they are standard ORA-99999 type messages – not very friendly to your average end-user I would suggest! I would be amazed if field-level validation (javascript maybe?) can’t be included in XE applications – assuming it can be, can anyone tell me how it works, even point me towards a working example – if I’m really lucky(!) Phil

    As part of the page editor, looks in the center for validations. Right there you can enable all kinds of validations required for the objects in your page.
    If you require you can use JavaScript to activate those validations also. Check the
    Page Definition = Validation
    You can use Item Validation or Page Validation.
    A look to the APEX user manual will help with more examples on this.
    Regards Dino.

  • Field level help always shows homeID URL

    I implemented context-sensitive help of 2 types:
    1. Field level help - triggered from a menuitem using:
    menuitem_CSH.addActionListener(new CSH.DisplayHelpAfterTracking(mainHS, "javax.help.Popup", null));
    2. Help key (F1) type help - using:
    mainHB.enableHelpKey(getRootPane(), "top", mainHS);
    Point 2 type help works perfectly - which implies that my MAP file & setHelpID...() stuff is alright.
    CSH.setHelpIDString(jbtnConfigure, "config");
    CSH.setHelpIDString(jbtnAlarms, "gettingstarted");
    Point 1 however always displays the URL of the homeID. I've tried all kinds of things but can't get this to work.
    Am I missing something here? Any help/pointers would be appreciated.

    maybe something like this will work.
    works OK for System.exit(), other options??
    click into the 2nd textfield, message displays
    click the menu items, no message
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    class Testing extends JFrame
      JMenu file = new JMenu("File");
      int counter;
      public Testing()
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setLocation(400,200);
        JMenuItem exit = new JMenuItem("Exit");
        file.add(exit);
        JMenuBar menuBar = new JMenuBar();
        menuBar.add(file);
        setJMenuBar(menuBar);
        JTextField tf = new JTextField(10);
        tf.setInputVerifier(new MyVerifier());
        getContentPane().add(tf,BorderLayout.NORTH);
        getContentPane().add(new JTextField(10),BorderLayout.SOUTH);
        pack();
        exit.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            System.exit(0);}});
      class MyVerifier extends InputVerifier
        public boolean verify(JComponent input)
          if(((JTextField)input).getText().equals(""))
            if(file.isSelected() == false) System.out.println("Invalid "+counter++);
            return false;
          return true;
      public static void main(String[] args){new Testing().setVisible(true);}
    }

  • Field level Authorization configuration in SAP BO issue !!!

    Hi gurus,
    I want to create field level authorization at query level and use the same at BO web Intelligence. (Ex if i h ave company code as A,B,and C. and if i have created a rolehe users  where only A and C is assigned so when i crreate a webi where users should only able to select comapny code as A and C only.)
    Now i want to know the steps to configure the same in BO for roles import and SAP authentication setting.Please do tell the pre-requisites .I got lot of links but am still confused.
    So please provide exact steps and setting to configure the same.
    Thanks &Regards,
    Montz
    Edited by: montz2006 on Jun 27, 2011 9:05 PM

        AUTHORITY-CHECK OBJECT 'S_TABU_LIN'
          ID 'ORG_CRIT' FIELD 'MOLGA'
          ID 'ACTVT' FIELD '03'
          ID 'ORG_FIELD1' FIELD '10'
          ID 'ORG_FIELD2' FIELD '*'
          ID 'ORG_FIELD3' FIELD '*'
          ID 'ORG_FIELD4' FIELD '*'
          ID 'ORG_FIELD5' FIELD '*'
          ID 'ORG_FIELD6' FIELD '*'
          ID 'ORG_FIELD7' FIELD '*'
          ID 'ORG_FIELD8' FIELD '*'.
        IF sy-subrc NE 0 .
          MESSAGE e000 WITH 'No Authorization for area' v_text.
        ENDIF.
    Use S_TABU_LIN authority object for field level authorizations.

  • Question on field level help and bookmarking

    Hi All
    I have a question about field level help and bookmarking fields.  I did this before but i can't remember how.  Right now, when you click on a field in my help to access our software application the page displays but at the top and not at the exact field description.  I don't remember how I did this in my other help files.
    Please help me so I can bookmark my field level help to go exactly to my definition on the page and not just the top of the page everytime.
    Thanks
    Caryn

    Hi Martin!
    Take a look at these sites which will provide you more information about your problem.
    [http://apex-at-work.blogspot.com/2008/10/apex-select-list-with-dynamic-help-text.html|http://apex-at-work.blogspot.com/2008/10/apex-select-list-with-dynamic-help-text.html]
    TRICK: Dynamic Item Help Text as Tooltip
    [http://apex.oracle.com/pls/otn/f?p=11933:121|http://apex.oracle.com/pls/otn/f?p=11933:121]
    Regards,
    Tobias
    [http://apex-at-work.blogspot.com/]

  • HELP!  JOB ON THE LINE-  Need to import fields from one document to another document

    In a nutshell I have a set of documents and we now have a new structure for those documents. Either I have to cut and paste all the data from one to another or figure out how to import fields to another document.
    I have two documents. Both are different but require the same information. Basically I need to have one file with fields import specified fields from another document. Ex., Name on document 1, I need the file to know to get the Name field on document 2 and import it into the specified field on document 1. I will have multiple fields that need to do this importing. I REALLY NEED TO FIGURE THIS OUT B/C I HAVE A TON OF DOCUMENTS THAT NEED TO BE COMPLETED.

    If you are talking about the field structure, not the content that Bernd commented on, make a copy of the document with the fields. Open the file and use replace pages to replace the pages with the new document layout. After you have replaced the pages, you will have to select the field tools and move the fields to the proper location. If the form was made in Designer, I am not sure of the process. There is likely a similar process in Designer, but I don't use Designer and can't comment. You may have to go to the Designer forum in such a case, unless other Acrobat users here can help.

  • Exporting and importing just table definitions

    Hi,
    I have this production database that has a huge amount of data in it. I was asked to set up a test database based on the exact same schema as the live database. When I tried to do an export (from live) and import (to test), with the parameters rows=N and compress=y, the target (test database) data file will still grow enormously, presumably because of the huge number of extents already allocated to the table in the live database. My test database of course, has a limited hard-disk space.
    Is there a way to export and import the table definitions without having the target database experiencing a huge growth in the size of the tablespace?
    Thanks,
    Chris.

    If an export with compress=n is still creating initial extents that a too large, you can still build with the import file but it will take a little work.
    run imp with indexfile=somefile.sql
    when imp is finished, edit somefile.sql by:
    1. remove all the REM statements.
    2. remove all the storage clauses (tables and indexes)
    Make sure your tablespaces have a small (say 1k) default initial extent.
    run imp again with rows=n
    All your tables and indexes will be created with the default tablespace initial extent.

  • How to populate the Error stack during error records in field level routine

    hi,
    I am capturing the error records in Field level routine in transformation. now i want these records to reflect in error stack.
    i am using 'Append monitor-rec to MONITOR' at the moment but i cant see any records in error stack.
    but when i am using the same statement in start routine i am getting records in error stack.
    can anyone please help as to how can i populate error stack through field level routine?

    Hi,
    Try to do it in the end routine instead of the field routine.
    It should work.
    Regards,
    Joe

  • E-Recruitment - Requisition - Infotype Field Level Change Log

    Hi Experts,
    We are implementing SAP E-Recruitment, and would like to know how to capture the changes made in Requisition at infotype field level.
    For example: If a support team member is added/delete in the Requisition (Tab - Support Team), then these changes (NEW/DELETE) at the infotype field level are required.
    I have tried to maintain the infotype and the required fields in V_T582A, V_T585A, V_T585B and V_T585C. But didnt get any result when I executed the report RPUAUD00. Is there any additional configuration required for this?
    Please adivse.
    Thanks and Regards,
    Dinakaran R

    Hi,
    You can just to that with the infotype table log. Support team is stored in table HRP5131.
    Regards,
    Nicole

  • JDeveloper 11.1.1.2.0 - Help text at field level

    Hi,
    We are making use of the Help.properties file to produce field level text. I have field's such as the following
    <af:inputText value="#{bindings.DocumentName.inputValue}"
                                    label="#{bindings.DocumentName.inputValue eq null ? ''  : bindings.DocumentName.hints.label}"
                                    required="#{bindings.DocumentName.hints.mandatory}"
                                    columns="#{bindings.DocumentName.hints.displayWidth}"
                                    maximumLength="#{bindings.DocumentName.hints.precision}"
                                    shortDesc="#{bindings.DocumentName.hints.tooltip}"
                                    id="it4"
                                    autoSubmit="true"
                                    helpTopicId="WORKFLOW_EDITPURCHASEORDER_DOCUMENTNAME"
                                    readOnly="true"
                                    rendered="true"Is there a elegant way to disable the help text? e.g. provide a form level radio button to enable/disable help text? The only way i can think at the moment would
    be to set the helpTopidId to a key that doesnt exists using an EL expression.
    Regards

    Hi,
    I think what you suggest is the way to go in this case
    Frank

Maybe you are looking for

  • Dunning in ECC 6.0 UC_OBJECTS_NOT_CHARLIKE Dump

    Hi, We are doing an upgrade from 4.6 to ECC 6.0 and when we execute transaction F150 for dunning we get the following runtime error does anyone have any idea what might cause this or how to resolve it. Runtime Errors         UC_OBJECTS_NOT_CHARLIKE D

  • Why can I no longer make payments to itunes with my debit card?

    I have for many years used my ebit card as the method of payment on my account, but last month it failed and now wont accept the details at all. Any help welcome as I dont have a credit card.

  • Multi mapping before BPM and then message routing to different IDocs

    I am working on PI 7.0. I have a scenario where a message from a third party needs to be split and then mapped to multiple IDocs in the target. This decision happens based on an RFC call to SAP ECC. Before the message passes to BPM, I have done a mul

  • GMA 950

    Hello- I have a Summer 2006 White MacBook, and I really want to get the Sims 3 which is coming out in about a month. I just found out that "This game will not run on PowerPC (G3/G4/G5) based Mac systems, or the GMA 950 class of integrated video cards

  • Purchase requisiton/RFQ/Q/PO what we do configuration settings

    pls guide what we do configuration settings PR/RFQ/Q/PO ? In real time project shall we use standard document types or configured documents use it ? in what situation get the situation to crate the new document types?