Measure of Difference

The Analysis Summary page of a LiveCompare report includes a measure of difference for each object compared. Measure of difference is calculated as a percentage value, using the following rules:

  • Objects that exist in one system only are considered to be 100% different.
  • Objects that are not compared or cannot be compared are considered to be 0% different.
  • For objects with code, percentage difference is calculated as:

(number of deletes + number of inserts) / number of lines of code * 100

  • For objects with attributes, percentage difference is calculated as:

number of different attributes / number of attributes * 100

  • For objects with both code and attributes, percentage difference is calculated as:

(code percentage difference + attributes percentage difference) / 2

  • For SAP Scripts, percentage difference is calculated as:

number of different fields / total number of reported fields * 100

  • For Function Groups, percentage difference is calculated as:

number of source line changes / total number of source lines * 100

Differences in the facets of an attribute are not used in measure of difference calculations. LiveCompare simply checks whether an attribute is different or in only one of the compared systems. Measure of difference is only calculated for object types where comparison details have been included in the report.