Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: Comparing 2 columns with abap

$
0
0

Hi Amine,

 

Consider your internal table as ITAB_COLUMN and work area as WA_COLUMN.

 

Suppose your internal table contains two fields namely column1 and column2.

 

loop at itab_columns into wa_columns.

 

   if wa_column-column1 NE wa_column-column2

      write:/ wa_column-coumn1,

                wa_column-column2,

                sy-tabix.

endif.

 

Here sy-tabix indicates in which record the contents are mismatching.


Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>