Lots of duplicate lines, a helper function would be cleaner:

def report_note_sap(type, data)
report_note(:host => rhost, :port => rport, :sname => 'sap', :type => type, :data => data) if data
end