Suppose we are transfer data through BDC from legacy to SAP
and their is some duplicate data in legacy system but we
don’t want this in SAP system .So how can we check that this
data is already exist ?
Answer Posted / dillip kumar mishra
We have to check the key field is there in database table or not.
if we are storing uploaded data into internal table let's say ITAB.
Then we should check like as follows.
loop at itab.
select * from <database table> where <primary key> = itab-key.
if sy-subrc = 0.
logic for update.
else.
write:'Document Exists'.
continue.
endif.
endloop.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What two statements are required in an abap program to output an icon using a written statement?
What are the different methods of bdc? : abap bdc
what is user specific parameter?
How is the command suppress-dialog useful?
What is the difference between rfc and bapi function modules? : abap bdc
What are the types of indexes in abap?
what precautions or prerequisites do you follow to update a record into database table and how
How do you populate data into a multiple line field? : abap bdc
In the abap/4 dictionary tables can be defined independent of the underlying database (t/f). : abap data dictionary
What are the other modules integrated with om? : sap abap hr
What is an authorization in sap?
What is the disadvantage of a call by reference?
What are the function module in bdc?
What is a variable in the sap abap?
Give 3 scenario of reporting due to which you require reporting help of ABAP consultant?