Differnce

Hi All,
If I declared a column as Unique as well as Not null then what is the use of primary key...Is there any advantage while use primary key...
Thanks and Regards
MK

Some additional info on key data: Any combination of non nullable columns that are unique when taken together due to not null and unique index constraints may be considered a candidate key. Additionally if the all of the columns in that candidate key store relevent data, the combination of columns can be conserdered to be a natural key. However, the one big difference between these candidate keys (natural or otherwise) and a primary key is that primary keys should be immutable. Enforcing an immutable requirement on a natural key would prevent a user from ever correcting miss entered data. That's one reason why in general it is best to use a uniquely generated value as your primary key. Such a key value is called a surrogate key becuase it is used in place of a natural key.

Similar Messages

  • Differnce b'w lsmw and bdc

    pls tell the differnce b'w lsmw and bdc . when we use bdc and when we use lsmw .for uploading master data (ex: cusomer data ) in tosap which method s u prrefer out of thhse  4
    method scall transaction
    session input
    lsmw bapi  whic one is the better one
    when use session  method and when we use call tran sac
    which method is better for bacjground processing call tran s or session method . pls tell
    the reason
    answres as soon as possible

    Hi,
    LSMW IS JUST A TOOL TO GET THE DATA FROM A LEGACY SYSTEM.
    IN BDC WE HAVE 2 WRITE THE CODE AND CALL THE REQUIRED METHOD
    THATS IT. IN FUNCTIONALITY PERSPECTIVE THERE IS NO
    DIFFERENCE.
    BDC is Batch Data Communication. It is basically a program
    either generated by SAP after a recording or programmed by a
    abaper.Its like running the transaction manually but all the
    data is populated on the screens automatically.It is a
    little complex when the screens contain table controls.
    LSMW is legacy system migration workbench is a more user-
    friendly tool thru which one can do the same as a BDC. One
    just has to follow some 14 steps, click buttons and the data
    is set to be uploaded ….LSMW offer you 4 ways to import data
    into SAP, they are BDC, Direct Input, BAPI(BO), IDOC.
    To spell out the differences in detail:
    look at the below threads to know more
    Diff between LSmw and Bdc
    Diff. between LSMW & BDC
    Regards
    Sudheer

  • IN MIR4 one qty is showing in GR/IR and one qty in Price differnce

    Dear Sir,
                   We have made a PO for 10 QTy. frist 8 qty deliverd . we have made miro transaction.GR qty is equal to IR Qty.In Next sRest two quantity recived. AFter good receipt (MIGO) when we will do MIR4 & simulate it. One qty is showing in GR/IR & one is showing in Price differnce.
    Why it is so.
    Pls solve the prob.
    Regards
    Abhishek Tiwari

    If there is any additional frieght cost added with bill,then it will go to inventory account if stock is not consumed
    if stock is consumed then it will hit price difference account.

  • What is the differnce bitween widget and gadget???

    hi all,
    can you tell me about gadget and widget differnce??
    or both or same,,
    advance thx for your reply.,

    hi,
    i developed my jsp using jmaki widget,,,
    is there any API to develop the gadget in jsp.
    thx for your reply,

  • Basic differnce between 000 and 001 clients.

    what is the basic differnce between 000 and 001 clients?
    why do we use client 000 as source client while client copy?

    Hi Kumar
    The basic difference between Client 000 and Client 001 is that Client 000 is client independent instace while Client 001 is Client dependent.
    Client 000 is SAP source client while Client 001 doesn't exits for every installation.
    Regards
    Shashank

  • Differnce between SAP-XI and SAP PI

    hi can any body tell me what is the differnce between SAP-XI and SAP-PI

    Hi vijay,
    u can get lot of information regarding PI and XI in sdn.There already exists a no. of thread.just search with keyword "XI 3.0 and PI 7.0" u can get a lot.
    XI 3.0
    1. J2Se adapter engine was replaced with J2EE Adapter Engine.
    2. BPM was available from XI 3.0
    3. Part of Netweaver 2004
    PI 7.0
    1XI renames as Process Integration
    2.. Part of Netweaver 2004s.
    3. Has all features of XI 3.0 and every SP of Pi 7.0 has a corresponding release for XI 3.0.
    4. Runs on WAS 7.0 and has same features as XI 3,0
    From functional point, there is no difference between XI3.0 and PI7.0. There are changes only wrt SP. For every SP release on PI7.0 a corresponding SP for XI3.0 is also released.
    A comparision of the service packs in 2004 and 2004s;
    in 2004 - in 2004s
    SP12 & < - SP04
    SP13 + 14 - SP05
    SP15 - SP06
    SP16 - SP07
    SP17 - SP08
    SP18 - SP09
    For release notes
    ref:http://help.sap.com/saphelp_nw04/helpdata/en/cf/9844428e9cbe30e10000000a155106/frameset.htm
    There is no f'nal difference between XI 3.0 and PI 7.0. In order to bring all netweaver releases on par with each other , SAP released / renamed XI as PI and it is a part of NW04s
    For every release of PI 7.0, there is a parallel Support Pack on XI.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/706005a3-3bd6-2910-91ae-a2016239bdcf">SAP NetWeaver Process Integration 7.1 – Overview of New Capabilities</a>
    Also check these threads.
    Difference between NetWeaver 2004 and NetWeaver 7.0 or 7.1
    All the diff  between XI 3.0 and PI 7.0
    differences between xi 3.0 and pi 7.0
    Difference/ changes from XI 3.0 to PI 7.0
    regards
    Bill

  • Differnce between AT NEW AND ON CHANGE OF

    Hi,
    Differnce between AT NEW AND ON CHANGE OF
    Iam waiting foryour reply
    Thanks & Regards
    Raja Sekhar.T

    Hai Raja
    check the following Documents
    1. AT NEW f.
    2. AT END OF f.
    3. AT FIRST.
    4. AT LAST.
    5. AT fg.
    Effect
    In a LOOP which processes a dataset created with EXTRACT , you can use special control structures for control break processing. All these structures begin with AT and end with ENDAT . The sequence of statements which lies between them is then executed if a control break occurs.
    You can use these key words for control break processing with extract datasets only if the active LOOP statement is proceesing an extract dataset.
    The control level structure with extract datasets is dynamic. It corresponds exactly to the sort key of the extract dataset, i.e. to the order of fields in the field group HEADER by which the extract dataset was sorted .
    At the end of a control group ( AT END OF , AT LAST ), there are two types of control level information between AT and ENDAT :
    If the sort key of the extract dataset contains a non-numeric field h (particularly in the field group HEADER ), the field CNT(h) contains the number of control breaks in the (subordinate) control level h .
    For extracted number fields g (see also ABAP/4 number types ), the fields SUM(g) contain the relevant control totals.
    Notes
    The fields CNT(h) and SUM(g) can only be addressed after they have been sorted. Otherwise, a runtime error may occur.
    The fields CNT(h) and SUM(g) are filled with the relevant values for a control level at the end of each control group ( AT END OF , AT LAST ), not at the beginning ( AT FIRST , AT NEW ).
    When calculating totals with SUM(g) , the system automatically chooses the maximum field sizes so that an overflow occurs only if the absolute value area limits are exceeded.
    You can also use special control break control structures with LOOP s on internal tables.
    Variant 1
    AT NEW f.
    Variant 2
    AT END OF f.
    Effect
    f is a field from the field group HEADER . The enclosed sequence of statements is executed if
    the field f occurs in the sort key of the extract dataset (and thus also in the field group HEADER ) and
    the field f or a superior sort criterion has a different value in the current LOOP line than in the prceding ( AT NEW ) or subsequent ( AT END OF ) record of the extract dataset.
    Example
    DATA: NAME(30),
          SALES TYPE I.
    FIELD-GROUPS: HEADER, INFOS.
    INSERT: NAME  INTO HEADER,
            SALES INTO INFOS.
    LOOP.
      AT NEW NAME.
        NEW-PAGE.
      ENDAT.
      AT END OF NAME.
        WRITE: / NAME, SUM(SALES).
      ENDAT.
    ENDLOOP.
    Notes
    If the extract dataset is not sorted before processing with LOOP , no control level structure is defined and the statements following AT NEW or AT END OF are not executed.
    Fields which stand at hex zero are ignored by the control break check with AT NEW or AT END OF . This corresponds to the behavior of the SORT statement, which always places unoccupied fields (i.e. fields which stand at hex zero) before all occupied fields when sorting extract datasets, regardless of whether the sort sequence is in ascending or descending order.
    Variant 3
    AT FIRST.
    Variant 4
    AT LAST.
    Effect
    Executes the relevant series of statements just once - either on the first loop pass (with AT FIRST ) or on the last loop pass (with AT LAST ).
    Variant 5
    AT fg.
    Addition
    ... WITH fg1
    Effect
    This statement makes single record processing dependent on the type of extracted record.
    The sequence of statements following AT fg are executed whenever the current LOOP record is created with EXTRACT fg (in other words: when the current record is a fg record).
    Addition
    ... WITH fg1
    Effect
    Executes the sequence of statements belonging to AT fg WITH fg1 only if the record of the field group fg in the dataset is immediately followed by a record of the field group fg1 .
    Basic form
    ON CHANGE OF f.
    Addition
    ... OR f1
    Effect
    Executes the processing block enclosed by the " ON CHANGE OF f " and " ENDON " statements whenever the contents of the field f change (control break processing).
    Normally, you use the statement to manipulate database fields during GET events or SELECT / ENDSELECT processing.
    Note
    There are special control structures for processing control breaks in LOOP s on internal tables or extract datasets AT ).
    ON CHANGE OF is unsuitable for recognizing control levels in loops of this type because it always creates a global auxiliary field which is used to check for changes. This global auxiliary field can only be changed in the relevant ON CHANGE OF statement. It is not reset when the processing goes into loops or subroutines, so unwanted effects can occur if the loop or subroutine is executed again. Also, since it is set to its initial value when created (like any other field), any ON CHANGE OF processing will be executed after the first test, unless the contents of the field concerned happen to be identical to the initial value.
    Example
    TABLES T100.
    SELECT * FROM T100 WHERE SPRSL = SY-LANGU AND
                             MSGNR < '010'
                       ORDER BY PRIMARY KEY.
      ON CHANGE OF T100-ARBGB.
        ULINE.
        WRITE: / '**', T100-ARBGB, '**'.
      ENDON.
      WRITE: / T100-MSGNR, T100-TEXT.
    ENDSELECT.
    Displays all messages with their numbers in the logon language, provided the number is less than '010'.
    Each time the message class changes, it is output.
    Addition
    ... OR f1
    Effect
    Also executes the code whenever the contents of the field f1 changes.
    You can use this addition several times.
    Example
    Logical database F1S
    TABLES: SPFLI, SFLIGHT, SBOOK.
    GET SBOOK.
      ON CHANGE OF SPFLI-CARRID   OR
                   SPFLI-CONNID   OR
                   SFLIGHT-FLDATE.
        ULINE.
        WRITE: /5 SPFLI-CARRID, SPFLI-CONNID,
                5 SFLIGHT-FLDATE, SPFLI-FLTIME,
                5 SFLIGHT-SEATSMAX, SFLIGHT-SEATSOCC.
      ENDON.
      WRITE: / SBOOK-CUSTOMID.
    The code between ON CHANGE OF and ENDON is executed only if at least one of the fields SPFLI-CARRID , SPFLI-CONNID or SFLIGHT-FLDATE has changed, i.e. there is a different flight connection (which also has bookings).
    Notes
    Thanks & regards
    Sreenivasulu P

  • Differnce Between OBIEE and BO And Cognos

    Hi experts.
    I would like to know the differnce between OBIEE , BO And Cognos. Is there is any white paper regarding this.
    Thanks in advance
    Regards
    Frnds

    Hi Friend ;)
    Check out this.. http://www.forumtopics.com/busobj/viewtopic.php?p=543325&sid=21c3e9a1b9dd85679d5e51c335b8a74e
    also http://oracle.ittoolbox.com/groups/strategy-planning/oracle-projectmanagement/what-is-obiee-1681803
    Thanks & Regards
    Kishore Guggilla
    Edited by: Kishore Guggilla on Nov 20, 2008 11:52 AM

  • Differnce between unicode and non unicode

    Hi every body i want to differnce  between unicode and non unicode and for what purposes this ulities are used explain me little brief what is t code for that , how to checj version, how to convert uni to non uni ?
    Advance Thanks
    Vishnuprasad.G

    Hello Vishnu,
    before Release 6.10, SAP software only used codes where every character is displayed by one byte, therefore character sets like these are also called single-byte codepages. However, every one of these character sets is only suitable for a limited number of languages.
    Problems arise if you try to work with texts written in different incompatible character sets in one central system. If, for example, a system only has a West European character set, other characters cannot be correctly processed.
    As of 6.10, to resolve these issues, SAP has introduced Unicode. Each character is generally mapped using 2 bytes and this offers a maximum of 65 536 bit combinations.
    Thus, a Unicode-compatible ABAP program is one where all Unicode checks are in effect. Such programs return the same results in UC systems as in non-UC systems. To perform the relevant syntax checks, you must activate the "UC checks" flag in the screens of the program and class attributes.
    With TC: /nUCCHECH you can check a program set for a syntax errors in UC environment.
    Bye,
    Peter

  • Differnce between portal and collaboration

    Hi All
    What is differnce between portal and collaboration & uses as well?
    Thanks in advance
    Raja.S

    Periodic billing is used when you want to bill the customer at different points of time based on the periodicity or progress of the work. Milestone billing can be used for this type of billing purposes when you want to have billing control from the project.
    Resource billing is based on the resource consumption for the particular activities. Dynamic Item Processor (DIP) profile is used for the resource related billing.
    Further information acn be had from the link
    [http://help.sap.com/saphelp_47x200/helpdata/en/aa/96853478616434e10000009b38f83b/frameset.htm]
    Hope this is of some help
    Venu

  • Differnce between MMPV and OB52

    Wat is the differnce between OB52 and MMPV,
    Thanks
    Ramki

    Hi Ramki,
    This question has been answered already in several threads before.
    Please use the search before posting new threads.
    Hi Priyanka,
    Sam has already answered the question.
    Why are you replying with same answer and requesting points for that please do not do that.
    Thank you

  • Differnce Between /n and /BEND

    Hi,
    Differnce Between /n and /BEND?
    thanks and regards
    sarath

    Hi ,
    /n ends the particular transaction .
    /bend -  This means batch end .
                 This comes only in BDC concept .This is where you transfer data from the legacy system to sap R/3 system .When you are performing recording process and you dont want to continue any more you give /bend .

  • Differnce between periodic and Resourse billing.

    Differnce between periodic and Resourse billing, and how to do it in sap?..
    Can anyone suggest me step wise
    Thanks in advance

    Periodic billing is used when you want to bill the customer at different points of time based on the periodicity or progress of the work. Milestone billing can be used for this type of billing purposes when you want to have billing control from the project.
    Resource billing is based on the resource consumption for the particular activities. Dynamic Item Processor (DIP) profile is used for the resource related billing.
    Further information acn be had from the link
    [http://help.sap.com/saphelp_47x200/helpdata/en/aa/96853478616434e10000009b38f83b/frameset.htm]
    Hope this is of some help
    Venu

  • Differnce between business name and physical name

    What is the differnce between business name and physical name in OWB

    Hi Vibhuti,
    What I have noticed is that Physical name is THE important thing that is required while importing and synchronising. It has a length limitation of 30. The mappings appear with this name in the left panel in design center. The Business name is just for reference I believe.
    Cheers,
    Swagata

  • STO DIFFERNCE BETWEEN UB AND NB

    HI all
    can someone plz tell me the differnces between po type NB and UB
    and y do we use UB for Intra Company and NB for Intercompany
    where exactly is the contrl\ol
    olz clarify

    hi
    UB: If the supplying plant and Receiving Plant belong to the same company code. then we use UB document type.
    If you use own document type you should ensure transport control field.
    NB : If the Supplying plant and Receiving plant belong to different company code then use document type NB.
    difference : IF the company need billing document for stock transfer use NB document.
    else use  UB document for the stock transfer  . 
    regards
    murali

  • Differnce between getCurrentRow()  and firrst() method

    Hi
    what is the differnce in vo.getCurrentRow() and vo.first().
    I have executed one view which returns only one row.When i use vo.getCurrentRow() I get null but vo.first() gives the row.
    What the reason can be???
    Naveen

    what is the differnce in vo.getCurrentRow() and vo.first().
    As the name suggests getCurrentRow, gives the row at which Vo pointer is at that moment of time, while getFirstRow, will always give u the first row.I have executed one view which returns only one row.When i use vo.getCurrentRow() I get null but vo.first() gives the row.
    When u execute the VO query , your VO pointer is just above the first row, so points to no row, this is very similar, to resultset in jdbc, while when u do vo.first(), pointer gives the first row.I hope this is clear.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Report to display accounting documents

    What is the report to display accounting documents Moderator: Please, avoid asking basic questions

  • Cannot boot from osx or cd, help

    Hi, I have a problem. My macbook 5.1 boots only to windows, not to cd or osx. I am not sure what has happened but I think I installed the latest security update. I have a backup with time machine (osx) and vista with windows backup. I can wipe the wh

  • To Change the Picking qty...?

    Dear All, While I am using the FM 'BAPI_OUTB_DELIVERY_CHANGE' it change the delivered quantity, but the picking quantity does not get change as per del. qty. And due to this my changed delivery dosen't get save. so how to overcome by this problem. Re

  • DVDs not showing up correctly on desktop

    I have a friend who is having this problem and I tried to help last night: DVDs that are authored in DVD Studio Pro or iDVD will show up on the desktop as DVDs with the round DVD icon w/DVD logo on the icon. DVDs that are recorded on a set top Sony D

  • Multiply coumn with +1 or -1

    Multiply with -1 or +1Question: I have two columns namely AMOUNT and IMPACT. AMOUNT has dollar amount its of type float IMPACT has either + or - symbol that is plus or minus symbol sadly its of type VARCHAR2. Now i need to calculate a new column by m