What is difference between modify and update i am using

hi
what is difference between mofify and update
my requiremen is to have three condition checkec while mofifying or updating from a internal table
the three fields are
cus no
status
date these all are primary key in the database table
so which sould i use modify or update
there might be entry already existing in database table or new entry to be created if already existin it should check on the primary keys and updatat if not it should add a record
pls suggest whihc to use and how to implement the check on teh threee primary key
like if modify ztable from table it_test
now where condition ? can be used or not with modify? and if yes how
if not should i use update will update create a new entry if no entry is there and please give syntex
regards
Arora

Hi Nishant Arora,
Modify: It works in performing two actions.
They are: Insert + Update.
For Example If a record that is exited in database, so you are modifying that record, it updates that particular record.
Similarly, If the is not existed in the database, you are modifying it, it inserts a new record.
Update: Update means just it updates the status, I mean it only updates the record. It doesn't inserts any new record if that particular record is not present in the database.
These are the cases you need to write these statements.
Syntaxes: :
Go through this links please.,
http://help.sap.com/saphelp_nw04/helpdata/en/e7/968aa8b2384dd9835f91e7f8470064/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35eb358411d1829f0000e829fbfe/content.htm
Reward points if useful
Cheers,
Swamy Kunche
Edited by: Swamy Kunche on Jun 11, 2008 2:41 PM

