PO Modeling help

hello, I have a question about modeling. i need to create a report where users want to see po status by each month. example: PO 12 was open in January 2010 and was closed in Feb. 2010. now when user wants to run the report  for 2 months they want to see PO12 come up twice one for jan and one for feb for jan it should come up as open and closed for feb. and if it reopens then they want to see that too. how do i model this type of data? thanks.

i did a similar thing for notifications. tables and fields are different but the principle is the same:
notification is open as of the month were the createdon date is in, lets call this month ST_MONTH
notification is closed when status 'NOCO' is available and the corresponding 'NOCO' date we'll call E_MONTH.
what we get from R/3 is a list of notifications.
this get's loaded in a first DSO_1.
then we load it in a second DSO_2.
the transformation from DSO_1 to DSO_2 is an expert routine.
data coming from R/3 looks like :
Notif ST_MONTH E_MONTH erdat          noco
  1       062010       082010   20100603  20100815
what we want is
notif  month     open closed
1       062010   X
1       072010   X
1       082010             X
so in the expert routine we made a loop, staring from the month of the ST_MONTH.
we added one line (insert in result package) for this first loop.
then we add one to this month. we check if this month is smaller then E_MONTH (which is sy-datum(6) if there's no noco date.
if it's smaller we insert a new line and add again one to month...and so on till the month is equal to end_month. then we quit the loop and start with the next notif.
output in DSO_2 will be
notif  month      erdat             noco
1       062010   20100603  20100815
1       072010   20100603  20100815
1       082010   20100603  20100815
now we have a transformation from DSO_2 to IC_1.
in the cube we have 2 KF (KF_OPEN, KF_CLOSED)
for the open KF we have a rule :
if month ne noco_date(6). result = 'X' (or 1, depending of how you want to report in the query, we have both)
for the closed KF we have a rule :
if month eq noco_date(6). result = 'X'.
this is how we set it up. this is the simplified version, but in reality it needs some complex abap coding due to all kind of exceptions and so on.
if you have problems with the above let me know.
M.

Similar Messages

  • XML Data Server and model help

    All,
    I have the following files
    1) travel.dtd
    2) travel.xml.
    I've set up a XML data server with JDBC driver com.sunopsis.jdbc.driver.xml.SnpsXmlDriver and URL = jdbc:snps:xml?d=c:/XML/travel.dtd. I have created a model in designer and have successfully reversed the datastores generated from the dtd.
    The travel.xml file has data populated within it, but when I right click on the datastores, there is nothing displayed. This makes sense because the xml server is configured to point at the .dtd. Do I need to change my topology connection to connect to the xml document as opposed to the dtd. Can someone tell me what i'm missing?
    thanks for your help.

    Since its not displaying anything as you are saying you just change the property to "f" and check.
    Example
    jdbc:snps:xml?f=/xml/myxml.xml&d=/xml/myxcd.xsd&s=MYSCHEMANAME
    ("s=MYSCHEMANAME": This schema will be selected when creating the physical schema under the XML data server.)
    Hope it helps.
    Thanks

  • I have the problem are part of Model.helping to me

    Here is first time I do this type.
    Inside Models:
    Menu.cs
    public class Menu
    private string _iconThumb;
    public string IconThumb
    get
    return _iconThumb;
    set
    if(value!=_iconThumb)
    _iconThumb = value;
    and MainModels.cs
    public class MainModels
    public ObservableCollection<Menu> Menu { get; private set; }
    /// <summary>
    /// Loading all of information menus to Listbox.
    /// </summary>
    /// <returns></returns>
    public ObservableCollection<Menu> MenuLoad()
    Menu = new ObservableCollection<Menu>();
    new Menu() { IconThumb = "/Photos/align_justify-50.png" };
    new Menu() { IconThumb = "/Photos/music_video-50.png" };
    new Menu() { IconThumb = "/Photos/christmas_star-50.png" };
    new Menu() { IconThumb = "/Photos/user-50.png" };
    return Menu;
    MainPages.cs
    Models.MainModels Main = new Models.MainModels();
    public MainPage()
    this.InitializeComponent();
    loaddata();
    //Loading menu in main
    private void Menu()
    lstMenu.ItemsSource = Main.Menu();
    The photo is just show my issue in there.

    Hi Grey Herney,
    Based on your code, you have defined the Menu as following:
    public ObservableCollection<Menu> Menu { get; private set; }
    So we can not use it as a method like following:
    lstMenu.ItemsSource = Main.Menu();
    Please try to call the MenuLoad() for instead:
    lstMenu.ItemsSource = Main.MenuLoad();
    Besides, please modify this code:
    public ObservableCollection<Menu> MenuLoad()
    Menu = new ObservableCollection<Menu>();
    new Menu() { IconThumb = "/Photos/align_justify-50.png" };
    new Menu() { IconThumb = "/Photos/music_video-50.png" };
    new Menu() { IconThumb = "/Photos/christmas_star-50.png" };
    new Menu() { IconThumb = "/Photos/user-50.png" };
    return Menu;
    To the following code, since with the above code we can not add the value to the Menu ObservableCollection:
    public ObservableCollection<Menu> MenuLoad()
    Menu = new ObservableCollection<Menu>();
    Menu.Add(new Menu() { IconThumb = "/Photos/align_justify-50.png" });
    Menu.Add(new Menu() { IconThumb = "/Photos/music_video-50.png" });
    Menu.Add(new Menu() { IconThumb = "/Photos/christmas_star-50.png" });
    Menu.Add(new Menu() { IconThumb = "/Photos/user-50.png" });
    return Menu;
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • MVC DataSet to Model Help Needed

    Primary Question:  I need help to efficiently go from a dataset directly into a model (not a list).  
    I know the code for generating a list to model, but I can't find an efficient way to just input the first matching record into the model.  
    Any help is appreciated!
    Below is the code that works, but is very inefficient.  The inefficiency is causing problems because I need to program a lot of data retrieval while I'm rewriting the whole system.
    Bonus Question...  I can't get the list result to sort by UPPER(lastname).  It generates the error 
    Error [42S22] [Microsoft][ODBC Visual FoxPro Driver]SQL: Column " is not found.
    // CODE THAT WORKS BUT IS WAY TO INEFFICIENT
                Studrec model = new Studrec();
                DataSet dataset = new DataSet();
                string Path2File = "Provider=MSDASQL/SQLServer ODBC;Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;Exclusive=No;Collate=Machine;NULL=NO;DELETED=YES;BACKGROUNDFETCH=NO;SourceDB=\\\\LocalServer\\Students\\DBFS";
                using (OdbcConnection cn = new OdbcConnection(Path2File))
                    var sql = "select studid, first, lastname,grade,homeschl,lastname,birthday,address,address2,program,city,state,zip,phone,sex,specneeds,allergies,medical,lifethreat,c1lastname,c1frstname,c1relat,c1hmphone,c1wkphone,c1cell,c1canpup,c2lastname,c2frstname,c2relat,c2hmphone,c2wkphone,c2cell,c2canpup,c3lastname,c3frstname,c3relat,c3hmphone,c3wkphone,c3cell,c3canpup,c4lastname,c4frstname,c4relat,c4hmphone,c4wkphone,c4cell,c4canpup,c5lastname,c5frstname,c5relat,c5hmphone,c5wkphone,c5cell,c5canpup
    from studrec.dbf order by lastname, first where studid like '%" + @studId.Trim() + "%'"; 
                    using (OdbcCommand cmd = new OdbcCommand(sql, cn))
                    cn.Open();               
                    OdbcDataAdapter DataAdapter = new OdbcDataAdapter(cmd);
                    DataAdapter.Fill(dataset); 
                        List<Studrec> student = dataset.Tables[0].AsEnumerable().
                              Select(dataRow => new Studrec()
                                  StudId = dataRow.Field<string>("studid"),
                                  First = dataRow.Field<string>("first"),
                                  LastName = dataRow.Field<string>("lastname"),
                                  Grade = dataRow.Field<string>("grade"),
                                  Homeschl = dataRow.Field<string>("homeschl"),
                                  Address = dataRow.Field<string>("address"),
                                  City = dataRow.Field<string>("city"),
                                  State = dataRow.Field<string>("state"),
                                  Zip = dataRow.Field<string>("zip"),
                                  Prog = dataRow.Field<string>("program"),
                                  Phone = dataRow.Field<string>("phone"),
                                  Sex = dataRow.Field<string>("sex"),
                                  Birthday = dataRow.Field<string>("birthday"),
                              }).ToList();
                              //}).FirstOrDefault();   // THIS DOESN'T WORK
    //THIS IS MY WORK AROUND
                        model.StudId= student.First().StudId;
                        model.First=student.First().First;
                        model.LastName=student.First().LastName;
                        model.School=student.First().School;
                        model.Grade=student.First().Grade;
                        model.Address = student.First().Address;
                        model.City = student.First().City;
                        model.State = student.First().State;
                        model.Phone = student.First().Phone;
                        model.Sex = student.First().Sex;
                        model.Birthday = student.First().Birthday;                

    Hello,
    Specifically, this should be asked in the
    ASP.Net MVC forum on forums.asp.net.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Reagarding ORG model help

    HI,
    I am new to CRM and learning CRM.i have created org model by creating marketing,sales and service structure.
    everything works fine.
    but my issue is when i click in service org tab and in function i am selecting service and service org.then i am going to sales org structure and click on it in function i see service is enabled where i have enabled sales before .In same case if i m scrolling through marketing and going to service structure then in service structure in function tab marketing is enabled.
    Can any body tell me any functionality is available in sap CRM to restrict above structure once i have saved it .it will be as usual irrespective If I scroll to different structure.please help me regarding this.
    Reagrds,
    Debesh

    HI,
    i have created all the sales structure,marketing and service structure and saved it.
    when i go to change mode in org model when i check in sales structure in sales org in function tab sales is selected after that when i go to marketing structure  and check there i see in function tab sales is enabled and in attributes too sales is enabled.
    In this case R/3 is not integrated .Could you please suggest how can i restrict this  so that in future in change mode when i go to org model will check in function tab everything will be ok?
    Regards,
    Debesh

  • Web Dynpro Model help

    I have a Web Dynpro application in which a user will enter information and click a button to call an RFC.  The RFC then returns data to a new view.  The user can make changes to this view, and will hit a button to call a BAPI.  I am using a custom controller.  I am not sure how to feed the results from my RFC to my BAPI.  Can someone give me some pointers as to where to begin?

    Hi Maz,
    Follow This Procedure,
    Create Model:
    Create a new Model for Your Webdynpro Project.
    Name your Model and Give The R/3 Login details
    After successful login select your RFC FM module/BAPI
    Add your Model to component.
    Mapping:
    Do Mapping between Model and Your component controller.
    Do Mapping Between your component Controller and View
    Binding:
    Create Required UI elements.
    Bind your UI elements
    Code:
    Write a method to execute You BAPI.
    Create a Model Object in InitView and Bind it.
    Call execution method.
    Regards,
    <b>Ramganesan K</b>

  • DW Modelling - Help Pls

    Hi,
    We are building a data mart, where i am confused about where to put some of the attributes as they are on diffrent level & they are interrelated too.
    The business process is Meter Readings for electricity provider.
    Ooooops, here is my situation:
    I have got a Meter dimension where i am going to store all the properties.
    I have got an empolyee dim who reads these meters
    Here comes the bits which i m wrestling with ==> This is my heirarchy from HIGH to LOW
    Division
    Unit
    Branch
    in that company, whre each division has several units & each unit has several branches.
    1. Now, each employee belongs to some branch.
    2. There is another thing known as TRIP & ROUTE, where each trip can have many routes. For each Branch in a comapny some TRIP is assigned for the whole year. Each route will cover many Meters in its way.
    My problem is that these all the Entities are related to each other but are at different levels (Division, Branch, Trip, Route, Employee, Meter) as explained above. How do i fit them in Star schema. If i go for relations then there will b lots of snowfalking leading to performance issues in the future.
    Experts, please give me a helping hand & vision to achieve this.
    Thanks

    Hi
    There's no rule on earth that says one attribute must be on one table and one table only. If you have a need to have the same attribute in more than one place and you have the know how and means of getting it there, then you should denormalize. This is the whole point of data marts and data warehouses. We have to get away from the 3NF structures and go down a different path.
    What you're trying to end up with is a set of structures that have been designed to meet your reporting needs. In its most simplest form, this is in fact the definition of a data warehouse.
    Have you thought about having an ODS (Operational Data Store) with a series of materialized views? The ODS would be your base data warehouse system, probably star centric but not necessarily, with your summarized data in the materialized views being used for the first line of reporting. If need be, you can then drill down to the underlying ODS to get a more detailed look.
    Thus, don't get too drawn into there being only one way of doing things in a DW, there isn't. Sometimes, star schemas are best, sometimes not. Typically, you'll have a combination of the two.
    Does this help?
    Regards
    Michael

  • Macbook Late 2007 Model HELP!!!!

    My 2 yr. old snapped my restore disc in half, well, actually several pieces. I want to do a clean install, but it requires the "special" version of 10.5 that only came with the restore disc. Can anyone help?
    thanks

    I did call apple, but I don't want to pay for a set when I went out and purchased a retail copy of Leopard to take care of the problem, not knowing I needed a "special" version of 10.5. Of course, they will not return the copy of leopard so I can purchase the restore disc. Go figure.

  • Extremely slow 20" iMac G5 (iSight model) Help needed!!

    Hi Everyone
    Okay, I've spent the best part of the last two days troubleshoooting this machine for a friend of mine.
    SYMPTOM
    Her iMac is running slowly fullstop. It boots slowly and trying to perform any functions only results in the "beachball" pointer for a long time before the computer responds. Example: Clicking on the Apple Menu can take over a minute to display the options. Select an option and you wait over another minute before the computer displays the result. This is the same for anything you do - within the Finder or any other app!
    WHAT I'VE DONE SO FAR
    Okay, here is a list of everything that I've done so far:
    Disk Utility: Repaired disk permissions 3 times whilst booted in safe mode. No improvement!
    Disk Utility: Repaired disk permissions 2 times whilst booted in normal mode. No improvement!
    Disk Utility: Repaired disk 2 times whilst booted in normal mode. No improvement!
    Zapped PRAM 3 times. No improvement!
    Decided to take the plunge and eliminate the HD and OS as possible culprits:
    Started computer in Target Disk Mode and connected it to a PowerBook G4 (i.e. another PPC Mac)
    performed a backup
    Disk Utility: reformatted hard drive 3 times
    TechTool Pro: Read/Write Test on hard drive - passed!
    TechTool Pro: Surface Scan on entire hard drive - passed! (yes, all 488,397,168 blocks after 17hrs 25mins)
    reinstalled Mac OS X Leopard (10.5.6) from an original Apple retail DVD
    Booted iMac - now starts up in about 3mins 30 secs (as opposed to a lot longer earlier)Tried using the Finder to perform basic Mac OS X functions (e.g. open system preferences, access About This Mac, etc). STILL TAKES A LONG TIME - Very little improvement!!!
    Removed the 2GB DDR2 SDRAM from iMac's RAM slot
    Booted iMac - still starts up in about 3mins 30 secs
    Tried using the Finder to perform basic Mac OS X functions (e.g. open system preferences, access About This Mac, etc). STILL TAKES A LONG TIME - no improvement over having the extra RAM installed!!!
    Re-inserted the extra 2GB RAM DIMM back into iMac
    Ran TechTool Pro to test hardware (everything passes, including memory).
    Okay, so now I'm at a loss. Any suggestions would be most welcome and appreciated!
    Thanks!
    Joe.

    Actually, I haven't tried Rember, thinking that since the computer displayed the same behavior without the extra SDRAM installed as it does with it installed, that it couldn't be the RAM. And the factory RAM is soldered on, so I can't do anything about that. Still, RAM is what I was suspecting originally (after the HD), so I'll go ahead now and run Rember on it.
    Since you're online, I'd appreciate your opinion on something else I've identified. Since reinstalling the system, the computer boots a lot quicker than it was, but as I said it is still extremely slow performing functions once booted. HOWEVER, I've noticed that now once a particular function is performed once, it can be performed again and again quickly.
    EXAMPLE
    Clicking on the Finder icon in the Dock the first time takes the computer 26 seconds to open a finder window. Do it again and it appears instantly. Likewise, selecting clicking on the Trash icon in the Dock took 31 seconds the first time to open it up. After that it opens up instantly. It's the same with using the Apple Menu, etc.
    If I reboot the computer, the same thing happens all over again. Any ideas what this may mean?
    Thanks very much for your help!
    Joe.

  • Green Screen MPB Mid 2009 model HELP

    Hi, I bought my MBP January 2010, and have had no problems with it until this morning.  It was in sleep mode over night and when I turned it back on the screen on the MPD began to flicker and now there is a series of fuzzy green lines through out the screen.  I am running an external display and it is displaying perfectly.  There are two graphics cards installed; NIVIDIA GeForce 900M and NIVIDIA 9600M GT. I have switched between both cards and there is no change, which would lead me to believe that the graphics cards are not the problem (as stated in previous threads)
    Does anyone know what the problem might be, and if it was a design flaw at the manufacturing stage am i entitled to a free repair, bearing in mind that the MBP is now 2.5 years old

    It could be the display, it could be the cable.  Bring it to a genius bar for a free diagnostic test and they should be able to determine what the exact problem is and the costs involved.  Unless you have Apple care, I doubt that any repair will be free.
    Ciao.

  • How to Add and delete a row while using Abstract Table Model

    Hi,
    I need to do the following functionalities in JTable.I've done tht but a small problem.
    1. Adding a row (Using addRow() method from DefaultTableModel).
    2. Deleting a row(Using setRowCount() method from Default Table Model).
    3. Sorting the table based on the selection of column(Using TableSorter which is using AbstracTableModel).
    As the sorting is mandatory i've to change my model to Abtract Table Model
    The problem is this Abstract Table Model doesn't have any methods to Add a row or deleting a row (setRowCount()).If anybody has written any utility method for this using Abstract Table Model help me.

    Using TableSorter which is using AbstracTableModel).If your talking about the TableSorter class from the Swing tutorial, then you create the TableSorter class by passing it a TableModel. There is no reason you can't use the DefaltTableModel.
    I changed the code in TableSorterDemo as follows:
            String[] columnNames = {"First Name",
                                            "Last Name",
                                            "Sport",
                                            "# of Years",
                                            "Vegetarian"};
            Object[][] data = {
                {"Mary", "Campione",
                 "Snowboarding", new BigDecimal(1), new Boolean(false)},
                {"Alison", "Huml",
                 "Rowing", new BigDecimal(3), new Boolean(true)},
                {"Kathy", "Walrath",
                 "Knitting", new BigDecimal(2), new Boolean(false)},
                {"Sharon", "Zakhour",
                 "Speed reading", new BigDecimal(20), new Boolean(true)},
                {"Philip", "Milne",
                 "Pool", new BigDecimal(10), new Boolean(false)}
              DefaultTableModel model = new DefaultTableModel(data, columnNames)
                   public Class getColumnClass(int c)
                        return getValueAt(0, c).getClass();
            TableSorter sorter = new TableSorter(model);
    //        TableSorter sorter = new TableSorter(new MyTableModel()); //ADDED THIS

  • Spatial support in SQL Dev Data Modeler

    Hi,
    I am designing some tables using the new SQL Developer Data Modeler, and have added some columns which will store point clouds and TINs (both using the specialized Oracle data types). I have noticed in Data Modeler that the SDO_GEOMETRY data type is available to use as a column type, but the SDO_PC and SDO_TIN data types are not available for use. Or perhaps the column types for these data types are actually something else - perhaps integers (given that several tables may be used to store this specialized data)?
    Thanks,
    Matt

    Hi Matt,
    there are additional meta data related to spatial tables (and indexes) - Data modeler helps these data to be defined and properly registered in USER_SDO_GEOM_METADATA view. Also specific meta data for spatial indexes can be defined - unfortunately support for spatial indexes in dialogs is broken. Still table related spatial meta data can be defined and generated - see example below. You also can import spatial meta data from database (support is at Oracle 10g level) - you need to check "Spatial Properties" in "Data dictionary Import wizard".
    About SDO_Geometry data type and other types in MDSYS schema - SDO_Geometry comes predefined because of its importance for spatial table definitions - but that definition is incomplete (and still enough to be used). If you need complete definition of SDO_Geometry type or other types in MDSYS schema, you simply can import them from database and can use them in your model.
    Philip
    here is DDL with spatial meta data:
    - Generated by Oracle SQL Developer Data Modeler Version: 2.0.0 Build: 570
    -- at: 2009-07-22 00:12:29
    -- site: Oracle Database 10g
    -- type: Oracle Database 10g
    CREATE OR REPLACE TYPE MARKET_TYPE
    CREATE OR REPLACE TYPE MARKET_TYPE
    AS OBJECT
    SHAPE SDO_GEOMETRY ,
    NAME VARCHAR2 (32)
    ) NOT FINAL
    CREATE TABLE COLA_MARKETS
    MKT_ID NUMBER NOT NULL ,
    NAME VARCHAR2 (32 BYTE) ,
    SHAPE MDSYS.SDO_GEOMETRY
    ALTER TABLE COLA_MARKETS
    ADD CONSTRAINT PK_COLA_MARKETS PRIMARY KEY ( MKT_ID ) ;
    CREATE TABLE COLA_MARKETS_2
    MKT_ID NUMBER NOT NULL ,
    MARKET MARKET_TYPE NOT NULL
    ALTER TABLE COLA_MARKETS_2
    ADD CONSTRAINT PK_COLA_MARKETS_2 PRIMARY KEY ( MKT_ID ) ;
    CREATE TABLE LONG_LAT_TABLE
    LONGITUDE NUMBER ,
    LATITUDE NUMBER ,
    NAME VARCHAR2 (32 BYTE)
    INSERT INTO USER_SDO_GEOM_METADATA ( TABLE_NAME , COLUMN_NAME , DIMINFO , SRID )
    VALUES ( 'COLA_MARKETS', 'SHAPE' ,
    MDSYS.SDO_DIM_ARRAY (
    MDSYS.SDO_DIM_ELEMENT ('X',0,20,0.005),
    MDSYS.SDO_DIM_ELEMENT ('Y',0,20,0.005)
    NULL
    INSERT INTO USER_SDO_GEOM_METADATA
    VALUES
    'COLA_MARKETS_2',
    'MARKET.SHAPE',
    MDSYS.SDO_DIM_ARRAY (
    MDSYS.SDO_DIM_ELEMENT ('X',0,20,0.005),
    MDSYS.SDO_DIM_ELEMENT ('Y',0,20,0.005)
    NULL
    CREATE INDEX COLA_SPATIAL_IDX_2 ON COLA_MARKETS_2
    MARKET.SHAPE
    INDEXTYPE IS MDSYS.SPATIAL_INDEX
    INSERT INTO USER_SDO_GEOM_METADATA
    VALUES
    'LONG_LAT_TABLE',
    'GET_LONG_LAT_PT(LONGITUDE,LATITUDE)',
    MDSYS.SDO_DIM_ARRAY (
    MDSYS.SDO_DIM_ELEMENT ('Longitude',-180,180,0.005),
    MDSYS.SDO_DIM_ELEMENT ('Latitude',-90,90,0.005)
    8307
    ;

  • SQL Data Modeler Terms and Definitions

    Hello All,
    I am new to using the SQL Data Modeler and I was wondering if someone could point me to a list of definitions of terms that are used throughout the SQL Data Modeler interface. The help documentation does not seem to define most of the terms that are used in the product.
    Thanks in advance,
    Craig

    The Oracle SQL Developer Data Modeler help and the Data Modeler User's Guide, which shares content with the help, don't contain a glossary or list of terms. If the terms you're looking for are Oracle Database terms (such as definitions of tables and other database objects), the SQL Developer help and its user's guide do include brief definitions (in the Database Objects topic).
    For other kinds of terms, the Data Modeler help does point to the Object Management Group (OMG) site, and perhaps the OMG Terms and Acronyms page ( http://www.omg.org/gettingstarted/terms_and_acronyms.htm) might help you. However, there's no guarantee that those definitions will completely apply to the Oracle SQL Developer Data Modeler tool.
    For definitions or explanations of specific terms of interest, I recommend searching for (or using the Table of Contents to find) the relevant topics. You can also ask about specific terms or about terms in general in the Data Modeler discussion forum: SQL Developer Data Modeler forum: SQL Developer Data Modeler

  • MDA (Model Driven Architecture) Discussion

    This is a topic that's been rearing its ugly head recently, and since this is the new home of ALT ...
    What do people think about MDA? I heard a developer the other day claim it was "the only way software engineering can mature as a branch of traditional engineering". Basically, this is the way to mass produce consistent (high) quality software. I think this is &#99;rap, but there you go ...
    The problems I have with MDA are:
    1. Are diagrams really the best representation of logic?
    2. Those people that claim MDA is a "silver bullet".
    3. The idea that an "architect" (i.e. probably me or you) will do the initial design and generate the framework, then any monkey with a keyboard can do the rest.
    Anyone got any thoughts on the matter? Any first hand experiences?

    I agree with you to the extent that I dont believe there to be one single methodology which can guarantee anything - all methodologies are afterall only as good as the people implementing them.
    In response to
    1) I would say that diagramming allows us to communicate the abstract ideas which form the basis of the early design of a system, and provides an excellent mechanism for charting, and justifying, changes in design. I would ask, what would you have in the place of diagrammatic models? I've worked on a few projects where the only design documentation was huge reams of narrative, extremely difficult to work from and maintain.
    2) Nothing is a magic bullet to producing robust, maintainable software (unless its test-driven development...), but models help us to share a common representational language for complex problems.
    3) I dont think thats the point - the best architects leave a great leeway to the individual developer in terms of implementation of the model (conversely, or course, $hit architects dont, but then, any project is ohly as good as its team members), and work closely during the development, so that the design model is not seen as something which is immutable, but is the reference point for kicking off development, and will undergo change as you work through iterations.
    Personally, having worked on projects with modelling, and those without, I'd rather work on those where there is extensive modelling going on.
    Just my sixpenn'orth...

  • Constraint names - Modeling Naming Options

    Can anyone advise me which group(under Model Options -> Naming Conventions) controls the max code length for the below in a physical data model.
    FK Constraints
    PK Constraints
    UK Constraints
    The context sensitive help from this window does not describe what physical objects some of these impact. For instance, I thought Reference would control FK Constraints, but it is not. I have FK Constraints being generated longer than 30 characters, which is the max that Oracle allows. Other objects is a catch all that I did not restrict to 30 as that then shortens lot of other things that I don't even know and might want to.
    I tried looking in the PD Meta model help under "Libraries -> PdPDM -> Model Options", but I don't understand much of what is described there.
    I have following in the Oracle 11g DBMS Resource file under the branch "ORA11GR1::Script\Objects\Reference\ConstName".
    I need this so that I have FK constraints generated with a sequence number suffix. Maybe the Model naming options don't apply when this is used and I need to figure out the syntax to chop the table name so that to 24 as FK_ and _1 will use up 6 characters in the constraint name.
    FK_%TABLE%_%REFRNO%

    Hi Stefan,
    It is still ending up generating Unique key constraint names longer than 30 characters.
    I do have a rule for constraint name creation as well.
    So right now in my Oracle 11 Resource file, I have this.
    ORA11GR1::Script\Objects\Key\ConstName    is set to UK_%TABLE%_%.U-18.1:AKEY%
    I am wondering if I should change it to UK_%U.25:TABLE%_%.U-18.1:AKEY%   so that it takes only 25 characters from table name and that is restricted to 30 characters max.
    I also have MaxConstLen at two levels and both are set to 30
    ORA11GR1::Script\Objects
    ORA11GR1::Script\Objects\Key
    It is getting really frustrating that I cannot get same results as I did with Erwin DDL generation. I wish SAP made it easy and had a setting for Constraint names in Model Naming options.

Maybe you are looking for