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 |
how can you display data say "your name"in sap script without print program or driver program??
What is difference between float and packed data type?
How to upload data using CATT ?
WHAT ARE THE MANDATORY FIELDS TO BE FILLED FROM TABLES BAPIITEMIN, BAPIPARTNR, BAPIITEMEX, BAPICUCFG, BAPICUINS, BAPICUPRT, AND BAPICUVAL IN BAPI 'BAPI_QUOTATION_CREATEFROMDATA
How to Read long Text using Scripts
What is the difference between data elements and domains? : abap data dictionary
How we will handle the Page Breaking in Smart Form?
What is the difference between upload and ws_upload ? : abap bdc
one client needs material description more than 40 chars so how can we extend because in standard table material descp is of 40 chars only
What is the difference between the function module and a normal abap/4 subroutine?
What is Macro?
How can we display multiple alv's without using containers?