Revision wise Tabular View

Hi,
     I have created the tabular view. Please do have a look.Thank You
there are a lot of variables in here that are not defined here.  What does 'i' mean?  where is row_exists defined?  what is det_row?