Skip to Content
author's profile photo Former Member
Former Member

compare two database table

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 29, 2010 at 08:33 AM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 29, 2010 at 11:46 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.