anchor.diff:  
       DATA lo_html         TYPE REF TO lcl_html_helper.
       DATA lt_diffs        TYPE lcl_diff=>ty_diffs_tt.
  -    DATA lv_index        TYPE i.
       DATA lv_local        TYPE string.
       DATA lv_remote       TYPE string.
       DATA lv_attr_local   TYPE string.
       DATA lv_attr_remote  TYPE string.
       DATA lv_anchor_count LIKE sy-tabix.
       DATA lv_href         TYPE string.
  +    DATA lb_insert_nav   TYPE abap_bool.
   
       FIELD-SYMBOLS <ls_diff>  LIKE LINE OF lt_diffs.
       FIELD-SYMBOLS <ls_break> LIKE LINE OF lt_diffs.
  
positive.code:           WHERE NOT result IS INITIAL AND short = abap_false.
          lv_index = sy-tabix.
  
          DO 20 TIMES.
            READ TABLE mt_diff INDEX lv_index ASSIGNING <ls_diff>.
            IF sy-subrc <> 0 OR <ls_diff>-short = abap_true.
              EXIT.
            ENDIF.
            <ls_diff>-short = abap_true.
            lv_index = lv_index - 1.
          ENDDO.
  
        ENDLOOP.
  
negative.code:       ENDCASE.
  
        CLEAR lv_href.  " Create link to next change
        IF <ls_diff>-result IS NOT INITIAL.
          lv_anchor_count = lv_anchor_count + 1.
          IF lv_anchor_count < ms_stats-insert + ms_stats-delete + ms_stats-update.
            lv_href = |<a name="diff_{ lv_anchor_count }"|
                   && |   href="#diff_{ lv_anchor_count + 1 }|
                   && |">&#x25BC; { lv_anchor_count + 1 }</a>|.
          ELSE.
            lv_href = |<a name="diff_{ lv_anchor_count }"></a>|.
          ENDIF.
        ENDIF.
  
        lo_html->add( '<tr>' ).                                               "#EC NOTEXT
        lo_html->add( |<td class="num">{ <ls_diff>-local_line }</td>| ).      "#EC NOTEXT
        lo_html->add( |<td{ lv_attr_local }><code>{ lv_local }</code></td>| ).  "#EC NOTEXT
        lo_html->add( |<td class="num">{ <ls_diff>-remote_line }</td>| ).     "#EC NOTEXT
        lo_html->add( |<td{ lv_attr_remote }><code>{ lv_remote }</code></td>| )."#EC NOTEXT
        lo_html->add( |<td class="cmd">{ lv_href }</td>| ).                   "#EC NOTEXT
        lo_html->add( '</tr>' ).                                              "#EC NOTEXT
  
      ENDLOOP.
  
  