what is difference between update and modify
Answers were Sorted based on User's Feedback
Answer / vishwas
Update only used for updating existing record.If the record
does not exist a new record is not created.
Modify is used for updating an existing record, if it is
present and create a new record if none exist.
Is This Answer Correct ? | 100 Yes | 16 No |
Answer / ram
Update:update keyword used for change the existing record.
Modify:if the record is there then record will be modified
otherwise new record will be inserted.
Is This Answer Correct ? | 27 Yes | 3 No |
Answer / harish
update:- update not inserte new record but change the
existing record.
modify:- it is used to modify the record but if record does
not exist then it insert the new record.
Is This Answer Correct ? | 19 Yes | 7 No |
Answer / jacky.jhan
reference from SAP Library
1.UPDATE
This statement allows you to change one or more lines in
the database table target
2.Modify
If the database table contains no line with the same
primary key as the line to be inserted, MODIFY works like
IINSERT - that is, the line is added.
If the database already contains a line with the same
primary key as the line to be inserted, MODIFY works like
UPDATE - that is, the line is changed.
Choose me!
Is This Answer Correct ? | 11 Yes | 3 No |
Answer / kumar
INSERT - adds a new record to the table. If the row (key) exists, issues an error.
UPDATE - updates an existing record to the table. If the row (key) does not exist, issues an error.
MODIFY - If the key exists, modifies the record. If the key does not exist, adds the record to the table.
Is This Answer Correct ? | 10 Yes | 3 No |
Answer / susmitha
The UPDATE statement is used to update existing records in a table.
Modify is used with alter statement for updating an existing record, if it is present and create a new record if none exist.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / mahesh kumar chinnam
Update:update keyword used for change the existing record.
Modify:if the record is there then record will be modified
otherwise new record will be inserted.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / someone
If key is not available, update will add the new data to
table where as modify will throw an error.
Is This Answer Correct ? | 0 Yes | 3 No |
Answer / sailaja
update statement writes the modified observations to the
new data set that u name in the dataset without modifying
the master and transaction dataset whereas modify statement
modifies observations directly in the master data set
Is This Answer Correct ? | 2 Yes | 6 No |
Answer / chander
I am Sorry for above-written answer this is the correct
answer
MODIFY - is used for modifying the existing data on the
basis of primary key and if there is no data in table then
UPDATE command will add new record into table.
UPDATE - is used for only modifying the existing data on
the basis of primary key.
Is This Answer Correct ? | 15 Yes | 40 No |
What is gui status? How to create /edit gui status?
1.what are the events in TMG..? 2.if i do not write any thing in a REPORT program except TOP OF PAGE and END OF PAGE ,then what will be the output?
in scripts if u want to add the field using itcsy structure iknow this concept,then i want to add some logic at a time in S.ORDER AND P.ORDER HOW,IF POSSIBLE WHERE U CAN ADD THE LOGIC, HOW?
What are the types of table fields in the sap abap?
What is the difference between At selection screen and At selection screen on output?
In Interactive report, how to go back to 3rd list directly, from 9th list?
what is the use of STOP,EXIT,CHECK,CONTINUE in internal table?
How do you use tab sets in layout sets?
What is the difference between view and table ?
13 Answers Deloitte, Renault Nissan,
Explain what are the different functions used in sap script? What are the parameters used in each function?
I have two structures s1 and s2 have same struture of five fields each how can u transfer data from s1 to s2
1.If a table is fully buffered?can we fire single select? 2.Diff between submit progam name and submit program name and return? 3.central address management in sap script? 4.main criteria for using loop at read table?