How to find Primary Key for a particular SAP Databse Table?

Hi Guys,
              How to find Primary Key and foreign key  for Particular SAP Databse table ?for Ex : EKKO , EKPO , EKKN , EKBE , EKBEH  , EKET and EKETH.
Thanks,
Srinivas.

Use transaction SE11 to display the table. Put the cursor on the field you want to display the check table and click 'Foreign key' push button (a key with an bottom point arrow), then it will show the check table of the foreign of a field.
Or by just simple double click on the field, a pop-up window of all the attribute (including the foreign key and the check table if exists) will show too.
<i><b>Please reward point for helpful answer.</b></i>
Minami

Similar Messages

  • How to find condition  type for a particular material document no.

    hiiiiii
    How to find condition type for a particular material document no.

    Hi
    Condition types are maintained at PO level
    Take the EKKO-KNUMV and pass to
    KONV-KNUMV field and take the different condition types values from KONV
    Take the Material Document No (MBLNR) and pass to MSEG table and take the EBELN field and from EKKO table take EKKO-KNUMV field and pass to KONV
    see the table T685 for different condition types.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to find Missing Parts for a particular Process Order?

    Hi,
    How to find Missing Parts  for a particular Process Order ?
    Is there any function module or Table ??
    Thnx in Advance.

    Hi prince roy
    you can use the T-code = <b>CO24 - Missing Parts Info System</b>
    if helpful PLEASE REWARD YOUR POINTS
    thanks
    chakri

  • How to find CUSTOMER EXIT for a Standard SAP program

    How to find CUSTOMER EXIT for a Standard SAP program

    Hi
    To introduce the techniques of enhancement in standard SAP system. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    They do not affect standard SAP source code.
    When you add new functionality to your SAP System using SAP’s exits, you do not alter the source code of standard SAP programs in any way. The code and screens you create are encapsulated as separate objects. These customer objects are linked to standard applications, but exist separately from SAP’s standard software package.
    They do not affect software updates.
    When you add new functionality to your SAP System using SAP’s exits, your objects (called customer objects) must adhere to strict naming conventions. When it comes time to upgrade a to a new software release, customer objects’ names ensure that they will not be affected by any changes or new additions to the standard software package.
    Customer exits are not available for all programs and screens found in the SAP System.
    Any change made to an SAP object in a customer system is called a modification. Customers usually modify their systems for one of two reasons. Either they make changes to the SAP standard in order to adjust the R/3 System to their specific business needs (actual modifications), or they alter individual SAP objects in order to correct an error (as recommended in an SAP error note).
    You should only modify the SAP standard if the modifications you want to make are absolutely necessary for optimizing work flow in your company. Be aware that good background knowledge of application structure and flow are important prerequisites for deciding what kind of modifications to make and how these modifications should be designed.
    SAP application programmers create SAP enhancements in transaction SMOD using function module exits, menu exits, and screen exits.
    Customers are given a catalog containing an overview of existing SAP enhancements. They can then combine the SAP enhancements they want into an enhancement project using transaction CMOD.
    SAP enhancements are made up of component parts. These components include function module exits, menu exits, and screen exits. A specific component may be used only once in a single SAP enhancement (this guarantees the uniqueness of SAP enhancements).
    Customer enhancement projects consist of SAP enhancements. Each individual SAP enhancement may be used only once in a single customer enhancement program (this guarantees the uniqueness of a customer project).
    SAP application programmers preplan function module exits, menu exits, and screen exits for their applications and combine them to create useful enhancements for the R/3 System.
    Customers create their own enhancement projects for their systems using SAP enhancements. You can customize the individual components of an enhancement project by creating your own include programs (for function module exits), texts (for menu exits), and subscreens (for screen exits).

  • How to set primary key for a date column

    hello experts .,
    i need to set primary key for a column consists of the datatype date. how to solve this..?

    1008318 wrote:
    its my personal need..then it is a very bad personal need. DATE is not an appropriate type to be using for a primary key, as it cannot be guaranteed to be unique, especially when inserting multiple rows at once.
    You would be better working to business needs and implementing correct technical solutions to those needs, than to just do things based on your personal needs.

  • How to genarate Primary Key for each record in XI  Mapping

    Hi,
    I need to genarate primary key for each record in the paylod in mapping..
    Eg: if i have a 10 reacords i need to have a primary key for each record..starting with the
    Record      Primary key
    First            001
    Secound      002
    Tenth         010
    If i need to write any user defined funtion... can any one provide the code for it.
    Thanks
    Amaresh

    Hi Bavesh,
    I will explain with the example:
    XML:
    <Record 1>
    <Primary key>
    <value1>
    <value2>
    </Record 1>
    <Record 2>
    <Primary Key>
    </Record 2>
    like above i will be getting n number of recored and in each record i need  to genarate primary key in XI.and the key sould be in sequence...
    like for the first record 1 secound 2 like that primary key should add to the privous Primary key.
    and this is for each payload.
    Thanks
    Amaresh

  • How  to find the definintion for a particular implementation

    hi
    ihave the implementation name so i put this in se19
    and after enter it asks for definition which has to be created in se18
    if we have some predefined definitons  already for that implementation
    how to find the particular definiton that is to be used

    Put that implementation name in the enhancement name option of SE18 and press display. I hope by implementation you dont mean the Z Include.
    If it is Z include then look for where use list of that and pick the Enhancement name from there.
    Regards,
    Amit

  • How to find Registry id for a particular supplier from back end

    I have just gone through the link of anil passi for getting registry_id for a particular supplier from front end
    but how come we can find registry_id from back end to a particular supplier.So, that we can get party_id of that supplier in HZ_PARTIES

    Hi,
    Sounds like you'll have more luck asking that in one of the E-Business Suite forums:
    https://forums.oracle.com/forums/category.jspa?categoryID=3
    Regards
    Peter

  • How to find header bom for a particular child bom

    for a particular serial number (sernr-equi) contains
    material number( matnr-equi) this is a child material number.
    so i need to find header material(bom component) for this particular material .
    i am passing material idnrk(equi-matnr) in stpo table to get header bom. i am getting more than one stlnr(bom components) for material with deiffernet serial number.
    there is no serial number field in stpo i could not able to find material with requried serial number used in bom component.
    tell me how can i proceed further.

    Hi Sridhar,
    Use CS_BOM_EXPLOSION FM.
    CALL FUNCTION 'CS_BOM_EXPLOSION'
            EXPORTING
              capid                 = 'PP01'
              datuv                 = SY-DATUM
              mtnrv                 = header-stlnr
              werks                 = header-werks
              mehrs                 = 'X'
            TABLES
              stbd                  = stbd
              stbe                  = stbe
              stbk                  = stbk
              stbm                  = stbm
              stbp                  = stbp
              stbt                  = stbt
            EXCEPTIONS
              alt_not_found         = 1
              call_invalid          = 2
              missing_authorization = 3
              no_bom_found          = 4
              no_plant_data         = 5
              no_suitable_bom_found = 6
              object_not_found      = 7
              conversion_error      = 8
              OTHERS                = 9.
    Afetr Passing capid,datuv,mtnrv,werks,mehrs values, FM will build STBP Table Which comntain all comnponents related to ur STLNR.
    Regards,
    Digesh Panchal
    Note : Please reward points, if it solve ur problem

  • How to find proper exit  for a particular job !

    I have the list of exits for a particular tcode e.g va01....
    Now how to find which is the correct one for a particular purpose...i.e while saving the order some thing will happen
    thanks

    Hi MORONEY ,
    In order to find out the user exits for any tcode,
    1. get the developement class of the tcode from SE93.
    2. Now goto transaction SMOD and press F4,
    3. give in the Deve class in the dev class and Press ENTER
    this will show u the exits for any tcode.
    or execute this report
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    which gives the list of exits for a tcode
    Regards,
    Ramesh.

  • How to add primary key for table with existing data?

    The table is occupied data already. There was no primary key before, so for every column, there are some duplicate values.
    I want to add a new column, which should be of the datatype integer, and can automatically increment, starting from 001. I tried this in Oracle SQL Developer, but it says "ORA-01758: table must be empty to add mandatory (NOT NULL) column". How can I do it? Thanks!

    Hello, don't call the column ID, that could be an ID relating to anything. Perhaps be a little more specific like emp_id .
    Then to update it:
    UPDATE Employee emp
      SET emp_id = (
      SELECT row_num
        FROM (
      SELECT ROWID,
                 ROW_NUMBER() OVER (ORDER BY ROWID) row_num
        FROM Employee emp2) emp2
      WHERE emp.ROWID = emp2.ROWID);That will assign a new EMP_ID for each, beginning at 1.
    Then:
    ALTER TABLE Employee MODIFY emp_id NOT NULL;
    ALTER TABLE Employee ADD CONSTRAINT EMP_PK PRIMARY KEY (EMP_ID);Then create a sequence for future population of the Employee table:
    CREATE SEQUENCE emp_seq START WITH <maximum value of emp_id + 1>;

  • How to find primary key?

    I am trying to impliment a load using JDBC wherein I read the table name, some column names, and associated
    column data from a file (delimited or XML). The primary key columns are in the column names / data BUT I don't
    know which columns they are (based on the file I'm reading). Even if this information was in the file, I would need to
    verify the table I'm targeting does in fact have that primary key. I can insert the records fine BUT to use the records
    to update I need to determine from the database which are the primary key columns (by name).
    Essentially I'm trying to do the following:
    insert record into table
    if fails because of duplicate primary key
    determine the primary key of the current table
    retrieve the already existing record
    modify the retrieved record using my load data
    update the already existing record in the database
    My primary concern, now, is Oracle although I'm hoping to impliment this in as portable a fashion as possible.
    Thanks.
    R.Parr
    TemporalArts
    608.833.4578
    null

    You can check the DBA_CONSTRAINTS view for that: http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1037.htm#i1576022

  • How to find product key for Microsoft Office 2010?

    I purchased an HP Pavilion dv6 a couple of years ago. At the time of purchase I also ordered a license for Microsoft Office 2010. The laptop came with Office already installed, and everything worked great for years.
    Earlier this week I had to do a full system restore to get my laptop back in working order. I backed up all of my user files, found installers or original installation media for all of my software except for Office, and proceeded with the system restore.
    I just got everything running again this morning. The system restore put a clean copy of the OS on my laptop, but Microsoft Office is gone. I've just about finished re-installing all of the other software, but I need some help with Office.
    Since my laptop didn't come with installation media for Microsoft Office 2010 I'm trying to donwload it from here:
    https://www2.downloadoffice2010.microsoft.com/usa/registerkey.aspx?culture=en-US&ref=pkc
    It asks for a product key for Office 2010 in order to start the download. The product key for Microsoft Windows is on the bottom of my computer, but I can't find a product key for Office. (Before anyone asks, yes, this is the full version of Office 2010, and yes, I paid for it at the time of purchase of the laptop.) I kept all of the paperwork that came with the computer, but I can't find the Office product key anywhere in that packet. Is there somewhere else I should be looking for my product key?
    Better yet, does HP still have a copy of my original purchase order for this laptop, and do they store product keys for the products they sell? 
    Thanks,
    Tom

    Neither HP nor Microsoft keep a record of the key that was issued.  If you cannot find it in your documentation or emails I'm afraid you are out of luck and would have to purchase another key. 
    Please mark my post as SOLVED if it has resolved your problem. It helps others with similar situations.

  • How to find the dbid for the particular datafile

    Hi,
    I am aware of ----- select dbid from v$database and rman connection option for finding the dbid.
    Any option for findout the dbid for a particular datafile and for controlfiles.? ( I heard the dbid stored in the datafile headers and controlfiles)
    Please help
    Thanks
    Shiju

    You need to be connected as SYS user to view these tables as below.
    SQL> conn sys/oracle@orcl as sysdba
    Connected.
    SQL> desc dba_hist_datafile
    Name                                      Null?    Type
    DBID                                      NOT NULL NUMBER
    FILE#                                     NOT NULL NUMBER
    CREATION_CHANGE#                          NOT NULL NUMBER
    FILENAME                                  NOT NULL VARCHAR2(513)
    TS#                                       NOT NULL NUMBER
    TSNAME                                    NOT NULL VARCHAR2(30)
    BLOCK_SIZE                                         NUMBER
    SQL>

  • How to find T-CODES for maintenance view of custom tables?

    Hi,
    I have a list of custom tables for which maintenance view is generated. Also, many of them might have a T-Codes assigned to them.
    I need to know how to find out these T-codes?
    Is there some table which maintains these or a function module which can give the t-code name?
    Help will be appreciated.
    Thanks.
    Shreyas

    Hi shreyas,
    1. one way is
    2. goto se93
    3. Press Ctrl F
    4. Expand the search criteria (from button on toolbar)
    5. In program name enter SAPMSVMA (This program is for sm30)
    6. In transaction code enter Z*  or Y*
    regards,
    amit m.

Maybe you are looking for

  • Mail deferring and sitting in queue

    We have a xserve G5 running 10.4.11 with all latest updates. Today I updated spamassassin and amavisd-new per osx.topicdesk.com. Now mail won't deliver in either direction and is adding up fast in the queue. Also, SA won't turn respond to turning off

  • How can i detect a winner

    import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import javax.swing.*; import java.util.Random; public class TicTacToe extends JFrame {   private Board board;   static final char BLANK=' ', O='O', X='X';   private char position[]={

  • CcBPM check condition expression

    Hi,      For a xml response say " <header>   <part1/>    <part2/> </header> How do i provide the condtion expresion  in ccBPM via Xpath (or any other way( to see if part2 tag is absent? Regards, Premjit

  • Error While processing FPG1 transaction

    Hi I am trying to transfer a recon key to FI thru FPG1 transaction. But I am getting the error F5808: Field material is a required field for xxxx GL account in company Code XXXX/ xxxx GL account . Could anyone throw some light on this error and how t

  • Procurement to public sector

    Hi, I'm going to implement SRM in a public company and I would like to know if I had to implement an addon onto SRM to get an specify public business scenario. Need I something 'out' for SRM? thanks