set_metadata function

Set the metadata of a SaItem