Highlight the new Records in the Two Tables

Question: Hi all,

itabh -> History Table
itab -> internal tables of itabh
itabc -> internal table of itabh stored in Current result
iatbp-> internal table of itabh stored in previous table

itabr -> Reference Table
itabrr internal table of itabr stored in updated info

select * from itabh into table itab.
select * from itabr into table itabrr.

sort
loop at itab.
read table itabrr with key comparision

sy-subrc eq 0.
move itab to itabc
else.
move itab to itabp.
endloop.

based on these two table (itabc,itabp) we have to found latest one
and How compare the 2 tables line by line and find the latest plz help on this

please clarify this dought anyone please

i look forward to your reply

With Regards
Raja Sekhar.T

Answer:
My first thought, get some naming standards involved.
GT_ = global tabel
WA_ = workarea
GS_ = global structure

Everything starting with itab , even the database (= DB_), is not inviting to read your code

My second thought: what do you want?
_________________
Only sheep and Tuly Idiots need a leader

Answer:
My second thought: what do you want?
Maybe he tried to avoid getting his post locked for posting a spec by translating the spec into ABAP. Or is is perl?

Answer:
Thank u for ur reply

i mention my mail compare Current Rev# Records and Previous Rev# Records

Current Recorsd Stored in itabc

Previous Records Stored in itabp

Actually i want find the latest Record from these two tables and heighlight in yellow color

Taking feature level as an example:

Get all related records from zibofh table to it_zibofh table, loop it_zibofh table to fill in the two temporary tables (pre_features and curr_features) in the loop. Then compare the two temporary tables and get the final write statements for the records in the curr_features table or you can use your stratagems how to write out the final result after you get the difference.

By comparing these two tables: (read table by a feature name)

Pre_features table
------------------
Rev# BOF_status Feature_name Qty PrimaryFtr
1 P ftr1 1 N
1 P ftr2 1 N
1 P ftr3 1 X

Curr_features table
-------------------
Rev# BOF_status Feature_name Qty PrimaryFtr
2 A ftr1 2 N
2 A ftr2 1 X
2 A ftr3 1 X
2 P ftr4 1 N

You should be able to identify:

1. ftr1's BOF_status, and Qty are changed.
2. ftr2's BOF_status, and PrimaryFtr are changed.
3. ftr3's BOF_status, is changed.
4. ftr4 is a new ftr added in the BOF.
(it is possible that ftr4 is in pre_features table with status "D" or "O", then you still need to identify it as a new feature.)

After capturing the Rev# 2 changes and using your stratagem to write them out, then move all records in curr_features table (Rev# 2) into pre_features table, and read all Rev# 3 records in curr_features table to compare......utile go through all records in it_zibofh table.

how to code it for this
iam struggling please help me

i look forward to ur help

Regards
Raja Sekhar.T
Copyright ?2007 - 2008 www.jt77.com