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 | 15 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 |
Have you set up a back ground job ? How to create a background job without a variant ?
Difference between top-of-page and top-of-page during at line- selection?
What happens when you post goods issue after delivery?
Which is the event trigger last?
What is the use of abap data dictionary? : abap data dictionary
Can you give the Example for the structure of an ABAP program? REPORT... NODES: SPFLI, SFLIGHT. DATA:... INITIALIZATION. AT SELECTION-SCREEN. START-OF-SELECTION. GET SPFLI... GET SFLIGHT... GET SPFLI LATE. END-OF-SELECTION. FORM... ENDFORM.
Polindrome Program for string and Polindrome Program for numbers in ABAP
where u can u set the pages in script (don't say first page, remaining pages i want)?
What is database utility?
What is its? : abap hr
do 4 times. sy-tabix,sy-index. end do. what is the output ?
What is the difference between BAPI and RFC?