How to Create References in different schema?

Hi,
I'm having two schemas named 'SCHEMA1' and 'SCHEMA2'. 'SCHEMA1' has a table "Employee" and 'SCHEMA2' has a table "Personal". The table "Personal" from SCHEMA2 has a foriegn key column 'EmpID' and it has to refer the primary key column ID of the Employee table which is present in SCHEMA1.
How to make this constraint in the table "Personal"? And please tell me the steps to perform this.
Thanks and Regards,
Sathish kumar D

ALTER TABLE schema2.personal ADD CONSTRAINT fk_employee
  FOREIGN KEY (empid)
  REFERENCES schema1.employee(empid);

Similar Messages

  • How to create reference table in se11

    hi experts
    how to create reference table in se11.
    regards
    subhasis.

    You must specify a reference table for fields containing quantities (<b>data type QUAN) or currency amounts (data type CURR).</b>
    This reference table must contain a field with the format for the <b>currency key (data type CUKY) or unit of measure (data type UNIT).</b> This field is called the reference field of the output field. The reference field can also reside in the table itself.
    A field is only assigned to the reference field at program runtime. For example, if a field is filled with currency amounts, the corresponding currency is determined from the assigned reference field, that is the value entered in this field at the moment defines the currency
    <b>example :</b>
    table <b>T1
    FIELD1   FIELD2(CURR)      FIELD3 .</b>
    table  <b>T2
    FEILD4   FIELD5(CUKY)   FIELD6  </b>  ...
    Then 
    <b>T1-FIELD2 (CURR) -> T2-FIELD5(CUKY)</b>
    so  ....<b> T2</b>   table is called  <b>Refference table</b>   and   <b>T2-FIELD5</b>  is called   <b>Reffernce Field</b> .
    T1-<b>FIELD2</b>  = <b> 1,50,0000</b>. 
    T2-<b>FIELD5</b>  = <b>INR</b> .
    the  amount  is  always  depend  on the some type of Currency  ,so  that the  Amount  should  always  <b>reffernce to an amount type</b> .
    reward  points if it is usefull ...
    Girish

  • How to create reference, when an instance is created through  interface

    Hi All,
    How to create reference, when an instance is created through  interface.
    Regards,
    Lisa

    hi
    good
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5f54f411d194a60000e8353423/content.htm
    /people/jocelyn.dart/blog/2006/06/28/getting-started-with-abap-oo-for-workflow-using-the-ifworkflow-interface
    THANKS
    MRUTYUN

  • Question: How to create new user and schema in 11g?

    Who can give me answer how to create a new user and schedule?
    I had installed oracle 11g DB and oracle client in my windows OS. I found in the 11g there is no enterprise manager console with new version. It is different from with oracle 10g.So i don't know how to create it new user.
    I had created new DB instance, but i don't how to create a user on that. Who can give me a hand for that? I hope one oracle experenice expert give my answers.
    Thanks a lot!
    Edited by: user774630 on Oct 27, 2008 10:01 PM
    Edited by: user774630 on Oct 27, 2008 10:09 PM

    Hi,
    I am not sure that which option you are talking about? Are you using the EMCA,http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/emca.htm#SUTIL800] to create the new repository for the EM? If not the command line than the other only way is to use DBCA(Database Configuration Assistant).I believe you are talking about that. Yes ,if the message is coming creating the repository than after wards you can login to the EM. You would get the port no of the EM's HTTP port from the $OH/install/portlist.ini file.
    HTH
    Aman....
    Edited by: Aman.... on Oct 28, 2008 11:36 AM
    Gave up, link insertion doesn't work.

  • How to create the XSD(XML Schema Definition) ?

    Dear All,
         How to create an XSD for the following XML defined ?
    <?xml version="1.0" encoding="utf-8"?>
    <formulations name="Formulations">
        <formulation name="Formulation-1" type="formulation">
            <intermediateFormulation name="IntermediateFormulation-1" type="intermediate">
                <grade name="Grade-1" type="grade">
                    <rawMaterial name="Raw Material-1" type="raw" />
                </grade>
            </intermediateFormulation>
            <grade name="Grade-1" type="grade">
                <rawMaterial name="Raw Material-1" type="raw" />
            </grade>
        </formulation>
    </formulations>
    Thank You,
    Supreet R

    Hi Sivaram,
    Unfortunately, the 8.1 IDE did not have special tooling for schema generation.
    You will need to create it by hand or using an external tool
    If you are using an external tool to create the file within the schema project, you might want to disable the schema project auto build, which will be triggered every time a file save takes place
    cheers
    Raj

  • How to create our own XML Schema (.xsd) in Weblogic WorkShop

    Hi,
    I am new to Weblogic Workshop.I want to create one xml schema with custom elements.
    when I am creating a file xml schema(.xsd).The file contains default namespace and no child elements in it.I don't know how to add elements to that file.
    please tell me how to add parent elements and child elements and also our own xml namingspace.

    Hi Sivaram,
    Unfortunately, the 8.1 IDE did not have special tooling for schema generation.
    You will need to create it by hand or using an external tool
    If you are using an external tool to create the file within the schema project, you might want to disable the schema project auto build, which will be triggered every time a file save takes place
    cheers
    Raj

  • How to create table for XML schema-based Interface form

    Hi All,
    With tcode SFP to crate  a XML schema-based Interface form, how to create a defined table can be listed in "Data View"?
    Just like APAP Dictonary- Based Interface form, that we can drag  a defined table from data view to the panel.

    Hi,
    Just follow these steps:
    1. Create interactive form UI element in your view.
    2. Now provide Datasource and PDFSOURCE to it in form properties.
    3. Now give a template name prefix with 'Z' or 'Y'.
    4. Double click on it. It will prompt for interface name.
    5. Provide interface name prefixed with 'Z' or 'Y'.
    6. Click on Context button in the Pop up window and provide the node you have selected as DATASOURCE.
    7. Click ok and it will open the form designer.
    8. In this way you can create a XML Schema based Form.
    9. Activate the interface and design the form providing layout type and other details.
    Hope it will help.
    Regards,
    Vaibhav

  • How to create reference user

    Please advice how do i create a reference user and associate it with a web user.
    Thanks in advance
    Regards,
    Nitin

    Hi Joshi,
    I am working on IS-U system and there is no reference user tab under su01 transaction. Anyway, I have already resolved this problem. Under su01 we have to perform the following actions to create reference user .
    Click on Goto Menu -> References.
    Regards
    Nitin Jain

  • How to browse objects in different schemas

    If I connect to the database in one schema is there a way to browse objects in a different schema? For example, I connect as hr and I want to view the tables in the ord schema.

    Robert,
    You have said you only see "a few" users under Other Users - does this mean you only see say six other schemas or does this mean you only see a small percentage of the available schemas?
    With the current navigator interface, SQL Developer by default only displays a selection of values under each node. For example, if I have not filtered my "Other Users" node, I see about 50 schemas and a "Show More" at the bottom of the list. Note that the schemas appear to be randomly selected, although those selected are listed in order - my list includes schemas starting with A through X even though we have over 50 schemas starting with A.
    You can either double click on the "Show More" and select "Show All" to get the full list, or filter to the specific schemas you want to see (ie just the production schemas and not the user schemas).
    If you are seeing only a handful of users and you do not get the "Show More" option, right click on the "Other Users" node and select "Apply Filter" to check to see if you have somehow already filtered the list.
    As a final note - you say you can see the production schemas through SQL+. Given that this without a graphical interface, do your "schema queries" produce the same result in SQL Developer as they do in SQL+?

  • How to create Report with different work sheets in XL Reporter

    Hi All
    I want to create a report in xl reporter where one report has multiple work sheets
    Regards
    Farheen

    Hi,
    There is no option to create report with different work sheets in XL Reporter. You may only use one sheet.
    Thanks,
    Gordon

  • How to create Reference Condition Types

    Hi ,
                 Please tell me how to create Ref.Condition Types?
    I have a requirement.."I should create a Zdiscount(13%) which should be copied to the sales order automatically based on PR00"
    How to do that?
    Points for sure
    RamChandra

    Hi,
    You can use condition supplement functionality.
    Check the link [Condition Supplements|http://help.sap.com/saphelp_47x200/helpdata/en/93/7432de546011d1a7020000e829fd11/frameset.htm]
    You can also check the field RefConType for the discount condition type in SPRO -> Sales and distribution -> Basic functions ->Pricing -> Pricing control ->Define condition type.
    Regards,

  • How to create/import a target schema from a source schema using data pump?

    I have seen some examples where schema remapping will be done through remote link which I cannot as both the target schema and source schema are in same machine ...but I am not sure how to do it with out using remote link? I would be great if some one could provide a example
    Thanks in Advance

    I'm not sure what you are asking here, but I'll try to give some examples on remapping a schema:
    expdp prived_user/password schemas=orig_schema_1 directory=dpump_dir dumpfile=orig_schema_1.dmp
    impdp prived_user/password schemas=orig_schema_1 directory=dpump_dir dumpfile=orig_schema_1.dmp remap_schema=orig_schema_1:new_schema_1
    If you want to try without a dumpfile then you need a loop back dblink.  (A dblink on your database that points to the same database.  This would be your command:
    impdp prived_user/password schemas=orig_schema_1 directory=dpump_dir network_link=loop_back_link remap_schema=orig_schema_1:new_schema_1
    Hope this helps.  If not, can you explain your question a little more?
    Dean

  • How to create links to different files on the same page?

    Good day to all again,
    can someone please guide me through creating several links to different files on the same page. In other words, I am creating a photo page where my links are called Gallery 1, Gallery 2, etc... I would like to create links so when the User clicks on Gallery 1, they see Gallery 1 slide show in the frame; when the user then clicks Gallery 2, then they see Gallery 2 slide show in the window.
    My slide show files are done and I am using GoLive CS2. I have no knowledge of JavaScript or ActionScript/Flash.
    Any suggestions are highly appreciated.
    Thank you
    Alek

    Hi Diana,
    I'm a professional photographer and in the process of getting
    my finished site published. I used Coffeecup Photo Gallery. You can
    create multiple albums on the same page. Do a Google search for the
    address. It's easy, inexpensive, and it works. I tried to do this
    with the Photo Gallery in DW and FireWorks--but couldn't get it
    right. CC uses Flash and Javascript.
    Good Luck

  • How to create BP with different BP Groupings (BU_GROUP) in IC?

    Hi Experts,
    when creating BP in the Interaction Center there exists the possibility in Customizing CRM->Interaction Center WebClient ->Master Data->Define Account Identification Profiles it is possible to add a Grouping ID for the creation of all different types of BP. But we have the requirement to use different kind of groupings for the different BP we create (one grouping is not enogh).
    We have added the field 'Grouping' in the configuration and the value in the weblclient is put into the data collection but afterwards something is happening. As the customizing is without value the standard grouping is used as the wrong grouping is assigned to create the BP.
    Does anybody know where I have to change the coding to change this?
    Best Regards
    Oliver

    Hi, we have found the solution. In component ICCMP_BP_DETAIL we have redefined View BuPaCreate. In the class ZL_CRMCMP_B_BUPACREATE0_IMPL we have redefined method CREATE_PARTNER and changed the following coding:
      IF lr_new_entity IS BOUND.
        CALL METHOD lr_new_entity-> 
        get_property_as_string
          EXPORTING
            iv_attr_name = 'BP_GROUP'
          RECEIVING
            rv_result    = lv_partner_grouping_str.
        me->typed_context->customervalnode->    
        set_s_struct( attribute_path           
        = 'STRUCT.BP_GROUP'
                                                     component = 'BP_GROUP'
                                                     value = lv_partner_grouping_str ). 
      ENDIF.

  • How to rebuild index from different schema

    Hi All,
    I want to rebuild an Index of schema A from Schema B.
    Is there any grant needs to be give to Schema B in order to rebuild index of Schema A?
    Thanks,
    Tarak

    It is true what P. Forstmann said. However if you don't want to give the second user the ANY priviledge, then you can do a little workaround. Create a small procedure in Schema A that does the rebuild (maybe dynamically). Then grant execute rights on the procedure to Schema B.

Maybe you are looking for