Regarding reference to view

Hi Guys,
I remember that Oracle can create a foreign key on a table, which can reference to column on a view. Is that good design or bad design in reality. I have two tables that include part of ID and some table reference to that ID. I cannot create foreign key on those tables to refer to that ID because the ID is in two tables. I want to create view that combines ID in two tables and let others table to refer to ID in this view. Is that possible or good design? Thanks.

Hi,
I agree that it may be a bad idea to do this.
Rather than do what you are thinking why not denormalize some more....?
See if you can fix things that way.
Good application design is the best thing you can do in a database.

Similar Messages

  • Can CWM2 API creating dimensions and cube reference a view

    Can CWM2 API creating dimensions and cube reference a view instead of a table.
    Can the following API reference a view instead of table
    For creating dimensions
    CWM2_OLAP_TABLE_MAP.MAP_DIMTBL_HIERLEVEL
    CWM2_OLAP_TABLE_MAP.MAP_DIMTBL_HIERLEVELATTR
    For creating cubes
    CWM2_OLAP_TABLE_MAP.MAP_FACTTBL_LEVELKEY
    CWM2_OLAP_TABLE_MAP.MAP_FACTTBL_MEASURE

    Hi!
    Yes!
    And I am using views sometimes.
    I am reading at this moment also the following...
    maybe someone can explain me this sentence...
    MULTIPLE FACT TABLES:
    "The CWM2 APIs also support multiple fact tables per cube. In this case, the data
    associated with a given combinations of hierarchies can be stored in a separate fact
    table. All the fact tables associated with a cube must have the same column
    structure."
    I get a fetch error message..'cause of this.
    What does it mean by "the same column
    structure" ???
    ODDS

  • Entity used as reference in view - how to get value programatically

    In jdeveloper, when you create a view you can mark your entity usage as "reference only" by checking the "reference" check box on the View Object Editor panel. Can someone tell me how you can access the value of this programatically (from within ViewRowImpl)?

    Hi Madhuri
    Its not possible to see the preceding document when u raise a order with reference to Contract.
    After saving the order only u can see the preceeding document in number in Document Flow.
    When u r in create mode of sales order u cannot see the document Flow button .. Only after saving the order only v can see the document flow..
    Because at the time creation the system gathers information only. after saving only it will confirm the number of preceeding document.
    I tried in my system ..
    Regards
    Srinivas.

  • Data Type with reference and view maintenance

    Dear all,
    There are two questions that I want to ask.
    1.     Error when referencing a table with data type = u2018STRINGu2019.
    I have a Z table with some fields = u2018stringu2019, when I use this as a reference, an error prompted.
    "ZTBL_ABC" must be a flat structure. You cannot use internal
    tables, strings, references, or structures as components.-
    2.     Error in generating the View maintenance for field length > 255.
    Actually, I want to create fields with
    1.     data type = char(255),
    2.     data type = text
    3.     data type = char(3000)
    It is okay if I create the field with the selected size, however, when I generate the View maintenance (which can be access through SM30); it does not allow me to do so. It still not working if I change it into string. How can I create such table and use the table maintenance, as well as using that as the reference type of an internal table for another program?
    Regards,
    Mandy Au

    Hello,
    1st of all a table which has a field of type string can be converted in to table maintenance because TM does not support string type as it becomes a very big field to be displayed on screen ... so u need to change that.
    and then about the CHAR of length 3000 is too big ... to have a max limit of 255.
    If you change this both u will be able to generate TM.
    Incase after changing the field length it it gives error in activatin your table then go to SE14 put your table name EDIT and then Adjust n activate it....
    hope this was helpful
    --- Close the post once you get the solution

  • Reference to view controller

    hello,
    is it possible to access a view method from a component controller?
    I got a reference with the type "IF_WD_VIEW" in my component controller and I need to cast it in the original type of my view to access the view-method for view embedding (dodynamicnavigation)...is it possible?
    I know that normally the view methods are only visible in the view controller...

    Hi Thorsten,
    Check this out from SAP...
    +Just like the component controller, the view controller contains data and functions. Furthermore, the view controller also has
    The lifetime of the controller element of a view is restricted to the lifetime of the view. To create simple Web Dynpro applications, it is sufficient if you maintain the component controller and the view controller of a view. The two controllers described below are optional and help you to structure complicated components and applications, thereby increasing their reusability.
    +
    So I dont think you can access the view controller methods from other views.
    Regards
    <b>Raja Sekhar</b>

  • Regarding Creation of Views and Multiple Datasources.

    Dear All,
    I hv a COreport(Cost Center Report).the data is coming from tables of CO,FI,SD,MM.
    The Tables from CO are COEP,COSP,COSS,CSKS,CRHD,CSKU,CRCO,CSKB
    The tables from SD are VBRK,KNA1
    The Tables from MM are EKKO,LFA1.
    The table from FI are SKAT,BKPF,BSIK,BSAK.
    1)Can i create a view for these tables?Can a view be called a DS.
    2)With these tables i hv Multiple DS's.So can i use Multiple DS's to extract data
    3)Can i use FM to extract Data?If i use FM,vll i face errors during Support?
    4)Please Guide me how to create Views for these tables and How to handle Multiple Datasources.
    Thanks

    Noor,
    Have you checked suitable business content datasources.
    I think you have lot of options
    FIrst You need to have a multiple data source
    --> Check for suitable business content datasources
    --> check whether these details are already available in BW through any means (through other standard datasources to ODS)
    --> Create customized extractor finally as a last option
    All these tables are atandard and nost probably you would find a standard datasource ( again multiple) I am sure for costing you have standard
    Few or more standard datasources or already existing BW objexts with 1 or 2(rarely) customized extractor would do the purpose that you look for,....
    Good Luck !!!
    Regards
    VJ

  • Regarding WEBI Query view

    Hi All,
    I am new to this BO, I was reffering some documnets in which they have mentioned regarding the SQL query view,i.e, every query will be converted to its equivalent sql query, but this option is disabled(not active) when I am working.
      Does any of you come accross this situation?.If u have any idea,please let me know.
    Thanks,
    Vinay.

    Hi,
    I didnt  get you .Are you creating universe based on query right .Then once you create universe(based on query) and export .This query will be present in rich client.get back incase any issues.
    Regards,
    JiyyanA.

  • Help Needed regarding to Table View Control

    Hi Abapers
    In Table View Control which property or system variable keeps the user selected row's row id.
    Situation is that user enters many records into sales details table view. Table view contains the fields, productid product no qty discount and rate. Suppose user wants to delete one particular record(sales details) from that table view while entering this sales details .here i want to know which is that particular row that the user selected. Table views which property keeps this row no information. i am very glad if you people give me more information abount table View Controls .
    With regards
    Anoop.

    Hello Anoop,
    post your questions in the correct forums and you can hope to get a better answer. This forum as you see is the suggestions and comments forum and not the ABAP forum.
    Sameer

  • Clarification regarding Reference application & Source application

    Hi
    What is the purpose of Reference application and Source application
    While we create new application why we choose reference application & source application
    please clarify me, why we give
    source application as Planning,
    source application type as Finance
    rate application as Rate
    sometimes Source application as Sales
    Regards
    Luci

    Hi,
    Source application is the application from where the templates will be copied into the new application. Every application has few inbuilt templates (for reports, input schedules, DM packages, etc). These objects are copied from the source application to the newly created application.
    Application type determines what is the purpose of your application. Whether is should be a reporting or non-reporting type? Whether the purpose is to do planning or consolidation? You will get more information on this from the below link from help.sap:
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/01/a7e059f56847eea751fb0fd28f07f3/content.htm
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/97/a99d939fb14bdab9d1ac7f2b43525e/content.htm
    Hope this helps.

  • Best Practice Regarding Maintaining Business Views/List of Values

    Hello all,
    I'm still in the learning process of using BOXI to run our Crystal Reports.  I was never familiar with the BO environment before but I have recently learned that every dynamic parameter we create for a report, the Business View/Data Connectors/LOV are created on the Enterprise Repository the moment the Crystal Report is uploaded.
    All of our reports are authored from a SQL Command statement and often times, various reports will use the same field name from the database for different reports.  For example, we have several reports that use the field name "LOCATION" that exists on a good number of tables on the database.
    When looking at the Repository, I've noticed there are several variations of LOCATION, all which I'm assuming belongs to one specific report.  Having said that, I see that it can start to become a nightmare in trying to figure out which variation of LOCATION belongs to what report.  Sooner or later, the Repository will need to be maintained a bit cleaner, and with the rate we author reports, I forsee a huge amount of headache down the road.
    With that being said, what's the best practice in a nutshell when trying to maintain these repository items?  Is it done indirectly on the Crystal Report authoring side where you name your parameter field identifiable to a specific report?  Or is it done directly on the Repository side?
    Thank you.

    Eric, you'll get a faster qualified response if you post to the  Business Objects Enterprise Administration forum as that forum is monitored by qualified support for BOE

  • Regarding Train component, view is lost when navigating to next train stop

    Hi,
    I require a train component for my application. I have created a bounded taskFlow contianing 3 JSF pages with each page representing a trainStop.
    I added train component to each of the pages as told in "Fusion Developer Guide" .
    Now I add this taskFlowDefn.xml in my main.jspx as a region. The train is visible and working but the problem that I face is as follows:-
    I am having 2 input fields in my 1st jsf page represented by the 1st stop in the train. If I enter something in the input text
    and move on to another stop(which is also a different jsf page) and again go back to previous jsf page, the value in the input text gets cleared from the screen.
    These input text are not bounded with View Object attributes. The JSFFs are desgined without binding.
    How can I save/retain the view of the previous page , I mean how to retain the values on the page that were entered, as train component itself provides the
    functionality of moving back and forth. Alll the 3 jsf pages and the main.jspx (which contains the bounded taskFlowDefinition as region) have backingBeanScope.
    Please reply if you know wat I have missed or wat I need to do for this.
    Thx in advacne
    Tarun.

    adf009, please read the post I posted the link to in my previous replay. The old code format tag don't work in the new forum!
    Still the same error. The stack trace still points to it, you only need to read it carefulle
    javax.faces.el.EvaluationException: java.lang.NullPointerException
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
    Caused by: java.lang.NullPointerException
        OrgDetails.showSelectedOrg(OrgDetails.java:2456)
    The origin is
    method.execute();
    and the real reason is
    MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51);
    What does it tell you?
    Timo

  • Regarding % in Pivot view

    Hi Experts,
    We have a requirement we have built the following snapshot report with a PIVOT table in OBIEE Answers
    We would like to show the margin % in the column
    The formula for this is (Margin/Sale)*100 ..
    But we are unable to implement it in PIVOTE view
    Please let me know how to do this
    *     A     B     C     Grand Total*
    *#of SKUs*     89     113     3156     3358
    Sale     4146976     781763     258734     5187474
    Cost     2748850     509615     212748     3471213
    Margin     1398127     272148     45986     1716260
    Margin%
    Edited by: user12027684 on Aug 5, 2010 4:22 AM
    Edited by: user12027684 on Aug 5, 2010 4:23 AM

    Hi,
    Create a column with Fx as (Margin/Sale)*100 and use it in pivot table.
    Thanks
    Sandeep

  • Question regarding an inline view or function inside SQL

    Hi All,
    I want to know whether using an inline view with in an sql query is better or a function call within the sql query is better.
    When I check the explain plan in both the case I can see no difference in the cost.
    Appreciate your valuable suggestions on this.
    Thanks,
    Maddy K.

    Hi, Maddy,
    It depends. The answer to this kind of question is always "it depends" on several factors. It would help if you gave a specific example.
    In general, a function is not an alternative to an in-line view. They're so different, that I suspect I don't really understand the question. Also, I don't understand why you're concerened with in-line views, and not with, for example, regular views or WITH clause sub-queries.
    In general, calling user-defined functions from SQL statements is slow. If there's a simple way to get the same results without calling a user-defined function, then it will probably be faster not to call the function.
    Don't pay much attention to the cost that explain plan gives it. It doesn't mean much to you.

  • I need clarification regarding REFERENCE TYPES and CASTING.

    Hello all,
    I'm taking a course on the fundamental of JAVA. Everything's been going smoothly until I slammed into the the concept of CASTING and REFERENCE TYPES. Flat--out == I DON'T GET IT?
    I'm having trouble with...
    CONVERTING REFERENCE TYPES
    CASTING BETWEEN REFERENCE TYPES
    WORKING WITH REFERENCE TYPES
    I understand what's happening from an academic vantage point. I just don't understand why you'd want to convert REFERENCE TYPES? What would be an application of such an exercise?
    1. What IS a REFERENCE TYPE -- exactly?
    a. what are we referencing?
    b. type? type of what??
    for example... why would you want to do a widening conversion, a conversion of the hierarchy tree?
    I understand the concept of OBJECTS, CLASSES, METHODS and CONSTRUCTORS so far...
    I think it's the terminology that's screwing my up.
    Thanks,
    Alex

    ok... wow, thanks J.
    So--in a nutshell-- we're making it so that different
    objects:
    ie,. ford(), chevy(), honda(), lotus() and
    dealers()... so and so forth()...
    all share the resources(for lack of a better word) of
    the Auto Class? because all of those auto brand
    objects and one redically different object can be
    unrelated, correct?Um, yes and no.
    I just ran with the example you had, but that probably included too many concepts and they got muddied up.
    Yes, Chevy, Ford etc. all share the characteristics of Auto, since they're all subclasses. But that's just inheritance, and has nothing to do with casting.
    A "reference type" can loosely be described as a variable that refers to an object. (Constrasted with "primitive types" which are int, char, float, etc. and don't refer to objects--they just hold values.)
    Casting just tells the compiler that even though as far as it knows you only have a reference to some superclass, the object that reference points to will in fact be an instance of a subclass, and so treat it as such (e.g., we can now call methods that the subclass has that the superclass lacks).
    (You can also cast primitives, but one thing at a time.)
    So let's say you have class A (which extends object) and B extends A.
    A a = new B();
    B b = a; // won't compile. compiler sees the "A a" on the left of the =, not "new B()" on the right.
    B b = (B)a; // works because we're telling the compiler, "Dude, I'm seriously. This is a B.
    Note that if we had done new A() instead of new B(), it would still compile--the compiler would trust us. But at runtime, we'd get a ClassCastException, since we wouldn't actually have a B object.
    /**folks, I'm a web designer that has to learn Java
    so that I can perform my duties as a JSP author here
    at work. I tried to learn JSP sans Java and that was
    a simple exercise in ignorance.-- it's really hard
    without understanding the root concepts of Java and
    for that matter, C. Concepts like "polymorphism,
    inheritance, object references... are completely
    foreign to me. **/It's a rather big leap from web designing to OO concepts. Take your time, and don't be discouraged if you feel completely confused. It's a prerequisite. :-)

  • Regarding privilege to view tables in database

    hi,
    since i am just a begginer in my job as DBA,so any body could help me.The problem is i connected to database and created my own user and granted privilege to view and select particular table in the database.But later when i connected through my user to same database i could not select the table.pleaze any one could give me solution..

    Ensure if you have created the table/view in that new user's schema or using dba sys schema.
    In any case, you can use schema.table/view_name to select and view the contents of the table.
    Or you can login as sysdba and find the table by querying the dba_tables view.
    Hope that helps
    Z.K.

Maybe you are looking for

  • How to burn slide show to a dvd to watch on any tv

    how do you burn slide show to a disk to watch on any tv

  • Nik plugin and 3 weird problem

    I know about the 32bit issue with the nik plugins but when I try and use any of the nik plugins I get an error message"Editing Error this message cannot be rendered for editing becuase Aperture does not support the image" The images are Nikon RAW wor

  • RCPT: Re: Forte productivity metrics

    Confirmation of reading: your message - Date: 13 Dec 96 9:07 To: [email protected] Subject: Re: Forte productivity metrics Was read at 20:10, 22 Mar 96.

  • What phone to choose?

    Hi guys, I am looking for a phone. I know the iPhone is good but way to expensive for me. So the price range £50-£80 and has 3G and is able to download Skype. Any suggestions and if you need to go higher that £80 but only by a little. I've only got 1

  • BT website tells me it doesn't recognise my number...

    I am interested in BT and have tried to make an enquiry through the website, however I keep getting a message that my telephone number is not recognised, even though I have telephone and broadband through BT.   I contacted BT last week about the prob