Domains and Logical Types in Data Modeler

Been out of serious design work for a long time. Can someone provide a good pointer to descriptions on Domains and Logical Types and presented in the Data Modeling tool?
For instance I am having trouble tracking the following distinctions:
Domain Logical Type
LongText Varchar
ShortText Char
Text Char
NText NTEXT
NVarchar NVARCHAR
CHAR and VARCHAR are listed as Logical Types but not Domains. There is a TEXT logical type, but ironically, it does not correspond to the Text Domain. Varchar2 appears in neither list. I believe I ready the N* domains/types are for international characters (multi-byte?), but basically see no pattern here so was hoping someone could straighten me out.
Thanks,
Robert Kuropkat

Hi Robert,
Logical types are abstraction for native data types in supported databases. You need logical types if you want to import from database or DDL script (mapping of native to logical is important here) or want to generate DDL script (mapping of logical to native). You can delete all logical types (only "unknown" has importance) and create your own logical types. In this case you have to map them to native database types. If you use only Oracle database then you can delete types related to other databases. Of course you can rename existing logical types if you don't like how they are named.
Domains are based on logical types - you need logical type in order to have valid domain definition. Provided domains are just sample. You can delete them - the only important here is "unknown". You can create two types of domains (it's usage point of view) - 1) per installation - common for all designs; 2) per design - they appear only for design they are defined. You also can import domains.
Also domains are automatically created during import of DDL script - it's kind of data type aggregation - domain is created for each used data type.
Best regards,
Philip

Similar Messages

  • Domains usage in SQL Developer data MODELER

    Hi,
    I'm trying to understand how to use Domains in Oracle SQL Developer Data Modeler. We use version 3.1.3 .  before I used Toad Modeler  where domains are just part of your main design.
    Oracle data modeler has some different concept.
    let's assume I'm working on 2 designs:  DesignA and DesignB that include relational models.
    DesignA and Design B should use domains but list of domains in design A is very different than in design B.
    Default domain file is located on c: drive where SqlModeler is installed. It is obviously unacceptable , so I need to change Default System Type directory in preferences.
    And of course I want to have different domain directories for DESIGN A and DESIGN B.
    So when I open design A then I changed   Default System Type directory  let's say to x:\AAA.   Then i close design A and open Design B and change Default System Type directory to x:\BBB
    I checked folders AAA and BBB and they  have necessary XML files there:  defaultdomains.xml, defaultRFDBSSites and so on....
    Now questions:
    can I rename defaultdomains.xls to something else like AAAdomains.xls?  Domain administration can edit any domain file with any name , but how  can I associate certain domain file with my design?  My wish , when I open my design , then corresponding domain file will be open automatically.  Is it possible?
    If I open 2 designs in Sql Modeler and switch between designs  then corresponding domain files should be changed automatically as well.  Currently   I shouldn't forget to change default System Type directory every time when I switch models.  Is it the only way to handle it?
    Thanks
    vitaliy

    Hi Vitaliy,
    We use version 3.1.3
    I recommend always to use the latest version. If you don't want to use beta (DM 4.0 EA is out) you can use DM 3.3.
    Otherwise Oracle SQL Developer Data Modeler supports two types of domains:
    1) DM installation domains - those in file defaultdomains.xml
    2) Design level domains - they are stored in design directories and are visible to particular design only. They can be created in following ways:
    2.1 Manually - there is a property "Domains file" and you id it's not set "defaultdomains" domain will become design level domain and will be stored in file with provided name (without .xml extension)
    You can change later the file for design level domains, however you cannot change file for domain already in defaultdomains.xml.
    2.2 Using types to domains wizard you can generate design level domains
    2.3 Design level domains are created during import of  DDL files (controlled in preferences)
    2.4 You can import domains from specific file with domains using "File>Import>Domains" - you need to rename the source file if it's named defaultdomains.xml otherwise you'll get domains as installation domains
    If the list with domains is too long you can define  a list with preferred domains (or/and logical types) in "Preferences>Data Modeler>Model" and you can use shorter list in Table/Entity dialog if check "Preferred" check box next to "Type:" combo box.
    If I open 2 designs in Sql Modeler and switch between designs  then corresponding domain files should be changed automatically as well
    If you open 2 designs in one instance of DM they will use the same file with default domains i.e. you'll lose domains in one of design depending of setting for "system data type directory". You need to go with design level domains.
    Philip

  • What kind of real time problems and issues arise in Data Modelling

    Hellooo experts,
    I am not a BW expertise, so just want to gather some knowledge on Problems and issues related to DATA MODELLING, if any body have a document or a link can you please snd it to [email protected] or reply to this post. I promise to reward you for proper answers hope this is the way i say thanks for your help.
    kishore

    hi kishore,
    The first and most important problem is to understand <b>Clients requirement</b>. Clients even some time not aware of how to utilize efficiency of BW, as they are very much use to with traditional SAP R/3 reporting. So most of time we have to suggest options to client.
    If we come to technical aspect, than identifying <b>Key Figures and Characterstics</b> is the most important task. And how you map that to <b>available infoobjects</b>. Attributes also plays major roles, like which attributes is better to use as navigational one and which as exclusive attribute.
    Their is long list for data modelling issues, its better you refer either <b>Mastering BIW</b> book by Mac'Donalds. And SAP Help Library is also having good material.
    regards,
    kamaljeet

  • Can SAP leverage MM and classification (CL-system) data-model?

    Dear all,
    At the moment I’m working for a telecom company, setting up the Functional Management department activities to manage 2nd line support calls, and general overall application functional support.
    One of the issues is simplifying the work of monitoring Item (products, articles etc.) Master Data. Below you can see the data model where Items, their classes, the characteristics of classes and prices are stored. 
    The Legacy system has the following data-model (as ERD, <a href="http://sapparking2007.freehostia.com/LegacyModel.JPG">LegacyModel</a> )
    Main Product (i.e. Nokia 6110)
         - has zero, one or more Characteristics (i.e. 220v cord, 3v battery etc.)      
         - has zero, one or more Variants (i.e. Nokia 6110i,  Black, Red etc.)
         A Variant  (Nokia 6110i, Black)
              - has zero, one or more Characteristics (i.e. 200h stand by time etc.)      
              - has zero, one or more Deliveries (i.e. we sell “a package”)
              A Delivery (certain combination of a package : Nokia 6110i, Red, Prepaid, 1 year)
                   - Has zero, one or more Characteristics (i.e. prepaid simcard, free service etc.)
                   - Has zero, one or more Delivery Prices (i.e. prices)
                   A Delivery Price
                        - Has zero, one or more Characteristics (i.e. 1 month warenty)
                        - Has zero, one or more Prices (i.e. offer price, sales, periods)
    Well, almost perfectly normalised data-model.
    The implementation in SAP is as follows:
    Main Products , Variant and Deliveries are all stored in table MARA.
    Product is Artikeltype Z01A,
    Variant is type KMAT,
    Deliveries is type HAVA and DIEN.
    See image:
    <a href="http://sapparking2007.freehostia.com/Model01.JPG">Current Data Model</a>
    The Characteristics are stored in table CABN etc…
    The prices are stored in the SD table KONP .. (price condition). etc.
    The MARA table is connected to Classes table (KSSK) via the INOB table.
    Classes are connected to Classes with in de KSSK table.
    The filed that stores Class in the KSSK and the field that stores the Class below are 2 different type of fields (18C , and 50CN)  and they would simply wont join in a SAP query.
    The filed that stores Item to Class in the INOB and the field that stores the Class in the KSSK are 2 different type of fields (18C , and 50CN)  and they would also wont join in a SAP query.
    Therefore we have created extra Z. “Tables” (Types actually) that does the join for us.
    Functional Management personnel – are not ABAP and SQL people. So we have to keep it simple.
    After a training session – it proved to be still too complicated. After a Change Request, to create the product structure in a separated, single table, has resulted in a batch job, that create the file periodically, but not all of it. And – at the end, you never know if your data is up-to-date.
    To me it seems logical – to add a (derived) field to the KSSK and the INOB to accumulate the underlying class with the same attributes as the MARA and KSSK, so it can be properly joined. But here there is too much resistant in conjunction with SAP releases etc. AND it seem to be impossible (not sure) to define a “type table” with a derived field.
    To let programmers produce more ABAP is not a clean option either, and yes I realise one can create a sap query on a single table, and add a long SQL statement on Record level.
    So the question:
    -     Is this implementation “the best” possible in SAP?
    -     How to overcome the “unjoinable” friendly database?
    In other query tools it is possible to create “tables” as output (on the fly), where the tables can be used as input tables in a next query, and can be joined further.
    -     Is this somehow possible in SAP?
    I wonder if anyone can shade some light on this approach. We have 2 FTE to monitor 2.5 million products combinations, and the propagation of this data to over 30 sales channels – daily.    
    Thank you in advance for taking the time!
    Kind Regards,
    Doron.

    Ashish:
    Please search the space threads before posting.  There are several posts where this is already covered.
    regards,
    bill.

  • Object Types Attributes (Data Modeler 3.0 EA1.)

    Hi,
    Will the attribute object type support in data modeler be upgraded to the same functionality as column relational table support in 3.0? For relational columns I can attach a domain to a column, I can't attach a domain to an attribute in an object type. Also for a column I can define a 'Units', that is VARCHAR2 (30 BYTE) orVARCHAR2 (30 CHAR). If can't do this with the (Data Modeler 3.0 EA1.) for an object type's attribute. Will this be included?
    Thanks,
    Scott

    Sue,
    Thanks to you and your team for extending this to the object type (structured type) portion of SDDM 3.3 EA1 and 3.3 EA2. The object type portion of SDDM is pretty robust now for modeling and actually generating useable structures in the database (Oracle) now. With 3.3 EA2 at this point it will be much easier to take advantage of the object type features in the database and our applications. I have been waiting since Oracle version 8 for the tools team to provide a modeling tool that mirrors the functionality the server team has provided when it comes object types.
    Thanks for this in SDDM 3.3 EA1 and SDDM 3.3 EA2!
    ScottK

  • Logical Vs Physical Data Model

    Hi guys
    What is the difference between logical data model and physical data model.

    I assume you are talking about ERwin.
    In short,
    Logical data model is non-database specific model you can apply it to any database by convert it to target physical data model.
    Physical data model is database specific, for example, column data type, physical storage parameter, SQL syntax etc.

  • ECC Client export and import with BW data model

    Dear BW Expert,
      We are now have BW QAS system which is connecting to ECC600QAS.
      Now we are going to:
         First  >> Export data ECC600QAS.
         Second Drop this client
         Third Create client with the same logical name as ECC600QAS and then import again with the same logical system name is ECC600QAS. Ofcourse we will re-establish again connection between ECC600QAS and BW QAS.
      In this case, do we need to create all data model or mapping data in BW again. Please help on this.
    Thanks and Regards,
    Kim Cheo.

    Hi Reddy,
      All your notes do not mention anything about in case Client refresh with the same logical name.
      Our case is that we do:
          Step 1:         Export client logical name is "ECC600QAS".
          Step 2:         Drop client "ECC600QAS"
          Step 3:         Import again and create the same client logical name "ECC600QAS".
          In this case do we need to create again all data model, mappying rule or transformation.
          Really, I can not found any idea there in all your note.
    Thanks and regards,
    Kim CheolYeon Lee.

  • Questions on Subviews and Import/Export in Data Modeler v3 EA1.

    I have a few questions about the capabilities of Data Modeler v3 EA1:
    1) Is it possible to rename subviews? Would like more meaningful names then Relational_x - Subview_x.
    2) Is it possible to save documents at subview level?
    3) Is it possible to import/export subsets of data?
    4) Having problems importing Erwin 7 .xml file, is there known problems with this import?
    Judy

    Hi Judy,
    1) To rename a subview just right click on it in the browser tree and select "Properties". In the properties dialog change the name and click OK button.
    2) You can save a subview as new Data Modeler design - from the File menu select Export -> To Data Modeling Design. In the newly opened dialog select the subview you want to export and click OK button.
    3) After saving a subview as new design (see answer #2) it can be imported in some other design (File -> Import -> Data Modeler Design).
    4) What kind of problems do you have with import of Erwin 7.* xml file?
    Regards,
    Ivan

  • Balanced Scorecard and its corresponding BW Data Model?

    Hi...
    I am doing a Strategy Management scenario in SAP SEM and have developed measures.Next, when creating the BW data model i am facing problem in identifying the key figures that i should be using in the cube.I am providing the list of measures, please tell me the base key figures that i should include in the cube. Will be of great help.
    Measures:
    Economic Profit, Capital Charge Method
    Net Operating Profit after Tax
    Earnings Before Interest and Tax
    Earnings Before Interest, Taxes, Depreciation & Amortization
    Shareholder Value Added
    Return on Equity
    Return on Assets
    Internal Rate of Return
    Present Value of Investment Projects
    Annual Net Income (Balance Sheet)
    Asset Turns
    Present Value of Investment Projects
    Net Sales
    Sales Growth
    No. of Projects Targeted for Sales Growth
    Net Sales from New Customers
    Net Sales from New Products
    Sales Growth from New Products
    Sales Share of New Products
    Sales Share of New Customers
    Share of Customers' Total Expenditure
    Degree of Overlap Own Prod. List  / Competition
    Share of the Addressed Customer Segments
    Share of Customers' Total Expenditure
    Sales Growth from New Products
    Sales Share of New Customers
    Number of Newly Developed Applications
    Share of R&D Expense for Applied Research
    Share of R&D Expense for Basic Research
    Number of Development Teams with Customer Involvement
    Share of Customers with Partnership
    Number of Development Teams with Customer Involvement
    Average Length of Service
    Training Investment Per FTE
    Training Staffing Factor
    Annual Investment in Technologies
    Average Length of Service
    Employer-Initiated Turnover Rate
    Employee-Initiated Turnover Rate
    % Employees with Remuneration Related to Goal Achievement

    Samik,
    The measure you have given can be classified as
    Finance
    Economic Profit, Capital Charge Method
    Net Operating Profit after Tax
    Earnings Before Interest and Tax
    Earnings Before Interest, Taxes, Depreciation & Amortization
    Shareholder Value Added
    Return on Equity
    Return on Assets
    Internal Rate of Return
    Present Value of Investment Projects
    Annual Net Income (Balance Sheet)
    Asset Turns
    Present Value of Investment Projects
    Net Sales
    Sales Growth
    Customer service
    No. of Projects Targeted for Sales Growth
    Net Sales from New Customers
    Net Sales from New Products
    Sales Growth from New Products
    Sales Share of New Products
    Sales Share of New Customers
    Share of Customers' Total Expenditure
    Degree of Overlap Own Prod. List / Competition
    Share of the Addressed Customer Segments
    Share of Customers' Total Expenditure
    Sales Growth from New Products
    Sales Share of New Customers
    Business Process
    Number of Newly Developed Applications
    Share of R&D Expense for Applied Research
    Share of R&D Expense for Basic Research
    Number of Development Teams with Customer Involvement
    Share of Customers with Partnership
    Number of Development Teams with Customer Involvement
    Internal learning
    Average Length of Service
    Training Investment Per FTE
    Training Staffing Factor
    Annual Investment in Technologies
    Average Length of Service
    Employer-Initiated Turnover Rate
    Employee-Initiated Turnover Rate
    % Employees with Remuneration Related to Goal Achievement
    accordingly look for the base key figures for the same. I would not put a finger to many , but essentially for finance look at FI data - especially GL postings , cost center postings , AR/AP etc
    for Customer Service - CRM data would help , Sales Data - SD - invoices , orders etc
    Internal - HR
    business processes - depends on the system
    Also the key figures for the same depends on the business rather than a generic business model that would fit all. First you will have to study the business process and understand the business rules and operating conditions before proceeding.
    Arun
    Assign points if helpful

  • Is it possible to add support for new database type in Data Modeler?

    Hi,
    I see that Data Modeler v.4 supports different versions of Oracle, DB2 and MS SQL. Is it possible to add support for a new database family,
    PostgreSQL for example? I hoped that RDBMS Site editor can do it, but so far I don't see any possibility to add XML files with metadata for a new RDBMS.
    I did it previously for PowerDesigner were it is possible to add and modify definitions for new relational databases.
    Thank you,
    Sergei

    There is discussion option as an out of the box feature. Check this: BI launch pad 4.0: Participate in a discussion about a document

  • Subasignment and Movement types in Data colletcion

    Hi
    How to upload reported data first only with all subasignment (Trading Partner, Segment, other Customs) but without Movement Types (MT) and after this load again but only with MT?
    If we do in that order we have double value for item. BDC reguired value for subassignments. For MT it's not necessary to provide ifnormation with other subasignments.
    Sholud we use AFD function for that or there is other way to do this.
    Thanks,
    Pawel

    Thanks Dan
    1. Beacuse BDC are required and MT can not be upload with other subbasignements we must use double values - but when we have doubled values on item (one with subbasignements, other just only with MT) is correct for further BCS process (CoI, IU Eliminations, Reclasyfication, Currency Translation) ?
    2. What about posting MT on statistical items? I mean first upload reported data with subbasignements (without MT) on BS items and then upload MT on statistical items (statisticla items = BS items created as statistical. In our case Equity and Investments are posted in one upload with MT and other subbasignments, so for CoI should be correct (read from Total Record)?
    regards,
    Paweł

  • Data Dictonary generation from SQL Developer Data Modeler.

    Hi,
    How can I generate a comprehensive data dictionary using this tool in a flexible way? I tried with Export -> To CSV option but it generated lot of CSV files with lot of unnecessary information which are frustratingly scattered.
    regards,
    Dipankar.

    Hi Dipankar,
    "Export to CSV" is oriented to reporting, thus things are denormalized there. Information from logical and relational models is there, domains and logical types, usage of entities and attributes in data flows and processes in data flow diagrams. Export provides snapshot of your design and references there are valid for that snapshot.
    Best regards,
    Philip

  • Different LOV behavior between SQL query data model and data template

    I have noticed different behavior when using parameters linked to list of values (LOV) of type menu with the multiple selection option enabled and a SQL query data model vs a data template. Here's the example because that first sentence was probably really confusing.
    SQL Query:
    select
    plmc.MonthCode, plmc.ModalityDim, plmc.ModalityName,plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(:modalityDim,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (:modalityDim)
    then 1
    else 0
    end
    end
    Putting BI Publisher into debug mode, defining a data model of type SQL Query, defining a parameter called :modalityDim linked to a LOV that allows multiple selections, and selecting a couple of values from the LOV the output of the prepared statement is:
    [081607_122647956][][STATEMENT] Sql Query : select
    plmc.MonthCode,
    plmc.ModalityDim,
    plmc.ModalityName,
    plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(?,?,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (?,?)
    then 1
    else 0
    end
    end
    [081607_122647956][][STATEMENT] 1:6
    [081607_122647956][][STATEMENT] 2:7
    [081607_122647956][][STATEMENT] 3:6
    [081607_122647956][][STATEMENT] 4:7
    [081607_122654713][][EVENT] Data Generation Completed...
    [081607_122654713][][EVENT] Total Data Generation Time 7.0 seconds
    Note how the bind variable :modalityDim was changed into two parameters in the prepared statement.
    When I use this same SQL Query in a data template the output is:
    [081607_012113018][][STATEMENT] Sql Query : select
    plmc.MonthCode,
    plmc.ModalityDim,
    plmc.ModalityName,
    plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(?,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (?)
    then 1
    else 0
    end
    end
    [081607_012113018][][STATEMENT] 1:'6','7'
    [081607_012113018][][STATEMENT] 2:'6','7'
    [081607_012113574][][EXCEPTION] java.sql.SQLException: Syntax error converting the nvarchar value ''6','7'' to a column of data type int.
    Note the exception because it is trying to convert the multiple parameter values.
    Am I doing something completely wrong here? I really need to use a data template because I will need to link a couple of queries together from different database vendors.
    -mark

    This is for 10.1.3.4 - because in 11g every SQL query is automatially part of a data model.
    In 10g SQL query is for simple unrelated SQL queries.
    If you need to use advance features such as:
    a) multiple SQL queries that are joined in master-detail relation ships
    b) before/after report triggers
    Then you will need to use the data template, which is an XML description
    of the queries, links, and PL/SQL calls.
    hope that helps,
    Klaus

  • SQL Developer Data Modeler Viewer - domain datatypes

    I'm using the SQL Developer Data Modeler Viewer (that comes free with SQL Developer) to view a model that was created in Oracle SQL Developer Data Modeler (the chargeable product). The colums have all been defined using domain datatypes. I have an XML file defining the domains but I cannot see where in the viewer you can import a domian file into or where in the model's directory structure the file can be placed to be read by the viewer. Without this the columns are all showing as datatype 'Unknown'.
    Any help much appreciated, thanks.

    two set of domains can be maintained in Data Modeler:
    - per installation - they are in file defaultdomains.xml in "datamodeler\domains" directory
    - per design - they are in "domains" directory under your design directory -
    "Per installation" domains are used in your case - "per design" domains are "attached" to design - when you send the design to someone else, they are in design structure.
    Your solution - to get defaultdomains.xml file from installation where design is created and to put it in your "datamodeler\domains" directory.
    Philip

  • Logical Data Model Vs Physical Data Model

    Hi guys, what is the difference between, logical data model and physical data model.

    Duplicate Thread:
    Logical Vs Physical Data Model
    Daljit Singh

Maybe you are looking for