2008 Jan 09 2:00 PM
Hi All,
Is there any function module to compare contents of two internal tables of same structure?
If yes please let me know.
Thanks in advance.
Amol
2008 Jan 10 5:43 AM
Hi,
Try this in ur code....
it may works....
CATSXT_COMPARE_STRUCTURES
2008 Jan 10 5:43 AM
Hi,
Try this in ur code....
it may works....
CATSXT_COMPARE_STRUCTURES
2008 Jan 11 9:05 AM
Hi Amol,
CTVB_COMPARE_TABLES
This function module may work try this one. This in some cases gives dump. This may work in your case.
Reward if useful.
2008 Jan 11 9:42 AM
Hi Kaushik,
Thanks for reply.
Do u have any example for using this function module? I am getting short dump "CALL_FUNCTION_CONFLICT_GEN_TYP", because of type mismatch of parameter "KEY_LENGTH". If you have any example, Can you please post it here?
Thanks,
Amol
2008 Jan 11 9:12 AM
simple way...
if tab1[ ] = tab2[ ].
.....
endif.
Edited by: Abap-fresher on Jan 11, 2008 10:12 AM
2008 Jan 11 9:35 AM
I don't think that the simple way is very useful.
Usually one wants to know, if there is a difference between the two internal tables, how the table
differ exactly.
Siegfried
2008 Jan 11 10:48 AM
Hi Amol,
I dont have an example right now but i can give you another function module which works fine
COMPARE_TABLES
This works fine it gives you the result "F" if the tables have different data and "T" if the data matches.
This is a simple function module.
Reward if helpful.