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 are the data types of the abap/4 layer?
What are the events we use in dialog programming and explain them?
What will happen when we use fully buffered in abap?
how can we enable hyperlink in screen painter?
What is a subroutine?
What is luw or data base transaction ?
Explain the types of bdc's?
what will happen if called program is not executable ?
Explain the different types of screen keywords?
What are the different message types available in the abap/4 ?
List the various components of the enterprise structure in systems, applications, and products (sap) in human capital management (him)? : sap abap hr
What data is contained in data dictionary? : abap data dictionary
Explain the difference between a pool table and a transparent table?
How many types of tables exists and what are they in data dictionary? : abap data dictionary
What is append structure?