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 |
i have ztable for that i had created screen in that screen i had designed tablecontrol and save button calling ztable fields thorugh tablecontrol i have to insert the data in ztable if i press save button the data which i had enter in table control that should b save in ztable can any one send me the code for this for this. example is sm30 there we can directly insert the values directly in a single shot right?. urgent
CAN WE DEBUG A MACROS ? HOW DO TO MATHEMATICAL ON TWO NUMBERS ?
What are MENUEXITS, SCREENEXITS, FUNCTIONEXITS, FIELDEXITS and what is the difference between them ?
Define external layer? : abap data dictionary
What are the dynamic actions and how to configure it? : sap abap hr
how to prepare technical specs? what are the steps used to prepare it?
I have one BADI Definition , which i have use it in multiple Implementation .Now i am calling the BADI , In which Sequence the BADI will be called ? Can i control the sequence of calling ?
2 Answers Nissan, Renault Nissan,
What are local objects? : abap data dictionary
What are the select-option fields?
What technical problem you will face if you create many secondary indexes.
2. You are running a report. It is taking long time for execution. What steps will you do to reduce the execution time.
Modes in Call Tr?