Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

compare two database table

Former Member
0 Likes
576

I have a requirement in the selection screen input as table1 and table2

table1 and tabl2 both tables have the same fields but the data is different suppose

table1  pernr (key field) = 12
          mark  = x
table2 pernr (key field) = 12
         mark = blank

so there is a difference in the data and difference should be appended to internal table and show in the output

note it has to be compared with the key field

the table name will change in the slection screen

2 REPLIES 2
Read only

former_member266380
Active Participant
0 Likes
341

Hi Pavan, Do you need ot copy values which are there in table1 and not in table 2 or your requirement is some thing different? Can you please eloborate your requirement here?

Read only

uwe_schieferstein
Active Contributor
0 Likes
341

Hello

You may want to have a look at the Wiki posting:

[Comparing Two Internal Tables - A Generic Approach|http://wiki.sdn.sap.com/wiki/display/Snippets/ComparingTwoInternalTables-AGeneric+Approach]

Regards

Uwe