Similar Messages

  • In jdbc adapter what is the difference between insert and update insert

    in jdbc adapter what is the difference between insert and update insert
    Edited by: katru vijay on Mar 22, 2010 7:43 AM

    Please refer to this Link [Document Formats for the Receiver JDBC Adapter|http://help.sap.com/saphelp_nw04/Helpdata/EN/22/b4d13b633f7748b4d34f3191529946/frameset.htm]
    Hope this helps.
    Regards,
    Chandravadan

  • Whats the difference between SM50 and sm38

    HI GURUS
    whats the difference between SM50 and sm38??? job overview and process overview

    hi sharma,
    sm38: intial queueueue Info, information about the request quest queue of the server in question is displayed. The dispatcher forwards each request it receives to a work process of the appropriate type. If all the processes of this type are occupied, the dispatcher stores the request in a queue.
    In the queue info you can see for each work process type:
    ·        The number of requests currently waiting. Usually this should be 0.
    ·        The total number of requests waiting, since the server has been running.
    ·        The maximum number of requests that can be stored in the queue (specified in profile parameter rdisp/elem_per_queue)
    ·        The number of requests written and read since the server has been running.
    sm50: work process dialog steps in user transactions, updates, lock administration, etc.
    this transcatin Choosing Administration
    System Administration  Monitor  System Monitoring
    Process Overview or transaction
    For example, you can monitor processes to determine if the number of work processes in your system is adequate, to assess if the instance is working to full capacity, to gather information for trouble-shooting, or for tuning.
    DIA work process for executing dialog steps in user transactions.
    DIA work process for executing dialog steps in user transactions
    UPD: Update process for making U1 (time-critical) database changes
    UP2: Update process for executing U2 (not time-critical)
    database changes
    ENQ for setting and releasing locks on SAP lock objects
    BTC for executing background jobs
    SPO for spool formatting processes
    regards
    vijju

  • Difference between MERGE and Update/Insert

    Can anybody pls tell me what is the difference between MERGE and Update/Insert statements.

    hi vivek,
    merge is totally different than normal update and insert.Merge is a combination of update+inserrt.
    Merge statment first checks the data in your table, if data is already exists then it will try to update the data otherwise it will go for insertion.In case of normal update/insert it will not check the data directly it does the specified operation.
    So based on your requirement you have to select the best option.
    Thanks.

  • What is Difference between SXMB_MONI and SXMB_MONITOR?

    what is Difference between SXMB_MONI and SXMB_MONITOR?
    Can any explain to this question.please?

    Hello,
    Both are same.
    SXMB_MONI is area menu which will contain all multiple transactions pertaining to monitoring.
    SXMB_MONI contains some functions viz monitoring for Bridging, Archived Msgs, Job overview, persistence layer analysis.
    SXI_monitor directly leads to the message monitoring for the IS, which is part of the SXMB_MONI.
    SXI_MONITOR directly executes the monitoring report.
    Thanks,
    Satya

  • Whats the difference between list and lov ?

    Whats the difference between list and lov ?
    i can do the same things with a list what an lov can do .
    infact a list is more better. cause the list doesnt hold/show a range of values, and only has the items value iteself.
    while the lov can get all the values of items depending on the query.
    like
    select ename, job, sal from emp
    will show all the three items values in lov?

    Also, if you're looking in the US store, the prices are:
    - Airport Express (small, no ac) $99 - Has audio out for speaker connection using Airplay. Can share a USB printer only.
    - Airport Extreme (larger, ac) $199 - No audio out, can share a USB printer or hard drive.
    - Time Capsules (2TB, 3TB at $299, $399) - have ac wireless and a backup hard drive for Time Machine which the other Airports do not have.
    Matt

  • Whats the difference between Fatal1ty and Fatal1ty USB heads

    Whats the difference between Fatal1ty and Fatal1ty USB headset? What is the $30 price difference for other than a USB connection?
    Also, what is the advantage to using the USB port?
    Still trying to decide on which headset to buy. I will be using these mainly for gaming and some music. Although i'm not real picky when it comes to music quality. Even considered the HS-1200 wireless. Which headset of these 3 has the best sound quality and better quality?
    Message Edited by iowabucks on 10-20-2008 07:54 AM
    Message Edited by iowabucks on 10-20-2008 08:10 AM

    Any USB sound related item is going to use system resources instead of the non usb version. The non usb version uses the resources of the sound card and not system resources. So you should get cleaner sound with the non usb version.
    But, be aware creatives tech support is not the best in the world. Keep that in mind when buying a product from them.

  • Whats the difference  between Authentication and Login check up ?

    whats the difference between Authentication and Login check up ?

    Authentification is a more generic term. It's generally applicable to any situation where you check that information comes from where it claims to come from.
    Login is just one form of authentification.

  • Whats the difference between comparable and comparator?

    whats the difference between comparable and comparator?
    when must i use comparable, and when must i use comparator?

    whats the difference between comparable and
    comparator?Comparable is from the java.lang package, Comparator from java.util.
    when must i use comparable, and when must i use
    comparator?Here's a tutorial on both:
    http://java.sun.com/docs/books/tutorial/collections/interfaces/order.html

  • Whats the difference between oracle9i and oracle10g

    whats the difference between oracle9i and oracle10g?

    794244 wrote:
    whats the difference between oracle9i and oracle10g?About 12...
    SQL> select utl_match.jaro_winkler_similarity('oracle9i','oracle9i') as sameness from dual;
      SAMENESS
           100
    SQL> select utl_match.jaro_winkler_similarity('oracle9i','oracle10g') as sameness from dual;
      SAMENESS
            88
    SQL>

  • What's differences between jaas and jacc?

    lately i saw a new java scurity released on http://java.sun.com/j2ee/javaacc/; it seems like similar to JAAS (http://java.sun.com/products/jaas/); though, reportedly, jacc concerned more detail in authrization, however, there's autherization api been included as i know. is there anyone be able to tell me what's differences between jaas and jacc? or where there's resource or article exaplained detail about this issue?
    i appreciate any suggestions.
    thank you very much,

    From what I saw, the JACC specifically deals with what is currently called Container Managed Security. JAAS is something that would be used on top of JACC.
    See also:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security11.html
    JACC contracts provide the following benefits:
    - JACC moves security administration and decision-making responsibility from the container to the security providers.
    - JACC enables the use of a common policy across different security systems.
    - J2EE system integrators can integrate containers with existing authorization policy infrastructure
    re Jaap

  • HT201471 Sorry can you explain what is difference between cellular and cellular (MM)

    Sorry can you explain what is difference between cellular and cellular (MM)

    The MM or Millenium Media according to what I can find, refers to the CDMA variation of the Cellular iPad for Verizon Networks.
    The non MM version is for GSM carriers like AT&T.

  • Whats the difference between ALL and FIRST  in Multi Inserting

    SQL> Drop Table Sales;
    Table dropped.
    SQL> Drop Table Accounts;
    Table dropped.
    SQL> Drop Table Research;
    Table dropped.
    SQL> Create Table Sales As Select * From Emp;
    Table created.
    SQL> Create Table Accounts As Select * From Emp;
    Table created.
    SQL> Create Table Research As Select * From Emp;
    Table created.
    SQL> Truncate Table Sales;
    Table truncated.
    SQL> Truncate Table Accounts;
    Table truncated.
    SQL> Truncate Table Research;
    Table truncated.
    SQL> Select * From Sales;
    no rows selected
    SQL> Select * From Accounts;
    no rows selected
    SQL> Select * From Research;
    no rows selected
    SQL> Insert All
      2  When Deptno=10 Then
      3  Into Sales (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      4  When Deptno=20 Then
      5  Into Accounts (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      6  When Deptno=30 Then
      7  Into Research (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      8  Select * From Emp
      9  .
    SQL> /
    16 rows created.
    SQL> Select * From Sales;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7782 CLARK      MANAGER        7839 09-JUN-81       100                  10
         7839 KING       PRESIDENT           17-NOV-81       100                  10
         7934 MILLER     CLERK          7782 23-JAN-82       100                  10
         7999 ABCDEFGH   JOB            7839 09-FEB-06       100         0        10
    4 rows selected.
    SQL> Select * From Accounts;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7901 SMITH      CLERK          7902 17-DEC-80       100                  20
         7566 JONES      MANAGER        7839 02-APR-81       100                  20
         7788 SCOTT      ANALYST        7566 19-APR-87       100                  20
         7876 ADAMS      CLERK          7788 23-MAY-87       100                  20
         7902 FORD       ANALYST        7566 03-DEC-81       100                  20
          123                                                                     20
    6 rows selected.
    SQL> Select * From Research;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7499 ALLEN      SALESMAN       7698 20-FEB-81       100       300        30
         7521 WARD       SALESMAN       7698 22-FEB-81       100       500        30
         7654 MARTIN     SALESMAN       7698 28-SEP-81       100      1400        30
         7698 BLAKE      MANAGER        7839 01-MAY-81       100                  30
         7844 TURNER     SALESMAN       7698 08-SEP-81       100         0        30
         7900 JAMES      MANAGER        7698 03-DEC-81       100                  30
    6 rows selected.
    SQL> Truncate Table Sales;
    Table truncated.
    SQL> Truncate Table Accounts;
    Table truncated.
    SQL> Truncate Table Research;
    Table truncated.
    SQL> Insert First
      2  When Deptno=10 Then
      3  Into Sales (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      4  When Deptno=20 Then
      5  Into Accounts (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      6  When Deptno=30 Then
      7  Into Research (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      8  Select * From Emp
      9  /
    16 rows created.
    SQL> Select * From Sales;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7782 CLARK      MANAGER        7839 09-JUN-81       100                  10
         7839 KING       PRESIDENT           17-NOV-81       100                  10
         7934 MILLER     CLERK          7782 23-JAN-82       100                  10
         7999 ABCDEFGH   JOB            7839 09-FEB-06       100         0        10
    4 rows selected.
    SQL> Select * From Accounts;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7901 SMITH      CLERK          7902 17-DEC-80       100                  20
         7566 JONES      MANAGER        7839 02-APR-81       100                  20
         7788 SCOTT      ANALYST        7566 19-APR-87       100                  20
         7876 ADAMS      CLERK          7788 23-MAY-87       100                  20
         7902 FORD       ANALYST        7566 03-DEC-81       100                  20
          123                                                                     20
    6 rows selected.
    SQL> Select * From Research;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7499 ALLEN      SALESMAN       7698 20-FEB-81       100       300        30
         7521 WARD       SALESMAN       7698 22-FEB-81       100       500        30
         7654 MARTIN     SALESMAN       7698 28-SEP-81       100      1400        30
         7698 BLAKE      MANAGER        7839 01-MAY-81       100                  30
         7844 TURNER     SALESMAN       7698 08-SEP-81       100         0        30
         7900 JAMES      MANAGER        7698 03-DEC-81       100                  30
    6 rows selected.Both inserting insert the same records then whats the difference between ALL and FIRST clause in multi insert DML
    Khurram Siddiqui
    [email protected]

    Hello
    From the docs:
    ALL
    If you specify ALL, then Oracle evaluates each WHEN clause regardless of the results of the evaluation of any other WHEN clause. For each WHEN clause whose condition evaluates to true, Oracle executes the corresponding INTO clause list.
    FIRST
    If you specify FIRST, then Oracle evaluates each WHEN clause in the order in which it appears in the statement. For the first WHEN clause that evaluates to true, Oracle executes the corresponding INTO clause and skips subsequent WHEN clauses for the given row.
    ELSE clause
    For a given row, if no WHEN clause evaluates to true:
    * If you have specified an ELSE clause, then Oracle executes the INTO clause list associated with the ELSE clause.
    * If you did not specify an else clause, then Oracle takes no action for that row.
    See Also:
    "Multitable Inserts: Examples"
    Restrictions on Multitable Inserts
    * You can perform multitable inserts only on tables, not on views or materialized views.
    * You cannot perform a multitable insert into a remote table.
    * You cannot specify a table collection expression when performing a multitable insert.
    * In a multitable insert, all of the insert_into_clauses cannot combine to specify more than 999 target columns.
    * Multitable inserts are not parallelized in a Real Application Clusters environment, or if any target table is index organized, or if any target table has a bitmap index defined on it.
    * Plan stability is not supported for multitable insert statements.
    * The subquery of the multitable insert statement cannot use a sequence.
    So given this the following example shows the difference:
    SQL> CREATE TABLE dt_test_insert_base as select rownum id from dba_objects where rownum <=20
      2  /
    Table created.
    SQL> CREATE TABLE dt_test_insert_1 (id number)
      2  /
    Table created.
    SQL> CREATE TABLE dt_test_insert_2 (id number)
      2  /
    Table created.
    SQL>
    SQL> INSERT ALL
      2     WHEN rownum <=15 THEN
      3             INTO dt_test_insert_1 (id)
      4     WHEN rownum >=10 THEN
      5             INTO dt_test_insert_2 (id)
      6  SELECT
      7     ID
      8  FROM
      9     dt_test_insert_base
    10  /
    26 rows created.
    SQL>
    SQL> SELECT * from dt_test_insert_1
      2  /
            ID
             1
             2
             3
             4
             5
             6
             7
             8
             9
            10
            11
            12
            13
            14
            15
    15 rows selected.
    SQL> SELECT * from dt_test_insert_2
      2  /
            ID
            10
            11
            12
            13
            14
            15
            16
            17
            18
            19
            20
    11 rows selected.
    SQL>
    SQL> TRUNCATE TABLE dt_test_insert_1
      2  /
    Table truncated.
    SQL> TRUNCATE TABLE dt_test_insert_2
      2  /
    Table truncated.
    SQL>
    SQL> INSERT FIRST
      2     WHEN rownum <=15 THEN
      3             INTO dt_test_insert_1 (id)
      4     WHEN rownum >=10 THEN --This condition is ignored until the value of id is > 15
      5             INTO dt_test_insert_2 (id)
      6  SELECT
      7     ID
      8  FROM
      9     dt_test_insert_base
    10  /
    20 rows created.
    SQL> SELECT * from dt_test_insert_1
      2  /
            ID
             1
             2
             3
             4
             5
             6
             7
             8
             9
            10
            11
            12
            13
            14
            15
    15 rows selected.
    SQL> SELECT * from dt_test_insert_2
      2  /
            ID
            16
            17
            18
            19
            20HTH
    David

  • Please what the difference between MFP1132 AND MFP1136 LASERJET PRINTER

    please what the difference between MFP1132 AND MFP1136 LASERJET PRINTER

    Nothing definite, but http://mindmachine.co.uk/products/HP_Texts/HP_LJ_Pro_M1130_01.html suggests that:
    The MFP1132 (part number CE847A) is for  American and European markets, and uses the CE285A toner cartidge.
    The MFP1136 (part number CE849A) is for  Asian markets, and uses the CE388A toner cartidge.

  • Whats the difference between bookmarks and favorites?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/909148]]</blockquote>
    What is the difference between bookmarks and favorites? I use favorites, but only see instructions for bookmarks. I use windows 7 and all the folders and individual sites were listed together alphabetically. Now all the folders are listed together, and there are two different sections of alphabetized sites below that. Why? How do I get all the favorites listed together in alphabetical order?

    The term favorites, or favourites, is used by other browsers such as Internet Explorer, whereas Firefox uses the term bookmarks.
    The technology behind the two also differs somewhat, but it is still for instance possible to import favourites from IE to Firefox see
    * [[Importing favorites and other data from Internet Explorer]]
    Once the favourites are imported and appended to your bookmarks thay can be organised by dragging and dropping etc
    * [[how do i use bookmarks?]]

Maybe you are looking for